[Q] How to edit strings.xml after unpacked with ApkTool? - Galaxy Tab General

During I unpacking the Settings.apk, get the following error:
This is the Settings.apk deodexed from XWJMI,
I do this as willing to edit the UI language of the apk.
It is not possible to pack the apk after I finished edit the strings.xml
Your help is appreicate.. Thank You
C:\APKTOOL\APKTOOL\apkEdit>unPack Settings.apk
Unpacking APKs...
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: R:\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080364
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080364
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0105000b
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown So
urce)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown
Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown So
urce)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknow
n Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unkno
wn Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown So
urce)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

You first have to tell apktool what framework you are using so it doesn't give you those errors. for instance... download settings.apk and framework-res.apk to the same folder as apktool. then in command prompt type 'apktool if framework-res.apk' Now go in and decompile the settings.apk file and it should work without errors.

Related

how can i compilation and decompilation the file ''blur-res.apk''?

how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar b blur-res-02
.............
ERROR display
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar d blur-res-02.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\1.apk
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d5
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
mapleshadow said:
how can i compilation and decompilation the file ''blur-res.apk''?? no matter how i compilation the file ''blur-res.apk'',it turned out the APK cannot work properly,why???
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar b blur-res-02
.............
ERROR display
G:\Android\MOTO A4G\tools\apktool132>java -jar apktool.jar d blur-res-02.apk
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\1.apk
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d5
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
I: Loading resource table from file: C:\Users\Mapleshadow-Office\apktool\framewo
rk\3.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x030201d3
Click to expand...
Click to collapse
Please use the search function. There are several dozen threads on XDA about how to edit apk's.
nope,the blur-res.apk is very special,just as special as file blurphone.apk.for example,using apktool. blurphone.apk need to reverse 2.apk and 3.apk ,which come from library file of framework,only by doing this,compilation and descompilation can work properly.so far,blue-res.apk make me no progress.
UP................

[Q] Problem seeing text when picking folder for an app

The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
RustyMongoose said:
The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
Click to expand...
Click to collapse
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
osowiecki said:
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
Click to expand...
Click to collapse
I wish I checked here before messing with the framework-res.apk with ninjamorph. I'll give it a go once I restore my nook (relaunch stopped working).
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeWidth, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
RustyMongoose said:
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeWidth, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
Click to expand...
Click to collapse
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
osowiecki said:
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
Click to expand...
Click to collapse
I actually saw that webpage but couldn't find any resources in the nook.
Anyways seeing as this is somewhat over my head. I'm just going to copy over the mangas over to the default folder. Which is sdcard/DCIM/100ANDRO for anyone following this thread. Just found out about it. Thanks for your time.

Help Needed to Decompile Superuser.apk

I want to decompile Superuser.apk Because
I want to edit the AndroidManifest.xml so that I can hide it from the App Launcher.
But I am Getting the following Errors while Decompiling.
Decompiling Apk Sources and Resources Files
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Anik3t\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAllCaps, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x00000190
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=dividerPadding, value=0x00000c01
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=fragment, value=0x0000000a
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
"An Error Occured, Please Check The Log (option 23)"
Press any key to continue . . .
Please Some One Help me.
My Rom Development is Stuck Because of this
and I am more or less a noob.
umm why are you decompiling superuser app in the first place
as far as i know , its not needed
Sent from my GT-S5670 using xda premium
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
EatHeat said:
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
Click to expand...
Click to collapse
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
AniketRane said:
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
Click to expand...
Click to collapse
You are welcome bro.
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Zius said:
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Click to expand...
Click to collapse
Yes. You need frameworks installed when decompiling stock apps because they are based on the stock framework. Third party apps are not made phone dependent. So they will give errors with the frameworks installed as you are forcing them to decompile with something that it doesnt need.
You have the solution?
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
p95870 said:
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
Click to expand...
Click to collapse
For decompiling systemui.apk, u have to install the frameworks first. Type:
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
After that type:
Code:
apktool d systemui.apk

[Q] lidroid-res.apk problem

whenever I decompile lidroid-res.apk it fails and show me
[*] "C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\ubuntu-res.apk"
decompiling "C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\ubuntu-res.apk"...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Copy Center\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a2
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a5
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a2
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a5
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a6
W: Cant find 9patch chunk in file: "drawable-hdpi/jmklist.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/a_bolong.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
Click to expand...
Click to collapse
help please?
First of all u r deompiling my lidroid resources :sly:
I hope u don't have any intensions of posting it
Second install frameworks
Tw frameworks
And system ui before decompiling
problem?? @Tezlastorme problem ??
sanny5 said:
First of all u r deompiling my lidroid resources :sly:
I hope u don't have any intensions of posting it
Second install frameworks
Tw frameworks
And system ui before decompiling
problem?? @Tezlastorme problem ??
Click to expand...
Click to collapse
u misunderstood this it is a pure un themed lidroid-res file but I renamed it to ubuntu
and thanks for the advice

apktool problem

Every time I try to decompile an app, I get this:
Code:
C:\Windows>apktool d w.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Inderchand\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
showAsAction, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_alignParentEnd, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAlignment, value=0x00000004
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0103012b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:48)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResB
agValue.java:40)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Google search leads me to other people having the problem, but no solution. Help?
Is the version up to date? What is your Java version? Do you have the right aapt file?
Sent from my Nexus 4 using Tapatalk
Everything is freshly downloaded, newest versions of Java JRE, Java SDK, apktool

Categories

Resources