-
-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Author: execute permissions issue app_process #902
Comments
Please share the exact code, the command to compile and the exact |
I am apk file compiled by android studio, get the classes.dex inside by decompressing apk If I have executed adb root, it will execute successfully. code: public class testbbs { package shellService; public class Main { |
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { dependencies { |
I am apk file compiled by android studio, get the classes.dex inside by decompressing apk If I have executed adb root, it will execute successfully. code: public class testbbs { package shellService; public class Main { |
Please use ``` for code blocks. Check the right on your
? |
It can be read out. No problem. There are some DEX files in it 11-04 20:48:39.587 E/System ( 6765): Unable to load dex file: /data/local/tmp/classes.dex 11-04 20:48:39.587 E/System ( 6765): java.io.IOException: unable to open DEX file 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.openDexFileNative(Native Method) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.openDexFile(DexFile.java:296) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.(DexFile.java:80) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.(DexFile.java:59) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.loadDexFile(DexPathList.java:263) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.makeDexElements(DexPathList.java:221) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.(DexPathList.java:112) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.PathClassLoader.(PathClassLoader.java:38) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:116) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.access$000(ClassLoader.java:65) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader$SystemClassLoader.(ClassLoader.java:81) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:125) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.NativeStart.main(Native Method) 11-04 20:48:39.597 E/appproc ( 6765): ERROR: could not find class 'shellService.Main' 11-04 20:48:39.597 E/dalvikvm( 6765): JNI posting fatal error: Native registration unable to find class 'android/debug/JNITest'; aborting... 11-04 20:48:39.597 E/dalvikvm( 6765): VM aborting 11-04 20:48:39.597 F/libc ( 6765): Fatal signal 6 (SIGABRT) at 0x00001a6d (code=-6), thread 6765 (app_process) 11-04 20:48:39.967 E/octvm_klo( 2388): get package info failed for app_process |
It can be read out. No problem. There are some DEX files in it 11-04 20:48:39.587 E/System ( 6765): Unable to load dex file: /data/local/tmp/classes.dex 11-04 20:48:39.587 E/System ( 6765): java.io.IOException: unable to open DEX file 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.openDexFileNative(Native Method) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.openDexFile(DexFile.java:296) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.(DexFile.java:80) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexFile.(DexFile.java:59) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.loadDexFile(DexPathList.java:263) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.makeDexElements(DexPathList.java:221) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.DexPathList.(DexPathList.java:112) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.PathClassLoader.(PathClassLoader.java:38) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.createSystemClassLoader(ClassLoader.java:116) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.access$000(ClassLoader.java:65) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader$SystemClassLoader.(ClassLoader.java:81) 11-04 20:48:39.587 E/System ( 6765): at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:125) 11-04 20:48:39.587 E/System ( 6765): at dalvik.system.NativeStart.main(Native Method) 11-04 20:48:39.597 E/appproc ( 6765): ERROR: could not find class 'shellService.Main' 11-04 20:48:39.597 E/dalvikvm( 6765): JNI posting fatal error: Native registration unable to find class 'android/debug/JNITest'; aborting... 11-04 20:48:39.597 E/dalvikvm( 6765): VM aborting 11-04 20:48:39.597 F/libc ( 6765): Fatal signal 6 (SIGABRT) at 0x00001a6d (code=-6), thread 6765 (app_process) 11-04 20:48:39.967 E/octvm_klo( 2388): get package info failed for app_process |
Btw, does scrcpy work on that device? Please surround your code with ``` |
android version 4.4.4 version.sdk 19 This version is not allowed, right? |
Ah, that's the problem! You can workaround the |
Thank you very much for your reply. Can we be friends? |
When I execute app_process without adb root or [Aborted] error, I can execute successfully with adb root permission. Code:
package shellService;
Public class testbbs {
Public void a(){
System.out.println("123ssd5e5dd22dd");
}
}
Does the adb shell have no permissions for System.out.println? consult
The text was updated successfully, but these errors were encountered: