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

Activity name manipulated while handling effect of --rename-manifest-package #1240

Closed
gupta-sachin opened this Issue May 4, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@gupta-sachin

gupta-sachin commented May 4, 2016

Information

  1. Apktool Version (apktool -version) - 2.1.0
  2. Operating System (Mac, Linux, Windows) - Windows
  3. APK From? (Playstore, ROM, Other) - Other

The value for name attribute of activity is manipulated by apktool while handling effects of --renamed-manifest-package and so ClassNotFoundException is occurring.

Stacktrace/Logcat

05-04 11:24:24.012 778-1384/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry (has extras)} from uid 10019 on display 0
05-04 11:24:24.037 778-1652/? I/ActivityManager: Start proc 22904:air.com.skillpodmedia.ZenBlasterAmazonPay/u0a1573 for activity air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry
05-04 11:24:24.145 22904-22904/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: air.com.skillpodmedia.ZenBlasterAmazonPay, PID: 22904
                                                   java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry}: java.lang.ClassNotFoundException: Didn't find class "air.com.adobe.appentry.AppEntry" on path: DexPathList[[zip file "/data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/base.apk"],nativeLibraryDirectories=[/data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/lib/arm, /data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                       at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:148)
                                                       at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                    Caused by: java.lang.ClassNotFoundException: Didn't find class "air.com.adobe.appentry.AppEntry" on path: DexPathList[[zip file "/data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/base.apk"],nativeLibraryDirectories=[/data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/lib/arm, /data/app/air.com.skillpodmedia.ZenBlasterAmazonPay-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
                                                       at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                       at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                       at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                       at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
                                                       at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
                                                       at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                       at android.os.Looper.loop(Looper.java:148) 
                                                       at android.app.ActivityThread.main(ActivityThread.java:5417) 
                                                       at java.lang.reflect.Method.invoke(Native Method) 
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
                                                    Suppressed: java.lang.ClassNotFoundException: air.com.adobe.appentry.AppEntry
                                                       at java.lang.Class.classForName(Native Method)
                                                       at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
                                                       at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
                                                       at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
                                                            ... 12 more
                                                    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
05-04 11:24:24.158 778-9809/? W/ActivityManager:   Force finishing activity air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry
05-04 11:24:24.678 778-792/? W/ActivityManager: Activity pause timeout for ActivityRecord{71fdae5 u0 air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry t47015 f}
05-04 11:24:34.807 778-792/? W/ActivityManager: Activity destroy timeout for ActivityRecord{71fdae5 u0 air.com.skillpodmedia.ZenBlasterAmazonPay/air.com.adobe.appentry.AppEntry t47015 f}

Steps to Reproduce

  1. apktool d
  2. apktool b
  3. resign
  4. launch

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)

APK

https://www.dropbox.com/s/8jesu9ap1l40uuv/ZenBlasterAmazonPay.apk?dl=0

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
    Yes, just resigned after b
  2. If you are trying to install a modified apk, did you resign it?
    No modification, just resigned after b
  3. Are you using the latest apktool version?
    Yes. Its 2.1.0

iBotPeaches added a commit that referenced this issue May 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment