Normally I can reinstall (reserving application data) APK only when it's signature matches the previous one.

How do I force upgrading of apk (from distribution to self-compiler version, for example) without uninstallation using root access?

Workaround is backup application's data + uninstall + install + restore data, but that is inconvenient and notifies other applications about [un]installation which is not wanted.

  • 2
    Patch the system to ignore the signature when installing an application. Apps like LuckyPatcher allow that. – GiantTree Dec 23 '15 at 23:21
  • What about replacing the APK in /data/app followed by a soft/full reboot? – Firelord Dec 23 '15 at 23:29
  • A reboot is also inconvenient. I want seamless switching between development and repository versions. – Vi0 Dec 23 '15 at 23:38
  • In this case: Sign the development version with the same signature as your production version. Works like a charm. – GiantTree Dec 23 '15 at 23:45
  • I don't have the key for production, also F-Droid signs applications with it's own key. The workflow is: 1. Install app from F-Droid, 2. Want to contribute a fix/feature, so built from source; 3. Installed from source, tested, etc; 4. The fix is finally upstream. Self-built version is no longer needed; 5. Want to update app from F-Droid again. – Vi0 Dec 23 '15 at 23:55

You can use an app called 'Lucky Patcher' witch contains many system tweaks, (root and busybox are required) then follow the following steps:

  1. Go to 'Toolbox' tab in the buttom.
  2. Select 'Patch to Android'.
  3. Check 'Disable signature verification in the package manager'.
  4. Press 'Apply' and wait for your phone to reboot.

and that's it. 'Lucky Patcher' also has an Xposed module to do the same task if Xposed is already installed in your system.

| improve this answer | |

Use XInstaller, you need root. you also need Xposed to activate XInstaller.

When all set up, go to XInstaller and choose installation, then choose Checking signatures. When you're done, always remember to enable checking signatures.

Here's download links: Xposed installer and XInstaller

| improve this answer | |
  • Why downvote? Is there some problem with XInstaller? – Vi0 Dec 28 '15 at 12:52
  • That downvote may have been received by your post when revision 1 was the most recent revision. Though I can't really be sure. Avoid one-liners in the future. – Firelord Dec 28 '15 at 16:17
  • I'm new to posting in forums, so first i only wrote to use xinstaller. The downvote came from edit. :P – Ahti Sinkkonen Dec 28 '15 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.