kuter007 / android-apktool

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

Apktool fails to reassemble twitter #778

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download apk from 
https://onedrive.live.com/redir?resid=A81B51F05D7E3C2F!7550&authkey=!AHwjUUTA43U
QR7o&ithint=file%2capk
2. apktool d com.twitter.android.apk
3. apktool b com.twitter.android com.twitter.android-clean.apk

What is the expected output? What do you see instead?
During rebuilding I get
I: Using Apktool 2.0.0-RC4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
/home/marc/b/com.twitter.android/res/values-v21/styles.xml:7: error: Error: No 
resource found that matches the given name: attr 
'android:state_accessibility_focused'.

/home/marc/b/com.twitter.android/res/values-v21/styles.xml:19: error: Error: No 
resource found that matches the given name: attr 'android:glowRadius'.
…………

What version of the product are you using? On what operating system?
2.0.0-RC4 on Linux

Please provide any additional information below.
I do not know whether apktool fails to generate valid XML files or aapt does 
reject them erroneously.

Original issue reported on code.google.com by CodeFrea...@gmail.com on 11 Mar 2015 at 11:58

GoogleCodeExporter commented 9 years ago
Yeah same as 779. You need a newer framework.

ibotpeaches@raganok:~/Downloads/Apktool/Bug778$ apktool d 
com.twitter.android-2.apk 
I: Using Apktool 2.0.0-bbc602-SNAPSHOT on com.twitter.android-2.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug778$ apktool b com.twitter.android-2 
-o clean.apk
I: Using Apktool 2.0.0-bbc602-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs...
I: Building apk file...
I: Copying unknown files/dir...
ibotpeaches@raganok:~/Downloads/Apktool/Bug778$ 

Original comment by connor.tumbleson on 11 Mar 2015 at 12:20