ADB Hack - Granting extra capabilities via the ADB tool

sfcoin

New member
Hey, I have this message appearing on my Logcat
05-03 23:49:26.503 D/VideoLog(17821): shouldGoBackToMain
How can I use logcat trigger to perform some action when this message appear on the logcat?
I have this But this macro is never executing. Maybe I have a mistake on the Regex?
 

zaphod_42

New member
Hi,
I'm a total newbie in MacroDroid. Would like to solve a GPS Location problem by "Location Services OFF" and "Location Services ON" manually (later may be from time to time, or event driven). Sony XZ1, Android 9.
My question: Is it possible to do so without root? And does the "ADB-Hack" provide the permission?
Thanks a lot for any hint.
 
Hi,
I'm a total newbie in MacroDroid. Would like to solve a GPS Location problem by "Location Services OFF" and "Location Services ON" manually (later may be from time to time, or event driven). Sony XZ1, Android 9.
My question: Is it possible to do so without root? And does the "ADB-Hack" provide the permission?
Thanks a lot for any hint.

ADB hack will allow location services on/off. You do not need root.
 

pr3jker

Member
Hi all

Can't do anything with adb (of course, adb is installed correctly - I used it a lot with my previous phone). Now all I get is this error anytime I open a new connection and run the 1st ADB hack:

"Exception occurred while executing 'grant':
java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:2028)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2056)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1445)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1426)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2287)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:249)
at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at android.os.ShellCommand.exec(ShellCommand.java:44)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22238)
at android.os.Binder.shellCommand(Binder.java:932)
at android.os.Binder.onTransact(Binder.java:816)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4687)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
at android.os.Binder.execTransactInternal(Binder.java:1162)
at android.os.Binder.execTransact(Binder.java:1126)"

That's it! Looks like I can't grant permissions...
 

megauserz

New member
Hi. I have done the ADB hack following the guide and everything is working fine!
Just to know. What should I do to revert back the ADB commands?
 
Top