yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Ibuprophen:
I believe that one or more of the following issues reported on the Apktool's Github page reflects this opened issue.

https://github.com/iBotPeaches/Apktool/issues/1455

https://github.com/iBotPeaches/Apktool/issues/1471

https://github.com/iBotPeaches/Apktool/issues/1619

I just wanted to let you know about this being looked into by [MENTION=3924617]iBotPeaches[/MENTION].

If I locate an issue, i then, personally, take a quick look at the open issues on Github (which currently has 81 open issues) and i usually find one that matches my own and I add my own findings to support it or, if I don't find one, I just open a new one and provide my findings.

Just a personal recommendation/suggestion for you 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] Ticklefish:
That's really helpful, thanks!
[Android Software Development] djdarkknight96:
Exactly what I did. Good tips!
[Android Software Development] Ticklefish:
[MENTION=3924617]iBotPeaches[/MENTION], this isn't really related to apktool but the thread instead.

Or, more specifically, the thread title. It's still talking about v.2.2.3..

I've recently had issues with changing the title of one of my threads and had to have a mod change it for me. Have you tried that?
[Android Software Development] Ibuprophen:
I know that this question was directed at [MENTION=3924617]iBotPeaches[/MENTION] and I hope that he doesn't mind my chiming in.

A while ago, I had asked a forum Admin, [MENTION=335322]MikeChannon[/MENTION], to see if he could give iBotPeaches a hand with the thread title issues that iBotPeaches was experiencing and Mike was going to help iBotPeaches out via PM.

I believe that the thread title was changed at one time and then, i don't know when but, it reverted back somehow.

I am just assuming that this is known by iBotPeaches but, I've got a feeling that he feels that this is a minor thing as opposed to his work on the development and I'm sure that it will eventually be addressed.

My, personal, opinion/suggestion to iBotPeaches would be to just remove the version information itself from the title if, in fact, he's having this much trouble with the thread title changes.

As great as the xda-developers forum is, it's definitely not perfect and I can attest that the Moderators, Administrators and even the XDA "Geek Squad" Team (I consider as the "behind the screen" heroes) work very hard to accomplish both keeping the forum on the "straight and narrow" as well as the technical work that are being handled "behind the scenes".

I hope that I had answered your question okay via text... :)

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

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] Ticklefish:
It is a relatively minor issue, true. Mike's just changed the title of my thread that I was struggling with. I took out the version number in the end, just to save further confusion.

The xda crew do work very hard and they deserve all the credit they get.
[Android Software Development] MOSB:
APK after compile don't work

Hello

I've been using APKTOOL for quite some time, and I've had a problem with one and only particular apk, I can decompile the APK compile it and sign it successfully but it does not run on the phone or emulator it shows black on the screen can anyone guide me please what sould i do?

APK : dropbox.com/s/z7fys3j97irbvl2/org.h.apk?dl=0
[Android Software Development] Thebear j koss:
Can't sign Google apps, they are controlled by play services and will not work with a different signature. Also you have some broken 9 pngs that may prevent the app from working.
[Android Software Development] iBotPeaches:
I have tried, along with an admin. Something in the entire thread of Apktool is triggering a backend bug, preventing title edits. It is outside my control.
[Android Software Development] V1SH4L:
can you port it to android so that we can use apktool in android phone
[Android Software Development] Ticklefish:
It can't be done, sorry. I don't know the full technical details but it just won't work. Part of the tool is incompatible and it's a part that's essential.

Shame really but there it is.
[Android Software Development] tashev2078:
[edit: RESOLVED I have successfully edited Google Clock 5.2 with Apktool 2.3.0 and made the changes I wanted, despite the error message for "broken pngs". No need for help anymore! Big thanks for the creator of Apktool [MENTION=3924617]iBotPeaches[/MENTION]!!!]

You might be partly right, but I have successfully done:

decompiling,

editing,

recompiling,

signing,

installing and

currently running

the Google Clock 4.3 downloaded from here: https://www.apkmirror.com/apk/googl...ck-4-3-2587269-android-apk-download/download/

I'm using

- Apktool 2.2.1 (https://connortumbleson.com/2016/10/18/apktool-v2-2-1-released/);

- jdk-8u151-windows-i586.exe (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and

- apk-signer-1.8.5.jar (https://shatter-box.com/knowledgebase/android-apk-signing-tool-apk-signer/)

(There is step-by-step explanation how to sign an apk with apk-signer-1.8.5.jar on the website)

Moreover, with apktool 2.2.1 I don't get any error messages for Google Clock 4.3, yet the "broken .pngs" message on version Google Clock 5.2 persist!!!

Here is decompiling:

C:\ProjectNoTomorrow>apktool -version
2.2.1

C:\ProjectNoTomorrow>apktool d com.google.android.deskclock_4.3_(2587269)-430036
04_minAPI19(nodpi)_apkmirror.com.apk
I: Using Apktool 2.2.1 on com.google.android.deskclock_4.3_(2587269)-43003604_mi
nAPI19(nodpi)_apkmirror.com.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Todor\AppData\Local\apktool\framew
ork\1.apk
I: Renamed manifest package found! Replacing com.google.android.deskclock with c
om.android.deskclock
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

C:\ProjectNoTomorrow>

I don't know where exactly the problem comes from with decompiling Google Clock 5.2. Is it the apktool or the apk is not written well?

Still need help!
[Android Software Development] iBotPeaches:
AAPT does not have an official ARM flavor. That is big problem #1. Other problems were the use of JVM7 code, but now that AOSP supports Android 8, that may no longer be a problem.
[Android Software Development] zelendel:
There was already a device version. But it doesnt really work well. Mobile devices just cant handle it. AS much as people want to think their phones are equal to PC, they really arent.
[Android Software Development] Not So Pro:
So is editing Google apps (Gboard in my case) basically impossible? I have a few things I wanted to do to it. I'm able to decompile, edit, recompile, sign, and install but it crashes as soon as I open it. Checking logcat I see "java.lang.SecurityException: Signature check failed for com.google.android.inputmethod.latin". Theres no way around this?

Guessing its hardcoded in the app and changing package name/app label won't do anything?
[Android Software Development] Thebear j koss:
https://xdaforums.com/showthread.php?t=1755243&p=74560508
[Android Software Development] Not So Pro:
That's what I thought but I wanted to double check.
[Android Software Development] Ibuprophen:
It does create a challenge regarding anything Google and especially YouTube as well because YouTube is owned by Google.

They also use their signature for running the apps as well...

So the signature is not only used for installing (though any signature can be used to install) but, the big thing is that the same signature is also used for confirming the authenticity of the app when being launched as well.

Google always finds a way... LMAO! :)

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

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:
You can place YouTube and most Google apps on system with the libs if you and keep original signature and manifest. Use apk tool build files and drop edited only files to untouched apk using 7 zip.
[Android Software Development] ChanceGPM:
Last version of Facebook Messenger 145 is not compileable, but version 144 is.

This is the version that doesn't work from apk-mirror: https://www.apkmirror.com/apk/faceb...145-0-0-25-203-android-apk-download/download/
[Android Software Development] BlacksAngel:
Thank you
[Android Software Development] Thebear j koss:
Using 8.1 framework?
[Android Software Development] edzamber:
[MENTION=3924617]iBotPeaches[/MENTION],

Hi bro,

Any news about metaressources.arsc decoding issue ?

https://github.com/iBotPeaches/Apktool/issues/1471
[Android Software Development] Ibuprophen:
I'm not stating that this thread is the wrong place for these questions but, I've found that posting a new comment, on Github, within the specific issue regarding the status of that issue sometimes gets a quicker response.

Some developers prefer it that way and some don't mind if it's asked in both the thread and Github.

Just an FYI in case you weren't aware of this... :)

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:
Negative. It is a black hole so far.
[Android Software Development] edzamber:
Thanks for your reply bro [emoji4]

Damn Google [emoji35] [emoji35] [emoji35]
[Android Software Development] levone1:
Anybody seen this before -

Exception in thread "main" brut.androlib.AndrolibException: File path does not start with "res/" or "r/":
at brut.androlib.res.data.value.ResFileValue.getStrippedPath(Unknown Source)
...

- I get it when trying to decompile apks that have been previously modified. I have searched this thread and github and didn't see anything about it. I think both times so far it's been within stock Settings.apk, Sony Mm...
[Android Software Development] djdarkknight96:
The issue with modified APK is you have no idea what they injected before signing or even removed. If modified, try stock non modified APK and see if same issue.
[Android Software Development] levone1:
Thanks. It's an apk that I modified. I know what I did to it, but not sure how to figure out what is causing the error, or how to prevent it. I don't think I changed anything with the signature, but that's a good idea. I may have signed it differently, (usually I just copy original META-INF, but sometimes I've used MixSigner just to do a quick pm install test). Does it seem to you that that error has something to do with signature?
[Android Software Development] djdarkknight96:
Well if you modified the original just redo it with the new and original edits. I usually have issues decompiling apps already modified. So I just add to the original edited folder. Then rebuild
[Android Software Development] levone1:
I modded several folders and files in /res, but can't say I remember it all. Anyway, I'm always curious about this stuff, and like to try to figure it out. I'll probably just start from scratch... I did try copying the resources arsc file from modded apk to the original, and got same error, so I guess the error is rooted in resources somewhere...
[Android Software Development] bahuy2003:
This apktool doesn't work for rom miui 9, android 8.0 (xiaomi Mi6)
[Android Software Development] Ticklefish:
That's right, yes. MIUI files are constructed in a different way to standard. They haven't shared what that way is so apktool doesn't know how to take them apart.
[Android Software Development] panatta-sport:
Good day!

Are there any plans to resolve the issue with disassembly GooglePlay and System.ui for Android 8?

sorry for my English :)
[Android Software Development] djdarkknight96:
Read back a few pages bro
[Android Software Development] panatta-sport:
In occasion of GooglePlay it is clear. Probably can forget about its modification.

But I found nothing about System.ui and the file ^ attr-privates.xml. I want to believe that this problem will be solved.
[Android Software Development] djdarkknight96:
I have no issues decompile systemui 8.0 and 8.1 no issue
[Android Software Development] iBotPeaches:
A new version has been released!

v2.3.1 (Released December 26, 2017)

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

md5 - 0641bd864e3d11a2a27f4a835d4147dd

sha256 - 98e65037ab77fe6adb7a0e8cd41cc62a8fed52bf

Details of Release: https://connortumbleson.com/2017/12/26/apktool-v2-3-1-released/
[Android Software Development] adityak1303:
Wow. Thanks a lot for this.
[Android Software Development] panatta-sport:
Dear iBotPeaches!

What need to do to build System.ui?

Error with file ^ attr-privates.xml

Perhaps I do not understand something.

It seems to me that the problem is in the name of this file, in the symbol ^

Here framework-res.apk and SystemUI.apk for Android 8

https://yadi.sk/d/hrlcGqGX3Qmqp7

Help to understand, please!
[Android Software Development] Vlad.Mein:
Smali lib
[Android Software Development] panatta-sport:
что это? типа, краткость - сестра таланта? или просто в разговор встрять?
[Android Software Development] Ticklefish:
If you want help solving an error, you need to say exactly what the error is. Share everything that apktool outputted when you tried to recompile your APK.
[Android Software Development] panatta-sport:
Look here please
[Android Software Development] Ticklefish:
You have nearly 600 undefined symbols in your public.xml and you're missing a style.

.....
W: E:\HDD-OLD\BatchApkTool\bin\..\_INPUT_APK\SystemUI\res\values\public.xml:1208: error: Public symbol ^attr-private/yesNoPreferenceStyle declared here is not defined.
W: E:\HDD-OLD\BatchApkTool\bin\..\_INPUT_APK\SystemUI\res\values\styles.xml:1661: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
.....

Normally when I see a missing style, it's because the correct framework wasn't installed before the APK was decompiled.

I haven't seen that "^attr-private" before but that may just be something that's new to me.

Try again, making sure you use apktool 2.3.1. and you install all the framework files before you decompile. Also, don't use the "Batch Apktool" program you're using as there's a possibility there's an issue with that.

If you're still getting the same issues, let us know exactly what commands you used to install the frameworks and decompile the APK. It's also useful if you can tell us where the APK came from.

Don't give up, we'll find a solution if we can!
[Android Software Development] panatta-sport:
Thank you for the answer!

I tried it in many ways, but the errors are always the same.

It is difficult for me to speak English. Here already discussed this problem.

https://github.com/iBotPeaches/Apktool/issues/1668

Maybe you will understand.
[Android Software Development] kasi5471:
Good evening guys, I have changed my Hardware to SSD with Win 10 and after install all right think to use apktool, shows this message

C:\Users\kasi71\Desktop\apktool>apktool if framework-res.apk

S: WARNING: Could not write to (C:\Users\kasi71\AppData\Local\apktool\framework), using C:\Users\kasi71\AppData\Local\Temp\ instead...

S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable

I: Framework installed to: C:\Users\kasi71\AppData\Local\Temp\1.apk

Could anyone help me out with it?

Thx in advance
[Android Software Development] laura almeida:
Just manually create this folder -> C:\Users\kasi71\AppData\Local\apktool\framework
[Android Software Development] surdu_petru:
Hi!

I can try if yoy send me framework-res.apk not decompiled ! :good:
[Android Software Development] Megalith27:
Do you mean, me to send you apk itself, then you to send me decompiled one, then me to send you decompiled edited one, and then you to send me compiled one?

Cuz, I can decompile, and edit necessary files but I can not compile it back, and that's what I need help with, i.e. the last step
[Android Software Development] surdu_petru:
Hi !

MANY THANKS !!! Your idea saved my life !

( I knew very well that the file public.xml - is auto-generation... but honestly I never thought there would be solving ! )

Good luck ! :good::good::good:
[Android Software Development] raziel23x:
I always delete mine specially when I do a lot of editing to xml and images sexually if in add new images and features such as modifying theme chooser themes
[Android Software Development] surdu_petru:
Yes !

..just I'll try to see if I can decompiled and recompiled ,if Yes then we'll do how do you say ! :good:

..right now I'll make my Custom Rom with 100 battery percentaj (Thanks @raziel23x for your great help !) ...so, I'll try to decompil/compil framework-res.apk for you soon ! Thanks !

@Megalith27 , can you upload framework-res.apk ?
[Android Software Development] Megalith27:
Here it is...thanx very much appreciated

I had to zip it, as apk file itself is around 9 MB which exceed the XDA limit
[Android Software Development] Megalith27:
Anyone? Help is very much appreciated
[Android Software Development] surdu_petru:
Hi !

YES I can compile/recompile your framework-res.apk :laugh:

I send you your framework after decompiled /recopiled, if it work in your Rom, than I can help you to modify - your frameork !:good:

Please copy framework-res.apk in your framework/directore set corect permission and let me know if it work ...
[Android Software Development] Megalith27:
Thanks, it seems to work fine.

I am trying to resolve issue on my end. Meanwhile can you, please, compile framework-res from my previous post?

Thanks again, you seem to save my day :)
[Android Software Development] iBotPeaches:
As of now apktool v1.5.1 doesn't decompile public.xml. Never knew this. Thanks. Will be testing the next couple of days to see if that breaks anything.
[Android Software Development] surdu_petru:
I'll try now ...

YES I can compile your pa_framework-res.apk ... but I need to know what files was modified ! ...otherwise it will recompile without changes !
[Android Software Development] tonyp:
Have you considered to open a dedicated "users" thread where people can seek help from each other before coming to you in here?

I don't know if it's necessary, that's something you have to decide. But I see a couple requests here which shouldn't be here.

Just in case it's starting to annoy you I wanted to throw in the idea -because this thread should be about your tool and not users problems in using it correctly :)
[Android Software Development] surdu_petru:
Thanks ! ...when you can upload it ? :good:
[Android Software Development] Megalith27:
I have modified files in res/values

I seem to have resolved issues on my side, but one question do I need to sign framework-res.apk after I compile it?
[Android Software Development] surdu_petru:
You are absolutely right ! :good:

---------- Post added at 07:24 PM ---------- Previous post was at 07:19 PM ----------

YES , with the same signature of original framework-res.apk
[Android Software Development] Megalith27:
That was an early judgement, as I still wasn't able to recompile it back.

The files that I have changed are is res/values/:

bools.xml

dimens.xml

integers.xml

and that's it

---------- Post added at 10:32 PM ---------- Previous post was at 10:29 PM ----------

Thanks for making me feel like I dont belong here but the idea of developing is also providing the support, and as I am willing to learn and been googling and struggling with this for two days and I am still trying to do it myself.

And no need to play XDA is for Developers card, cuz none of the Devs have learned over night.

But thanks anyway.
[Android Software Development] michfood:
due to our discuss... why during compilation there is an error?

because apktool use old public.xml? but why? if it will be renewed by recompilation?

strange - don`t u mind?
[Android Software Development] surdu_petru:
...dimens.xml was not changed ...seems to be some wrong modified here !

...here it is your framework-res.apk modified , but with stock dimens.xml !

so , please send me PM for any question about your framework-res !!!
[Android Software Development] raziel23x:
Basically three public.xml is a outline of what what was there when the original was compiled it is a file created by aapt if I am correct when compiling any APK file in a sense it is a audit of all that its in the APK file and when you modify a APK file specially if you remove something it screws that audit up this the compile errors out because there its a missing file or something is now mismatched or no longer in its original location
[Android Software Development] gcrutchr:
So I followed the suggestion of deleting public.xml from my SystemUI.apk decompile, then do a compile - IT WORKED! FINALLY the compile was successful!

Now for another problem - what if I want to add an entry to public.xml?

If I delete it, how do I add an entry - say a new ID value or a new DRAWABLE value?
[Android Software Development] kasi5471:
Yes for sure, im a idi... forget this way...OMG. Thy u so much
[Android Software Development] taicracker:
Can someone help me rename the package of the app that I attached below

(Facebook) (com.facebook.katana)

that can change me (Facebook 1) (com.facebook."name")

So I can run 2 Facebook App at the same time but different version.

Thank you very much.

Attached files...

https://drive.google.com/file/d/1wJ5AxtNDtlnn_eWvTlc1M52UAdqzRAWz/view?usp=drivesdk
[Android Software Development] edzamber:
Rename it in apktool.yml then recompil with New signature or option 4 in TMA (7.0+)
[Android Software Development] Ticklefish:
I've been given a curious issue. There's a SystemUI.apk from a Samsung Oreo rom which doesn't compile properly. No errors are given but a lot of folders in the "res" folder don't come across. They all end the same way - there's a "colors" folder as well as a "colors-v21" folder. All the "-vnumber" folders aren't in the decompiled APK.

I've done some Googling but wasn't able to find anything. Any ideas? The files are here if you want to try them out..https://mega.nz/#!O9dmlRbC!jK704xKUU8UaWXH-yAcTElPlpPxrxrLaAaYz5A82oi8
[Android Software Development] shivam44:
Use this for decompiling:

apktool d -f -r apkfilename.apk
[Android Software Development] Ticklefish:
Apktool isn't compatible with MIUI files, sorry.

Oh, and apktool 2.1.3 is the latest version, not 2.0.2..
[Android Software Development] shivam44:
I know the latest version is 2.1.3 and it is

compatible

with MIUI.

ref: Check this...

BTW Happy New Year.
[Android Software Development] Thebear j koss:
The apk builds doesn't it? In the log posted it states it is building apk file in the last line. There are warnings but i don't see any errors
[Android Software Development] Carotix:
+1

the same is for SecSettings and framework-res on Samsung Oreo

thanks my friend for exposing this
[Android Software Development] shivam44:
But the recompiled apk has parsing error.
[Android Software Development] djdarkknight96:
Did you sign it?
[Android Software Development] Ibuprophen:
I've seen parsing errors reflected as a compiled app but, unsigned.

I'm not stating that this is definitely the issue with yours but, try signing the app and see if that takes care of the parsing error.

No guarantees... Just a recommendation/suggestion... :)

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

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] shivam44:
Do we need to sign System App too?

Cuz mine was a SystemApp
[Android Software Development] Thebear j koss:
Is it a system app or a data app? How did you build it? We need a lot more info than what you provided.