I'm debugging a closed-source Android app with jdb
. In the output produced by the apktool
, I see class com.myapp.j.d.d
, as well as a/b/c/e, but at run-time, I see only com.myapp.j.d.e
. Why is that happening?
1 Answer
One possibility is that the classes fail verification. If this is the case, when you install the apk, you'll see messages from art in logcat with details about which class failed verification and why.
-
-
1Most class verification happens when the apk is installed. Are you sure you're looking at logcat while the apk is being installed, rather than when running the app? Sep 3, 2016 at 22:42
-
Oh, I forgot that in 4.4+ ART is AOT. Reinstalled the app, but
logcat
is still silent Sep 3, 2016 at 22:49 -
Well, that was the case even in dalvik :). If there's no verification error, then I don't know why the class wouldn't be present. Sep 4, 2016 at 1:08
-