librootjava
librootjava copied to clipboard
Run Java (and Kotlin) code as root!
`getInterfaceFromBinder()` assumes that the field `DESCRIPTOR` exists on `IServiceName$Stub`, however in the Java file generated by `aidl` in build tools `31.0.0` that field has moved to the outer class `IServiceName`....
- Device: Pixel 4 XL (coral) - Build: RQ2A.210305.006 - App: [zhanghai/MaterialFiles](https://github.com/zhanghai/MaterialFiles) (debug build with `Debugger.setEnabled(true)`) - Logcat: ``` 2021-03-06 14:21:59.278 31551-32696/me.zhanghai.android.files D/libsuperuser: [libsuperuser][C][SU+] #app_process=/system/bin/app_process64 2021-03-06 14:21:59.278 31551-32696/me.zhanghai.android.files D/libsuperuser: [libsuperuser][C][SU+]...
Only seen in collected analytics. Probably due to KNOX additional security measures.
``` java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) ... Caused by: java.lang.RuntimeException: Unable to instantiate Application():android.content.res.Resources$NotFoundException: Resource ID #0x600a8 at android.app.ActivityThread.attach(ActivityThread.java:6598) at android.app.ActivityThread.systemMain(ActivityThread.java:6638) ... 14 more Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x600a8 at...
See also: https://stackoverflow.com/a/36724264/2245107
The android runtime in Q is in an APEX image now and not actually at the same location as before. Pretty sure this behavior is related to some of the...
Got this error on some Android 10 treble ROM devices (also samsung Galaxy J7(2016)): `CANNOT LINK EXECUTABLE "/system/bin/app_process64": cannot locate symbol "JniInvocationCreate" referenced by "/system/lib64/libandroid_runtime.so"` This symbol seems to be...
When I attempt to bind it I encountered the exception: ``` throw new SecurityException( "Unable to find app for caller " + caller + " (pid=" + Binder.getCallingPid() + ")...