desword / android-apktool

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

apktool installs framework in the wrong place thats why i get an error decompiling it. #618

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.apktool if Settings.apk
2.apktool d Settings.apk
3.

What is the expected output? What do you see instead?
Usual, like other apk I decompile and install. It should install and decompile 
correctly, but doesn't.

What version of the product are you using? On what operating system?
apktool 2.0.0-Beta9 Windows 7 x64 bit

Please provide any additional information below.
It installes the framework in C:\Users\james\apktool\framework\127.apk
And when i try to decompile, it searches for 
C:\Users\james\apktool\framework\1.apk instead, hence i get an error.

"C:\apktool>apktool if Settings.apk
I: Framework installed to: C:\Users\james\apktool\framework\127.apk

C:\apktool>apktool d Settings.apk
I: Using Apktool 2.0.0-Beta9 on Settings.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\james\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x02050000
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info."

Original issue reported on code.google.com by krypton...@gmail.com on 29 Mar 2014 at 9:53

GoogleCodeExporter commented 9 years ago
This has nothing to do with installing in wrong location. You are missing a 
framework with pkg id of 2.

Whatever ROM this is from, I guarantee has more .apks in /system/framework. 
Pull those and install them.

Original comment by connor.tumbleson on 31 Mar 2014 at 7:11