Adb error exception

Discussion in 'Android' started by NST_Adventure, Aug 6, 2020.

Tags:
  1. NST_Adventure

    NST_Adventure MDL Addicted

    Jun 1, 2019
    888
    191
    30
    #1 NST_Adventure, Aug 6, 2020
    Last edited: Aug 6, 2020
    Hi i just want to grant my tasker app to write secure setting
    But this error happenned:
    Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

    java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
    at android.app.ContextImpl.enforce(ContextImpl.java:1953)
    at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1981)
    at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:2142)
    at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:131)
    at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.grantRuntimePermission(PermissionManagerService.java:3212)
    at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:6720)
    at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2015)
    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:234)
    at android.os.ShellCommand.exec(ShellCommand.java:104)
    at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24188)
    at android.os.Binder.shellCommand(Binder.java:881)
    at android.os.Binder.onTransact(Binder.java:765)
    at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5118)
    at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4893)
    at com.android.server.pm.OppoPackageManagerService.onTransact(OppoPackageManagerService.java:91)
    at android.os.Binder.execTransactInternal(Binder.java:1021)
    at android.os.Binder.execTransact(Binder.java:994)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    12,547
    13,131
    340
    #2 Yen, Aug 6, 2020
    Last edited: Aug 6, 2020
    Tick "Disable Permission Monitoring" in the dev menu (bottom) and make sure USB debugging is completely enabled. (Also at security settings perhaps).

    Code:
    adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. NST_Adventure

    NST_Adventure MDL Addicted

    Jun 1, 2019
    888
    191
    30
    Welp thank you for your help

    Anyway Is there a way to keep adb wireless survive (Even After Restart)Without Rooting?

    Blah :-( My Phone Got Softbricked in locked Boot Loader As Result I Go to sc to fix them Fortunately repair cost nothing and my phone are officially flashed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. NST_Adventure

    NST_Adventure MDL Addicted

    Jun 1, 2019
    888
    191
    30
    @Yen
    What happen if i install microG Without Signature Spoofing Or Without Cr? (Custom Rom)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    12,547
    13,131
    340
    #5 Yen, Aug 14, 2020
    Last edited: Aug 14, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. NST_Adventure

    NST_Adventure MDL Addicted

    Jun 1, 2019
    888
    191
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...