yashsingh1/xdaforums huggingface dataset:
[Android Software Development] iBotPeaches:
So apktool has the aapt binary inside of the jar file. This is a platform specific binary, so we have mac/os/windows builds of aapt inside. We also keep them in terms of bit type, so we used to have 32unix, 64unix, 32win, 32mac, 64mac. If you'll notice there was no 64bit Windows.

This is because 64bit Windows wasn't possible to build. It seemed no matter what, setting the 64 bit flag produced a 32 bit binary. This didn't matter though, because Windows 64 bit easily runs 32 bit using some internal emulator. In my tests on Windows (10 Pro 64 bit), this has always worked as-is.

I am on my work mac right now, so unable to run any tests to confirm things for you but when I get in front of a Windows computer, I will run some tests to confirm the bit type of the aapt binary. You shouldn't have to mess with any Program File structure. That is required for DLL placement and registry keys. A simple java application doesn't require that.

It should, just work. If you are experiencing errors all of sudden since 2.3.0, lets take a look at the error itself and see where we can go from there.
[Android Software Development] Ibuprophen:
Thank you very much for your time in explaining this a bit more.

I had "REALLY" been hoping that you had understood what I was trying to get clarified because the statement i had referred to from your post on top of some of the other verbiage used like the following (for example):

"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."

Makes many users believe that, beginning with v2.3.0, the Apktool will not work on x86 Operating Systems.

I'm not trying to contradict or state that your wrong but, the way you had stated it throws certain, less experienced members, in a loop because (in their minds) they produce an image/verbiage (that you're not actually stating) like:

"Beginning with the Apktool v2.3.0, if you have an OS that is x86 (32-bit), it will not work any longer and will only work on the x64 (64-bit) OS..."

I didn't see it in that way and yet I couldn't really grasp the whole picture and additional clarification was really necessary whether on the Forum or within the Changelog.

Now I have a better idea of what you're trying to state and i believe that the real confusion was the reference of the 32-bit and 64-bit cross between the actual OS and the Java Capabilities that wasn't made very clearly.

Anyways... I apologize for my OVERLY explaining this and, as you know already, that certain topics are a challenge to express via text :banghead:

I'm going to get some information together regarding the "Apktool Error" I was receiving.

Please let me know exactly what you're looking for in case i may have missed certain things when gathering the information.

I am very proficient with many Hardware/Software related topics but, i don't know everything about it. Formerly being Microsoft Certified receives a misunderstood idea that I know everything about it when there's area of specialties to it.

Thank you very much!!!

...I am not a fan of Windows 10 either... LMAO! :eek:

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

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] tomurbanowicz:
What are the best and universal frameworks to decompile and compile apk? I used few frameworks but some of them had errors and warnings after compiling.
[Android Software Development] Thebear j koss:
Delete that line in values v26 that defines that icon
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

I propose you to remove from thread title the apktool version number.

The title will be OK for any future release.

You cannot update the title for each new release.

The user cannot made a misunderstanding with title and latest version available (like now...)
[Android Software Development] shankar_vl:
I am flashing the recompiled framework-res.apk through twrp, not manually placing it. However, since it is not properly recompiled, but with the errors like 'string 'global_actions_screenshot_status' has no default translation,

W: warning: string 'reboot_confirm' has no default translation,

W: warning: string 'wfcSpnFormat' has no default translation', it is allowing the device to boot up. I want solution or a work around to circumvent these errors.
[Android Software Development] Ibuprophen:
You may be able to get some assistance with this within the following thread.

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

Good Luck!

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

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] iBotPeaches:
Well seeing how no changes are working, I couldn't really edit it to remove the version number :)

I've asked XDA in a contact form to look into this. I keep updating the title and nothing is working.
[Android Software Development] Ibuprophen:
I had just sent you a PM regarding this...

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

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] Thebear j koss:
Warnings don't mess stuff up, they are just warnings. If you put the changed files from new apk into the original, all should be fine.
[Android Software Development] MishaalRahman:
I'll ask to see what's up with that. By the way, how can we help to get APKTool working with Huawei APKs? Would really, really love to get that working. Am willing to help gathering files, data, testing, etc—whatever is needed.
[Android Software Development] zelendel:
If I recall right the issue was due to their folder structure that doesn't follow aosp guidelines. Miui is another one that had issues and slim needed a custom built binary to work.
[Android Software Development] shankar_vl:
thanks a lot. It worked!!! I was attempting to decompile and recompiling framework-res.apk for changing values in resources file. This time as you said, I replaced the changed resources.arsc file in the original apk instead of replacing META-INF and Android manifest of original apk in the recompiled one as I was doing earlier.

Once again thanks for the much desired help.
[Android Software Development] sharkie405:
Has anyone been able to recompile and use the latest Oreo framework-res and SystemUIGoogle ​ apks for the Pixel XL without issue using 2.3.0?

Neither will work for me. I get either bootloop with framework or "Android is starting" indefinitely with SystemUIGoogle. I've tried building without any changes and get the same result. Swapping out the resource.arsc doesn't work either.

I can try and pull some logs if that's helpful, but I guess I just wanted to know if this known thing with Pixel XL Oreo apks.
[Android Software Development] inimaitimepass:
Blame it on .odex and .vdex!!

I tried hard and eventually gave up. Back to CarbonROM Nougat build.
[Android Software Development] Thebear j koss:
Thank this man who gave the same answer on page 504.
[Android Software Development] Ibuprophen:
[MENTION=3924617]iBotPeaches[/MENTION], I had FINALLY figured out what happened...

It wasn't your Apktool that was giving me the problem. The software's .exe file, that was using the Apktool, had to be set to run as an administrator within the compatibility settings for all.

After that, it cleared up the issue.

I just wanted to bring you up to speed with this.

Thank you very much for your time, patience, understanding, support and ESPECIALLY your developments!

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

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:
I am working on my pixel, but I could not recompile SystemUIGoogle.apk, the following errors will appear :

pip_dismiss_scrim.9.png malformed

W: No marked region found along edge

W: Found along left edge.

Have you deoxded the apk first ?
[Android Software Development] Spannaa:
You don't need to deodex the apk, just fix the malformed .9.png before recompiling it.
[Android Software Development] churchmice:
xxx
[Android Software Development] SKULSHADY:
i'm having the same problem. Can u tell me how to fix it?
[Android Software Development] zelendel:
You were told. Fix the .9 image. You quoted the same post that told you how to fix it:rolleyes:
[Android Software Development] SKULSHADY:
I'm sorry but I don't know how to fix the image
[Android Software Development] zelendel:
Then I would go back and look over some of the amazing tutrorials. fixing a .9 image is very basic and has to happen alot. Depending on the error you got it will tell you where the issue is.

Like in the example

pip_dismiss_scrim.9.png malformed

W: No marked region found along edge

W: Found along left edge.

This tells you what is wrong. So look closely at the log. The error will always tell you exactly where the issue is.
[Android Software Development] SKULSHADY:
Thanks.
[Android Software Development] Tux111:
How i have to open APKtool.jar? i don't understand..
[Android Software Development] Spannaa:
You don't, you run it from a command window.

Documentation ;)
[Android Software Development] FreeTheWeb:
i have apktool.jar and apktool.bat on my windows 7 pc in folder C:\ but when i run the cmd apktool i get ''apktool'' is not recogniozed as a internal or external program.

Can anyone help me out,please.
[Android Software Development] Ticklefish:
You don't need the batch file to run apktool (although there are batch files available you can use..cough..cough..). You only need apktool.jar.

If Windows doesn't recognise it, try prefacing the command with "java -jar". So you'd get "java -jar apktool.jar etc etc".

You can force Windows to recognise Java files in the command window but I don't have the opportunity to tell you how right now.
[Android Software Development] FreeTheWeb:
Well i did managed to have it running, many thanks.
[Android Software Development] A-Moustafa:
When decompiling any apk file in apktool cmd have error .

what should i do for that ?

this is log .

Log Recorded By : Advanced ApkTool v4.1.0

View attachment change.log
[Android Software Development] Spannaa:
Not enough info...

Full log?

Apktool jar version?

Device?

Rom?

Apk?

Frameworks installed?

Also, try using just apktool_2.3.0.jar from post #1 without the Advanced ApkTool v4.1.0 wrapper (which probably uses an outdated version of apktool.jar)
[Android Software Development] djdarkknight96:
Google playstore update isn't decompiling now, I'll get a log but it's a resource issue. No drawables only values. Be back with log. Anyone else with this issue or have successfully decompiled?
[Android Software Development] Phone_Guru:
I have the same issue. Not all of the values decompiled either
[Android Software Development] djdarkknight96:
I'm gonna try 8.1 framework. Might help
[Android Software Development] Phone_Guru:
There's an 8.1?
[Android Software Development] Ibuprophen:
I'm just assuming that [MENTION=2126467]djdarkknight96[/MENTION] intended to state 88.1...

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

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] djdarkknight96:
Android 8.1 dev preview
[Android Software Development] Ibuprophen:
Ahhh... My apologies.

This was why I had specified "assume".

Well it's like the saying goes too... LMAO!

Thank you for the clarification. :)

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

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] Spannaa:
If you'd searched the thread, or read back a couple of pages before posting, you'd know the answer!

Fix the broken .9.pngs...
[Android Software Development] A-Moustafa:
Thank you very much

After use apktool 2.3.0 decompile is done SystemUI.apk

but when Recompile by use java -jar apktool.jar b SystemUI

have error can't Recompile i don't know why

Thanks for help
[Android Software Development] Ibuprophen:
There's a few issues previously submitted within Github regarding this exact/similar problem.

Those issues are still open and, apparently, still being worked on.

Just a heads up in case you weren't aware of it... :)

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

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] TONY6669:
Anyone have any luck with the Playstore

Sent from my SM-N900P using Blue Waffle Tapatalk
[Android Software Development] bovirus:
[MENTION=3924617]iBotPeaches[/MENTION]

I suggested here

https://xdaforums.com/showpost.php?p=73986504&postcount=5067

to remove the version number from title, because in this way you don't need to edit the title everytime then a new version is coming.

Now the current title (v. 2.2.3) didn't reflect the current stable version (2.3.0) and could be the same in the future.

If you remove vesrion number by title is always OK.

- How to change the thread title

You can edit the title directly.

You can go to your first post then click Edit then click "Go Advanced" below the edit box and on the screen that comes up there is an editable thread title box above the edit box.

- Problem about apktool version

I updated the codes from github repository.

I compiled the source under Windows (Windows 7 Professional 64bit).

No errors.

When I run java -jar apktool.jar (apktool.jar just compiled) it reported Apktool 2.2.5.

Is it normal (the latest build should be 2.3.1)?
[Android Software Development] levone1:
Anyone... I'm getting '... First type is not attr...' error, recompiling systemui apk from AOSP-based rom, (8.0). I've read github issue here- https://github.com/iBotPeaches/Apktool/issues/1520 - and I think I understand that it is a work in progress, and needs to be fixed, but it also seems to indicate that there were some commits added to apktool 2.3 that act as a hotfix. Am I reading wrong, or is there a way to get this to work?

Log posted here, if anyone wants - https://pastebin.com/Qk0QPkpa (I know one of the errors is about a bad PNG. I'm just wondering about the other one, [line 5 - 'W: A/ ( 7559): First type is not attr!']).

Thanks

---------- Post added at 10:00 AM ---------- Previous post was at 09:40 AM ----------

Sorry - just saw post 5105 by [MENTION=4828250]Ibuprophen[/MENTION], which I think refers to my issue. Still wonder though - is there any way?
[Android Software Development] Ibuprophen:
[MENTION=3924617]iBotPeaches[/MENTION] has actively been working on the next release as recently as today.

Just be patient... :)

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

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] levone1:
Anyone have insight into this - I modded a contacts apk, and changed mainly parent style references from Material to Holo. Recompile works fine, and when I signed with original manifest and signature, and moved the file to contacts folder in /priv-app, app opened and worked fine, with all of the styles changes active. After reboot, though, app disappeared and doesn't show up in apps list. Also, attempting to install with pm results in parse error.

I've read several pages of posts about this kind of thing, (page 301, et al..), and [MENTION=4315551]Ticklefish[/MENTION] came up with a solution for a specific system app on LP, but not sure how to apply it here, (different app on MM).
[Android Software Development] Ticklefish:
What was the solution I came up with? My memory is a little foggy today
[Android Software Development] levone1:
https://xdaforums.com/showpost.php?p=59845407&postcount=3720

The corresponding line in my file is different, so probably won't work to make the same change...
[Android Software Development] levone1:
Update / notes... I had the thought to use that manifest that APKTOOL created, with the original signature, (instead of deleting the manifest and replacing with the original as I usually do), and result was the same, except that this time, when I used Mix Signer to sign it and attempt to install through package manager, it worked, and installed fine, (I tried the same last time and got same parse error). So now I can use it as a /data app, and it survives reboot, but when I try to open the Phone app, I get fc, with message, "...topcontactsprovider has stopped"...
[Android Software Development] levone1:
Oops - I just noticed that it was actually not you, but [MENTION=1042140]tdunham[/MENTION] - it was in your TMA thread, and I saw the blue letters at the top of the post, so I jumped to a conclusion... Anyway, question still stands for anyone. I'm starting to wonder if it's more of an issue with rom, which is eXistenZ, and heavily modified in smali, etc. It doesn't seem to handle manipulations to well...
[Android Software Development] djdarkknight96:
When you say you used original manifest and signature did you move your edited files to untouched apk. Like move resources.arsc which contains values folders to stock apk. No need to sign just push to system and reboot. Or better yet make zip to flash. Hijack TBO contacts zip if you want.

Edit l: TBO ZIP http://teamblackedout.com/BlackedOut/BlackStockGoogleContacts2.2.3.170208164.zip
[Android Software Development] levone1:
Never tried that way. I'll check it out... Typically I would delete manifest from recompiled apk, then copy manifest and signature from original apk to new apk, then just copy to proper folder and delete existing. After that, force-stopping and relaunching is usually fine, (except for framework-res, which needs reboot). It also works fine in this case, and app opens and works as it should, but for some reason it disappears after reboot, and doesn't show up in 'Apps' list, and the modded apk, which worked fine before reboot, won't work anymore, either by pushing to system or trying to use pm, (parse error). But if I replace original apk, and reboot, it comes right back, and I can switch it out with modded apk and restart app, and the new apk works fine until reboot...
[Android Software Development] djdarkknight96:
Yes we found this method works 100% of the time. No issues. Mostly just to make sure we keep signature and manifest untouched. Even 7 zip can mess up so each test we use fresh apk. Just fyi
[Android Software Development] levone1:
Tried it - same results. Copied resources.arsc from modified-recompiled apk to the original apk, and pushed to system folder, replacing the existing one, and app opened and worked fine, with mods showing as intended. Rebooted, and no Contacts app in app drawer, and not listed in apps list. Folder with modded apk still there in /priv-app...

I'm going to start over with all stock, and test little by little.
[Android Software Development] djdarkknight96:
Try flashing in recovery or see if permissions were not set.
[Android Software Development] Ticklefish:
I was about to suggest flashing in recovery until I saw the above post. I try not to replace system apps while the phone's running - I always flash them. I used to get some strange bugs in my original phone when I replaced framework-res.apk live and I killed a tablet by doing it as well. I replaced the SystemUI.apk live and, from then on, the tablet would wipe the entire data partition every time I turned it on. You can imagine how happy I was about that..

Replacing system apps while the phone's running is a little like replacing your car's gearbox while you're driving it.. ;)
[Android Software Development] djdarkknight96:
Playstore 8.3.75.U

Relevant log data:

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7f1403a5
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020152
I: Renamed manifest package found! Replacing com.android.vending with FFFFFFFFFFFFFFFFFFFFFF

Using APKTOOL 2.3.0 and Framework from 8.1 Dev Preview

[MENTION=3924617]iBotPeaches[/MENTION] I added in the bug tracker to existing issue with maps
[Android Software Development] edzamber:
Same thing with Playstore 8.4.18, and this since 8.3.72. Last working was on 8.3.43.

I tried with framework-res.apk from Nougat TW, AOSP 8.0 and Google Nexus 7.1.1. No luck.

I think we need to wait or find witch Framework-res.apk Google use to compil their apps to be able to decode ressources.arsc properly...
[Android Software Development] djdarkknight96:
Nah same as maps and play services and it's been years those broke.
[Android Software Development] edzamber:
Ok but why for Playstore is it since 8.3.72 then ? Its related with ressources... Or something is now protected by Google to block decoding as for Maps and Google play services as for Maps and Google play services ?
[Android Software Development] djdarkknight96:
There was one before this with same issue, Google changed resources we don't have then reverted back. Who knows what they use for resources. I tried many things on maps and play services with no luck.
[Android Software Development] edzamber:
Damn...
[Android Software Development] edzamber:
Try to install framework-res.apk from aosp 8.0 in apktool and recompil

https://www.mediafire.com/download/58zz5018p1858a6
[Android Software Development] mrpascal:
Aah !! Great Finally it builds without errors , But

The warning still shows up !!

Thanks for your suggestion:cowboy:
[Android Software Development] edzamber:
Warnings are only for strings missing translations, you can ignore theses
[Android Software Development] mrpascal:
Okay , thanks sir but

Where can I find all these framework-res.apk ??

I mean if the app or android is going to update then obviously framework-res will also change

so how can I find all these previous and updated framework-res.apk ??:confused:

Any official website or link for all that frameworks ?

Thanks:o
[Android Software Development] bkores:
You pull it from your device in /system/framework/framework-res.apk
[Android Software Development] edzamber:
Most of recents apps as Hangout, YouTube... are compiled with last AOSP Framework. For now the last official one is 8.0 so you need this framework-res.apk to recompil. You can easily find last aosp framework-res.apk into last aosp Rom. But problem is you need to Decompil AOSP Rom with Assayed Kitchen or SuperR kitchen to extract framework-res.apk from system.dat. If you are Lucky, you will find it in xda under aosp Roms threads.

When official AOSP 8.1 Rom will be out, all New apps will be compiled with AOSP 8.1 framework-res.apk.,and so on...
[Android Software Development] djdarkknight96:
Nice idea

Ask here works too, I usually have one handy to upload if no one else has.
[Android Software Development] edzamber:
Guys,

Google want to kill us !!!

Apktool can't decode assets/metaressources.arsc

Exemple on Playstore

res/values : only strings.xml and public.xml

assets/metaressources.arsc : any other things from values folder (colors.xml, styles.xml, attr.xml and so on).

So until apktool can't decode metaressources.arsc, we will not able to mod anything...

Playstore 8.3.43

Playstore 8.4.18

metaressources.arsc
[Android Software Development] edzamber:
Ok,

Here is my MediaFire Folder with all AOSP framework-res.apk from API 24 to API 27 [emoji14]

https://www.mediafire.com/folder/c5v17ezhhvaaw/Frameworks

Enjoy [emoji4]
[Android Software Development] djdarkknight96:
I think it's known, I seen something about it in the bug tracker.
[Android Software Development] edzamber:
Yes it is, but i made Many tests since 3 lasts days and report here my research and conclusions [emoji4]