yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Ticklefish:
What frameworks did you install? Some OEM roms have more than just one framework file.
[Android Software Development] mjraogr:
It's a Sammy rom, so the already installed complete TouchWiz frameworks and also SystemUI.

Twframework-res, framework-res and SystemUi
[Android Software Development] mjraogr:
It's a Sammy rom, so the already installed complete TouchWiz frameworks and also SystemUI.

Twframework-res, framework-res and SystemUi

I also tried with cm11 framework-res and get same results after commands to recompile these file
[Android Software Development] Ticklefish:
Curious. The error does suggest that you're missing a framework. Are there any other framework files in your rom that you could try?

I can't see why there should be but it's worth looking.
[Android Software Development] mjraogr:
Yeah bro, exactly the point, that's strange issue. Means that aapt is losing path to recognize
[Android Software Development] e-cl:
Gentlemen, any help?
[Android Software Development] laura almeida:
Did you able to find a workaround for this ?

I'm getting the same error.
[Android Software Development] iBotPeaches:
There is no workaround. Research is still ongoing. Bug report is here - https://github.com/iBotPeaches/Apktool/issues/1534
[Android Software Development] djdarkknight96:
Happened on playstore but Google updated and its working again.
[Android Software Development] iBotPeaches:
I found problem regardless. There was a bad resource (no type information) and it was the last resource in a configuration. Apktool has never had a problem in that specific use case before. I'm sure just rebuilding the application at the source level moved the bad resource somewhere else, which Apktool could handle. Fix will be in 2.2.4 set for next week - https://github.com/iBotPeaches/Apktool/commit/eda95b3da2b93700b3e3abe0991b584b83553f91
[Android Software Development] djdarkknight96:
You da man!
[Android Software Development] Spannaa:
Awesome :good:

2.2.4-ad59fd-SNAPSHOT decodes Hangouts :D
[Android Software Development] laura almeida:
Yaay!!
[Android Software Development] djdarkknight96:
Awesome
[Android Software Development] guitar1238751:
Yes!Awesome man, your a ninja
[Android Software Development] Terraalpha:
Hi all

Where can I download the Apktool 2.2.4-ad59fd?
[Android Software Development] laura almeida:
No where.

You have to build it yourself.

https://ibotpeaches.github.io/Apktool/build/
[Android Software Development] iBotPeaches:
A new version has been released!

v2.2.4 (Released July 29, 2017)

Download: https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.4.jar

md5 - fad893aea35b598512689cc3c28b2ed8

sha256 - 1f1f186edcc09b8677bc1037f3f812dff89077187b24c8558ca2a89186ea3251

Details of Release: https://connortumbleson.com/2017/07/29/apktool-v2-2-4-released/

Details of Security Fixes in 2.2.4: https://connortumbleson.com/2017/07/29/detecting-reverse-engineering-on-android-applications/
[Android Software Development] Ibuprophen:
Quick question [MENTION=3924617]iBotPeaches[/MENTION]...

I had just thought of this and I do use it on my PC but, can the jar files be used to update the Apktool Android App?

Or is it better suited for the PC?

I had used the Apktool App quite some time ago and stopped when I began using the PC but, I was thinking about using the App again for a "case by case" basis.

Thanks a Bunch!

______________

PLEASE NOTE: I welcome any member to help with further valuable information/clarification for any of my posts.

×MY DEVELOPMENTS×

[APP][TOOL][4.2+]The SELinux Toggler

[ZIP][TOOL][AIO]BusyBox Stericson Binary Installer v1.26.2 {BB/TB Auto-Symlink}

×IN DEVELOPMENT×

[APP][TOOL][4.2+][OFFICIAL]The SELinux Switch

Will Supersede "The SELinux Toggler"

×IDEAS FOR DEVELOPMENT×

[APP][UNOFFICIAL][4.2+]XDA Forum {Classic}

[APP][UNOFFICIAL][4.2+]XDA Reader {Classic}
[Android Software Development] toknitup420:
getting this error when recompiling SystemUIGoogle from DP4 for Pixel XL. Framework and settings compile with no errors. So far ive only had issues with SystemUI.
[Android Software Development] zelendel:
That is an easy one. One of your .9 pngs pip_dismiss_schrim in xxxhdpi. Fix that .9 and it should be ok.
[Android Software Development] e-cl:
Is there any other tool suitable for the same purpose? Since apktool can't handle Huawei apks
[Android Software Development] iBotPeaches:
zzos is about 6 years old so probably doesn't work, but another alternative. It only decodes resources, so no true "apktool" support.

smali/baksmali are the tools used for source disassembly. The resources are the issue with Huawei so this will work

JEB is a pretty powerful tool, but carries an expensive price tag (I think 90-120/month)

AAPT is an AOSP tool for building/dumping resource tables. Probably won't work for Huawei, unless you have their "flavor" of it.

Most other popular tools just use apktool internally. Best of luck.
[Android Software Development] toknitup420:
I didn't edit anything. It's stock systemui.

Fix the .9? I didn't mod anything. I was just trying to recompile Bone stock system ui to see if it was playing nice.
[Android Software Development] Tulsadiver:
unfortunately, that is the least of the problems. It is the Kotlin issue #1520 still plagues Android O even on the 2.2.4 update. The attr is still out of order and not first in line in Public ID's. It is the same with the Nexus 5X Android O as well. After the .9png is fixed, the infamous Attr error is next.

Edit:. I noticed that the AndroidManifest when decompiled was missing platformBuildVersionCode and platformBuildVersionName. I put both of those in as "26" and 8.0.0 and it recompiled. I'm not on Android O myself so I can't test to see if it will install.
[Android Software Development] zelendel:
I never said you did do anything. It wouldn't be the first time Google botched things.

But if what was said is true then there are other issues. Can't say for sure as I have not switched over to the the new system nor do I plan on it.
[Android Software Development] e-cl:
Thank you sir.

Yes, smali/backsmali works without problem. What would make me happy if i could at least make app debuggable, thus add attribute debugguble to androidmanifest.xml. Apktool decodes androidmanifest, but how to encode it back to put inside apk? By the way jeb can't handle them either.
[Android Software Development] iBotPeaches:
There are 9 patch images that may have built correctly during the original application, but cannot with the more restrictive aapt binary present now. It is also possible in rare situations that Apktool decoded the image improperly leading to that issue. However, after 2.2.3 we increased our test suite with 9 patch images by nearly 3 times so I feel pretty confident with that feature. Sometimes (In the case of a recent OEM), images are PNGs but saved with JPG extension or something strange like that which leads to these errors.

Apktool is not selective. It has to decode all resource or none - there is currently no support to selectively just decode 1 file. Sorry to hear JEB can't handle them either, it proves that OEMs modifying the resource table makes decoding quite nasty unless you have an affected device and lots of time to reverse engineer the changes to the resource table. Even then, assuming you did, what if the OEM used the next available ID in the resource qualifiers table?

For visualization, imagine that Android O added "Rainbow" mode and it was assigned the next available ID of 9. This is a color combo grouped together with other qualifiers in that category. If a random OEM used the next available ID (9) but corresponded to some other feature like "Striped" mode, then we introduced a problem in Apktool by patching it for the OEM. This new AOSP release began coming out and Apktool thinks ID 9 is "Striped" because we programmed it for that OEM. However, AOSP is out with "Rainbow" mode at ID 9. In order for that OEM to update, they move their property to 10 in order to merge cleanly with next AOSP update. I think you can see the problems we hit with this model of thinking.

MIUI took a different idea, which is why their code is still in Apktool. They started their IDs with some extreme padding. So there UI Qualifier mode called "Godzilla" (no joke) is +8 away from the last AOSP config (UI_MODE_TYPE_WATCH). So until Android releases 8 more UI_MODEs they will not clash. They additionally did not add a new category (like cough Huawei), they simply added values to existing categories.
[Android Software Development] e-cl:
I see. But the funny thing is Apktool before it throws NullPointerException does decode androidmanifest.xml along with some xml's in drawable folder and empty attrs.xml in values folder. So there you have it, but if only there was a way to encode it back.
[Android Software Development] ale5000:
I get this:

S: Could not decode file, replacing by FALSE value

more than 100 times on this file.

How can it be fixed?
[Android Software Development] JT1510365:
Thanks so much for your hard work:)
[Android Software Development] Rootk1t:
Thanks for an update.

Please edit headline of the thread, as now it shows "[UTIL][Jun 13 2017] Apktool v2.2.3".
[Android Software Development] iBotPeaches:
I updated the title when I updated the original post, as can be shown from this image from my point of view:

So no idea why it isn't updated yet.
[Android Software Development] ale5000:
Since the first is a special post, I suggest to never edit the post directly but use the "Edit Project" button (in case it is a project).
[Android Software Development] inimaitimepass:
Android O DP4 SystemUI

Friends, Is it still not possible to decompile/compile Android O's SystemUI apk? I tried it when DP2 was released and it failed.

Wanted to try DP4 now, hence the question!!
[Android Software Development] toknitup420:
I tried with apktool 2.2.5 the other day. It decompiled ok but it doesn't compile.
[Android Software Development] inimaitimepass:
Thanks for the info mate!

In that case, would repacking the original apk with the modded files, without compiling work?

I intend to change navbar height, navbar icons size, enable navbar tuner and add a toggle to disable to brightness slider.
[Android Software Development] toknitup420:
I believe you have to decompile and recompile in order to make those edits.
[Android Software Development] zelendel:
As stated above. No this will not work. You can not add an uncompiled file to a compiled apk and have it work.

Now that I read your post again. The issue you maybe facing is that Google new system ui is not open Sourced anymore so it maybe compiled against a different framework that is not included.
[Android Software Development] inimaitimepass:
Looks like O's gonna be a bummer! :(
[Android Software Development] Ticklefish:
Does apktool only output in English? If somebody installs a framework, for example, and their system is set to French or whatever is the result in French (or whatever) or English?
[Android Software Development] iBotPeaches:
English only. I don't have any translated output strings.
[Android Software Development] Phone_Guru:
I just upgraded my java to the latest 144 build of java8 and now I get an error message that I need 1.7 never had this with the previous version of java 8. Any ideas?
[Android Software Development] iBotPeaches:
I have Java 8 on Mac/Win/Unix so going to need more information than that.
[Android Software Development] Phone_Guru:
I'm running windows 10 64-bit. What else do you need to know?
[Android Software Development] Ibuprophen:
Personally, I always keep the following (important items) up to date when using any Windows Software that requires the apktool.jar...

1) The apktool.jar - currently @ v2.2.4

2) The Java Development Kit (aka the JDK) - currently @ v8u144

3) The Java Runtime Environment (aka the JRE) - currently @ 8u144

4) Notepad++ - currently @ v7.4.2

(an excellent editor with addons for xml and a bunch of others)

I just wanted to let you know in hopes that it'll help any of you out... :) .

Thanks!

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Software Development] ZeuBug:
Thanks, I did that!

I'm trying to decompile framework-res.apk from Huawei P10 7.0 rom with apktool 2.2.4, but the framework-res folder is empty after "apktool_2.2.4.jar d framework-res.apk"

Strange, because I have no problem with another apks...

Maybe someone could help me? thanks! :)

PS: before that, I did "apktool_2.2.4.jar if framework-res.apk", "apktool_2.2.4.jar if framework-res-hwext.apk" and "apktool_2.2.4.jar if SystemUI.apk.apk"
[Android Software Development] Ticklefish:
Apktool isn't compatible with Huawei files, sorry. They construct their APK's in an unusual way and keep that way a secret. A pain, I know. :(
[Android Software Development] ZeuBug:
A pain, that's it! :D:D:D

I will buy oneplus 5, it will remind me of those old years, when we could change everything inside our dear phones :highfive:
[Android Software Development] ale5000:
[MENTION=3924617]iBotPeaches[/MENTION]: Hi, any news about this?
[Android Software Development] Ticklefish:
What are you trying to decompile? What sort of device did it come from? What version of Android?

You need to provide more information if you want an answer.
[Android Software Development] Ibuprophen:
Please correct me if I'm wrong [MENTION=3924617]iBotPeaches[/MENTION]...

Isn't this thread specific to apktool.jar and not the software/app that it's used in?

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Software Development] ale5000:
Hi, if you click on the link you can see that it is the file that I'm trying to decompile (framework-res.apk).

Samsung Galaxy Grand 2 SM-G7102

Stock Android 4.4.2
[Android Software Development] Ibuprophen:
Are you referring to the use of the Apktool App?

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Software Development] ale5000:
Obviously, this is the apktool thread.
[Android Software Development] toknitup420:
This is the apktool thread. It's not just for the jar file.
[Android Software Development] 1droidmod:
Hey!! these guys here do not like the apktool app. It's a waste of time. It's problematic. This is not the thread for it. just letting you know in case nobody else has been polite enough to tell you. you look back far enough and somebody else told me the same thing, LOL.
[Android Software Development] Ibuprophen:
Exactly! :)

The following looks like it's for the Apktool App:

http://xdaforums.com/showthread.php?t=2359240

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!
[Android Software Development] ale5000:
Apktool jar is the only "apktool app" that I know and the only one that make sense talking here.
[Android Software Development] iBotPeaches:
I have no idea what anyone is talking about. This is called "Apktool". There is no app at the end or anything. Applications that use apktool internally, I prefer support stays with them, as in the past Applications worked around bugs by decoding with a certain version and building with another. This makes bug reports for me that without that information near impossible to replicate. So to make my lives easier anything that directly talks to "apktool.jar" is preferred solely for bug report sanity.

[MENTION=5627087]ale5000[/MENTION] no news.
[Android Software Development] djdarkknight96:
This!
[Android Software Development] iBotPeaches:
Android Oreo is out! Yes things will be broken. Sadly the details Apktool requires were not present in the preview builds. I've detailed all the changes in this ticket and will update it as I solve the issues - https://github.com/iBotPeaches/Apktool/issues/1594

2.2.5 will quickly follow after these issues are confirmed fixed. No need to alert me of anything not working, I'm well aware :)
[Android Software Development] :
They are probably referring to https://www.xda-developers.com/decompile-and-modify-apks-on-the-go-with-apktool-for-android/

Which is for phone
[Android Software Development] churchmice:
Well, tried to decompile the SettingsGoogle.apk after installing the res-framework.apk, found no smali inside the decompiled results.

I am using 2.2.4
[Android Software Development] Ibuprophen:
The following thread does extremely well with backsmali and is very easy to update the Apktool version.

http://xdaforums.com/showthread.php?t=3333960

Good Luck!

~~~~~~~~~~~~~~~

I Am The Egg Man,

They Are The Egg Men.

I Am The Walrus!

Coo Coo Cachoo!

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Android Software Development] churchmice:
Thanks, definitely will give it a try.
[Android Software Development] iBotPeaches:
Quick announcement. For those using a 32 bit environments, 2.2.4 is your last build. I am sorry to report that SDK Tools are no longer producing 32 bit binaries, only 64 - https://issuetracker.google.com/issues/37074522

This means that 2.2.5 (or probably 2.3.0) will drop all 32 bit binaries and quit out if detected on a 32 bit system. Apktool only requires SDK Tools during build, so we will only check for architecture during build, so you will be free to use 32 bit for only decode operations.

I did attempt to override this using 32 bit flags in AOSP and they were ignored and still produced a 64 bit binary. It is not worth my time to investigate how many changes are required to keep 32 bit support. I will update all docs, internal and not to reflect this change of support. Due to breaking 32 bit systems, this will probably become the 2.3.0 release. If you are still on 32 bit, I'd apologize but also ask you to upgrade. It is 2017 :)
[Android Software Development] magicio:
this will help to fix some issues :)
[Android Software Development] churchmice:
Could not wait for the new version to release
[Android Software Development] Locke706:
hey can someone help me out. i've been trying to port the google pixel navbar to my lg stylo 2 plus running lineage os 7.1.2. i used the guide here: https://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/ . I get to step 2.6 where i have to recomplie the app but its giving error and i cant figure out why.

PS C:\Users\JS\Downloads\apktool> java -jar apktool.jar b SystemUI -c
I: Using Apktool 2.2.4
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2139: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.
W:
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2140: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.
W:
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2145: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.
W:
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2155: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.
W:
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2258: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Material.Light.CompoundButton'.
W:
W: C:\Users\JS\Downloads\apktool\SystemUI\res\values\styles.xml:2365: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Material.Light.CompoundButton'.
[Android Software Development] CosmicDan:
The apk goes in the "dist" folder. Do you have UAC enabled? Sounds like a Windows issue if you have no errors, works fine for me.

Edit: Put the aapt binary in your path! Its in the first post *facepalm*

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] raziel23x:
I am doing nothing but testing decompile recompile of random APK files
[Android Software Development] cowsquad:
Use this one page 39 http://xdaforums.com/showthread.php?t=1755243

I am using it on miuiv4 without issues
[Android Software Development] manoranjan2050:
how TO Fix This Error ............. i'm try to decompile my setting.apk but error is

I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Users\JAGANNATH\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.

i also try apktool 1.3.1 but same error ..... please any one help me.......
[Android Software Development] Jonny:
Try apktool v1.5.0 with aapt in OP, also is that a htc apk? if yes you need to install com.htc.resources.apk
[Android Software Development] manoranjan2050:
Problem Fixed After Install twframework-res framework-res ....... Thanks Friend........
[Android Software Development] zelendel:
Here is an odd issue I came across today while Modding the gmail apk as long as I don't touch the values folder all is fine. If I make any changes a f recompile this is what I get. Notice the undo bar
[Android Software Development] iBotPeaches:
As in the tags <b>, </b> aren't parsed anymore? Will look into that.
[Android Software Development] zelendel:
Yeah. Been testing it out all morning to make sure it was not one of my edits. Redid each and every edit one by one (including all icon edits) and as soon as made the first edit to an XML in the values folder, no more parsing.

Thanks

Have not seen it on any other apks. This has been the only one so maybe it is more a gmail issue then your tool.

Edit for crappy key board lol
[Android Software Development] iBotPeaches:
Gonna build a test little app that just has a bolded Toast message, because I'm not entirely sure how it stores it in the XML prior to decompile. We know after the fact apktool treats it as <b> and </b>, but it could be <strong> or a billion ways to express bolded text.
[Android Software Development] steal25:
Sorry to dig up old post but i think this is a great idea to have the ability to output to a .txt file. Thanks again for all the hard work.
[Android Software Development] varun.chitre15:
+1
[Android Software Development] Megalith27:
Can someone, please, recompile framework-res.apk for me if I attached zipped folder?

As I can only decompile and recompilation doesn't seem to work for me.

Many thanks in advance

Edit: I'll put it in here anyways, may be there are some volenteers willing to help
[Android Software Development] iBotPeaches:
You can do that via bash on linux, mac or cgywin with just >> file.txt

That seems efficient to me.

Sent from my SGS3 AT&T Variant
[Android Software Development] michfood:
iBotPeaches

about my framework-res and aapt crash - solved!

in public.xml was not correctly signed id for some strings.

changing it - solve the problem.

I suppose any UNgood man has compiled it in some mode without verifications.
[Android Software Development] iBotPeaches:
Can you explain that more? Before and after public.xml?

I want to see if fixable at apktool level.

Sent from my SGS3 AT&T Variant
[Android Software Development] michfood:
here you are:

framework-res\res\values\public.xml

<public type="menu" name="webview_copy" id="0x01150000" />

<public type="menu" name="webview_find" id="0x01150001" />

4 instead of 5 - this is a key.

how can we find it? - don`t ask me please - I don`t know - it`s not my desert.

maybe just luckiness