yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Thebear j koss:
No credit needed. Thank ibotpeaches for his continued apktool support. I didn't look at your log but proprietary apps are finicky, read the posts above. You may need to use a different apktool version for different apps. I had a touchwiz rom that i needed apktool 1.5 to decompile and 1.52 to recompile. No idea why, but it worked. Just have to play with the apktool versions. Also may want to start fresh, if you have apps installed and decompiled it can screw with the tool. Hope that helps, and you may want to ask in your device's forums, as i'm sure whatever questions you may have most likely have been covered there.
[Android Software Development] svadev:
Sorry, but i dont find in documentation:

Which the difference, after build application, between "dist" and "sys" folders in result?
[Android Software Development] flamery:
Hey,

I am trying to make some changes to my SystemUI.apk file. But it seems there is another framework required to be installed, I already installed framework-res and systemUI, but when I try and decompile systemui.apk I get this error message below. is there anyway to figure out what other files I need to load? My phone is a Nubia z7 mini.

I: Using Apktool 2.0.1 on SystemUI.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\apktool\framework\1.apk

W: Could not decode attr value, using undecoded value instead: ns=android, name=

screenOrientation, value=0x030f0000

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x030e0005

W: Could not decode attr value, using undecoded value instead: ns=android, name=

screenOrientation, value=0x030f0000

W: Could not decode attr value, using undecoded value instead: ns=android, name=

theme, value=0x030e0005

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

Can't find framework resources for package of id: 3. You must install proper framework files, see project website for more info.
[Android Software Development] Vivek_Neel:
Try to have a look at /system/framework and see if there is an apk .
[Android Software Development] maksnogin:
Hi, how fix?

MIUI 7

SMALI : smali-2.0.7.jar

APKTOOL : apktool_2.0.2_a19.jar

--------------------------------------------------

[*] framework-ext-res.apk

I: Framework installed to: bin\framework\17.apk

[*] framework-res.apk

I: Framework installed to: bin\framework\1.apk

[*] mediatek-res.apk

I: Framework installed to: bin\framework\2.apk

[*] miui.apk

I: Framework installed to: bin\framework\16.apk

[*] miuisystem.apk

I: Framework installed to: bin\framework\18.apk

[*] Decompiling MiuiHome.apk

I: Using Apktool 2.0.2_0811 on MiuiHome.apk

I: Loading resource table...

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f02007c drawable/icon_notification_bg, config=-sw720dp-xhdpi-v13

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:223)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:191)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:159)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:538)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)

at brut.androlib.Androlib.getResTable(Androlib.java:64)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:210)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:165)

at brut.apktool.Main.main(Main.java:81)

[*] --- MiuiHome.apk
[Android Software Development] Ticklefish:
That's the Transformer, isn't it? I think there's something wrong with the stock SystemUI.apk and it doesn't actually de/recompile properly. Maybe it's worth trying a different rom?
[Android Software Development] gcrutchr:
The apktool 10 works fine on all my other roms, including jellybean.

I just want to make changes to the SystemUI.apk for the TF700T.

The SystemUI.apk is basically stock Google except for some mods by ASUS.

Yes, it is the Transformer Infinity.
[Android Software Development] iBotPeaches:
I'm still working on the HTC Sense error, and ICS/JB SystemUI error.

I will make a very bold announcement if I get it. In other news. If anyone knows AAPT very well. I could use some help.
[Android Software Development] jaronow:
i am having issues recompiling the last two Jellybean Miui releases of the Mms.apk, i can decompile it thankfully but even after making no changes and trying to rebuild it i am getting the following error, this is using the lastest apktool 1.4.10 and the latest aapt from the link on the 1st page

invalid resource directory name: /home/john/apktool/Mms/res/values-largeui-hdpi

invalid resource directory name: /home/john/apktool/Mms/res/values-hugeui-hdpi

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6133921434241099610.tmp, -I, /home/john/apktool/framework/1.apk, -I, /home/john/apktool/framework/6.apk, -S, /home/john/apktool/Mms/res, -M, /home/john/apktool/Mms/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:251)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)

at brut.androlib.Androlib.buildResources(Androlib.java:269)

at brut.androlib.Androlib.build(Androlib.java:192)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:185)

at brut.apktool.Main.main(Main.java:70)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6133921434241099610.tmp, -I, /home/john/apktool/framework/1.apk, -I, /home/john/apktool/framework/6.apk, -S, /home/john/apktool/Mms/res, -M, /home/john/apktool/Mms/AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:249)

... 6 more

thanks for the help
[Android Software Development] NCandiano:
I'm not 100% sure but I think you just need to delete that directory as it doesn't need it. Should recompile and run fine after that.
[Android Software Development] ahmad.afef:
I have a feeling that my problem much easier than Asus issue :(
[Android Software Development] iBotPeaches:
You need to use the APPT I have in the OP. That exact error means that it's out of date.

Sent from my SGS3 AT&T Variant
[Android Software Development] raziel23x:
IBotPeaches I have been Google searching and found

http://elinux.org/Android_aapt

http://geosoft.no/development/android.html

http://www.herongyang.com/Android/Project-aapt-Android-Asset-Packaging-Tool.html
[Android Software Development] NCandiano:
Your built apk in the dist folder isn't signed. Open your original, signed apk with 7zip. DON'T Unzip it. Just hover over and click open archive. Do the same to your newly built apk. Drag and drop your modified res file and resources.arsc into the original framework. Now, you can take the originally signed and modified apk and put it back in your Rom. If an apk runs when you install it, but disappears when you reboot, it's because you have signature issues.
[Android Software Development] ahmad.afef:
Thank you very much for the reply I really appreciated.

I'm sorry, i know i'm like the most stupid guy ever, but i'm not sure i understood right

1- I have to open the original and modified apks using 7-Zip

2- Copy the modified [modified xml files] and [resources.arsc] into the original apk

3- Flash the original apk to the ROM

and it must work.

I didn't edit xml files, i translated the apk so there is even more xml files, is this ok since i'm keeping the original resources.arsc file?
[Android Software Development] iBotPeaches:
You need to move the new resources.arsc file over into the original APK. That has all the string values and what not inside. The only files stored outside the resources.arsc are like the drawables, anims, raw, etc. So if you change those you also have to re-inject them with a compression level of 0. Much like users before you have said. I'm in IRC for like 2 more hours (Freenode #apktool). If you need more help.
[Android Software Development] ahmad.afef:
thank you very much

i'll test it and i'll post a reply

thanks
[Android Software Development] iBotPeaches:
Hello all,

Good news. I finally have a friend at HTCDev, she has been a great help and fixing these problems.

HTC uses an old AAPT, which allows the process to work but then breaks on newer apks, so we fix one bug but create 10.

MIUI also has its own modified AAPT, which doesn't help and Android won't merge MIUI AAPT changes into AOSP.

So the goal is now to merge MIUI changes and old AAPT changes into a new build.

Hoping to get some fixes into the new r20 set of platform tools, to give AAPT backwards support for old apks without erroring out.

I've got a friend in AOSP who is going to help get my changes verified and merged.

Also adapting apktool to use api version with AAPT might resolve these problems. Watch github for updates.

Sent from my SGS3 AT&T Variant
[Android Software Development] iBotPeaches:
Hello all,

I need a stock framework-res.apk from the following devices.

HTC One X (International model)

Some ASUS Tab

HTC One V/S (either works - international models)

Send them to me please. (ibotpeaches (at) gmail (d0t) c0m
[Android Software Development] CosmicDan:
Thanks for your hard work.... does this mean we will get an aapt for Windows working with MIUI changes soon?
[Android Software Development] ingbrzy:
we already have new aapt.exe for MIUI building on windows...

https://github.com/MiCode/patchrom_tools/blob/ics/aapt.exe
[Android Software Development] CosmicDan:
Thanks! I never knew. Hope this fixes bad framework-res resources on newest MIUI :)

EDIT: Nope, editing framework-res.apk still causes Play Store FC's. Back to hex-editing resources.arsc....

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] fisha21:
I'm sure you've been sent these already, but there is a repository of all stock One X apps over in the One X apps thread, in case you ever need anything else.

http://xdaforums.com/showthread.php?p=25130927
[Android Software Development] freidel1:
Hi everyone,

I want edit SystemUI.apk, i was decompile successfully but i cant recompile SystemUI. I tried recompile with non-change but same error.

C:\APK_MultiTool\other>apktool b systemui s
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointer
at org.jf.util.PathUtil.getRelativeFile(
at org.jf.smali.smaliFlexLexer.getSource
at org.antlr.runtime.CommonTokenStream.g
ava:345)
at org.antlr.runtime.tree.CommonTreeNode
odeStream.java:106)
at org.antlr.runtime.tree.TreeParser.get
at org.jf.smali.smaliTreeWalker.getError

at org.antlr.runtime.BaseRecognizer.disp
er.java:192)
at org.antlr.runtime.BaseRecognizer.repo

at org.jf.smali.smaliTreeWalker.smali_fi
at brut.androlib.mod.SmaliMod.assembleSm
at brut.androlib.src.DexFileBuilder.addS

at brut.androlib.src.DexFileBuilder.addS

at brut.androlib.src.SmaliBuilder.buildF
at brut.androlib.src.SmaliBuilder.build(
at brut.androlib.src.SmaliBuilder.build(
at brut.androlib.Androlib.buildSourcesSm
at brut.androlib.Androlib.buildSources(A
at brut.androlib.Androlib.build(Androlib
at brut.androlib.Androlib.build(Androlib
at brut.apktool.Main.cmdBuild(Main.java:
at brut.apktool.Main.main(Main.java:67)

I tried recompile other rom's systemUI,framework-res.apk etc. but same error. How can i fix it?

Operation System:

Windows 7 Ultimate x64

Java version:

java version "1.7.0_04"

Java(TM) SE Runtime Environment (build 1.7.0_04-b22)

Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode).

Apktool version: 1.4.10

Who can try recompile my apk's? And i want uninstall java and reinstall give me link please?

Here is my apk's.
[Android Software Development] ingbrzy:
Without any problem...

using apktool_1.4.10.jar and aapt.exe

[*] framework-res folder
recompiling framework-res.apk...
W: Could not find sources
I: Building resources...
aapt: warning: string 'app_killed_message' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: de ko nl ru tr zh_CN
aapt: warning: string 'global_action_choose_profile' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'permdesc_preventpower' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: ja ko tr
aapt: warning: string 'permlab_preventpower' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: ja ko tr
aapt: warning: string 'profileGroupCalendar' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileGroupEmail' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt tr
aapt: warning: string 'profileGroupGmail' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt tr
aapt: warning: string 'profileGroupPhone' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileGroupSMS' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt tr
aapt: warning: string 'profileNameDefault' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileNameHome' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileNameNight' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileNameSilent' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'profileNameWork' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
aapt: warning: string 'wildcardProfile' has no default translation in C:\AutoAPKTool3.0.1\_INPUT_APK\framework-res\res; found: el ja ko pt ru tr
I: Building apk file...
Syst‚m nem“§e n*jsś zadanŁ jednotku.
[*] SystemUI folder
recompiling SystemUI.apk...
I: Smaling...
I: Building resources...
I: Building apk file...
Syst‚m nem“§e n*jsś zadanŁ jednotku.
[Android Software Development] Morningstar:
I'd guess that either that's one of those apks that can't be decompiled, or you have too many things installed as frameworks. What are Miui.apk and MiuiSystem.apk? Are they frameworks?
[Android Software Development] zelendel:
MIUI has long been known to have issues due to the way they set it up. To the point that the dev said he wouldnt go out his way to support MIUI
[Android Software Development] maksnogin:
Morningstar, yes frameworks
[Android Software Development] iBotPeaches:
Status Update

- #1021 - MIUI7 apks don't work. The changes required is just one additional tweak that the previous MIUI support required (unlike other OEMs massive amount of changes), so I will include this patch in next build.

- #1019 - Custom attributes for some apks are being treated as android attributes, thus breaking. My comment here explains the why, but then my example apk here didn't experience the same problem.

- A great PR to fix assets being compressed (thus breaking some apks during rebuild) has been made. Just waiting on myself to build a test apk to test this out, then it will be merged mainline.

- The newest version of Dexguard Enterprise moves all files from /res into their own root location of the apk with some obfuscated name. The guys at JEB have already patched this, I'm not as smart as them so research is still on going here.

- Apktool should "nearly match the original apk". So the portions of aapt that move resources to make them "backward compatible" are being skipped since apktool's responsibility is to just match the original APK, not modify it. Still in testing. This will stop your rebuilt apks from having these new version qualifiers created.
[Android Software Development] dermaze:
Apktool recompile error

Hello,

I'm on Ubuntu 14.04 (JDK and JRE 1.7 installed, as well as Android SDK / Android Studio, aapt is in the $PATH, although not necessary any more). I'm trying to mod the deodexed Conversations.apk (Standard SMS app coming with stock Sony Xperia Lollipop, in my case Xperia Z1compact, and this modified stock ROM). Framework (framework-res.apk and SemcGenericUxpRes.apk) is installed, I can decompile the apk without problems.

Recompiling (nothing changed), however, does not work at all. It throws this error:

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_7263196902296210180.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 60818435, --version-name, 29.0.A.1.3, -F, /tmp/APKTOOL6976770887591420412.tmp, -0, arsc, -I, /home/dermaze/apktool/framework/1.apk, -I, /home/dermaze/apktool/framework/2.apk, -S, /run/shm/Quellen/Conversations/res, -M, /run/shm/Quellen/Conversations/AndroidManifest.xml]

and then some (full log here), and of course no .apk is generated.

I have searched this thread and of course the net for similar errors, but could not find anything useful. Maybe it looks familiar to some of you? Did I overlook something? Chances are, I made just a stupid noob mistake, as this is my first try with modding...

By the way, for testing purposes I grabbed myself a theme.apk from this thread because I figured this should be a pretty easy job for apktool. Again the same outcome: decompilation works without errors, no changes were made, recompilation aborts with same error messages.
[Android Software Development] iBotPeaches:
Apktool copies its internal aapt to /tmp to execute it. You cannot execute executables in that directory, thus this error. I would download the latest aapt binary from the repo (https://github.com/iBotPeaches/Apktool/commit/421999747082b05e576cf3bdeba590fc1710cd31) and use the parameter --aapt to point to the location you download it.
[Android Software Development] dermaze:
I thank you so much!

I was searching for an error on the apktool side so hard, I didn't remember that I mount /tmp as read-only... doh!

So a simple

sudo mount -o remount,exec /tmp

did the trick (and it's more convenient than giving the --aapt option each time). But your suggestion works, as well. At least until I encounter a huge load of "Public symbol ..xyz.. declared here is not defined", but that's another story. With the simple theme I mentioned, everythings works just fine.

Thanks again!
[Android Software Development] dugeriss:
Miui v7 mi4i lolipop

Can not recompile MiuisystemUI.apk

i give you resources,please check :)
[Android Software Development] plegdroid:
Await the next update Matey ?☕

http://xdaforums.com/showthread.php?p=62340865

ⓐⓝⓓⓡⓞⓒⓛⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] gkalen:
We're waiting for new apktool 2.0.2 to decompile and recompile miui7 , we have a lot of problems , though i download the Apktool-master.zip and i found the ResConfigFlags.java included in the zip but it doesnt includes in the apktool_2.0.1.jar.

I saw this here ... https://github.com/iBotPeaches/Apktool/commit/579d7c561e0b00875d059fd84a3c6a14dd169683 , but i can't understand what to change to make it work.

Anyway i'm waiting new apktool to compile miui7 apps.

Keep up the great work !!!

Regards!!!

Στάλθηκε από το Lenovo A328 μου χρησιμοποιώντας Tapatalk
[Android Software Development] Antonio GT-I8730T:
Hi can someone tell me something about this error when importing framework, when i type apktool if framework-res.apk i get this error

W: null

Exception in thread "main" java.lang.NullPointerException

at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.java:70)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:259)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:203)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:191)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:159)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:593)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:575)

at brut.androlib.Androlib.installFramework(Androlib.java:670)

at brut.apktool.Main.cmdInstallFramework(Main.java:240)

at brut.apktool.Main.main(Main.java:87)

I have older jdk installed 7 update 80 and newest is 8 update 60 is this becouse of jdk?
[Android Software Development] DaOldMan:
Check your private msg, I compiled 2.0.2 from latest master. You can check it if it works with MiUi7.
[Android Software Development] gkalen:
Thank you very much , i try to compile it by myself but i couldn't find the ResConfigFlags.java file inside the apktool.jar ( i found only a ResConfigFlags.class file ) and confused me.

I will try it as soon as i go home.

I'll let you know .

Thanks again for the time you spend for this , even if it doesn't work.

Regards !!!

Στάλθηκε από το Lenovo A328 μου χρησιμοποιώντας Tapatalk
[Android Software Development] tomkins0752:
I have been attempting to decompile a few different Settings.apk files to port over a few features, but I've ran into a small issue.

The Settings.apk for both the HTC One E9+ and HTC J Butterfly 3 both fail to decompile, but their framework-res.apk and SystemUI.apk succeed.

Both devices run on 5.0.2, both come back with the same exact error log.

On an older build for the HTC One E9+, a 5.0 build, the apk decompiles successfully.

This was attempted with apktool 2.0.1 and a fresh build from source.

Any information would be helpful. Thank you.
[Android Software Development] dugeriss:
thnks bro.. everyday i check this thread :fingers-crossed:
[Android Software Development] Al Arsyadi:
Does anyone can help me, how to remove .line .param .parameter & .prologue strings?
[Android Software Development] S#@DY:
Same problem here.. Using apktool from this thread.. How to solve
[Android Software Development] Morningstar:
Um....Select them, and click backspace or delete?
[Android Software Development] Crussader:
Are you using the -b parameter? if you're using it and still get the .params... then read this.
[Android Software Development] DaOldMan:
I hope this can fixed. Compiling and decompiling twice works but it's a mess ...