Apk tool problem ... My fellow themers pleez help - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

ok using apk tool now...
decompiling went well
editing went well
but i have problem building it...
PHP:
D:\APKTool Tutorial - V2\APKTool\APKs>cmd
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\APKTool Tutorial - V2\APKTool\APKs>apktool if "D:\APKTool Tutorial - V2\APKTo
ol\APKs\SystemUI.apk"
I: Framework installed to: C:\Documents and Settings\Intel\apktool\framework\127
.apk
D:\APKTool Tutorial - V2\APKTool\APKs>apktool d "D:\APKTool Tutorial - V2\APKToo
l\APKs\SystemUI.apk"
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Intel\apktool\fra
mework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010300a9
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:94)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
D:\APKTool Tutorial - V2\APKTool\APKs>apktool b "D:\APKTool Tutorial - V2\APKToo
l\APKs\SystemUI"
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:143)
at brut.androlib.Androlib.build(Androlib.java:160)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:139)
... 4 more
D:\APKTool Tutorial - V2\APKTool\APKs>apktool b systemui
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:143)
at brut.androlib.Androlib.build(Androlib.java:160)
at brut.androlib.Androlib.build(Androlib.java:155)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:139)
... 4 more
D:\APKTool Tutorial - V2\APKTool\APKs>
oh wait there is no apktool.yml that shoud have been there in the decompiled apk... why is it??
that is causing the problem...
ok i know the problem now but what is causing it???
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
=========HOLO-UBUNTU========theme

problem not solve... problems recompinilg...
this is the new problem... and now there is apktool.yml
http://forum.xda-developers.com/show....php?t=2236091

Why don't you use APK Multitool instead?

iamareebjamal said:
Why don't you use APK Multitool instead?
Click to expand...
Click to collapse
i was using apk manager but i had to format system... dont want to download android sdk again..
added-
forget it i used vts as deathnotice suggested and that is just so awesome and works perfectly...
so problem solved...
u rock man deathnotice
mods pleez close this

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.

[Q] Decompiling SystemUI.apk

Do you guys had luck with decompiling S4's SystemUI.apk ??
Ive tried 3 times over and over but still the same error:
--------------------------------------------------------------------------
|vr 10/05/2013 -- 11:58:48,99|
--------------------------------------------------------------------------
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ROMEO\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c61
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c61
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c62
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010488
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:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:144)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218
)
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)
Press any key to continue . . .
edit: I can decompile any other phone's SystemUI.apk except S4's
im using apk multi-tool
AskinSavascisi said:
Do you guys had luck with decompiling S4's SystemUI.apk ??
Ive tried 3 times over and over but still the same error:
--------------------------------------------------------------------------
|vr 10/05/2013 -- 11:58:48,99|
--------------------------------------------------------------------------
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ROMEO\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c61
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c61
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080c62
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010488
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:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:144)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:131)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218
)
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)
Press any key to continue . . .
edit: I can decompile any other phone's SystemUI.apk except S4's
im using apk multi-tool
Click to expand...
Click to collapse
have u got any solution for it still now plz tell
you can rename the file to .zip then modify it after that sign the apk
look what I found
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
RubbaBand said:
you can rename the file to .zip then modify it after that sign the apk
look what I found
View attachment 2763734
Click to expand...
Click to collapse
no
@op - it looks like you havent installed your framework for the apk
what version of apktool/java are you using
is java path set up

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] recompiling problem

i use auto apk tool to decompile and recompile apps
whenever I decompile apk it decompile successfully and I edit .PNGs and smali .......etc
when II recompile it failes and show me this
[*] "C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2"
recompiling "C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2"...
I: Smaling...
I: Building resources...
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\create_button.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Holo.ButtonBar.AlertDialog').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\create_button.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Holo.ButtonBar.AlertDialog').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\COPYCE~1\LOCALS~1\Temp\APKTOOL242974530448266303.tmp, -I, C:\Documents and Settings\Copy Center\apktool\framework\1.apk, -S, C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res, -M, C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\COPYCE~1\LOCALS~1\Temp\APKTOOL242974530448266303.tmp, -I, C:\Documents and Settings\Copy Center\apktool\framework\1.apk, -S, C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res, -M, C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the drive specified.
Click to expand...
Click to collapse
can you help me please
P.S : I was decompiling holo launcher v2.0.2
mohamedrashad said:
i use auto apk tool to decompile and recompile apps
whenever I decompile apk it decompile successfully and I edit .PNGs and smali .......etc
when II recompile it failes and show me this
can you help me please
P.S : I was decompiling holo launcher v2.0.2
Click to expand...
Click to collapse
You have errors on the following.
create_button.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Holo.ButtonBar.AlertDialog').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\create_button.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Holo.ButtonBar.AlertDialog').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
C:\Documents and Settings\Copy Center\Desktop\AutoAPKTool2.0.4\_INPUT_APK\Holo Launcher v2.0.2\res\layout-v14\ok_cancel.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Widget.Holo.Button.Borderless.Small').
Example on the first line, create_button.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@android:style/Holo.ButtonBar.AlertDialog')
On the create_button.xml the error is on line number 5. Maybe you don't have '@android:style/Holo.ButtonBar.AlertDialog' you need to include it on the styles.xml
Just make my example reference and you will understand all the errors above
its because you must have deleted or corrupted some files...
Hi guys , I solved this by using another option to recompile and it worked fine \0/
Sent from my GT-S5360 using Tapatalk 2
Plz rename title [Q] [solved ]recompiling problem ....
Sent from my GT-S5360 using xda premium
mohamedrashad said:
Hi guys , I solved this by using another option to recompile and it worked fine \0/
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
What do you mean by another option??
I also have a problem I can't decompile holo apex and nova launcher
You have any idea??
Hit
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Button If This Post Helped You

Categories

Resources