desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

ThinkOrSwim APK Will Not Decompile And Recompile #596

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Download Trader_64.2.3.apk (64.2.2 rev also fails) from Market. (ThinkOrSwim)

What steps will reproduce the problem?
1. apktool d Trader_64.2.3.apk
2. apktool b Trader.64.2.3

What is the expected output? What do you see instead?
Should decompile, then recompile.  Decompile succeeds.
Recompile fails with:
Z:\ApkTool\apktool1.5.2>apktool b Trader_64.2.3
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:61: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:101: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:149: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:192: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base'.
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:208: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget.AppCompat.Base.DropDownItem'.
Z:\ApkTool\apktool1.5.2\Trader_64.2.3\res\values\styles.xml:234: error: Error 
retrieving parent for item: No resource found that matches the given name 
'Widget......

(error output continues)

On Apktool 2.0.0beta7 the decompile/recompile succeeds without errors, however 
it immediately crashes when run (after being re-signed.)

What version of the product are you using? On what operating system?
apktool1.5.2 and apktool2.0.0beta7
Windows 7 x64

Please provide any additional information below.

Original issue reported on code.google.com by Tickergu...@gmail.com on 25 Jan 2014 at 5:31

GoogleCodeExporter commented 9 years ago
I found and fixed the problems with missing parents -- it's an AAPT issue that 
someone else had commented on.

However, the immediate crash remains (it appears apktool2.0.0beta7 doesn't 
require the fixes) with both versions now -- the decompile and build appears to 
be ok, the signing is ok, but (1) the size of the repack APK is different and 
(2) on attempting to run the repacked APK it immediately crashes with 
"Unfortunately, trader has unexpectedly stopped."

Original comment by Tickergu...@gmail.com on 25 Jan 2014 at 6:15

GoogleCodeExporter commented 9 years ago
Resolved -- both my brain fart and the app developer in question (which I wish 
to strangle.)  Please close.

Original comment by Tickergu...@gmail.com on 26 Jan 2014 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 26 Jan 2014 at 11:57