0

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?

1 Answer 1

0

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

1
  • 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, 2018 at 17:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .