yashsingh1/xdaforums huggingface dataset:
[Android Software Development] mori17:
hello all.

i have issued ( could not exec) its famous issue I thing :)

but when I decompile with -r parameter its works and I can build or recompile(// apktool b) it. But when I decompile it with apktool d without -r it creates some values file in res folder and it didn't let me build it again I need to change some strings in values.

when I use -r parameters its create one file called resources.arsc if I can modify this arsc file I can chnage values or strings I don't know how to do this.

anyone can help me with this?
[Android Software Development] Ticklefish:
That depends on what you're doing when you decompile and recompile.

I've made two files for you to try. "One.apk" was made without decompiling the classes.dex file and was signed with a new key. "Two.apk" was made with decompiling the classes.dex file and was also signed with a new key.

If they install and run, or if only one installs and runs, or if neither install and run, then that gives you an idea of what you need to do.

Using the "-r" option prevents the resources.arsc file from being decompiled, which can be handy if you're not changing any of the information contained within it.

If you do want to change that information, you have to omit that option. If recompiling then gives you an error, you'll need to look at that error and see what you need to do to fix it.
[Android Software Development] Tagdu17:
Hi !

Thx for your answer man, I'll try as you told me asap !

I'm just confused about one point : my framework-res is a Pie version and I thought, until now, that first APKtool version to support Pie was v2.3.2...

So is there any problem using APKtool v2.2.4 to decompile and recompile a Pie apk ?

Thx in advance for your answer !
[Android Software Development] Ticklefish:
That's a good point. I spotted that solution in a github post from June by [MENTION=8020437]RaiZProduction[/MENTION] here: https://github.com/iBotPeaches/Apktool/issues/2104

"So I thought apktool 2.4.0 was buggy, and I tried with apktool 2.3.2 but same results (as you can see). So I then tested with apktool 2.2.4 and this time , dummy values weren't located at the same place, but still there. BBUUTT apktool 2.2.4 managed somehow to recompile it."

There's no problem trying any version of apktool on any APK. If it doesn't work, you'll get an error message and that's all. But, if it does work, then it's a good thing.

If you're still having problems, it may be worth commenting on this github issue to try to get it resolved.
[Android Software Development] titan-computer:
None of these are installed.

Error in parse package.

Android 9 havoc os 2.9 hlte.

Does sign related to run or don't run app?

Because my compiling were install but didn't run.

P.S : i've use apk easy tool with apktool 2.4
[Android Software Development] Raiz:
To make the output more explicit, please add the argument --use-aapt2 to your original command.

The output may be cleaner after that.

E.g:

java -jar apktool.jar b --use-aapt2 test.apk
[Android Software Development] Ticklefish:
I can't help with this, sorry. I've no idea how APK Easy Tool processes its files.

Try using apktool on its own. If you still can't get your recompiled APK to install then post in here and make sure to include a FULL description of your decompile and recompile process.

Be aware that the files protected by ProGuard may be stopping your APK from recompiling anyway, which will mean that's not much you can do about it.

If you're using APK Easy Tool, you need to post on the APK Easy Tool thread for help.
[Android Software Development] mori17:
after 1 week working on solving this mi fit errors, I give up :(

I think I need your experience to solve it. (who have EXP and knowledge)

its decompile well without issue but if you want to build it again its gave errors like what I said before on this page.

using --use-aapt2 helped me to know the errors and also its just work on 2.3.4.

but honestly, I didn't know how can I solve them. because I just need to add some values to the splash screen. but it has a real problem with res files especial res/values

see the errors:

I: Building resources...
W: D:\unpack\apk\test1\res\values\plurals.xml:400: error: invalid value for type 'plurals'. Expected a reference.
W: D:\unpack\apk\test1\res\values\public.xml:3630: error: resource 'drawable/$avd_hide_password__0' has invalid entry name '$avd_hide_password__0'. Invalid character '$avd_hide_password__0'.
W: D:\unpack\apk\test1\res\values\public.xml:3631: error: resource 'drawable/$avd_hide_password__1' has invalid entry name '$avd_hide_password__1'. Invalid character '$avd_hide_password__1'.
W: D:\unpack\apk\test1\res\values\public.xml:3632: error: resource 'drawable/$avd_hide_password__2' has invalid entry name '$avd_hide_password__2'. Invalid character '$avd_hide_password__2'.
W: D:\unpack\apk\test1\res\values\public.xml:3633: error: resource 'drawable/$avd_show_password__0' has invalid entry name '$avd_show_password__0'. Invalid character '$avd_show_password__0'.
W: D:\unpack\apk\test1\res\values\public.xml:3634: error: resource 'drawable/$avd_show_password__1' has invalid entry name '$avd_show_password__1'. Invalid character '$avd_show_password__1'.
W: D:\unpack\apk\test1\res\values\public.xml:3635: error: resource 'drawable/$avd_show_password__2' has invalid entry name '$avd_show_password__2'. Invalid character '$avd_show_password__2'.
W: D:\unpack\apk\test1\res\values\public.xml:5212: error: resource 'drawable/$ft_ic_no_media_holder__0' has invalid entry name '$ft_ic_no_media_holder__0'. Invalid character '$ft_ic_no_media_holder__0'.
W: D:\unpack\apk\test1\res\values\public.xml:5213: error: resource 'drawable/$ft_ic_no_media_holder__1' has invalid entry name '$ft_ic_no_media_holder__1'. Invalid character '$ft_ic_no_media_holder__1'.
W: D:\unpack\apk\test1\res\values\public.xml:5214: error: resource 'drawable/$ft_ic_no_media_holder__2' has invalid entry name '$ft_ic_no_media_holder__2'. Invalid character '$ft_ic_no_media_holder__2'.
W: D:\unpack\apk\test1\res\values\public.xml:5215: error: resource 'drawable/$ft_ic_no_media_holder__3' has invalid entry name '$ft_ic_no_media_holder__3'. Invalid character '$ft_ic_no_media_holder__3'.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mori\AppData\Local\Temp\brut_util_Jar_3670991354767652834.tmp, compile, --dir, D:\unpack\apk\test1\res, --legacy, -o, D:\unpack\apk\test1\build\resources.zip]

and if you dont know how can I solve it at least help me to find website or telegram group that I can improve my reverse engineering skills(moding).

or if i dont want to compile res files {apktool d -r} is there any way to add string values to splash screen?
[Android Software Development] djdarkknight96:
This is showing the xml names aren't building because the $ symbols in their names. It's an aapt thing nothing your can do to fix it. Would need to rename them all without symbols and change all resources using the original with symbols to the renamed files might work.
[Android Software Development] mori17:
tnx but renaming or changing just 1 value cause app crash or failed to install.

I just decompile it and suddenly build it again but it still gives errors.

I don't know how other people such as magical unicorn can mod this app I also decompile his app it gives the same error.

can he use another way? I know just apktool as a powerful decompiler. and I don't know any other way to mod apps or change values and strings of apps.

I'm working on a mi-fit app.you can also see magical unicorn moded apk of mi fit its works without issue and it changed many strings and app classes.
[Android Software Development] Ticklefish:
Mi Fit is made by Xiaomi, isn't it? Their MIUI roms are difficult to modify with apktool because the files are constructed in a non-standard way. It's possible that is what's going on here.

Maybe this magical unicorn person uses a custom version of apktool to do these mods. You could always try asking them - most modders are happy to share their tricks and techniques.

Have you tried the "--no-assets" option while decompiling? I'm not saying it will definitely help but it might be worth trying.
[Android Software Development] mori17:
tnx sir.i tried using apktool d --no-assets but it was the same.

I will talk to modder if he can tell how he did that job.

appreciate all your help :o ;) :good:

***edited :

Wow i decompiled with 2.4.0 and build it again with 2.3.4 it's totally worked it gives the same error but it's build apk file like miracle ?

After signed apk i lost Google login, mi account login, Google map API.

Is it normal? Apk file should be 91MB mine is 73MB?

Still I'm so happy ?
[Android Software Development] alimooghashang:
How did you solve it?
[Android Software Development] ALYSKY:
I have this error

'apktool' is not recognized as an internal or external command, operable program or batch file.

How to fix it? What environment variable to copy? Enter? What?? The installation process is not explain. I don't know what to do to install it. Help me
[Android Software Development] Spannaa:
There's a link to Help? FAQ? Wiki? in post #1

Follow this and you'll find everything you need including installation instructions.
[Android Software Development] joeherlev:
APK not working on Android 10 ?

I have an APK for my EARPODS that makes popup like apple Airpods app.. But after phone is updated to Android 10, this app will no longer start up,,

Can anyone help please ?

LINK TO APP: https://drive.google.com/open?id=18aJmd5btYVEYYL-E52Vo4-Sc25CT_owj
[Android Software Development] djdarkknight96:
Wait for the app dev to update maybe? Can't just add new OS support without building with it from original source.
[Android Software Development] iBotPeaches:
A new version has been released!

v2.4.1 (Released November 29th, 2019)

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

md5 - 8afe0ea0336139fd57eb504433d602e6

sha256 - bdeb66211d1dc1c71f138003ce35f6d0cd19af6f8de7ffbdd5b118d02d825a52

Details of Release: https://connortumbleson.com/2019/11/29/apktool-v2-4-1-released/
[Android Software Development] DragonFire1024:
You are a true genius. I have had the longest time trying to decompile and recompile APK from nougat, and this release works perfectly. I am using Linux Ubuntu 16, and have had to use a much older version up until now, and even then it was 50/50. Now I am able to help alleviate some of the stress for the developer for the custom rom for my device by helping to fix some of the smaller things that don't work when porting or creating a new ROM for a new device.
[Android Software Development] [] AL []:
yo! thanks for the update; much appreciated.

Now I did try 2.4.1 on Windows 8 with a couple famework_res.apk files of Oxygen OS, but it seems that I can't even get it loaded.

Getting: "Unsupported major.minor version 52.0"

Will go and re_read the last few pages here but puzzled...
[Android Software Development] Spannaa:
Are you using JRE 1.8 and is the same version set in your path environment variable?
[Android Software Development] [] AL []:
No I believe I'm still on 1.7 Java due to SSD being completely full and unable to accommodate the update.

Good news is that new SSD should get here today: so once the cloning done, I'll give this a shot. Thanks.
[Android Software Development] Spannaa:
Hopefully it'll fix your issue - Java 8 (JRE 1.8) is listed under requirements on the apktool github
[Android Software Development] manish11165:
ApkTool-X support android 10 ?
[Android Software Development] Eleo:
This is not thread for apktool x app support
[Android Software Development] ilie25:
I decompiled an application with Apk Tool and can't recompile it after I modified XML. Please help me. I attach the lynx to the file with the error that gives it. Thanks.

https://drive.google.com/file/d/1_6t-JGkjqFSOHlCkkcgZ0HFe2SFNCFQL/view?usp=drivesdk
[Android Software Development] Ticklefish:
This is your error:

27.01.2020 10:35:38
Decompiling APK file...

/c "java -Xmx1024m -jar "C:\Program Files (x86)\APK Easy Tool\Apktool\apktool.jar" d -f -o "C:\Users\Hp\Desktop\New folder\driver-9.13.3" "C:\Users\Hp\Desktop\driver-9.13.3.apk""

I: Using Apktool 2.0.0-RC4 on driver-9.13.3.apk
I: Loading resource table...
W: Config flags size > 38. Exceeding bytes: 0x746E000000000000000000000000000000000000000000000000.
W: Invalid config flags detected. Dropping resources: array-sr-ERR0
W: Config flags size > 38. Exceeding bytes: 0x746E000000000000000000000000000000000000000000000000.
W: Invalid config flags detected. Dropping resources: plurals-sr-ERR1
W: Config flags size > 38. Exceeding bytes: 0x746E000000000000000000000000000000000000000000000000.
W: Invalid config flags detected. Dropping resources: string-sr-ERR2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Hp\apktool\framework\1.apk
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.value.ResStringValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:36)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:134)
at brut.androlib.res.AndrolibResources.decodeManifestWithResources(AndrolibResources.java:294)
at brut.androlib.Androlib.decodeManifestWithResources(Androlib.java:138)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

According to the command you used, this is a decompiling error not a recompiling one.

Also, it's worth using the latest version of apktool. You're using a version that came out nearly five years ago...
[Android Software Development] Tyakrish:
I am to port an app from my oem Android 10 ROM. Hope it works...
[Android Software Development] anasgue:
hello everybody

i have a probleme in advanded apktool i can decompile app but i can't recompile them even if i didn't change anything

the errer :

brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515)
[Android Software Development] Thebear j koss:
Wrong thread. Also the right thread would need full exported log.

Sent from my OnePlus 7T using Thebear Blue XDA Labs
[Android Software Development] anasgue:
i ve tried many apps none of them has recompiled

Log For : takafa.apk

Log Type : Recompiling

Log Recorded At : 03 2020-02- 15:48:15,93

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515): [C:\Users\HP\AppData\Local\Temp\brut_util_Jar_6390821351613121322.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 27, --version-code, 7, --version-name, 4.0, --no-version-vectors, -F, C:\Users\HP\AppData\Local\Temp\APKTOOL2789655202722703901.tmp, -e, C:\Users\HP\AppData\Local\Temp\APKTOOL6492914979559000117.tmp, -0, arsc, -I, C:\Users\HP\Desktop\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\HP\Desktop\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\takafa.apk\res, -M, C:\Users\HP\Desktop\Advanced+ApkTool+v4.1.0+By+BDFreak\AdvancedApkTool\3-Out\takafa.apk\AndroidManifest.xml]
[Android Software Development] Spannaa:
You should ask this in the Advanced Apktool thread - this thread is for the latest standalone version of apktool.
[Android Software Development] levone1:
Been gone from Android for a while, and just came back to find dongfangxinlei's GitHub showing 404, and no trace of the files anywhere else I've found. It was mentioned in the Apktool docs that 2.4 would enable some degree of working on Android, thanks to him. Any info?
[Android Software Development] Thebear j koss:
2.4.1 has been released, look back a page or so to see changes in ibotpeaches post.

Sent from my OnePlus 7T using Thebear Blue XDA Labs
[Android Software Development] levone1:
Thanks. I did see that, but didn't see the info I was looking for. Release notes from 2.34 say,

"The next release of Apktool will be 2.4.0, packing an interesting feature with official support for certain Android devices. Thanks to dongfangxunlei for leading this effort."

How does that work? Which devices? Etc.

Also, I was wondering if anyone knows how to contact dongfangxinlei, apart from GitHub. Fortunately, I did save some of his openjdk files, but not working on my current device, and I'm lacking the Openjdk apk...
[Android Software Development] Spannaa:
The release notes for apktool v2.4.0 mention that [MENTION=3924617]iBotPeaches[/MENTION] went back on the decision to include official support for select Android devices and turned down the merge request.
[Android Software Development] levone1:
Thanks - I went from 2.3.4 to 2.4.1 and missed it... Anyway, I found my Openjdk installer apk, but need the arm version of Openjdk files, if anyone has... [MENTION=3924617]iBotPeaches[/MENTION] - any idea how to get hold of dongfangxinlei?
[Android Software Development] Thebear j koss:
https://openjdk.java.net/

Thebear's 1+7T
[Android Software Development] iBotPeaches:
I do not, but that kinda just proves my point more. A highly delicate and breakable feature that relies on so many pieces is something you have to think long term. I basically now think with any feature I add to Apktool, can I support it for 3 years? If I can't, it won't. I can't roll the dice with a feature I can't support myself.

I just don't understand the need to reverse an app from an Android device, unless you don't have a computer, but thats just a personal opinion.
[Android Software Development] levone1:
Thanks - I can't argue with you; it's just personal, since I am rarely at the computer, but I like to mod my apps to my own preference, so it comes in handy... Plus, less typing, etc., with a push-button GUI.

Thanks for your work
[Android Software Development] ilie25:
I tried all the versions of apktool but do not let me recompile.

I tried all the versions of apktool but do not let me recompile.
[Android Software Development] ilie25:
Hy. Can anyone help me modify an apk? The application is called Free Now Driver and is an application to order a taxi (like uber). This application does not work in Multi-Window (Split Screen). I want to use it on my dual screen tablet along with another taxi app. I attach the download link from the application drive and thank you in advance for the help. Please help me to torment me for a long time and I cannot succeed. Thanks .https://drive.google.com/file/d/1kp8LjioLS2r8hmkA0I4MqBPp-wjUj-WM/view?usp=drivesdk
[Android Software Development] ilie25:
Please help me !!!!

I tried again with Apktool 2.3.4, decompiled, modified in AndroidManifest.xml to work in Multi Window mode, then I wanted to Compile but I got an error. I'm attaching the error I received and the apk I want to modify to work in Multi Window. Please help me modify this apk. Thanks.

Please help !!!
[Android Software Development] Ticklefish:
The errors preventing your APK from compliling are all similar to this first one (I've shortened it for clarity):

This is saying that an item in an array in your app that's declared in public.xml (which lists all your images, ID's, array values, ETC) hasn't been defined.

If "CALLOUT_ALPHABETIC_LABELS" doesn't exist in arrays.xml then it's possible it isn't needed and you can delete it from public.xml....or the developer did something that's causing this in which case you're out of luck.

My suggestion is trying to delete these lines from public.xml (do NOT delete the whole file!) and seeing what happens. If the app doesn't work then you could try defining the appropriate parts in arrays.xml and seeing what happens.

If it still doesn't work then there isn't much you can do. Sorry.
[Android Software Development] Swierk:
Hello :)

Can someone could change my preferred Google Play Store version to higher number?

I want to try disable self auto update of my preferred Google Play Store

Sent from OnePlus 7 Pro, OxygenOS 10.0.3, TWRP 3.3.1-75, Magisk 20.3, EdXposed 0.4.6.1 (build 4510), Modded Play Store 16.5.15, android core.java patched and SafetyNet pass OK
[Android Software Development] ilie25:
Don't work !!!

I tried in every way, I did and as you said ... DON'T WORK ... every time I give error in compilation ... I enter, modify, and compile gives me error. Don't you want to try? maybe it goes to you ... and I'm grateful to you .. please. If you want to send your application and see if you can change it to work in multi-window. Thanks

Aplication Link Download :

https://drive.google.com/file/d/1ob09Hn4vKa0DzaPJqSlh-gSrtDlz1pBa/view?usp=drivesdk
[Android Software Development] Pippuzone:
Smali folders

Hi everyone, I'm an apktool user.

I can't understand why decoding some apps I get multiple smali folders (eg: smali, smali_classes2, smali_classes3). Does anyone know the reason? I can't find it in the docs
[Android Software Development] djdarkknight96:
They created multiple classes in the app itself. Not all apps are created the same, I've seen one with 100 class files within the apk and decompile took ages. All normal
[Android Software Development] Pippuzone:
A little bit off-topic but do you know why some app are builded with multiple classes directories? Protection? Or what?
[Android Software Development] djdarkknight96:
Really no idea, most likely the program they used to create the app. Some have more classes from having theme options and some just added more functions..no real reason why just programmed that way creating the apps. Again not all apps built the same.

I used to mod Google apps and they added classes for no reasons just changed libraries added more.
[Android Software Development] firefds:
Multidex applications are created when your app and the libraries it references exceed 65,536 methods.

Once 65,536 methods are included in one dex file, another dex file is created and so on..

https://developer.android.com/studio/build/multidex
[Android Software Development] user2k10:
Deleted
[Android Software Development] AndroidDeveloperLB:
Is it ok to use APKtool within an Android app?

If so, is it possible to provide it an InputStream of the APK, instead of a path?

I want to parse APK files within ZIP files, and the Android framework doesn't have this functionality...
[Android Software Development] Defunkt:
Hello. I freely admit I'm not terribly knowledgeable when it comes to Android (so may be making some incorrect assumptions) but I have some APKs which are essentially tasker scripts (with no UI required). I've managed to change the tasker parameters using APKTool by decompiling with the --no-res flag but ideally I'd like to change the package name and application title. It appears to achieve this I'd need to decompile/recompile AndroidMainfest.xml (i.e. without --no-res) but APKTool doesn't appear to be able to handle some (I presume, deliberately) malformed components. There are a lot of zero-length PNGs (which I think I can work around with --no-crunch) but also a lot of zero-length XML res files which (I think) cause compilation of the manifest to fail with;

error: Error parsing XML: no element found

Seems like a pretty simple way to defeat a mature utility like APKTool. Can anybody suggest a way around this?

EDIT: Nevermind, found a way around it.
[Android Software Development] Athiril:
How do I identify what framework I need? Im trying to decompile the miui camera