[TOOL][WINDOWS] Android Multitool

Search This thread

bovirus

Senior Member
Oct 7, 2007
2,154
793
Dear @bovirus,
Do you have ideas for the correct decompiling/recompiling of the latest versions of framework-res.apk by use of apktool?

Depend by many values/settings and by the framework-res.apk.
You should use latest vesrion of apktool/baksmali/smali and install the framework.
Then now you can try to decompile/recompile the framework-res.apk.
 

s_wheel

Senior Member
Oct 19, 2015
66
43
Depend by many values/settings and by the framework-res.apk.
You should use latest vesrion of apktool/baksmali/smali and install the framework.
Then now you can try to decompile/recompile the framework-res.apk.

Yes, I use all the new (2.2.4) versions and install framework but the recompilation is with the warning "Could not be find resources" and after use of "new" framework-res.apk I get a bootloop.
The problem with this warning is also, if only just decomil/recompil. framework-res.apk without any modifications. It exists in my case for various framework (LOS, PA and other). All need software are updated.
 
Last edited:

bovirus

Senior Member
Oct 7, 2007
2,154
793
Yes, I use all the new (2.2.4) versions and install framework but the recompilation is with the warning "Could not be find resources" and after use of "new" framework-res.apk I get a bootloop.
The problem with this warning is also, if only just decomil/recompil. framework-res.apk without any modifications. It exists in my case for various framework (LOS, PA and other). All need software are updated.

Please provide a link where we can download the framework-res.apk file.
Probably there are more than one framework.
 

s_wheel

Senior Member
Oct 19, 2015
66
43
Please provide a link where we can download the framework-res.apk file.
Probably there are more than one framework.

For example the framework-res.apk from Paranoid Android for OnePlus3 (https://forum.xda-developers.com/on...anoid-android-7-0-2-aospa-oneplus-3t-t3615015). The framework was recieved from the smartphone with installed PA-7.2.3 by use of root explorer.
1. I decompile the framework by use of your .bat files. Problems and warnings are missing also.
2. And at once after decompiling I recompile (without any changes) the one same framework. In the process of recompiling in the second line of command line you can see warning "Could not find sources". It's the common issue for many frameworks. After message "Building apk file..." appears the second warning which is different for each frameworks (for the framework from PA-7.2.3 it is "warning: string 'global_action_reboot' has no default translation"). Recompiling finished.
The recompiled framework is wrong. I have a bootloop of the smartphone. Permission (0644) of framework file and it place in ROM are correct.
The framework-res.apk from PA-7.2.3 is in the attached zip.
 

Attachments

  • framework-res.zip
    9.8 MB · Views: 380

bovirus

Senior Member
Oct 7, 2007
2,154
793
@s_wheel

I installed the framework the I decompiled/revompiled the framework-res.apk

- Decompiling

No error

- Recompiling without make changes

I: Using Apktool 2.2.5-481299-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'global_action_reboot' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...

The only warning is about a missing global string.
But it's a warning. Is not an important issues.

I used a recent apktool/baksmali/smali version.
 

adamoex

New member
Jan 1, 2018
1
0
hi guys i'm new here
i'm using v3.5.7 and when i select my apk to decompilet it it show this message in the erreurs:
Input file (AndroidMultitool_3.5.7\Decompiled_apk\mycheck) was not found or was not readable.
please some one help me i'm stuck :'( i need help
 

BKhandual

Member
Feb 1, 2015
32
3
29
Bhubaneswar
hi guys i'm new here
i'm using v3.5.7 and when i select my apk to decompilet it it show this message in the erreurs:
Input file (AndroidMultitool_3.5.7\Decompiled_apk\mycheck) was not found or was not readable.
please some one help me i'm stuck :'( i need help

Ensure that there is not any space in the name of apk...
Like if it is "my apk.apk"...then it will show error...
Just remove those space from the name or replace them with "_"

---------- Post added at 08:17 AM ---------- Previous post was at 08:16 AM ----------

@s_wheel

I installed the framework the I decompiled/revompiled the framework-res.apk

- Decompiling

No error

- Recompiling without make changes

I: Using Apktool 2.2.5-481299-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'global_action_reboot' has no default translation.
I: Building apk file...
I: Copying unknown files/dir...

The only warning is about a missing global string.
But it's a warning. Is not an important issues.

I used a recent apktool/baksmali/smali version.

Try to use latest apktool
 

bovirus

Senior Member
Oct 7, 2007
2,154
793
@s_wheell

Noe it's available a second post specfic for download.
In the second post you can find Android Multitool updated with all changes explaiend in the second post.
Please download and use this specific updated version.


@BKhandual

The updated version in second post has a dos batch (It's very useful) to
- install framework file
- select application
- decompile application
- compile application
- sign application

that support file names with spaces.

@adamoex

Please use updated version (3,.5.9 updated) posted in teh second post and try again.
Please use AMT.BAT DOS batch.
 
Last edited:

openforu

Member
Apr 27, 2014
27
3
Two bugs:

1. If filename contain space "name 2018.apk" decompiling says finished but is not, it should show error in filename or something. Change to "name_2018.apk" now working ok.
2. After editing decompiled file and if I made some mistake in file (but dont know about it) When trying to compile its loops forever, should show error too.
 

MegaHz

Senior Member
Jul 27, 2005
394
39
www.megahz.org
new framework

Hi guys,

i am using a framework file from 3 years ago. Today i saw this about Android P:

Google is also warning developers that Android P is going to start throwing up warning boxes at users when they install apps that “targets a platform earlier than Android 4.2.” Basically, if you’re not using a recent SDK for your app, Google will make you feel bad by making your users distrust your app a little. It’s also going to expect that apps submitted to the Google Play store target Android Oreo in November and, in 2019, that they support 64-bit hardware.

Anybody of you is using a newer framework file that can provide it?

thanks
 

BKhandual

Member
Feb 1, 2015
32
3
29
Bhubaneswar
Can you tell me why sometime the changes made in the .yml file and AndroidManifest.xml are not getting compiled ?
When i decompile the apk again and check the manifest, it is same as original...
No specific apks.

And please add an option to optimize the images inside an apk.
Another option to encrypt res folder contents to r
Thanks for this tool
 
Last edited:

bovirus

Senior Member
Oct 7, 2007
2,154
793
@BKhandual

Please remove the QUOTE Of the entire first paragraph.
Please don't never QUOTE a paragraph just to post your question.
Just post your question.
When you post your question you should post the details

- Link to the app
- Details info about log.
- Versions of apktool/baskamsli/smali
 
  • Like
Reactions: BKhandual

BKhandual

Member
Feb 1, 2015
32
3
29
Bhubaneswar
Sorry for that..

But there is not any specific app (mentioned above)
Any app, i want to mod by just editing the manifest and yml file refused to update with compiled apk...
I figured out that i have to remove the folder "original" to do this.
And i always use latest stable versions of apktool, bak/smali.

Nothing much..
Please add 2 features..
Image optimisation
And resources encryption

Thanks again for this tool
 

knojap

Senior Member
Apr 18, 2011
607
69
Could not write to (C:\Users\Dirk Pajonk\AppData\Local\apktool\framework), using C:\Users\DIRKPA~1\AppData\Local\Temp\ instead...

using win10. c:/android multitool

started as admin.

any help?

thanks
 

Muttahir

Member
Nov 10, 2017
7
2
i can decompile files easily but i cant compile them it stucks on doing comilation even no error appears waited for almost 30 mints still itis compiling
what should i do'
 
  • Like
Reactions: imakul8

oo0

Senior Member
Oct 24, 2007
612
272
3.5.9 hangs, batch doesn't let to select APK, just goes to first menu with two options after "any key" pressed. Only command line java etc worked.
 
Last edited:

jaka45

Member
Dec 13, 2017
11
0
Iam really harder to changes packages names with this..some body can help me to changing this packages names..
 

Attachments

  • com.aldytoi.gacorteam_v1_946e8f_1.apk
    2.6 MB · Views: 42

rigattoni

Senior Member
Apr 27, 2010
2,033
651
Fuerth
Signing an edited apk after successful compiling runs into an error:
I´m using the latest greatest version of Android-Multitool-v3.5.9-mod-by-bovirus
Code:
## Sign apk

SIGN TOOL       = Program_Files\signapk.jar
CERTIFICATE     = Program_Files\testkey.x509.pem
KEY             = Program_Files\testkey.pk8

APK NAME        = readittome
UNSIGNED APK    = Compiled_apk\readittome-unsigned.apk
SIGNED APK      = Signed_apk\readittome-signed.apk


## Signing Signed_apk\readittome-signed.apk started...

Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
        at com.android.signapk.SignApk.addDigestsToManifest(SignApk.java:182)
        at com.android.signapk.SignApk.main(SignApk.java:451)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 2 more
## Signing Signed_apk\readittome-signed.apk completed



    # Press any key to continue or CTRL + C to break

I need some help with it... please :cyclops:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 676
    Android Multitool



    Hello,
    I´m glad to present my Android Multitool wich makes it easier to decompile/recompile applications + jar framework files. You can also sign your apk by easily clicking a button.

    Requirements:
    • Winows OS XP / 7 / 8 / 8.1 / 10
    • Installed Java on Windows
    • Installed Microsoft Powerpacks
    • Installed .NET framework

    - Easy handling: Select your apk and push the "decompile" button!
    - This tool makes modding much faster and easier, no cmd handling any more.
    - You can read the log which is integrated in the tool to find your mistake in the error.
    - ADB inside: Push files into your file system with a few clicks

    It looks like this so far:
    https%3A%2F%2Fimg.xda-cdn.com%2Fi8q9plnS6GuhevN1w1mXaBCD16g%3D%2Fhttp%253A%252F%252Fimage-upload.de%252Fimage%252Fn0uZno%252F96854287e1.png



    How to use this tool?

    Follow this small how to!


    Here you go..

    Well, first extract the AndroidMultitool folder to C:\. Otherwise it probably won´t work
    -copy your framework-res.apk in the Framework-Files folder and other files you want to mod in the "Files" folder (this folder is for all your files you want to mod, don't pick files from any other location)
    -Next you have to start AndroidMultitool.exe
    -select your framework-res.apk and push the "install" button (check log for errors)


    Decompiling and recompiling apk files:

    -select the apk you want to mod/decompile and push the "decompile" button (check log for errors)
    Note: You can check the "use baksmali" checkbox, then e.g. the useless .line text will be removed
    -your decompiled apk will be located in C:\AndroidMultitool\Decompiled_apk"apkname" as a folder
    -if you want to compile your apk again, select your decompiled folder, check the "apk" radio button and compile it again (check log for errors)

    -your recompiled apk will be located in C:\AndroidMultitool\Compiled_apk"apkname"


    Decompiling and recompiling jar files:

    -select in the combobox ".jar" (check the "use baksmali" checkbox for deleting the useless .line comments)
    -select the ".jar" file you want to mod
    -push the "decompile" button
    -your decompiled jar file will be locaten in C:\AndroidMultitool\Decompiled_jar"jarname"
    -for recompiling you have to check the "jar" radiobutton and select the folder within your decompiled ".jar" file
    -push the compile button
    -your compiled jar file will be located in C:\AndroidMultitool\Compiled_jar"jarname"\classes.dex
    -delete the "classes.dex" file in your ".jar" file
    -copy the new "classes.dex" file you compiled in the ".jar" file


    Signing apk files:

    -select the ".apk" you want to sign
    -push the "sign" button
    -the signed apk file is located in C:\AndroidMultitool\Signed_apk"apkname_signed"


    Using tags:

    You want to decompile many files from different devices or different android versions / frameworks? Tagging makes it possible!
    - before installing your framework type in any tag (like "hero")
    - then install your framework and work normally


    Android Debug Bridge

    You want to push files with adb to your device? Follow these instructions:
    Please klick on the "advanced" register in the tool
    -push "check" to control if your device is ready
    -if the device is not ready please follow the instructions, which are listed in the tool (device offline, no device...)
    -if the device is ready, choose a file you want to push
    -choose a path on the device, where the file should be placed later
    -push the "push" Button
    -alternately: press "Reboot device" to reboot your device and to let changes take effect

    If there are any questions or bugs, please post them in the thread.

    Follow me on Google+ : Daniel Huber


    [DOWNLOAD] see next post #2

    Enjoy easier apk handling!


    Having issues with the program?
    Try the batch version developed by @bovirus (it's also in the AndroidMultitool folder)




    Questions and answers:

    Q: The programm does not start, it crashes.

    A: Please install Powerpacks, this one: http://go.microsoft.com/fwlink/?LinkID=145727&clcid=0x804


    Q: What do you mean exactly with "!!!NOTE!!! After compiling you have to copy the AndroidManifest.xml and the META-INF folder from your old apk to your newly compiled one!! Otherwise you´ll get bootloop! " .. I don't understand.

    A: You have to open your old apk (this one you selected for decompiling in the folder /files) and copy from that apk the AndroidManifest.xml and the META-INF folder to the apk you just decompiled and recompiled.


    Q: I followed all steps in the startpost but I'm still getting this error: "apktool is not recognized as internal or external command"
    What can I do?

    A: Please refer to this post by @LasVegasRomeo: http://forum.xda-developers.com/showpost.php?p=51017662&postcount=681


    Credits:
    Developers (brut.all, iBotPeaches) of the base Apktool
    mike_galaxy_s for his help on testing
    @bovirus for batch development

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


    Changelog:



    v3.5.9:

    updated build tools and platform-tools (aapt, adb and needed dll's)
    updated 7za, apktool, smali and baksmali to latest version
    added bovirus's batch version to the main directory (users can choose between gui and batch now)
    added a folder (Framework-Files) for the framework-res.apk (only use this folder for the framework files from now on)
    added a Help folder with all commands

    v3.5.8:

    updated build tools and platform-tools (aapt, adb and needed dll's)
    updated apktool, smali and baksmali to latest version

    v3.5.7:

    updated build tools and platform-tools (aapt, adb and needed dll's)
    updated apktool, smali and baksmali to latest version

    v3.5.6:

    fix progressbar not disappearing after decompiling
    fix loop after/while compiling
    save compiling path and jump into it when he starts folder browsing
    update user interface

    v3.5.5:

    fix infinite loop on compiling when errors appeared
    folderbrowserdialog (compiling): jump into /decompiled_apk default
    update build tools and platform-tools (aapt, adb and needed dll's)

    v3.5.4:

    add option to copy AndroidManifest.xml automatically into the apk after compiling
    layout cleanup
    force overwrite already compiled or decompiled files when new compiling/decompiling thread started
    update to apktool rc3 (mainly lollipop support)

    v3.5.3:

    copy AndroidManifest.xml and META-INF folder automatically into the apk after compiling
    added some links
    code cleanup

    v3.5.2:

    add more detailed log
    fix decompiling/compiling/signing/installing framework multiple times sometimes
    add batch decompiling (preview)
    fix donation image not fitting center
    add txt files with descriptions for all tools inside (thanks to @bovirus)

    v3.5.1:

    update all files

    v3.5:

    code rework
    fix UI freezing on long tasks
    add progress bar
    many other small fixes

    v3.4:

    access files from all locations of the pc (you're not limeted to the /Files folder)
    add version number to the tool

    v3.3:

    add tag support (tagging allows multiple framework support)
    rework interface
    small additions and fixes
    support for Win7 / 8 / 8.1 (no extra versions)

    v3.2.1:

    add apktool b9

    v3.2:

    add different apktool, aapt and batch files
    should solve some problems on de - and recompiling

    v3.1:

    Fixes for adb push
    button to reboot device
    many other fixes and code rework

    v3.0:

    SlimBean apktool ((de)compiling also with inverted folders from trds)
    ADB (AndroidDebugBridge for pushing files to your device)
    Some Links in the tool for support and donation

    v2.2 Beta1:

    apktool 2.0.0
    Details:

    Details
    v1.5.x -> v2.0.0
    Java JRE 1.7 is required!
    Update apktool to v2.0.0
    aapt is now included inside the apktool binary. Its not required to maintain your own aapt install under $PATH. (However, features like -a / --aapt are still used and can override the internal aapt).
    Remove framework $HOME/apktool/framework/1.apk or manually update via (FrameworkFiles)
    Eagle eye users will notice resources are now decoded before sources now. This is because we need to know the API version via the manifest for decoding the sources.
    Parameter Changes




    Smali/baksmali 2.0 are included. This is a big change from 1.4.2. Please read the smali updates here for more information.
    -o / --output is now used for the output of apk/directory.
    -t / --tag is required for tagging framework files
    -advance / --advanced will launch advance parameters and information on the usage output.
    -m / --match-original is a new feature for apk analysis. This retains the apk is nearly original format, but will make rebuild more than likely not work due to ignoring the changes that newer aapt requires.
    After [d]ecode, there will be new folders (original / unknown) in the decoded apk folder.
    original/ = META-INF folder / AndroidManifest.xml, which are needed to retain the signature of APKs to prevent resigning. Used with -c / --copy-original on uild.
    unknown/ = Files / folders that are not part of the standard AOSP build procedure. These files will be injected back into the rebuilt APK.
    apktool.yml collects more information than before
    SdkInfo = Used to re-populate the sdk information in AndroidManifest.xml since aapt requires it to be passed at runtime.
    packageInfo = Used to help support Android 4.2 due to renamed manifest packages. Automatically detects difference between manifest and resources and performs automatic --rename-manifest-package on uild.
    versionInfo = Used to re-populate the version information in the AndroidManifest.xml since aapt requires it to be passed at runtime.
    compressionType = Used to determine the compression that resources.arsc had on the original apk to duplicate on uild.
    unknownFiles = Used to record the name/location/compression type of non-standard files in Apk.



    v2.1:

    fixed freezes
    bigger UI for better overview
    option to save log to a text file
    other small fixes

    v2.0:

    complete code rework
    folder structure for a better overview
    decompiled, recompiled, signed files will be located in their own folder
    no more messy file handling
    added radio buttons for choosing jar or apk
    some graphical changes
    added info button in the "installing framework" section

    V1.2:

    Added ability to decompile and recompile ".jar" files
    Added baksmali
    FolderBrowserDialog: If you push the "browse" button you are in the right directory now and needn't to scroll and search the "AndroidApktool" folder
    other small fixes

    V1.1:

    Added ability to sign .apk
    Changed comboboxes to browse buttons
    bigger log - screen


    Initial Release

    13
    Very nice tool!

    One feature request, could you have a checkbox for say the -b command so that we can get rid of the useless .linexx and .parameterxx lines? That would make this tool perfect :)

    Another feature is adding the twframework-res.apk as a framework file? Thats essential for modding samsung system apk's. I usually have to install both twframework-res.apk and framework-res.apk before decompiling. Maybe adding 2 slots for the framework in the tool?

    Thanks again!!

    Sure, adding a second slot will be no problem!
    But I don't know what you mean with this checkbox, could you explain me exactly what you mean?

    ~ via Nexus
    12
    - Latest mod version

    Latest version is: 3.5.9 (23.10.2018) updated by bovirus

    This version is based on original v. 3.5.9 by Flextrick plus with these updates

    - apktool (by iBotPeaches) v. 2.3.4 stable
    - apktool commands list
    - baksmali/smali (by JesusFreke) v. 2.2.5 stable
    - baksmali/smali command list
    - Android Build Tools (by Google) v. 28.0.3 stable
    - Android Build Tools commands list
    - Android Platform Tools (by Google) v. 28.0.1 stable
    - Android Platform Tools commands list
    - 7zip (by Igor Pavlov) v. 18.05
    - DOS batch updated (now support file names with spaces)

    With the DOS batch (file AMT.BAT) you can

    - install framework file
    - select application
    - decompile application
    - compile application
    - sign application

    Android Multitool v. 3.5.9 (updated) - Download


    - Android Multitool previous version

    Library of previous version (Google Drive)

    Note: Please take care that v. 3.5.9 (stock) included in the Google Drive repository DON'T include all updates reported before.


    - Use always updated framework-res.apk

    If you get error during decompilation/compilation of the apk, please check if you are using and updated version of framework.res.apk.
    Please try to search, find and download an updated version of framework.-res.apk
    Note: I suggest to rename the framework downloaded file name (without spaces) adding some info about it (like brand-model of device and Android version), like

    framework-Samsung-S8-Android-7.1.2.apk

    put the file in it in Framework-Files sub-folder of Android Multitool and install it in Android Multitool.
    Then try again to decompile/recompile the application.


    - External references

    - apktool by iBotpeaches

    apktool by iBotPeaches - XDA thread

    apktool by iBotPeaches - XDA thread

    - baksmali/smaly by JesusFreke

    baksmali/smaly by JesusFreke - Download (bitbucket.org)

    baksmali/smaly - XDA discussion thread

    baksmali/smaly by JesusFreke - Source (Github)

    - 7zip by Igor Pavlov

    7zip by Igor Pavlov - Tool to decompress/compress files

    - Android Platform Tools by Google

    Android Platform Tools by Google - latest Windows version

    ..
    12
    Android Multitool 3.0 (ADB)

    UPDATE

    Changelog:

    v3.0:

    SlimBean apktool ((de)compiling also with inverted folders from trds)
    ADB (AndroidDebugBridge for pushing files to your device)
    Some Links in the tool for support and donation

    Android Debug Bridge

    I worked quiet a long time on this pretty big feature and I'm happy to present you this new feature in my tool: ADB


    You want to push files with adb to your device? Follow these instructions:
    Please klick on the "advanced" register in the tool
    -push "check" to control if your device is ready
    -if the device is not ready please follow the instructions, which are listed in the tool (device offline, no device...)
    -if the device is ready, choose a file you want to push
    -choose a path on the device, where the file should be placed later
    -alternately: check the "reboot device" checkbox for rebooting the device after pushing
    -push the "push" Button



    Screenshot:

    vne5gy.jpg



    Downloads:

    [DOWNLOAD] (Windows 8 & Windows 8.1)

    [DOWNLOAD] (Windows 7 & XP)
    12
    Update:

    v3.5.6:

    • fix progressbar not disappearing after decompiling
    • fix loop after/while compiling
    • save compiling path and jump into it when he starts folder browsing
    • update user interface

    I also uploaded all version to one folder where you can download each of them.
    The download link will be static from now on.. it brings you to a folder with all the versions inside.


    [DOWNLOAD]

    96854287e1.png