-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error message in initial running #1
Comments
I used all the libraries under tool directory |
Hi, First of all your log file shows Second, are you using Java 8 as the instrumenter.sh uses Java 8? Soot needs java rt.jar file to set the soot-class-path properly. You can see the following file is being used in the instrumenter.sh file: If the above don't fix the issue, could you please share the APK file. The problem might be from Soot being unable to parse the dex file properly. |
Hi, java -Xmx5g -cp .:soot-trunk.jar:soot-infoflow.jar:soot-infoflow-android.jar;/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/rt.jar Instrumenter 'com.example.motex' -w -allow-phantom-refs -process-multiple-dex -android-jars /home/chungha/Android/Sdk/platforms -src-prec apk -output-format dex -process-dir ex1-1.apk It is still giving me the same error. |
What I found is |
https://drive.google.com/drive/folders/1Ka7KcTiTeVqhUuxD4KGTpgOy2kl4Wp3c?usp=sharing This is the app I am using by the way. Thank you for your support! |
Hello again, Sorry for delayed response. I could successfully instrument and run your app using the tool command line (instrumenter.sh). You can find the instrumented version here: https://drive.google.com/file/d/10F4obKllDwv5pjPiG527Z79fuaGKPtxy/view?usp=sharing First of all, those generated .class files are normal things since you are compiling and running the instrumenter.java class. The error that you are getting from the tool is something regarding Soot that is maybe something is missed in your Soot ClassPath. |
For your reference, this is the output that you should get from the instrumenter.sh command:
|
Hi,
I tried to run ./instrument.sh , it gives me this error.
Could you let me know how I should fix it?
(I updated jre bath)
Thank you !
if you closed adb logcat press enter
'com.example.motex'
Note: Instrumenter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
pkg: com.example.motex
Soot started on Sun Jul 28 16:52:36 PDT 2019
Using '/home/chungha/Android/Sdk/platforms//android-28/android.jar' as android.jar
java.lang.NullPointerException
at soot.JastAddJ.Program.initPaths(Program.java:350)
at soot.SootResolver.(SootResolver.java:88)
at soot.Singletons.soot_SootResolver(Singletons.java:1456)
at soot.SootResolver.v(SootResolver.java:93)
at soot.Scene.tryLoadClass(Scene.java:713)
at soot.Scene.loadBasicClasses(Scene.java:1374)
at soot.Scene.loadNecessaryClasses(Scene.java:1453)
at soot.Main.run(Main.java:243)
at soot.Main.main(Main.java:147)
at Instrumenter.main(Instrumenter.java:405)
Ouuups... something went wrong! Sorry about that.
Follow these steps to fix the problem:
1.) Are you sure you used the right command line?
Click here to double-check:
https://ssebuild.cased.de/nightly/soot/doc/soot_options.htm
2.) Not sure whether it's a bug? Feel free to discuss
the issue on the Soot mailing list:
https://github.com/Sable/soot/wiki/Getting-help
3.) Sure it's a bug? Click this link to report it.
https://github.com/Sable/soot/issues/new?title=java.lang.NullPointerException+when+...&body=Steps+to+reproduce%3A%0A1.%29+...%0A%0AFiles+used+to+reproduce%3A+%0A...%0A%0ASoot+version%3A+%3Cpre%3Etrunk%3C%2Fpre%3E%0A%0ACommand+line%3A%0A%3Cpre%3E-w+-allow-phantom-refs+-process-multiple-dex+-android-jars+%2Fhome%2Fchungha%2FAndroid%2FSdk%2Fplatforms%2F+-src-prec+apk+-output-format+dex+-process-dir+ex1-1.apk%3C%2Fpre%3E%0A%0AMax+Memory%3A%0A%3Cpre%3E5120MB%3C%2Fpre%3E%0A%0AStack+trace%3A%0A%3Cpre%3Ejava.lang.NullPointerException%0A%09at+soot.JastAddJ.Program.initPaths%28Program.java%3A350%29%0A%09at+soot.SootResolver.%26%2360%3Binit%26%2362%3B%28SootResolver.java%3A88%29%0A%09at+soot.Singletons.soot_SootResolver%28Singletons.java%3A1456%29%0A%09at+soot.SootResolver.v%28SootResolver.java%3A93%29%0A%09at+soot.Scene.tryLoadClass%28Scene.java%3A713%29%0A%09at+soot.Scene.loadBasicClasses%28Scene.java%3A1374%29%0A%09at+soot.Scene.loadNecessaryClasses%28Scene.java%3A1453%29%0A%09at+soot.Main.run%28Main.java%3A243%29%0A%09at+soot.Main.main%28Main.java%3A147%29%0A%09at+Instrumenter.main%28Instrumenter.java%3A405%29%0A%3C%2Fpre%3E
Please be as precise as possible when giving us
information on how to reproduce the problem. Thanks!
chmod: cannot access 'sootOutput/ex1-1.apk': No such file or directory
signing sootOutput/ex1-1.apk to sootOutput/ex1-1.apk_signed.apk
java.nio.file.NoSuchFileException: sootOutput/ex1-1.apk
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1225)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)
at java.base/java.util.zip.ZipFile.(ZipFile.java:247)
at java.base/java.util.zip.ZipFile.(ZipFile.java:177)
at java.base/java.util.jar.JarFile.(JarFile.java:346)
at java.base/java.util.jar.JarFile.(JarFile.java:317)
at java.base/java.util.jar.JarFile.(JarFile.java:297)
at com.android.signapk.SignApk.main(SignApk.java:320)
chmod: cannot access 'ex1-1.apk_signed.apk': No such file or directory
The text was updated successfully, but these errors were encountered: