TransWikia.com

How to grant permissions to ADB?

Android Enthusiasts Asked on December 26, 2020

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?

One Answer

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

Answered by rigortek on December 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP