Kitchen battery % indicator - Galaxy S II Q&A, Help & Troubleshooting

Hello,
I'm running a stock rooted ics (4.0.3) rom.
Is it possible to change the standard battery indicator with a % one with the kitchen?
If it's posible, do you have to upload the same files as gingerbread?
In the kitchen they only talk about froyo and gingerbread.

Install a rom AOSK you can customize as you want

Check out this thread: http://forum.xda-developers.com/showthread.php?t=1434061

dloulou said:
Hello,
I'm running a stock rooted ics (4.0.3) rom.
Is it possible to change the standard battery indicator with a % one with the kitchen?
If it's posible, do you have to upload the same files as gingerbread?
In the kitchen they only talk about froyo and gingerbread.
Click to expand...
Click to collapse
Even if ICS is not mentioned in UOT kitchen it is working, at least I use battery mods created with UOT kitchen
You will have to upload the files framework-res.apk and SystemUI.apk from your stock ROM.
Most likely (if flashing fails) you will have to replace the update_binary in the archive you receive from UOT kitchen.
I have always used battery mods from UOT kitchen and I never experienced any problem.

darito30 said:
Install a rom AOSK you can customize as you want
Click to expand...
Click to collapse
Thanks, but currently I'm happy with the rom, the only thing I miss is the % battery indicator.
Dark Emotion said:
Check out this thread: http://forum.xda-developers.com/showthread.php?t=1434061
Click to expand...
Click to collapse
I will give it a try, thanks.
I get these message:
There was a fatal error during decompiling of the "Stock" SystemUI.apk.. meaning, nothing can be done and CMD will now exit.
fxrb said:
Even if ICS is not mentioned in UOT kitchen it is working, at least I use battery mods created with UOT kitchen
You will have to upload the files framework-res.apk and SystemUI.apk from your stock ROM.
Most likely (if flashing fails) you will have to replace the update_binary in the archive you receive from UOT kitchen.
I have always used battery mods from UOT kitchen and I never experienced any problem.
Click to expand...
Click to collapse
I have tried a few time, but always get an error from the kitchen.
The last one was UOT-07-07-03-24-2 SHTF.
With this one I uploaded 3 files (framework-res.apk, SystemUI.apk, twframework-res.apk) and used the same setting as with GB.

dloulou said:
I have tried a few time, but always get an error from the kitchen.
The last one was UOT-07-07-03-24-2 SHTF.
With this one I uploaded 3 files (framework-res.apk, SystemUI.apk, twframework-res.apk) and used the same setting as with GB.
Click to expand...
Click to collapse
As I wrote in my previous post: upload framework-res.apk and SystemUI.apk. No need to upload anything else.

Dark Emotion said:
Check out this thread: http://forum.xda-developers.com/showthread.php?t=1434061
Click to expand...
Click to collapse
Thanks, I was searching for this!!

fxrb said:
As I wrote in my previous post: upload framework-res.apk and SystemUI.apk. No need to upload anything else.
Click to expand...
Click to collapse
Thanks, but I still get SHTF error. (UOT-07-07-20-57-1)
Error log: UOT-07-07-20-57-1-SHTF.txt
Decompiling framework-res.apk UOT-07-07-20-57-1
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:158)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:79)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:156)
... 3 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:131)
at java.util.zip.ZipFile.(ZipFile.java:148)
at brut.directory.ZipRODirectory.(ZipRODirectory.java:53)
... 6 more
Decompiling SystemUI.apk UOT-07-07-20-57-1
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:404)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:131)
at java.util.zip.ZipFile.(ZipFile.java:148)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
... 3 more
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x010404b1
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302f7
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030305
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x010301ea
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
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(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Compiling framework-res.apk UOT-07-07-20-57-1
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)

dloulou said:
Thanks, but I still get SHTF error. (UOT-07-07-20-57-1)
Error log: UOT-07-07-20-57-1-SHTF.txt
Decompiling framework-res.apk UOT-07-07-20-57-1
Exception in thread "main" brut.androlib.AndrolibException:
...
Click to expand...
Click to collapse
I just cooked a test recipe with files from BULPC and the kitchen seems to be working fine so far, although I do not know any details about how the kitchen is working internally.
Probably your apks get corrupted during upload. If I were you I would try uploading them with another browser or another computer.
You could also try to **** a recipe without uploading any files, just to make sure the problem is somehow related to the files you are uploading. If you do so, do not use the result of the kitchen

fxrb said:
I just cooked a test recipe with files from BULPC and the kitchen seems to be working fine so far, although I do not know any details about how the kitchen is working internally.
Probably your apks get corrupted during upload. If I were you I would try uploading them with another browser or another computer.
You could also try to **** a recipe without uploading any files, just to make sure the problem is somehow related to the files you are uploading. If you do so, do not use the result of the kitchen
Click to expand...
Click to collapse
Thanks, I tried with another browser and now it works.
One last question with GB you need twframework-res.apk if you are using touchwiz and with ISC you don't, has the way the rom store/apply icons change or something like that?

dloulou said:
One last question with GB you need twframework-res.apk if you are using touchwiz and with ISC you don't, has the way the rom store/apply icons change or something like that?
Click to expand...
Click to collapse
I do not know the answer to your question, however I never uploaded any other files then framework-res.apk and SystemUI.apk, even not for GB. The mods always worked for me on GB and ICS with just uploading those two files (for an SGSII phone of course).
From the How-To of UOT Kitchen:
From your phone
Download a file manager (Astro or ES File Explorer or other...) in the Market.
Go to /system/framework/ on your phone.
Copy the framework-res.apk to your SDCard.
If you have a Gingerbread rom, take the SystemUI.apk in system/app/
Place them anywhere you want (on the desktop for example)
Click to expand...
Click to collapse
That's it

fxrb said:
I do not know the answer to your question, however I never uploaded any other files then framework-res.apk and SystemUI.apk, even not for GB. The mods always worked for me on GB and ICS with just uploading those two files (for an SGSII phone of course).
That's it
Click to expand...
Click to collapse
I tried with two files in GB (with sga) and it did work, thanks.
The only problem is can't seem to install the mod with S2.
According to the kitchen I've to:
WORKAROUND for recovery error (Status 0):
1. Unzip your ROM and find
META-INF/com/google/android/update-binary file
2. Put this file in the UOT zip (overriding UOT's file)
Click to expand...
Click to collapse
But I can't find META-INF/com/google/android/update-binary in the stock rom.

You can find the file update-binary in the cache image of your stock firmware.
Just extract cache.img from your stock firmware, convert it with sim2img, mount it with the loopback device and copy update-binary to a safe place.
I intentionally do not attach 'my' update-binary here since it could be the wrong one for you. Also it could cause problems to others who use it without knowing exactly where and how. If the ICS update-binary from BULPC is ok for you, then PM me and I will send it to you. Furthermore you started the thread talking about ICS but in your last post you were talking about GB; I hope I'm the only one that is confused here

fxrb said:
You can find the file update-binary in the cache image of your stock firmware.
Just extract cache.img from your stock firmware, convert it with sim2img, mount it with the loopback device and copy update-binary to a safe place.
I intentionally do not attach 'my' update-binary here since it could be the wrong one for you. Also it could cause problems to others who use it without knowing exactly where and how. If the ICS update-binary from BULPC is ok for you, then PM me and I will send it to you. Furthermore you started the thread talking about ICS but in your last post you were talking about GB; I hope I'm the only one that is confused here
Click to expand...
Click to collapse
I found it, it was inside the zipfile "sec_csc.zip", thanks.
I have a sga that runs a gb stock based rom, I also test on that one frist.
My sgs2 runs stock rooted ics rom.
Sorry for the confusion.

dloulou said:
I found it, it was inside the zipfile "sec_csc.zip", thanks.
I have a sga that runs a gb stock based rom, I also test on that one frist.
My sgs2 runs stock rooted ics rom.
Sorry for the confusion.
Click to expand...
Click to collapse
No problem, just wanted to make sure we are speaking the same language.

Related

Cant decompile ICS APKs

Using APK Manager im trying to decompile some APKs from ICS, though always run into errors (Unlike GB APKs which I have no problem with)
Code:
|22/11/2011 -- 20:21:58.42|
--------------------------------------------------------------------------
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
--------------------------------------------------------------------------
|22/11/2011 -- 20:22:29.68|
--------------------------------------------------------------------------
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Could Not Find C:\Android\android-sdk\platform-tools\APK-Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedFaceLock.apk
Could Not Find C:\Android\android-sdk\platform-tools\APK-Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedFaceLock.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Silver\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x00000000
S: Could not decode file, replacing by FALSE value: mipmap-xhdpi/ic_launcher_settings.png
S: Could not decode file, replacing by FALSE value: mipmap-hdpi/ic_launcher_settings.png
S: Could not decode file, replacing by FALSE value: mipmap-mdpi/ic_launcher_settings.png
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueFrom, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueTo, value=0x3f800000
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300e9
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 Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(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)
Anyone got any advice for me? Ive heard using the newer version of APK Manager is supposed to fix things, though cant find a newer one. The only file I found on XDA was a Jar file, and didnt explain what / how to replace with current APK Manager.
http://forum.xda-developers.com/showthread.php?t=1310151
Have u seen this?
I must have the previous version. Looks 99% the same, except for the first pic.
Cheers, will give it a go and see if I get any further
Bit weird though as I have all the "new features" in whatever I have now :/
have u spoken to the dev?
Nope. Not even sure where I got it from so wasnt 100% sure who the dev was at the time.
I now get this error
Code:
--------------------------------------------------------------------------
|22/11/2011 -- 23:47:58.62|
--------------------------------------------------------------------------
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Could Not Find C:\Android\android-sdk\platform-tools\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedFaceLock.apk
Could Not Find C:\Android\android-sdk\platform-tools\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedFaceLock.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Silver\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueFrom, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueTo, value=0x3f800000
W: Could not decode attr value, using undecoded value instead: ns=android, name=propertyName, value=0x00000009
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Ill post in there and see what he says. Cheers for the responses.
Silver
Is face lock the only apk from ics u have tried?
DroidRC1 said:
Is face lock the only apk from ics u have tried?
Click to expand...
Click to collapse
Nope. Have tried several. Camera, Facelock, Gallery, settings, etc etc.. Just cant decompile any of them.
If I do exactly the same with anything from Gingerbread, I have no issues.
What you actually need is a version of baksmali that supports the ICS changes.
http://www.mediafire.com/?cxdzd65ng3rccyz
twistedumbrella said:
What you actually need is a version of baksmali that supports the ICS changes.
http://www.mediafire.com/?cxdzd65ng3rccyz
Click to expand...
Click to collapse
After I download this, which folder does it go in?
As above, what folder?
if you are using apk manager there is no folder to put it in. You will need to create a folder and run it on your apk. Here is a post telling you about the new changes to smali and how to use it on ics and honeycomb apks.. Hope this helps..
smali/baksmali 1.3.0
smali/baksmali 1.3.0 is out! This version now supports Honeycomb and Ice Cream Sandwich
There are a few changes and new features you should be aware of.
--api-level/-a option
Both smali and baksmali have a new --api-level/-a option. For smali, this ensures that the dex file that smali generates will be compatible with the specified platform. For baksmali, this is primarily needed while deodexing.
Specifically, when deodexing a Honeycomb or earlier odex file, you must specify an api level.
New ICS opcodes
ICS brings a slew of new "jumbo" opcodes. These opcodes accept a 32-bit method/field/class reference, rather than the 16-bit reference that is used everywhere else. This eliminates the earlier restriction of 64k method or field references. However, there can still only be 64k referenced classes, due to other constraints in the dex file format.
A list of the new jumbo opcodes can be found in the dalvik-bytecode.html document in the dalvik project in aosp (dalvik/docs/dalvik-bytecode.html). Unfortunately, the online document at http://s.android.com/tech/dalvik/dalvik-bytecode.html has not been updated for ICS yet.
Custom inline tables for deodexing
baksmali now allows you to specify a custom inline method table to use while deodexing. There have been some reports of versions of dalvik that are using a non-standard inline table. This will allow baksmali to be able to deodex odex files from these platforms.
In order to use this feature, you must first dump the inline table from the device. I have written a small native utility to do this. You can find the source here. (I am not planning on distributing a prebuilt binary of this tool)
You can dump the results of this tool to a file and then use the -T option to tell baksmali to use the custom inline table.
As always, you can find the latest versions at http://code.google.com/p/smali/downloads/list
If im honest, thats just confused me, though im grateful for the reply
Silver420 said:
If im honest, thats just confused me, though im grateful for the reply
Click to expand...
Click to collapse
maybe this will help
download smali-1.3.0.jar baksmali-1.3.0.jar and also the smali and baksmali wrapper script from http://code.google.com/p/smali/downloads/list
download jar_file_decompile_and_compiler_with_tutor.zip
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
rename smali-1.3.0.jar baksmali-1.3.0.jar to smali.jar baksmali.jar
you can rename the ones in tutor to smali.jarolder and baksmali.jarolder and the smali and baksmali wrapper script to smaliolder , baksmaliolder if you want to keep them
replace jar files and also the smali and baksmali wrapper scrip in " jar_file_decompile_and_compiler_with_tutor " with the new renamed ones
so summining it up download all 4 files, remove version number and replace ones in jar_file_decompile_and_compiler_with_tutor
I'll test and upload tutor with updated files, and also update a apktool with 1.3.0
thanks Racing19969 for the head up!!
Silver420 said:
Nope. Not even sure where I got it from so wasnt 100% sure who the dev was at the time.
I now get this error
Code:
--------------------------------------------------------------------------
|22/11/2011 -- 23:47:58.62|
--------------------------------------------------------------------------
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Could Not Find C:\Android\android-sdk\platform-tools\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedFaceLock.apk
Could Not Find C:\Android\android-sdk\platform-tools\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedFaceLock.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Silver\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=hardwareAccelerated, value=0xffffffff
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueFrom, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=valueTo, value=0x3f800000
W: Could not decode attr value, using undecoded value instead: ns=android, name=propertyName, value=0x00000009
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Ill post in there and see what he says. Cheers for the responses.
Silver
Click to expand...
Click to collapse
Dumb question I know but humor me lol you did install the ICS framework file so it updates your apktool/manager framework folder right?
What do u need it for? If u just need the files in it, couldn't u just rename it to a zip and extract it?
But I'm probably wrong.
Sent from my HTC Desire using xda premium
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
carl1961 said:
maybe this will help
download smali-1.3.0.jar baksmali-1.3.0.jar and also the smali and baksmali wrapper script from http://code.google.com/p/smali/downloads/list
download jar_file_decompile_and_compiler_with_tutor.zip
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
rename smali-1.3.0.jar baksmali-1.3.0.jar to smali.jar baksmali.jar
you can rename the ones in tutor to smali.jarolder and baksmali.jarolder and the smali and baksmali wrapper script to smaliolder , baksmaliolder if you want to keep them
replace jar files and also the smali and baksmali wrapper scrip in " jar_file_decompile_and_compiler_with_tutor " with the new renamed ones
so summining it up download all 4 files, remove version number and replace ones in jar_file_decompile_and_compiler_with_tutor
I'll test and upload tutor with updated files, and also update a apktool with 1.3.0
thanks Racing19969 for the head up!!
Click to expand...
Click to collapse
Once again, thank you very much for the PM's. Very helpful/nice bloke
Still stuck, but appreciate it either way
zelendel said:
Dumb question I know but humor me lol you did install the ICS framework file so it updates your apktool/manager framework folder right?
Click to expand...
Click to collapse
Are we on about the SDK, or copying the framework-res.apk? Maybe this is where I have gone wrong, as the only time I have been using the framework file, is when I have tried to decompile using option 10 (Rather than 9) which then asks you to drag and drop the framework file into apk-tools. Please let me know if i should do it differently
The3File said:
What do u need it for? If u just need the files in it, couldn't u just rename it to a zip and extract it?
But I'm probably wrong.
Sent from my HTC Desire using xda premium
Click to expand...
Click to collapse
To try and port stuff over to GB, and to just compare coding
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Click to expand...
Click to collapse
Sorry about that.
Yes that is what I am talking about. If the app is compiled using the ICS framework file then it will also have to be decompiled with the same OS version framework file or you will get errors. This has been happening more and more to apps when decompiling due to ICS already being built into the sdk when the apps ate made.. You will need to find an ICS framework file for your device. Not sure if a generic one will work or not but hey its worth a shot.
Sent from my Inspire 4G using Tapatalk
zelendel said:
Yes that is what I am talking about. If the app is compiled using the ICS framework file then it will also have to be decompiled with the same OS version framework file or you will get errors. This has been happening more and more to apps when decompiling due to ICS already being built into the sdk when the apps ate made.. You will need to find an ICS framework file for your device. Not sure if a generic one will work or not but hey its worth a shot.
Sent from my Inspire 4G using Tapatalk
Click to expand...
Click to collapse
I dont get it. Why would I find a framework file for my device? Surely Id use the framework from the same build? I.e. match up the ICS APK with the ICS framework file from the device it was pulled from? Thats how Ive been trying it anyway.
Silver420 said:
I dont get it. Why would I find a framework file for my device? Surely Id use the framework from the same build? I.e. match up the ICS APK with the ICS framework file from the device it was pulled from? Thats how Ive been trying it anyway.
Click to expand...
Click to collapse
Normally that is the proper way. But some also require device spicific framework folders. Like my settings apk needs to be decompiled with my com.HTC.resources apk. With very few options on ICS if you can't get it to recompile with option 10 and then using the framework-res apk from ICS then I would not know where else to start.

[Q] unable to decompile systemui.apk from ICS rom

Hi Guys..
I can see lots of threads about decompiling systemui.apk for GB devices and thats fine no problem..
however I am having difficulty in decompiling systemui.apk from ICS (MODDED STOCK/DEODEXED not AOSP)..
using apktool 1.4.3 and 1.4.2. still doesnt solve it
I install the framework-res.apk fine no problem... but as soon as i try and decompile systemui.apk i get the following...
Code:
C:\apktools>apktool d systemui.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Nutmeg\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x7f0e00ab
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quicksetting_divider_line.9
.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_plmn_bg.9.png". Renaming it
to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_call_ongoing_backgr
ound.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x7f0e00ab
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(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
similarly when i recompile i get
Code:
C:\apktools>apktool b systemui
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
I have also attempted to install twlauncher-res.apk along with framework-res.apk.. but still comes out with the same results..
What the hell am i doing wrong..
You aren't doing anything wrong. It's just that apktool can't properly decompile or compile ICS based apks yet.
Sent from my GT-I9100 using xda premium
aaah ok... so how are Devs modding the systemui.apk?
Hi, I have the same problem, I can not decompile the systemUi.apk nor any other except the framework apk-res.apk.
I do not understand how they did the other devs
i did find this on my travels round interweb...
here
And it does state that apktools should work..
Yes, with the framework-res.apk work perfectly but not with the other apk .
at least to me
same problem here
tried 1.4.2 and 1.4.3
1.4.2 isnt working for decompiling(For me)
i tried compiling with 1.4.2 this also doesnt work
i can only decompile with 1.4.3..
and cant compile it with 1.4.3
i tried it all
even the commands like java -jar didnt help me
hope someone can find a solution quick
---------- Post added at 12:28 PM ---------- Previous post was at 12:15 PM ----------
or.. does someone know if it is possible to decompile/compile one single xml ?
For modifying systemui I've just been changing .PNG files. No XML editing yet.
locomain said:
or.. does someone know if it is possible to decompile/compile one single xml ?
Click to expand...
Click to collapse
I would like to know this also.
Sent from my GT-I9100 using xda premium
has someone figured it out yet?
Yea this bugs me too. Can't make systemUI edits. The Log shows Java related stuff.
for what i've heard you can decompile it but when compiling it again, thats where the fun ends
Well this is the solution but doesnt work for me.
http://forum.xda-developers.com/showthread.php?t=1365810
Sent from my SPH-D710 using XDA App
ssconceptz said:
Well this is the solution but doesnt work for me.
http://forum.xda-developers.com/showthread.php?t=1365810
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
this works on aosp systemui not on the sammy one
locomain said:
this works on aosp systemui not on the sammy one
Click to expand...
Click to collapse
Did you try using the touchwiz framework instead? In earlier versions, Sysremui.apk had references to twframework-res.apk and needed that as dependeny for decompile.
tsachi said:
Did you try using the touchwiz framework instead? In earlier versions, Sysremui.apk had references to twframework-res.apk and needed that as dependeny for decompile.
Click to expand...
Click to collapse
did try this but doesnt work
it will decompile but cant compile
For to decompile systemUi.apk you must remove classes.dex from apk and decompile with apktool 1.4.2 and compile with 1.4.3.
But i don't know how decompile the files .jar

Help Error at Decompiling / Compiling cm9 like setting for stock rom

Hey there if someone could land me a hand i would be grateful
Here's the thing i downloaded the mod by spacecaker or coolcathome as u wish of the cm9 setting's mod for stock rom ... work's great but it doesn't have my language ... So i tried to change the strings ... I ALWAYS get error ... so i thought it was because of the dependence of framework-res.apk
Now i cant even decompile ...
I get this error at apk tool when decompiling
C:\apk tool>apktool if framework-res.apk
I: Framework installed to: C:\Users\R·ben\apktool\framework\1.apk
C:\apk tool>apktool d Settings.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\R·ben\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
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: Cant find 9patch chunk in file: "drawable-mdpi/password_field_default.9.png".
Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
I: Decoding values*/* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
----------------------------------------------------------------------------------------------------------------------------------------------
and this one for compiling
C:\apk tool>apktool if framework-res.apk
I: Framework installed to: C:\Users\R·ben\apktool\framework\1.apk
C:\apk tool>apktool d Settings.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\R·ben\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
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: Cant find 9patch chunk in file: "drawable-mdpi/password_field_default.9.png".
Renaming it to *.png.
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=
textAppearance, value=0x0207000f
I: Decoding values*/* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
C:\apk tool>apktool b Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Its driving me mad ... If someone could tell me what am i doing wrong or mod the strings that i need for me ( i'll mod the string only need to put them on apk and compile )
Thanks in Advance
u installed twframework res apk ?
Sent from my i9070 using xda premium
no ... framework-res.apk
Is twframework?
SnowPluralism said:
no ... framework-res.apk
Is twframework?
Click to expand...
Click to collapse
nope its missing twframework
apktool if framework-res.apk
apktool if twframework-res.apk
u need to have those installed
and for compiling it isnt
apktool b settings.apk
but
apktool b settings
CoolCatGetHome said:
nope its missing twframework
apktool if framework-res.apk
apktool if twframework-res.apk
u need to have those installed
and for compiling it isnt
apktool b settings.apk
but
apktool b settings
Click to expand...
Click to collapse
installed both frameworks ... corrected the compile comand ...
Still no luck .... LOTS of error's when compyling about missing files :/
Getting desperate ...
Did u used the frameworks from DDQ8?
Sent from my GT-S5830 using xda premium
Decompile again. Make sure u install the correct Framework apps (from the rom u are modding). If you decompiled without the Framework files installed, you won't be able to compile back without errors.
Sent from the other side... of the screen
Compile always give me error both dependencies are installed correctly ... i have used all options ... if anyone as a clue on how to do it ... give me a call
SnowPluralism said:
Compile always give me error both dependencies are installed correctly ... i have used all options ... if anyone as a clue on how to do it ... give me a call
Click to expand...
Click to collapse
Try to translate it in the normal strings.xml
Instead of in all?
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Try to translate it in the normal strings.xml
Instead of in all?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
yes ... and i also did the test of compiling without any mod ... also give me error ...
it seems to me that u done that using another framework that is not the ddq8 one ... any other idea? if not :/ ...
SnowPluralism said:
yes ... and i also did the test of compiling without any mod ... also give me error ...
it seems to me that u done that using another framework that is not the ddq8 one ... any other idea? if not :/ ...
Click to expand...
Click to collapse
Nope i have ddkq8 frameworks always installed
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Nope i have ddkq8 frameworks always installed
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
if i send u the strings would u give it a try?
SnowPluralism said:
if i send u the strings would u give it a try?
Click to expand...
Click to collapse
Gonna try
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Gonna try
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Gonna PM them to u now

[Q] Decompiling error

So whenever i try to decompile the systemUi or any other apk i get this error.I use apk multi tool Any help would be appreciated.
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00004e42
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000001f
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at brut.androlib.res.util.ExtMXSerializer.writeAttrib uteValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute (MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelega te.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.writeStartTag(StaticXmlSerializerWrapper.j ava:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.e vent(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.dec ode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.XmlPullStreamDecoder.dec odeManifest(XmlPullStreamDecoder.java:144)
at brut.androlib.res.decoder.ResFileDecoder.decodeMan ifest(ResFileDecoder.java:131)
at brut.androlib.res.AndrolibResources.decode(Androli bResources.java:218)
at brut.androlib.Androlib.decodeResourcesFull(Androli b.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:11 4)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Did you install SystemUI.apk first?
Code:
apktool if SystemUI.apk
No, I'll try that later. Thanks for replying
Sent from my LG-MS770 using Tapatalk 2
i still get an error. it doesnt seem to install
MrGlowy said:
i still get an error. it doesnt seem to install
Click to expand...
Click to collapse
1. Are the .apk files from a deodexed ROM?
2. When you installed the SystemUI using apktool if, did you write the path to the apk? (ex. apktool if C:\Users\Admin\SystemUI.apk)
3. Also try installing the framework-res.apk from the same ROM
1.yes
2.no
3. Ok
I'll try, thanks.
Sent from my LG-MS770 using Tapatalk 2
MrGlowy said:
1.yes
2.no
3. Ok
I'll try, thanks.
Sent from my LG-MS770 using Tapatalk 2
Click to expand...
Click to collapse
This is what i get when trying to install anything
MrGlowy said:
This is what i get when trying to install anything
Click to expand...
Click to collapse
You're not entering the correct path to the .apk. Make sure that there is a framework-res.apk in a folder called apktool in your user folder (whatever it is called). Then retry the command. The errors that the shell is throwing out are saying that it cannot the specified path.

[Q&A] [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk fil.

[Q&A] [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk fil.
Q&A for [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk files
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [UTIL][Oct 5 2014] Apktool v2.0.0 RC2 - a tool for reverse engineering apk files. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Great! Thank alot! :good:
chung cư linh đàm
When use on MIUI 6
I got errors like:
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9460-mnc9000
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9998-mnc9999
can help me?
jazchen.tw said:
When use on MIUI 6
I got errors like:
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9460-mnc9000
invalid resource directory name: D:\Android\ApkIDE\Work\android\res/values-mcc9998-mnc9999
can help me?
Click to expand...
Click to collapse
mnc max value is 999. Those are invalid values, not to mention you have backslashes mixed with forward slashes. You could either remove the folders or change them to mnc900 and mnc999.
iBotPeaches said:
mnc max value is 999. Those are invalid values, not to mention you have backslashes mixed with forward slashes. You could either remove the folders or change them to mnc900 and mnc999.
Click to expand...
Click to collapse
Those directories are miui official added.
Probably used to distinguish china edition or international edition (global edition).
I understand the part about the backslash, remove these directories can be done properly.
Can anyone take a look and let me know what i need to do? Thank you.
C:\>cd \apktool\apktool
C:\Apktool\Apktool>apktool d app.apk
Destination directory (C:\Apktool\Apktool\app) already exists. Use -f switch if
you want to overwrite it.
C:\Apktool\Apktool>apktool d app.apk
I: Using Apktool 2.0.0-RC2 on app.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David Weidman\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=
touchscreenBlocksFocus, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
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
6)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
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:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:86)
C:\Apktool\Apktool>
Hello,
I'm modding APK's for a while but today, I got a problem with an APK. When I'm decompiling and recompiling the APK without making changes then signing, it just closes on Android (No FC error) It worked for months, but since today's update not. So how can I fix this? Is the APK protected? Please help!
dr_w said:
Can anyone take a look and let me know what i need to do? Thank you.
C:\>cd \apktool\apktool
C:\Apktool\Apktool>apktool d app.apk
Destination directory (C:\Apktool\Apktool\app) already exists. Use -f switch if
you want to overwrite it.
C:\Apktool\Apktool>apktool d app.apk
I: Using Apktool 2.0.0-RC2 on app.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David Weidman\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=
touchscreenBlocksFocus, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
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
6)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:369)
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:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:86)
C:\Apktool\Apktool>
Click to expand...
Click to collapse
Did you install all the resources?
Errors in the apktool are always in the very first section.
Yours states it couldn't decode something, so if you haven't I would try installing all the resources again
Sent from my SM-N900T using Tapatalk 2
你发布这个版本的apktool 无法在 Android 5.0 上面使用,egg pain
lil' problem
hello there!
im not a newbie in theming, but i just wanna ask..
why i always need to copy both META-INF and the AndroidManifest in order install the stock app (like Settings)..
i always need a custom rom where i can edit apks without copying those both files,...
it gives me the creeps.. i hate doing that since it consumes a time..
i cant make changes for some of my deodexed stock apps..
i still wondering how the devs make some changes for some apps..
i hope you got my point..
Apktool rc3
HI
can anyone help me?
i want to change the navbar size of my n4
i decompile framework-res.apk and change some of thinks. :
what i did ?
--
1 java -jar apktool.jar if framework-res.apk
2 java -jar apktool.jar d framework-res.apk
3 change the size in apktool/framework-res/res/value/dimens.xml
4 java -jar apktool.jar b framework-res
5 change framework-res.apk to .zip and move framework-res/build/apk/Androidmanifest.xml to framework-res.zip
6 change framework-res.zip to apk
is this ok or not ?
sorry for my bad english
Hi,
I'm trying to use apktool as a library inside another app, but it seems (at first glance at least) that a lot of the processing depends on setting files and the process working to take the compressed data in the apk, decode it, and write the output to a directory structure.
Is there already a sort of "simple" way to pass in an APK (or better yet, an InputStream or byte array) and have that return an XML document or even just a text stream of a resources file (values files or AndroidManifest.xml)? Or am I basically on my own to setup the objects/change the source to be able to access this sort of functionality?
Thank you!
GI0\/\NNI said:
Hello,
I'm modding APK's for a while but today, I got a problem with an APK. When I'm decompiling and recompiling the APK without making changes then signing, it just closes on Android (No FC error) It worked for months, but since today's update not. So how can I fix this? Is the APK protected? Please help!
Click to expand...
Click to collapse
try to disable signature verification,.. i think it would help..
i have the same prob,..
im not newbie in theming but when i start modding system app from my deodexed stock rom .. i got that prob..
an hour ago,.. i found a solution,.. (not yet tried) . from Pyler's post ..
ee this thread
http://forum.xda-developers.com/xposed/modules/xposed-disablesignaturecheck-t2783480
hope it helped you
My rockchip rk3066 ft970 tab not boot i think its bricked. I don't have backup. How to recover by rkbatchtool i successfully installed driver in rkbatchtool green box appears but when i flash cwm.img error that firmware is missing. So how i get firmware for my tab please help I'm new to xda and all
Thanks in advance
Can anyone help me decompiling this apk ?
Dropbox.com/s/05kj2x4zie734b9/com.asobimo.iruna_en-1.apk?dl=0
I can decompile with a Lot of errors and then many smali files have no .end method which makes recompiling impossible.
Decompiling errors for Multiple resources
Hello there
I've tried to decompiling and evectually install some framework-res.apk, miui6, mine lenovo A806 framework, on three different so, ubuntu 64bit, bbqlinux and, last, win7, with the same results:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0047 integer/config_mobile_mtu, config=-mcc460
detail on:
pastebin.com/isMFnP0v
BBq and Ubuntu are 64bit with lib32 enabled.
apktool ver. 2.0.0 RC3
Other frameworks as mediatek-res works well
Any idea?
Thanks
S.
ultimacorsa said:
Hello there
I've tried to decompiling and evectually install some framework-res.apk, miui6, mine lenovo A806 framework, on three different so, ubuntu 64bit, bbqlinux and, last, win7, with the same results:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010e0047 integer/config_mobile_mtu, config=-mcc460
detail on:
pastebin.com/isMFnP0v
BBq and Ubuntu are 64bit with lib32 enabled.
apktool ver. 2.0.0 RC3
Other frameworks as mediatek-res works well
Any idea?
Thanks
S.
Click to expand...
Click to collapse
Solved!
Thanks
S.
Uncompressed unknown files becomes compressed.
Issue:
https://code.google.com/p/android-apktool/issues/detail?id=769&thanks=769&ts=1424960582
I believe it prevents monodroid/xamarin apk from working.
ultimacorsa said:
Solved!
Thanks a lotv1 e v2
S.
Click to expand...
Click to collapse
Thanks a lotv1 e v2
---------- Post added at 06:52 PM ---------- Previous post was at 06:44 PM ----------
ultimacorsa said:
Thanks a lotv1 e v2
Click to expand...
Click to collapse
I need to reach 10 posts
---------- Post added at 07:41 PM ---------- Previous post was at 06:52 PM ----------
Hello, decompile with apktool rc4, via dos cmd line or linux shell
insert value-xx (xx=lang)
Recompile with some warning about the default strings
Insert in the new lenovosettings.apk META-INF and AndroidManifest.xml, substituite the file in the priv-app, restart the phone...But the settings return an error message: the application blocked anomaly mode, more o less.
The courios is that the USB message is translate as the new apk laguage.
Any suggestion?
Thanks a lot
S.
Hello. I have a problem with APK tool.
I`m making localization for my phone (Motorola Razr M) since last year.
I made couple builds and its was fine. But when i did last one, i found a bug in my mod: Google Now cant launch - it just hangs screen (need to turn screen on\off to make it work)
I found out that problem is in framework-res.apk. if decompile and recompile it back even without any changes - bug persist. My previous builds was ok, and i used same Java version and same apktool version. Framework compiles without any errors. Tried different pc, different java versions (different builds of 7 and 8 java), even tried different phone.
Tried to use non-modified (original) framework-res.apk as framework, tried localized version.
Even tried to change file modification date.
Nothing helps. Dunno where to look.
sorry for bad english

Categories

Resources