Programmatically turn off a non-jailbroken iPhone - ios

If it is possible is it possible for iOS devices or just some? If so, which ones. If so, are there any resources / documentation where I find out more explicitly?

is it possible for apps to programmatically turn off the iPhone
No. There's no public API in iOS 9 (or any previous version) for switching the phone off.
are there any resources / documentation where I find out more explicitly?
The primary source for information like this is Apple's iOS documentation.

Short answer no. Longer answer, still no.

Related

Programmatically locking iphone (>iOS7)

i am on a research to find ways to lock iphone programmatically . I have come across a private api "graphicsservices.framework" which they say it works only on devices below iOS7. Is there any possible way to do this in devices >iOS7 ?? i know Apple wont accept this , but any private frameworks other than "graphicsservices.framework" ? . Thanks in advance.
I am sorry to say but this is not possible in non jailbroke iPhones. There may be a private API for it but apple would reject an app using it, So careful for the same.
You can also see reference 1 and reference 2.

Retrieving UDID via private API

I'm looking for a way to retrieve the UDID on devices running iOS 6+ (Enterprise deployment only - no app store limitations).
Calling the (now private) method uniqueIdentifier returns the 'vendorIdentifier' starting with 'FFFFFFF'. Unfortunately thats not what I want.
Any ideas? Is there another private method or something?
Thanks in advance.
I recommend you reading this article. To sum up:
The previously deprecated uniqueIdentifier now works like vendorIdentifier on iOS 7+, so it's no longer usable even for Enterprise Apps
OpenUDID cannot be shared between Applications on iOS 7+ and now can change. It's still usable but no longer recommended.
The vendorIdentifier hasn't changed, but it's not recommended for Enterprise Apps because it can change when updating the App.
The new advertisingIdentifier API is the way to go for new Apps. It's the same for all Apps and should not change frequently, but the user can reset it in the settings page.
Edit: Website udid.io obtains the real Device UDID instead of the obfuscated one if you need it for anything outside your App. If you need the UDID from within the App, see my answer above.
You can get a Unique UDID via this method using private api. Follow this link
Look for the code in accepted answer.
Sorry, but Apple warned it would be deprecated and it has been. I've had the same headache myself.
I can't help you identify the device in the same way Apple do, but you can always generate an unique UUID on app launch and stash that away in KeyChain. It won't be perfect, but it will persist between installations and will be unique to the device. As far as I know, that's the current solution

Get the version of an app programatically in iOS

Is there a way to get the version of other app(outside of my control) in my app? I know it may not comply with iOS sandbox rules, but is it possible to do so? And what if i can control the "other app"? All the apps mentioned will not be published on App Store, only just for our own guys.
No, and there is no reason to get it.
(Of course questions and answers asumes by default a non-jailbreaked environment)

iOS Changing App icon at runtime

I want to change my app icon at runtime. I read other similar threads on SO, and they say that it is not possible using Apple sanctioned APIs. One of the responses mentioned that its possible using restricted APIs, but did not elaborate.
I understand that if I use restricted APIs, my application scope will be reduced to jail-broken devices only. I'm ok with that, but how do I implement this feature.
Sorry, I cannot indicate any research effort for this question because I have no idea how to go about it or even how to get started on this.
Thanks in advance :)
Although this is an old question, I recently discovered this is now possible, as of iOS 10.3:
https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname
...using the UIApplication.setAlternateIconName(_:completionHandler:) API.
Note however you are limited to using icons which are already shipped as part of the app bundle.

How to check if keyboard is installed on iPad?

How can I programmatically check if a particular keyboard (in my case, Chinese handwriting) is installed on iOS (4.3)?
Short answer: You can't, at least App Store legally with Apple's public APIs.
A little longer answer: This might be possible with a hacked/jailbroken device, but I have never seen methods to accomplish this task.

Resources