I can use ADB while in recovery mode (TWRP) so to use it normally, I followed Android - Enable ADB from recovery to enable USB debugging. There is always an error while switching users, granting permissions, unhiding apps, using am and pm commands.

This is the error that always comes:

Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.INSTALL_PACKAGES.

How to grant permissions to ADB?


Call "adb root" before calling "pm install -r xxx.apk"

  • 1
    It's true that this gets the job done of installing an app, but it doesn't address how to grant a permission to adb. :-)
    – Firelord
    Nov 5 '18 at 17:18

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.