yashsingh1/xdaforums huggingface dataset:
[Android Software Development] djdarkknight96:
Hmm parsing errors are usually from trying to install an unsigned app. We need more info to help you bro otherwise we are fishing for your answers.

Parsing error on opening app?

What app, and did you modify manifest? If so why?
[Android Software Development] Carotix:
hi [MENTION=3924617]iBotPeaches[/MENTION],

i hope you can take a look at this when you can ,i think only you can solve it ;)

thanks in advance
[Android Software Development] by190:
whatsapp package name problem

I am changing the name of the Whatsapp package. But I can not install because the application belongs to the same package name while I try to install it.

S7 Edge
[Android Software Development] edzamber:
Change Package name in Apktool.yml file and sign apk with Zipsigner on Playstore (with Personal key option method)
[Android Software Development] by190:
How can I do that. There is no place in the apktool.yml file for package names. If I uninstall the original WhatsApp application, I can install it. When I look at loading, it is installed in other folders. But I could not understand why you were coincidental.

All I want is to be able to upload a second WhatsApp account to the same phone, changing the icon, notification icon and name.
[Android Software Development] Ibuprophen:
What your trying to do is a bit more involved and can be confusing if you've never done it before but, there's still some hope for you.

There's a few apps on the Play Store that can help you do this with the following being just 1 of them...

https://play.google.com/store/apps/details?id=com.applisto.appcloner

Remember to take your time and don't do more than what's needed.

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] by190:
Thank you very much for your reply. I also tried this practice but I did not get results. I could not duplicate the application except for the parallel space.
[Android Software Development] Thebear j koss:
Cannot be done. If this was possible, stealing of applications would be everywhere. There are apps that can do what you are trying to do, but they are apps built from a dev and not just renamed and signed original apps.
[Android Software Development] by190:
Actually, I could do that. But it does not work with the original application. I have to choose one from the other. What are the applications that can do this? Appcloner did not work.

As Gbwhatsapp works, I want to run it with a different name and icons.
[Android Software Development] Ibuprophen:
Have you tried other Cloned style ones like the following?

https://play.google.com/store/apps/details?id=com.sourcecanyon.whatsClone

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

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] by190:
I tried a couple of programs, it did not work.

Can not I do this by editing the apk file?
[Android Software Development] Thebear j koss:
As I stated, you can't modify the original apk to run 2 versions of the same app. Again, it would make stealing of apps much too easy. Plus most apps will not work when signing with a different key, especially apps that use location services and other permissions required to make them work.
[Android Software Development] by190:
WhatsApp plus JiMODs and GBWhatsapp modes can be run at the same time with advanced programming?

With the original Whatsapp JimOds and GbWhatsApp, a total of 3 WhatsApp can work the same. But their icons and names are not what I want.

I'm sorry for my bad english.
[Android Software Development] Thebear j koss:
Because they built those apps from source. They don't just modify the original apk, they use what they can from the originals source code and create a whole new app with a different package name, signing key, app icon, and more important, features.
[Android Software Development] djdarkknight96:
I mean it can be done honestly but I'm not saying how lol
[Android Software Development] by190:
facebook lite, instagram or any other program. but I could not do it at WhatsApp.

a little tip:)
[Android Software Development] Ibuprophen:
I'm not stating that the following is the same for the other members but, I can't really help you since I don't use WhatsApp myself and I can't test out whether or not something will or won't work.

The biggest thing about this is that not all apps can be modified the same way and can, potentially, get very involved. So if someone was to provide you with a start and it doesn't work and/or result in an issue with your device, then i know that I would feel that I had an, unspoken/unwritten, obligation to help you out further and can, potentially, take quite some time.

I performed a quick XDA search and believe that one or more of the following threads may be helpful (they range from guides to apps) specific to WhatsApp and, if needed, you can post your question within one of them for some additional member guidance who is much more familiar with this app.

https://xdaforums.com/showthread.php?t=1471948

https://xdaforums.com/showthread.php?t=3518808

https://xdaforums.com/showthread.php?t=3462440

https://xdaforums.com/showthread.php?t=3282162

https://xdaforums.com/showthread.php?t=3206871

https://xdaforums.com/showthread.php?t=2991258

https://xdaforums.com/showthread.php?t=3478745

I really do wish you the best of 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] narutam:
Hello everyone how are today, recently I am facing a probleme a lot whene I am trying to recompile a framworke file with the latest advanced apktool version I had this probleme

brut_util_Jar_ has stopped working

https://img.xda-cdn.com/l7HGAdatL-2vUIzBGKTxLS-dS0Q=/http%3A%2F%2Fa.up-00.com%2F2017%2F12%2F151459021686641.jpg
[Android Software Development] Thebear j koss:
Wrong thread, need to post this in the thread for advanced apktool that you are using. Also would need a lot more info about the apk you are modding. There are quite a few errors thrown about files or names in wrong format or spelled incorrectly. Would need to address those issues. Try decompiling and recompiling without any changes before doing any modifications. This will eliminate user error.
[Android Software Development] Spannaa:
The log tells you what's wrong (and this has come up a few times - just google pip_dismiss_scrim.9.png and see).

W: ERROR: 9-patch image C:\Users\Chris\Documents\APK Easy Tool\1-Decompiled APKs\SystemUI\res\drawable-xxxhdpi\pip_dismiss_scrim.9.png malformed.

Fix the dodgy .9.png and try compiling again ;)
[Android Software Development] OMJ:
Known issue, has not been fixed yet...

https://github.com/iBotPeaches/Apktool/issues/1668
[Android Software Development] sharkie405:
you can fix it in Android Studio. If you need help, or you just want me to do it for you, post up the PNG image and I'll do it at some point this evening.
[Android Software Development] Thebear j koss:
Or any image editor really. But the 9 patch editor in android studio is the correct way to fix or edit 9 patch pngs.
[Android Software Development] chris-89:
That would be great when you can do this for me. :)

Attached there is the png. Thanks in advance :good:
[Android Software Development] Carotix:
hi ,

put this png in the systemui decompiled then recompile

png decompiled
[Android Software Development] chris-89:
Thank you very much :good: :victory:
[Android Software Development] skorpi0x:
I am trying it with Google Music but doesn't work, the app starts but gave me a "server error". Anybode knows this issue?
[Android Software Development] Thebear j koss:
Need to build keeping original signature and flash to system. Can't sign google apps.
[Android Software Development] skorpi0x:
Thanks mate! That make sense, at first I thought it might be because of the name of the package. Can I extract the signature from the original package? Or what do you recommend me?
[Android Software Development] Thebear j koss:
You can build using apktool with keep original signature. Or what I prefer to do is using 7 zip drag only what you changed into original apk. Example if you changed colors.xml drag resources.arc from new apk into original apk. Then flash or push to system.
[Android Software Development] skorpi0x:
I will try it, thanks for the help!
[Android Software Development] Zulfi:
Decmpile OPSystemUI(Oreo 8.0) successfully but after edited system_icon.xml and put smali in policy folder trying to recompile faild with error

Error pip_dismiss_scrim.9.png malformed.

Full Log

W: ERROR: 9-patch image C:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png malformed.

W: No marked region found along edge.

W: Found along left edge.

W: ERROR: Failure processing PNG image E:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\res\drawable-xxhdpi\pip_dismiss_scrim.9.png

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\8523~1\AppData\Local\Temp\brut_util_Jar_6815133651981008170.tmp, p, --forced-package-id, 127, --min-sdk-version, O, --target-sdk-version, O, --version-code, 25, --version-name, O, --no-version-vectors, -F, C:\Users\8523~1\AppData\Local\Temp\APKTOOL1879548677653248317.tmp, -0, arsc, -0, arsc, -I, C:\Users\Александр\AppData\Local\apktool\framework\1.apk, -S, E:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\res, -M, E:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\AndroidManifest.xml]

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

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

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\8523~1\AppData\Local\Temp\brut_util_Jar_6815133651981008170.tmp, p, --forced-package-id, 127, --min-sdk-version, O, --target-sdk-version, O, --version-code, 25, --version-name, O, --no-version-vectors, -F, C:\Users\8523~1\AppData\Local\Temp\APKTOOL1879548677653248317.tmp, -0, arsc, -0, arsc, -I, C:\Users\\AppData\Local\apktool\framework\1.apk, -S, E:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\res, -M, E:\image-bullhead-opp2.170420.019\system_\priv-app\SystemUI\.\SystemUI\AndroidManifest.xml]

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

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

... 5 more

Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\8523~1\AppData\Local\Temp\brut_util_Jar_6815133651981008170.tmp, p, --forced-package-id, 127, --min-sdk-version, O, --target-sdk-version, O, --version-code, 25, --version-name, O, --no-version-vectors, -F, C:\Users\8523~1\AppData\Local\Temp\APKTOOL1879548677653248317.tmp, -0, arsc, -0, arsc, -I, C:\Users\\AppData\Local\apktool\framework\1.apk, -S, c:\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\res, -M,C\image-bullhead-opp2.170420.019\system_\priv-app\OPSystemUI\.\OPSystemUI\AndroidManifest.xml]

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

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

... 6 more
[Android Software Development] Mr Hofs:
.9 png files have stretch borders, that specifc one malformed while being decompiled. Check the borders, they must be black or red. If that doesn't help APKtool needs to be updated too to handle Oreo.
[Android Software Development] Zulfi:
You are wright, Its a Apktool problem with Oreo!

Thanks
[Android Software Development] Lenny Bard:
Hey, I've got a problem when recompiling apps a multiple time.

The first time I have this :

I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...

All is fine. But after, everytime I try to recompile the same app, even if I make absolutely no changes, I've got this :

I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building apk file...
I: Copying unknown files/dir...

Anyone have an idea ?
[Android Software Development] Thebear j koss:
I don't see a problem. There is no error nor even a warning.
[Android Software Development] djdarkknight96:
Yeah I see no issue either
[Android Software Development] Lenny Bard:
That's why I don't understand. No error but the app don't work if I recompile a second time and apktool skip this part :

I: Smaling smali folder into classes.dex...

And the strangest is now I have this bug on Linux and Windows, with every framework and apktool version !
[Android Software Development] Thebear j koss:
Is there a classes dex in your apk the 2nd time you recompile? Meta inf? Resources and all folders are the same? Apktool is skipping smali because you made no changes in the smali folder. Smali/baksmali is a different tool used to decode classes dex
[Android Software Development] Ibuprophen:
Have you tried to sign the Compiled app using another software medium!

I'm not stating that this is the case for you but, I've seen similar situations where the app just needed to be signed.

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

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] Lenny Bard:
Well..

Today I've made some tests and sadly I realized that I've messed up with an app so if I recompile multiple time an another app, all is fine.

I don't know if I was tired but that's clearly ridiculous..
[Android Software Development] iBotPeaches:
Since I spread my random thoughts for Apktool among GitHub, Twitter and Google+ I figured I'd update the group here what is going on.

In short, we me is working to add support for aapt2. For those unaware aapt2 is used in Android Studio and the big reason so many additional features have happened from instant run, split applications based on configuration, decode and optimize. Like most rewrites, the old legacy version fixes aren't exactly compatible with aapt2. We have tons of changes in aapt from allowing MIUI qualifiers to allowing capital letters in resource files and these changes need to be rewritten in aapt2 to maintain feature parity. In addition, aapt1 was a single command that we passed a ton of parameters to in order to build that final compiled apk. This same procedure in aapt2 requires a bunch of commands using `compile` and `link`.

The plan

Apktool v2.3.2 will launch (when ready) with aapt1 and aapt2 (A feature flag will allow use of aapt2)

Apktool v2.3.3 will launch with aapt2 as default, removing the feature flag parameter for aapt2 and renaming for aapt1

Apktool v2.4.0 will launch with the removal of aapt1 and aapt2 will become the default and use of aapt1 will be un-supported

If you experienced issues with applications, chances are aapt was involved. This is the large work and attempt to fix that.
[Android Software Development] levone1:
Looking forward to it. I've been wrestling with 'first type is not attr' issue with an android version of Apktool, (ApktoolX), which hasn't been updated for a little while, and wondering how to apply temp fixes. I've seen your comments here and on github about it, but can't tell if there's any way to apply them to the files in ApktoolX. I know you can't modify aapt file, so I tried pulling the Linux aapt file from apktool.jar and renaming and pushing to working directory in ApktoolX, but 'can't read aapt' error... Anyone have any ideas? (I know I can just be patient, but I like the challenge...)

Thanks
[Android Software Development] iBotPeaches:
So I have aapt2 building for some applications. The important to note is the "some". While aapt2 is more powerful, quicker and the future. It drops lots of previously legacy things. Apktool's test suite is quite powerful with over 143 unique strange tests. Things from checking if PNG grey brightness is changed to checking if you can create a string with 32k characters.

Running the test suite against aapt2 is just painful, probably 76 failures which aren't easy to fix.

AAPT2 has few links that document some known issues.

https://developer.android.com/studio/build/gradle-plugin-3-0-0.html#known_issues

https://android.googlesource.com/pl...-asset-packaging-tool-2_0-aapt2_release-notes

https://developer.android.com/studio/build/gradle-plugin-3-0-0.html

I'm thinking of renaming the test suite to "aapt1" and "aapt2", so we start anew with a new test suite for aapt2 while keeping the aapt1 test suite there. This also changes my idea of phasing out aapt1, I don't think that day will ever happen due to some large applications and OEMs that probably will fight to stay on aapt1 until its no longer possible. Taking an application and decoding it, then choosing to build with aapt2 is more than likely a recipe for disaster. Unless of course that application was built for aapt2.

Things are still on-going, binaries are outdated/buggy and more, but I've pushed my changes public as I continue to work through them: https://github.com/iBotPeaches/Apktool/pull/1726
[Android Software Development] djdarkknight96:
Just fyi Playstore decompiled since v8.9 no issues
[Android Software Development] edzamber:
Great !

Here too [emoji4]

Do you have find what they done about theme and language ? I mean why only english language can display theme correctly ?

Edit :

Recompil ok but impossible to install.

Package corrupted with original signature recompilation, even with recompil option 4 (signature v2) + drag and drop.

Have test normal apk installation or Phonesky in system/priv-app, same issue, no Playstore installed
[Android Software Development] Thebear j koss:
Take only what you changed in new apk and drag and drop using 7zip or winrar into original. Do not touch signature folders. Flash to system partition.

Edit- trick learned from [MENTION=2126467]djdarkknight96[/MENTION]
[Android Software Development] edzamber:
Already tested but same issue

Edit :

Working in vrtheme [emoji23]

I have recompil with changing some things in values folder, values-fr folder and public.xml for make compatible theme with french language system selected, then do a vrtheme with recompiled ressources.arsc. Working Nice, just need now to strings traduction for french in values-fr.

But i'm still looking for find a trick to install it as normal apk.

With Zipsigner it break Google Play services. If i drag and drop recompiled or re-signed CERT.RSA as i do for patch old Playstore version it don't install.... So i hope someone will find how to re-sign without break Google Play services

Here Google play services breaked if i use zipsigner (it install as normal apk but kill Google play services)
[Android Software Development] djdarkknight96:
Well I themed it with Substratum and to fix the languages we had to make a config.xml with the lemon_languages_key code but removing the language abbreviations. Then add back the old strings from older playstore. All working. I haven't tried theming the apk and flashing.

Have you tried flashing in recovery?
[Android Software Development] djdarkknight96:
Crap then it's like gmail was and Google plus still is. Can't touch values at all.
[Android Software Development] Surge1223:
I'm in the process of switching substratum over to use aapt2 instead of aapt, and trying to consolidate functionality by adding zipalign methods directly into aapt2. So I've been messing with it for a while too.

In source, it's not hard to modify the link command so it first executes the compile command, also changing the compile command to not produce a zip with flat resources is possible too, the problem with aapt2 is mostly it's not as liberal with resources as aapt was, I've had to add several patches to it, namely allowing it to compile overlays and not complaining about the overlay tags in manifest. Then again aapt2 can reference much better. It's hit or miss with apks these days.

The dependencies for aapt and aapt2 are very similar, the main thing that makes it kinda a pain is that aapt was converted from C to C++ while aapt2 was written in C++, so even if they use the same namespace, it's constantly a battle to add/port functionality over.

Im going to run your test suite with some patches and see how it goes.

On a side note: It would nice to implement signing binary side though maybe through jni.
[Android Software Development] edzamber:
I have directly mod values and values-fr then do a vrtheme for replace recompiled ressources.arsc into last Playstore 8.9.24 i have renamed into Phonesky.apk and put into system/priv-app/Phonesky.

Working Great [emoji4]

Themed by Samsung theme.

I think it will working as well if you mod colors.xml and add your themed drawables [emoji6]
[Android Software Development] freakerload:
Hello i get this errors on recompile with a cm 15.1 systemui:

P:\apktools>java -jar apktool.jar b systemui

I: Using Apktool 2.3.1

I: Checking whether resources has changed...

I: Building resources...

W: ERROR: 9-patch image P:\apktools\systemui\res\drawable-xxhdpi\pip_dismiss_scrim.9.png malformed.

W: No marked region found along edge.

W: Found along left edge.

W: ERROR: Failure processing PNG image P:\apktools\systemui\res\drawable-xxhdpi\pip_dismiss_scrim.9.png

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Freaker\AppData\Local\Temp\brut_util_Jar_8873714607550886075.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\Freaker\AppData\Local\Temp\APKTOOL3928923474042695385.tmp, -0, arsc, -0, arsc, -I, C:\Users\Freaker\AppData\Local\apktool\framework\1.apk, -S, P:\apktools\systemui\res, -M, P:\apktools\systemui\AndroidManifest.xml]

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

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

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Freaker\AppData\Local\Temp\brut_util_Jar_8873714607550886075.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\Freaker\AppData\Local\Temp\APKTOOL3928923474042695385.tmp, -0, arsc, -0, arsc, -I, C:\Users\Freaker\AppData\Local\apktool\framework\1.apk, -S, P:\apktools\systemui\res, -M, P:\apktools\systemui\AndroidManifest.xml]

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

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

... 5 more

Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Freaker\AppData\Local\Temp\brut_util_Jar_8873714607550886075.tmp, p, --forced-package-id, 127, --min-sdk-version, 27, --target-sdk-version, 27, --version-code, 27, --version-name, 8.1.0, --no-version-vectors, -F, C:\Users\Freaker\AppData\Local\Temp\APKTOOL3928923474042695385.tmp, -0, arsc, -0, arsc, -I, C:\Users\Freaker\AppData\Local\apktool\framework\1.apk, -S, P:\apktools\systemui\res, -M, P:\apktools\systemui\AndroidManifest.xml]

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

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

... 6 more

what do do know?