yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Byejder:
Really great effort, good job, if you want to improve it, my suggestion is to bring 2 functions to the tool.

1- Some apk dex methods keep the number around 65536, so when you compile you will encounter error, you can add a dex splitter (Redivision) function to fix this error.

2- Now many apks have signature checker, you can bring it to apk append function (sign killer, etc).
[Android Software/Hacking General [Developers Only]] Abhishek0025:
Thanks brother for the idea.

So far I am enjoying the APK tool kit but it should have a feature to download APK files using ADB.
[Android Software/Hacking General [Developers Only]] Abhishek0025:
Thanks for your guidance.

But I suggest that It should have the feature to download APK files using ADB.
[Android Software/Hacking General [Developers Only]] 0xd00d:
I've only had this problem when adding more functions for a mod menu or similar and it already auto inserts these into a new dex

If you know of an apk that has this problem with no changes / additions then please PM me a link? but I think

Splitting is really beyond the scope of this app because it would need a java parser to sort the classes and then map to split which would have to be done only once decompiled. It would be much easier to split via java because all of the mapping functions are already there

If you know of a command line .jar that splits dex then let me know and i could add it

This is something i have already considered...

But I didn't find much info / tutorials / code on the subject, and often apps that have sig checks also have other checks such as file CRC etc.

There are 20+ sig killers which all do different things, some work, some don't

There is no one size fits all solution for sig bypass and a solution for one app wouldn't work on another so it's not something I want to get into sorry

That option is already there...

View attachment 6005993

Is it not working for you?
[Android Software/Hacking General [Developers Only]] Byejder:
Since the first one will not exceed the byte limit, it will not cause byte problems for those who have not made any changes. But this will require splitting the dex, not only for the mod menu, but also because it doesn't call the new dex even if you add any support function code to a dialog or apk main event.

Fortunately, I can offer you the most accurate source I know for the second one. To bypass the signature check you can use the project published by mt manager using on github. Your only problem is that it takes a long time to find the anattachBase class again, not the main activity of the application or game. Maybe you can move this to a very short time.

It is true that there is a lot of sign killing happening, but they don't know if it is another triggering issue (xincode,pairip,liapp etc). In this case, sign kills will pass 90% signature check.
[Android Software/Hacking General [Developers Only]] Dinesh6252:
Any way to change APK version?
[Android Software/Hacking General [Developers Only]] 0xd00d:
SDK Version?

Yes you can change "Rebuild API level" in Settings

Leave blank to rebuild using the default which is MinSDKVersion

Or enter any value then rebuild to change
[Android Software/Hacking General [Developers Only]] Homertab4:
Hello to everyone

Am not expert on those things not even a beginner am just have some issues and looking around internet to find a solution on my android device.

Am using samsung tab 4 since i bought it from new and at this point i cant install apps like youtube becuase the limit is android 7 if am not wrong (am having 5.0.2). So this is pretty sad for me becuase i dont want to change my device wich i love based on bezel sizes and screen quality.

My question is if that program can solved my proplem or if there is another way to do it.

Any answer will be appreciated :)
[Android Software/Hacking General [Developers Only]] Strephon Alkhalikoi:
Quite honestly, it's time for a new tablet, like it or not.

I'm no expert, and I'm likely wrong in some details, but the tool could allow you to change the minimum SDK version in the app's manifest file. The problem will then be whether the tablet can parse the app, since I believe Google has moved away from Java for programming apps. That and Google tends to encrypt their own apps, making really difficult to mod them.
[Android Software/Hacking General [Developers Only]] Homertab4:
Thank u for the help maybe is time for new tablet
[Android Software/Hacking General [Developers Only]] 0xd00d:
As Stephon says the tool can change the minimum SDK but newer apps probably use code from only a newer SDK so although it might install, it could possibly crash

There is another option which is the one I would recommend and that is to install an older version which is compatible with your device

You might have to enable install from 3rd party sources in your settings but download from somewhere reliable and safe like HERE as an example

If the app does further checks possibly online / server checks then it could possibly disable the running of really old versions but it's worth a try

Failing that then you have no choice but to upgrade your device if you want to use them specific apps and there are no alternatives available
[Android Software/Hacking General [Developers Only]] GurdevSingh13:
@0xd00d When i do a clean decompile and recompile it stuck on building resources. I want to know where i can see the log for apktool.
[Android Software/Hacking General [Developers Only]] 0xd00d:
What version apktool are you using?

It should show all errors. If you can PM me a link to the file I can look further into what's happening?

If you aren't changing any resources you can check "Don't decompile resources" in the settings and try again
[Android Software/Hacking General [Developers Only]] GurdevSingh13:
@0xd00d I am using the latest version of apktool that is 2.9.0. Okay i will PM it. If i go into dead end.

I am changing resources. Could it be related to framework file. But its not a system app.
[Android Software/Hacking General [Developers Only]] GurdevSingh13:
Now tell Me What are the details required by you to solve stuck at building resources ? I used command-line version the error which occurred was shown in the log and i solved it by the help of iBotPeaches. But in your version there is no typical full log feature. But in our case it just stuck at Building resources of hours.
[Android Software/Hacking General [Developers Only]] 0xd00d:
As I said in my previous post, if you can PM me a link to the file, or a file with the same problem, or a way to reproduce the problem then I can look to see what the problem is

As I said, everything "should" be logged. It does use background threads to process everything and maybe it is not returning for some reason but without seeing the problem I cannot debug it to fix it
[Android Software/Hacking General [Developers Only]] Wentoss:
Hello, great publication. Are you planning a localization? I would like to submit a translation for Apk Toolkit
[Android Software/Hacking General [Developers Only]] 0xd00d:
Thanks for the offer but It's not something I had planned when I wrote it. Maybe when I have some free time I can support this...
[Android Software/Hacking General [Developers Only]] ahmed123:
Just came across this tool as i am trying to replace some assets in an APK and recompile it. I've tested with a few random apps and it works amazingly. However, the actual APK that i want to do isn't working. When i go to decompile it, it says it's finished decompiling. But the status bar on the toolbar seems to still be busy as it's constantly showing some sort of processing.

It never stops. It doesn't do this on the other APK's. So i thought i would just recompile what it has decompiled to make sure it's able to recompile the original first before I make any changes. But unfortunately it's not able to recompile. I get the following errors:

Can you kindly advise how I can resolve tis please?

Thanks

[16:49:39] Compiling 20231009com.syu.us.apk...

[16:49:40] Using Apktool 2.7.0

[16:49:40] Checking whether sources has changed...

[16:49:40] Smaling smali folder into classes.dex...

[16:50:02] Checking whether resources has changed...

[16:50:02] Building resources...

[16:50:39] D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\res\drawable\back_horizontal_traffic_n.png: error: failed to read PNG signature: file does not start with PNG signature. D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\res\drawable\back_horizontal_traffic_n.png: error: file failed to compile. D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\res\drawable\back_horizontal_traffic_p.png: error: failed to read PNG signature: file does not start with PNG signature. D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\res\drawable\back_horizontal_traffic_p.png: error: file failed to compile. brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\AHMED\AppData\Local\Temp\brut_util_Jar_50775627937339837659099592755086000002.tmp, compile, --dir, D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\res, --legacy, -o, D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\1 - Decompiled\20231009com.syu.us.apk\build\resources.zip]

[16:50:39] Compile of 20231009com.syu.us.apk complete!

[16:50:39] ZipAligning 20231009com.syu.us.apk...

[16:50:39] Unable to open 'D:\Users\Ahmed\Downloads\APK_Toolkit_by_0xd00d\2 - Compiled\20231009com.syu.us.apk' as zip archive
[Android Software/Hacking General [Developers Only]] 0xd00d:
It looks like you have an invalid image in that apk, probably a jpg named as a png

There are 2 things you can try

In settings check 'Disable crunching of resources'

If that doesn't work then extract files from apk and convert affected image to a png and then replace and zip
[Android Software/Hacking General [Developers Only]] ahmed123:
The images are definately png because they have the transparancy when I open them in photoshop. But maybe it's some other images and not the images I am looking at. I tried the setting "Disable crunching of resources" and this seems to have allowed me to recompile it. Thanks you
[Android Software/Hacking General [Developers Only]] ahmed123:
So although I have managed to recompile it. When i tried to install it on a LDPLayer android emulator I get error saying: failed to install. Shared user required has signature error!

I am able to install the original APK on LDPlayer. but the recompiled ones are giving this error.

Any ideas what is wrong?

Thank you
[Android Software/Hacking General [Developers Only]] 0xd00d:
Have you looked at the file header using a hex editor to confirm it's png?

I have seen this error myself and it was due to a renamed extension

You can PM me link to apk and i'll check the png if you are still stuck
[Android Software/Hacking General [Developers Only]] ahmed123:
Thank you. I've sorted the png issues now. But now the problem appears to now be signature error! I've tried a few different apk apps and out of 4, three of them give the signature error and 1 actually works. Any ideas what could be wrong?
[Android Software/Hacking General [Developers Only]] 0xd00d:
Do you have 'Auto zip align' and 'Auto sign apks' enabled?

If they are both enabled then everything should be done automatically in the correct order

Some apk have protection that checks for original signature. If this is the case then you could try some of the signature killers available

What is the exact error? Does it install but crashes or error when trying to install?
[Android Software/Hacking General [Developers Only]] ahmed123:
Yes the 'Auto zip align' and 'Auto sign apks' are both checked.

I think you might be correct about the protection as these are APK's.

I haven't attempted to install it on the main android system yet because I usually test it on LDPLayer Android Emulator and before decompiling and recompiling it installs properly but after recompiling when I try to install it it throws the error:

failed to install. Shared user required has signature error!

Can you recommend any easy to use signature killers and what will be the process? do I use the signature killer on the newly recompiled apk by APK Toolkit?
[Android Software/Hacking General [Developers Only]] 0xd00d:
If it won't install then it's not protection. Protection checks sig when you run it after install

I think that error means your installed version has a different sig to the new one

Try uninstalling app then trying new install

Does it install and work ok on ldplayer before decompile? because ldplayer doesn't like some 64bit apps
[Android Software/Hacking General [Developers Only]] ahmed123:
Yes so basically I am uninstalling it each time and then trying to install it. When i install the apk before decompiling then it installs fine even if i uninstall previous and install it again an again.

I managed to place the newly compiled one in a shared folder on LDPlayer and then tried to install the APK using the file manager and this time it gives me this error:

App not installed.

The package conflicts with an existing package by the same name.

But the original app is uninstalled. So what you said about it checking a signature that is already on the device makes a bit more sense .
[Android Software/Hacking General [Developers Only]] 0xd00d:
it sounds like it hasn't uninstalled properly

it definately is seeing something with the same package name still installed and probably also different signature

u could uninstsll via adb and then everything should be ok

or u could try on a 'New / Clone' in ldplayer so there wont be any conflicts
[Android Software/Hacking General [Developers Only]] ahmed123:
I just tried installing it on the main android device itself and I went and made sure to uninstall and before i uninstalled it, i cleared all cache and app data but even on the main android device which is a fyt based car head unit, I have the same error where it says App Not Installed.

If I reinstall a non-decompiled version and even if its older version it installs fine. But problem is all with the re-compiled ones. And LDPlayers official way to install the APK gives that error about Signature. So I'm thinking it must be that the signature of that APK is on the device and device knows it and it doesn't match the new APK Toolkit recompiled one and hence why it's not installing
[Android Software/Hacking General [Developers Only]] ahmed123:
Is there not a way to somehow find out what the signature of the original apk was and match the signature in the newly compiled apk?
[Android Software/Hacking General [Developers Only]] walter67:
Hi ahmed

If you upload your app to "Virustotal" and do a scan, then go to details it will give you all the info you need..

It`s good to help others when you can...
[Android Software/Hacking General [Developers Only]] walter67:
Was about to install your app from the mediafire link you have given but "Virustool" says it is malicious, or are they false positives?
[Android Software/Hacking General [Developers Only]] 0xd00d:
yes they are false positives

it is quite common for apps that reverse / decompile to flag on some lesser known AV
[Android Software/Hacking General [Developers Only]] 0xd00d:
You can do this if you have a rooted phone

With a rooted phone you can install "unsigned apk" which normally is modded apk with original signature using something like lucky patcher which passes the certificate check and installs modded apk using original cert
[Android Software/Hacking General [Developers Only]] ahmed123:
In APK Toolkit, can I rename the package? If so, how? I don’t think it lets me type in the box where the name shows up.

Just thinking to test it by giving it a new name with maybe an extra character or so
[Android Software/Hacking General [Developers Only]] 0xd00d:
No the package name is not editable and not easily changed

It should be unique and if your device is detecting it then it's not uninstalled properly

The easiest way to sort is to plug into your PC and use adb to uninstall

This will completely remove and once done you should be able to re-install
[Android Software/Hacking General [Developers Only]] ahmed123:
So it appears completely uninstalling it won't help. I did a completely new installation of LDPlayer with new version without any of the apps on it. On the previous version it was Android 7 which was giving the error about the app with same name exists. But now with newer android and fresh installation, I am getting the same error I am getting on the main device. It just says App Not Installed. It doesn't give any other info.

Screenshot of error attached below:

View attachment 6046255
[Android Software/Hacking General [Developers Only]] 0xd00d:
I can't really help with specific cases or protections but this does not look like a protection to me

if you are willing to share a link to the apk via PM then I'll try to find out why it won't install?
[Android Software/Hacking General [Developers Only]] ahmed123:
Sure. Thank you. i'll send you the APK by pm.
[Android Software/Hacking General [Developers Only]] 0xd00d:
Your apk is a system app which accesses other apps data and / or has access to system settings

it uses the system sharedUserId and so checks the apk sig against the system one

i think a rooted device would be needed to use modded version
[Android Software/Hacking General [Developers Only]] ahmed123:
Ahhh. Ok cool thanks for checking
[Android Software/Hacking General [Developers Only]] ahmed123:
Just out of curiousity, as I am only trying to replace a few images in the APK, is there any other way to potentially just replace the images without decompiling and recompiling? Like some sort of APK resource hacker tool or something?
[Android Software/Hacking General [Developers Only]] 0xd00d:
yes you can extract and zip but then it still needs signing so it's exactly the same
[Android Software/Hacking General [Developers Only]] 3to4:
Hello,

This discussion is very interesting for me.

I am trying to add "Carrier label" in statusbar on Android 10 (AOSP based rom). I used to do this mod with Android 5, 6, maybe 7, I don't remember..

For Android 10, I tried different tools, and some times I succeed in decompiling and recompiling systemUI.apk without errors. For testing, I recompile without any modification, but a recompiled apk never works... Is this because of some protection implemented? And, there is no way to modify a system app?
[Android Software/Hacking General [Developers Only]] papas.antwnhs:
Very good work 0xd00d congratulations!!!!
[Android Software/Hacking General [Developers Only]] 2mingo:
Mod edit - translated by https://translate.google.com/. Oswald Boelcke, Senior Moderator.

When compiling I get this error. I already tried disabling resource processing.

********************************

When I compile I get this error. I already tried disabling resource processing.
[Android Software/Hacking General [Developers Only]] Oswald Boelcke:
Hello and good afternoon, @2mingo Welcome to XDA! I hope you'll always get the support you require and have enjoyable times on our platform.

However, as a one-time courtesy I've translated your above quoted post. With reference to rule no. 4 of the XDA Forum Rules, please post in English or add at least an English translation to your Spanish posts.

Spoiler content hidden.

Regards

Oswald Boelcke

Senior Moderator
[Android Software/Hacking General [Developers Only]] 0xd00d:
Try with updated Apktool

Release v2.9.3 · iBotPeaches/Apktool

[#3492] Fix #GHSA-vgwr-4w3p-xmjv (Arbitrary file writes on Windows). (Thanks Cl0udG0d) Full Changelog: v2.9.3...v2.9.3 Doc Site: https://apktool.org/blog/apktool-2.9.3 Release Blog: https://connor...

github.com

Download latest ( apktool_2.9.3.jar )

Rename to apktool.jar

copy to \APK_Toolkit_by_0xd00d\6 - Resources\ overwriting the one there
[Android Software/Hacking General [Developers Only]] DroidFire:
This is just a incredibly rude an uncessary comment to make. Were you never taught that if you dont have anything nice to say then dont say anything at all?

@ 0xd00d -

The level of disrespect and entitlement from some people today is just mind numbingly frustrating to see and I just wanted to say thank you for all the time and effort you put in to develop APKtoolkit and share it with the rest of us. ;)
[Android Software/Hacking General [Developers Only]] nejdet can:
Hello, I want to change the Whatsapp name and logo with this program. I would be very happy if you could help me. Thank you.
[Android Software/Hacking General [Developers Only]] pottslewis82:
Thanks
[Android Software/Hacking General [Developers Only]] 0xd00d:
Updated to v1.3

Added option to Automate adding multiple extra manifest permissions

Added Clone APK (Install multiple instances of the same app by cloning it)

Added option to edit app info (Icons, Name, Package Name, Version, Build, MinSdk, TargetSdk) To replace all icon sizes, choose your replacement icon and it will be automatically be resized for all replacements (Square & Round)

Added option to round icon corners

Added option to automatically generate a round icon

Added option to Save app icon via right click popup

Added options in edit app info to Save Square or Round icons via right click popups

Added Quiet & Verbose options to ApkTool settings

Added Resource mode option dropdown to ApkTool settings

Added Verbose option to APK Toolkit

Added Smali Regex Search to tools menu

Added Base64 Encode / Decode text or png image to tools menu

Added 'Open file' and 'Open file location' to the log window right click popup

Removed Baksmali / Smali tab

All Decompiling & Compiling of all formats are now processed all in the same place, either from the file / directory selections or via drag & drop via the Decompile and Compile buttons. dex, odex and oat files will be decompiled to the decompiled directory and compiled to the compiled directory. Deodex option moved to settings, Baksmali & Smali directories removed from project, jumplist & toolbar

Changed permissions list so you can now select multiple permissions and remove all selected

Directories renamed

Fixed ZIP64 Extra Field Validation error after Java update

Improved error / exception handling / reporting

UI changes

Bug fixes
[Android Software/Hacking General [Developers Only]] 3to4:
APK toolkit works well and makes it very easy to mod apks!!

Thank you very much!!
[Asus Zenfone 9] x2srj:
Gesture navigation bar hide 😎

Latest security patch. 5th April 23

A few other things, but so far, so good.
[Asus Zenfone 9] palamosteliaro:
Beware the update posted in Asus's website is for Japan SKUs of the phone.

Did you get an OTA update on a different region or are you using a JPN ZF9?
[Asus Zenfone 9] x2srj:
I got OTA for phone in UK
[Asus Zenfone 9] DankDeuxez:
Cant wait for it to be available from their website, i was so stupid because i unlocked the bootloader in an attempt on custom Roms. Didnt go as planned so i just reverted to stock rom, however now i dont get OTA updates..

Hoping they fixed the Bluetooth issue were the phones battery would get EATEN by "others" in the battery usage graph.
[Asus Zenfone 9] jons99:
Zenfone 9｜Phones｜ASUS Global

ASUS Zenfone 9, the 5.9” compact size is perfect for one-handed use and the flagship performance meets every possibility in your life.

www.asus.com
[Asus Zenfone 9] DankDeuxez:
What the hell. I seriously checked their website like 1h ago and the only one available was for JPU skus only.
[Asus Zenfone 9] jons99:
it's the same rom I'm using it for a few days already
[Asus Zenfone 9] DankDeuxez:
Ah okay. I tried to manually update it but couldnt, so i just thought its because its JPU only. Ill try again later
[Asus Zenfone 9] palamosteliaro:
It must have been a typo, because the date of the firmware didn't change (31/3).

I was checking it for days and it was for JPN only and today they changed it to all regions.

Happy flashing everyone!
[Asus Zenfone 9] craznazn:
I think this one came out a few days ago, but good to see ASUS is patching faster than Google for April :D