[Android Q&A, Help & Troubleshooting] GI0\/\NNI:
Hello guys!

I was always editing APK's for myself, but today it went wrong. I guess there is a signature checker added to the APK so it won't start after modifying it. My question is how I bypass the check... :confused: I also know I have to respect the devs (I really do) so this will be pure educational for me.

So what Activity or Smali file is causing the close?

Logcat:

I/ActivityManager( 963): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.whatsapp/.Main-Plus (has extras)} from pid 7369

I/ActivityManager( 963): Start proc com.whatsapp for activity com.whatsapp/.Main-Plus: pid=23769 uid=10154 gids={50154, 3003, 1028, 1015}

D/dalvikvm(23347): GC_CONCURRENT freed 443K, 5% free 10185K/10664K, paused 2ms+3ms, total 33ms

D/dalvikvm(23347): WAIT_FOR_CONCURRENT_GC blocked 8ms

E/dalvikvm(23769): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.al

W/dalvikvm(23769): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23769): VFY: replacing opcode 0x22 at 0x0000

E/dalvikvm(23769): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.p

W/dalvikvm(23769): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23769): VFY: replacing opcode 0x22 at 0x000e

D/dalvikvm(23769): DexOpt: unable to opt direct call 0x2033 at 0x04 in Lcom/whatsapp/App;.al

D/dalvikvm(23769): DexOpt: unable to opt direct call 0x2033 at 0x10 in Lcom/whatsapp/App;.p

D/dalvikvm(23769): GC_CONCURRENT freed 259K, 4% free 9225K/9520K, paused 2ms+3ms, total 17ms

W/dalvikvm(23769): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23769): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23769): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23769): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23769): VFY: replacing opcode 0x22 at 0x0027

W/dalvikvm(23769): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23769): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23769): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23769): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23769): VFY: replacing opcode 0x22 at 0x0040

W/dalvikvm(23769): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23769): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23769): DexOpt: unable to opt direct call 0x65f4 at 0x2b in Lcom/whatsapp/agj;.e

W/dalvikvm(23769): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23769): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23769): DexOpt: unable to opt direct call 0x65f4 at 0x44 in Lcom/whatsapp/agj;.e

D/ACRA (23769): ACRA is enabled for com.whatsapp, intializing...

D/dalvikvm(23769): GC_CONCURRENT freed 301K, 4% free 9409K/9744K, paused 2ms+2ms, total 14ms

D/ACRA (23769): Looking for error files in /data/data/com.whatsapp/files

D/ACRA (23769): Looking for error files in /data/data/com.whatsapp/files

W/ACRA (23769): com.whatsapp reports will be sent by email (if accepted by user).

I/Process (23769): Sending signal. PID: 23769 SIG: 9

I/ActivityManager( 963): Process com.whatsapp (pid 23769) has died.

I/ActivityManager( 963): Start proc com.whatsapp for activity com.whatsapp/.Main-Plus: pid=23796 uid=10154 gids={50154, 3003, 1028, 1015}

E/rsC++ ( 7369): RS Message thread exiting.

D/dalvikvm( 1195): GC_CONCURRENT freed 437K, 8% free 10487K/11324K, paused 1ms+2ms, total 29ms

E/dalvikvm(23796): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.al

W/dalvikvm(23796): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23796): VFY: replacing opcode 0x22 at 0x0000

E/dalvikvm(23796): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.p

W/dalvikvm(23796): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23796): VFY: replacing opcode 0x22 at 0x000e

D/dalvikvm(23796): DexOpt: unable to opt direct call 0x2033 at 0x04 in Lcom/whatsapp/App;.al

D/dalvikvm(23796): DexOpt: unable to opt direct call 0x2033 at 0x10 in Lcom/whatsapp/App;.p

D/dalvikvm(23796): GC_CONCURRENT freed 279K, 4% free 9250K/9564K, paused 3ms+2ms, total 17ms

W/dalvikvm(23796): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23796): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23796): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23796): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23796): VFY: replacing opcode 0x22 at 0x0027

W/dalvikvm(23796): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23796): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23796): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23796): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23796): VFY: replacing opcode 0x22 at 0x0040

W/dalvikvm(23796): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23796): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23796): DexOpt: unable to opt direct call 0x65f4 at 0x2b in Lcom/whatsapp/agj;.e

W/dalvikvm(23796): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23796): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23796): DexOpt: unable to opt direct call 0x65f4 at 0x44 in Lcom/whatsapp/agj;.e

D/ACRA (23796): ACRA is enabled for com.whatsapp, intializing...

D/dalvikvm(23796): GC_CONCURRENT freed 269K, 4% free 9442K/9744K, paused 3ms+1ms, total 15ms

D/ACRA (23796): Looking for error files in /data/data/com.whatsapp/files

D/ACRA (23796): Looking for error files in /data/data/com.whatsapp/files

W/ACRA (23796): com.whatsapp reports will be sent by email (if accepted by user).

I/Process (23796): Sending signal. PID: 23796 SIG: 9

I/ActivityManager( 963): Process com.whatsapp (pid 23796) has died.

I/ActivityManager( 963): Start proc com.whatsapp for activity com.whatsapp/.Main-Plus: pid=23818 uid=10154 gids={50154, 3003, 1028, 1015}

E/dalvikvm(23818): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.al

W/dalvikvm(23818): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23818): VFY: replacing opcode 0x22 at 0x0000

E/dalvikvm(23818): Could not find class 'com.amazon.device.messaging.ADM', referenced from method com.whatsapp.App.p

W/dalvikvm(23818): VFY: unable to resolve new-instance 1150 (Lcom/amazon/device/messaging/ADM;) in Lcom/whatsapp/App;

D/dalvikvm(23818): VFY: replacing opcode 0x22 at 0x000e

D/dalvikvm(23818): DexOpt: unable to opt direct call 0x2033 at 0x04 in Lcom/whatsapp/App;.al

D/dalvikvm(23818): DexOpt: unable to opt direct call 0x2033 at 0x10 in Lcom/whatsapp/App;.p

D/dalvikvm(23818): GC_CONCURRENT freed 281K, 4% free 9247K/9564K, paused 2ms+2ms, total 18ms

W/dalvikvm(23818): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23818): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23818): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23818): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23818): VFY: replacing opcode 0x22 at 0x0027

W/dalvikvm(23818): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23818): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

E/dalvikvm(23818): Could not find class 'com.whatsapp.adm.ADMMessageHandler', referenced from method com.whatsapp.agj.e

W/dalvikvm(23818): VFY: unable to resolve new-instance 2871 (Lcom/whatsapp/adm/ADMMessageHandler;) in Lcom/whatsapp/agj;

D/dalvikvm(23818): VFY: replacing opcode 0x22 at 0x0040

W/dalvikvm(23818): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23818): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23818): DexOpt: unable to opt direct call 0x65f4 at 0x2b in Lcom/whatsapp/agj;.e

W/dalvikvm(23818): Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1151)

W/dalvikvm(23818): Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

D/dalvikvm(23818): DexOpt: unable to opt direct call 0x65f4 at 0x44 in Lcom/whatsapp/agj;.e

D/ACRA (23818): ACRA is enabled for com.whatsapp, intializing...

D/dalvikvm(23818): GC_CONCURRENT freed 258K, 4% free 9437K/9732K, paused 2ms+1ms, total 14ms

D/ACRA (23818): Looking for error files in /data/data/com.whatsapp/files

D/ACRA (23818): Looking for error files in /data/data/com.whatsapp/files

W/ACRA (23818): com.whatsapp reports will be sent by email (if accepted by user).

I/Process (23818): Sending signal. PID: 23818 SIG: 9

I/ActivityManager( 963): Process com.whatsapp (pid 23818) has died.

W/ActivityManager( 963): Force removing ActivityRecord{42a0b7c8 u0 com.whatsapp/.Main-Plus t143}: app died, no saved state