Skip to content
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

RuntimeException no apk file given #126

Closed
yogiam opened this issue Oct 4, 2013 · 2 comments
Closed

RuntimeException no apk file given #126

yogiam opened this issue Oct 4, 2013 · 2 comments

Comments

@yogiam
Copy link

yogiam commented Oct 4, 2013

Occurs if the apk file extension is in caps. Occurs on windows and linux. Please see log trace below.

D:\Tests>java -jar soot.jar -allow-phantom-refs -src-prec apk -android-jars C:/
android/sdk/platforms -process-dir ctm.APK
Soot started on Fri Oct 04 13:44:21 IST 2013
Exception in thread "main" java.lang.RuntimeException: no apk file given
at soot.Scene.defaultClassPath(Scene.java:412)
at soot.Scene.getSootClassPath(Scene.java:221)
at soot.SootResolver.(SootResolver.java:80)
at soot.Singletons.soot_SootResolver(Singletons.java:802)
at soot.SootResolver.v(SootResolver.java:90)
at soot.Scene.tryLoadClass(Scene.java:578)
at soot.Scene.loadBasicClasses(Scene.java:1150)
at soot.Scene.loadNecessaryClasses(Scene.java:1229)
at soot.Main.run(Main.java:167)
at soot.Main.main(Main.java:141)

D:\Tests>ren ctm.APK ctm.apk

D:\Tests>java -jar soot.jar -allow-phantom-refs -src-prec apk -android-jars C:/
android/sdk/platforms -process-dir ctm.apk
Soot started on Fri Oct 04 13:44:47 IST 2013
Using 'C:/android/sdk/platforms\android-8\android.jar' as android.jar
Warning: org.xmlpull.v1.XmlPullParser is a phantom class!
Warning: org.xmlpull.v1.XmlPullParserException is a phantom class!
Warning: org.apache.http.HttpEntity is a phantom class!
Warning: org.apache.http.HttpResponse is a phantom class!
Warning: org.apache.http.StatusLine is a phantom class!
Warning: org.apache.http.client.methods.HttpGet is a phantom class!
Warning: org.apache.http.client.methods.HttpUriRequest is a phantom class!
Warning: org.apache.http.impl.client.DefaultHttpClient is a phantom class!
Warning: org.apache.http.util.EntityUtils is a phantom class!
Transforming com.example.android.service.R$attr...
Transforming com.example.android.service.R$layout...
Transforming com.example.android.service.Main$1...
Transforming com.example.android.service.R$string...
Transforming com.example.android.service.AlarmReceiver...
Transforming com.example.android.service.R...
Transforming com.example.android.service.R$drawable...
Transforming com.example.android.service.R$id...
Transforming com.example.android.service.vew2$1...
Transforming com.example.android.service.R$raw...
Transforming com.example.android.service.vew2...
Transforming com.example.android.service.Main...
Writing to sootOutput\com\example\android\service\R$attr.class
Writing to sootOutput\com\example\android\service\R$layout.class
Writing to sootOutput\com\example\android\service\Main$1.class
Writing to sootOutput\com\example\android\service\R$string.class
Writing to sootOutput\com\example\android\service\AlarmReceiver.class
Writing to sootOutput\com\example\android\service\R.class
Writing to sootOutput\com\example\android\service\R$drawable.class
Writing to sootOutput\com\example\android\service\R$id.class
Writing to sootOutput\com\example\android\service\vew2$1.class
Writing to sootOutput\com\example\android\service\R$raw.class
Writing to sootOutput\com\example\android\service\vew2.class
Writing to sootOutput\com\example\android\service\Main.class
Soot finished on Fri Oct 04 13:44:49 IST 2013
Soot has run for 0 min. 2 sec.

@ghost ghost assigned StevenArzt Oct 4, 2013
@StevenArzt StevenArzt reopened this Oct 4, 2013
@StevenArzt
Copy link
Contributor

@yogiam Please confirm the fix and close the issue.

@yogiam
Copy link
Author

yogiam commented Oct 4, 2013

Hi Steven,

I can't build and confirm the fix now. Will do it tomorrow on the nightly build. I have anyways checked the commit, so closing the issue.

Thanks.

@yogiam yogiam closed this as completed Oct 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants