Search code examples
iphonejailbreak

How to delete the app with using the passcode?


My aim is when i delete the application i need to ask passcode for security reason. That passcode is correct the application will be deleted or else the application will not delete. how to achieve this, even it is possible for jailbreak iPhone not a problem.

This all are achieve our coding in programatically using iPhone sdk.

Thanks in Advance.


Solution

  • AppStore application - Programically

    No way to do it because only the user (or iTunes, or Xcode's Organizer) can remove applications from the device.You have no control via programically.

    AppStore application - Manually:

    You can't do it only for a single AppStore application. The reason is they are Sandboxed.

    This means they are limited in how they can interact with other applications, and the iPhone itself.

    You can do it for the entire applications that installed on your device via

    Settings - > General->Restrictions.
    

    enter image description here

    Jailbroken application - Programically

    if you want to uninstall apps, you can use private API MobileInstallationUninstall. However, it requires entitlement com.apple.private.mobileinstall.allowedSPI, which you can get, because your device is jailbroken.

    Jailbroken application - Manually

    You can jailbreak the phone and install a jailbreak tweak like Locktopus or Lockdown Pro. These let you set a passcode.