APK Tool For Windows - Android Software Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
APKTOOL FOR WINDOWS
First and foremost thanks to @iBotPeaches for his dedication to Apktool!
Because I can double-click more accurately than I can type, I made this up to avoid having to use command line and speed up modding the couple of apks that I try to keep up on. Maybe it'll help a few others speed up their process too.
Now, this is a Windows based GUI for Apktool. No command line needed. That said, you should be very familiar with already using Apktool via command line so you know the process that it follows and the corrective measures needed should errors pop up. You need to have the exact same setup as Apktool (Java in your environment path and current Java version AND relevant frameworks installed via apktool!! ). All that this does is provide a simple Windows style menu for the process. You can very easily update apktool.jar as @iBotPeaches updates it. Also, if you would like to add any switch to the decompile or compile command other than the typical (which is what I used) you can just modify the corresponding .bat file located in SupportFiles that APKTool For WIN calls on.
See the attached screenshots in the following post for the easy to follow layout and it's capabilities. It will install frameworks/etc, decompile, compile (with or without original manifest and meta-inf), sign (with testkey or your personal one), and display an apktool log.
As this directly uses apktool.jar, it will have the same quirks/issues such as this current one:
10/18/2016 - for apktool v2.2.1 regarding v2 signed apps - LINK​
V4 - As I was posting this, I noticed there was an update to apktool.jar (v2.2.1) which I updated the file to reflect. I modded several apps with the earlier version but only attempted two apps with the updated one (didn't see any issue with either app but I'm still on MM). I haven't looked more in depth at this V2 signed apps issue yet to see if I can modify the signing.bat to account for it (it's 230am). I will update it if there is.
V5 - (1) Updated apktool.jar to 2.2.2 if you haven't already yourself and (2) added java version info in your log file on Decompile routine to help identify a beginners issue on determining whether or not you have java installed in your path

Copy apks to the "APKs_To Decompile" folder.
Copy your framework-res, twframework-res, systemUI as needed to the folder "Frameworks".
Install frameworks.
Running the APKTool For WIN.exe select Install Frameworks
Decompile.
Select Decompile .apk
Choose your apk.
Decompiled app will be in the Decompiled folder.
Compile.
Select Compile
Choose your app to compile.
(One backup will be automatically created if there is an existing one to be safe in the decompiled app's folder)
Choose to copy the original manifest and meta-inf if desired
Compiled apk will be in the Compiled folder
Sign.
Select Sign APK
Choose the apk to sign.
Choose to sign with the testkey or with your personal key (help file is included in the zip for initial setup for using your own key)
Signed apk will be in the Signed folder
APKTool Log
If an Error message is displayed after decompiling or compiling you can check the log.
It's also beneficial to clear the log sometimes.

reserved for future use, faqs, issues

hmmm......after being away for a while i'm checking back to see if anyone had issues with trying to use this....and.......
not a single issue/question/comment with nearly 100 downloads. you guys are GOOD!!! (unless y'all think it's pointless and are being too kind to comment )
in the next few days, i'll use it a bit more in depth with the updated source and see if anything needs tweaking

Great tool !! I like it , this is solve my problems.
thank you so much , please keep it up.

Small update - V5
1. Updated to apktool 2.2.2 in case you haven't already done so yourself.
2. Added your java version info to the log generated when you run a Decompile routine to help beginners identify whether or not java is in the required path

Related

[HOW TO] Use and install APKtool

So, here i'm again porting a tutorial based on DSM_'s Tut
What do you need:
JRE (Java Runtime Environment)
Install:
Windows:
Download apktool
Download apktool-install-windows
Unpack both pakages you will get three files, copy those files to your Windows directory i.e. C:\WINDOWS
Decoding files:
Open Command. Run>cmd
Type-
Quote
apktool d file.apk [directory]
Example - apktool d D:\nfsshift.apk D:\nfsshift
Done!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
FrameworkFiles
Apktool needs the framework files to decode and build apks.
Standard framework is embedded into apktool, so you don't need to do anything for most apk files. But some manufacturers, for example Samsung, add their own framework files and use them in system apps. To use apktool against such apps, you must pull framework from a device and install/register it to apktool.
For Example, you want to decode TouchWizLauncher.apk from Android v2.2 of Galaxy 5. If you try to do that, you will get an error message:
You need to install framework in apktool Type-
apktool if [framework location]
I have the got the framework-res.apk & twframework-res.apk by extracting the ROM. You can also copy it from your phone. But take care you must copy framework.apk from that ROM in which you got the Application file.
Then try again
Now is working.
How to build decoded files:
Just type
apktool b [directory in which you have decoded the files]
Example - apktool b D:\nfsshift
Done!
You will find the apk file inside the decoded directory, like I found it in - D:\nfsshift\dist\nfsshift.apk
Now you need to sign your APK file.
How to Sign APK files:
When publishing an application or a custom rom you need to sign the .apk or .zip files with a certificate using a private key. The Android system uses the certificate to identify the author of an application and establish trust relationship between applications. The classic way of doing this was to use keytool then sign it with jarsigner. In this tutorial i’ll explain an alternative method which is relatively easy to use for most people using a tool called SignApk.jar.
First download the SignAPK tool - http://www.mediafire.com/?rw57ftajd6nm81s
Extract them to a directory you will remember. I have put them in C:\SignApk
Now just open cmd and type -
Quote
cd C:\SignApk
java -jar signapk.jar certificate.pem key.pk8 your-app.apk your-app-signed.apk
Example - java -jar signapk.jar certificate.pem key.pk8 D:\nfsshift\dist\nfsshift.apk D:\nfsshift\dist\nfsshift-signed.apk
Your APK is signed and can be installed.
●๋•ηι¢є ιηƒσ●๋•
Sent from my GT-S7500 using xda app-developers app
I know this is an old post but I need some help. I have the apktool, dex2jar and jd-gui in a folder on my Desktop
I installed the framework-res.apk and it installs into a different folder. Do I need to have the Framework folder into the same folder as the other files or will it be able to locate the framework files no matter where they are.
The reason I ask is because even though I have installed the framework, I am still getting error message when attempting apktool d filename.apk. Any ideas would be helpful, thank you

[Guide] How to make a Multilang package for official Motorola’s rom (4.4-)

How to make a Multilang package for official Motorola’s rom (4.4-):
What do you need? – Skills, patient, knowledge & time.
ONLY UNLOCKED BOOTLOADER & rooted device - if you dont have the firmware.
1. You need the same version of android (4.4.4, 5.0, etc) Nexus, GPE or Android One system apps.
Where do you find this? – In the system dumps – find in XDA’s thread or try Google search. If you dont found, try the factory images and you extract the system.img.
2. Install Android SDK with API 21 for the Lollipop systems & Java SDK.
3. the latest apktool.jar with aapt.exe & apktool.bat. Find it here. After download copy to C:\Windows path.
If you do not have access to C://Windows, you may place the three files anywhere then add that directory to your Environment Variables System PATH variable.
- security step 1: after the copying restart your sytem
- security step 2: install the framework-res.apk ---
a.) Put the apktool.jar & the framework-res.apk (grab from the downloaded system\framework folder) in one folder.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
b.) Open a command in this folder (like with TotalCommader ’cmd’ command) and type:
apktool if framework-res.apk
and press Enter
- if everything ok you see this:
Framework installed to: /users/…/apktool/framework/1.apk
4. I use BDFReak Advanced Apktool 4.1.0 for the process. Download & extract.
5. Copy the necesseary files to the extracted AdvancedApkTool 2-In folder.
- for example this is the necessary files:
app:
Bluetooth
Calculator
CellBroadcastReceiver
DeskClock
DownloadProviderUi
TelephonyProvider
- framework:
framework-res
- priv-app:
Contacts
ContactsProvider
Dialer
DownloadProvider
Keyguard
Launcher2
Mms
Settings
SettingsProvider
SystemUI
Teleservice
6. Run the Advanced ApkTool.exe – and Install the framework
- after then decompile the apps. The decompiled apk’s folders are in the [3-out] folder.
7. Delete the not necessary folders:
You need only the [res] folders from the decompiled apps and the [raw-] + [values-] folders from this parent folder. Save this folders!
Remains only the [raw- ] and the [values- ] folders.
Example: framework-res.apk\res\raw-HU,
framework-res.apk\res\values-HU
This folders contains the language .xmls & etc for the multilang apps.
After this process you have to save the decompiled apk’s folder to another folder. For example „Nexus 5.0 Extracted apps”.
8. Now you have to copy the system apps from your Motorola device to the AdvancedApkTool [2-In] folder and after decompiled the files.
9. Go to the „Nexus 5.0 Extracted app” and copy the corresponding app’s [res] folders to the Advanced Apktool [3-Out] folder apps.
No overwriting!!! Skipp all the existing folders, xmls!
10. Next step: Recompile the apps.
11. For safety I copy the original .apk's [META-INF] folder + AndroidManifest.xml to the new .apks, overwriting the existing ones.
(The original .apk is te [2-IN] folder, the new .apk is in the [4-OUT] folder. )
Now You are Done!
Next step - Making a flashable package.
I do not take any responsibility. Use at your own risk.
Nice work bro [emoji106]
▪◼ Tapatalk ♦ Moto G ◼▪
Good job
All this work with adding values folders isn't really hard but it takes time and I respect you for been doing this for a long time already.
S0bes said:
Good job
All this work with adding values folders isn't really hard but it takes time and I respect you for been doing this for a long time already.
Click to expand...
Click to collapse
Thank you very much! Previously, I started on the basis of your work. In the last few package with this method only 30 minutes the process, but there are too many other things prevents (another system.img, extract, files from another rom, etc...)
Thereafter I will focus only on the 2013 X.
Hi, are there any changes in your guide for 5.1 android?
machaj25 said:
Hi, are there any changes in your guide for 5.1 android?
Click to expand...
Click to collapse
As soon as I do for a multilang pack for the Moto G 2nd gen 5.1 (not released yet) or the "new" Moto G i refresh the OP.

[TOOL][WIN][2017-09-10]* DJBTool v1.05*[APK/JAR (de)compiling Tools]

DJBTool version 1.05
Inspired by APK Multi-Tool (created by @raziel23x / XDA)
Created by djb77 / XDA (some portions from APKMultiTool by raziel23x / XDA)
Build Date: 10th September
Using APKTool 2.2.4 and 7-Zip 16.04
DOWNLOAD HERE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
REQUIREMENTS
- Windows Operating System (Windows 7 or newer)
- Java JDK 8
WHAT DOES THIS PROGRAM DO?
- Decompile/Compile APK files (Manually or Automatic Batch)
- Decompile/Compile JAR files (Manually or Automatic Batch)
- Sign APK/JAR/ZIP files (Automatic Batch)
QUICK INSTRUCTIONS
- Load your framework-res.apk, twframework-res.apk (or amsung-framework-res.apk for Nougat ROMS), and SystemUI.apk into the "framework" folder,
then select option 5 in the main menu to install the framework.
- Put the APK / JAR files you want to decompile into the "files_original" folder.
You can either decompile them one at a time with option 1, or decompile the whole lot at once with option 2.
- To compile your APK / JAR files, you can select option 3 to choose which file you wish to compile,
or you can select option 4 which will compile all the decompiled APK / JAR files.
The orignal signature files are inserted back into the new files.
NOTE: YOU WILL NEED TO RE-SIGN THE FILES IF YOU HAVE CHANGED THE ANDROIDMANIFEST.XML FILE
- Use option 6 to sign your files, it will also let you copy over any newly compiled APK / JAR files,
and also has the support to sign ZIP files as well.
XDA:DevDB Information
DJBTool, Tool/Utility for all devices (see above for details)
Contributors
djb77
Source Code: https://github.com/djb77/djbtool-win
Version Information
Status: Beta
Current Stable Version: v1.05
Stable Release Date: 2017-09-10
Created 2016-09-05
Last Updated 2017-09-09
CHANGELOG
v1.05 - 2017-09-10
Updated APKTool to 2.2.4
Added -b switch to disable debug info in smali
Nice tool! :good:
Wondering why this thread is so quiet. I assume this tool also works with our S7 devices running 7.0 Nougat?
In my system/framework folder there's no twframework-res.apk, only a folder 'samsung-framework-res' containing an apk with the same name. Should I place this apk in the framework folder of your tool instead of the twframework-res.apk? Or should I rename the mentioned apk to twframework-res.apk?
nightcrow said:
Nice tool! :good:
Wondering why this thread is so quiet. I assume this tool also works with our S7 devices running 7.0 Nougat?
In my system/framework folder there's no twframework-res.apk, only a folder 'samsung-framework-res' containing an apk with the same name. Should I place this apk in the framework folder of your tool instead of the twframework-res.apk? Or should I rename the mentioned apk to twframework-res.apk?
Click to expand...
Click to collapse
I have updated this to support samsung-framework-res (as S7 Nougat is my main platform), I just never updated this thread because it seemed that nobody cared about it.Give me a few minutes and I'll put the latest version up here for you.
djb77 said:
I have updated this to support samsung-framework-res (as S7 Nougat is my main platform), I just never updated this thread because it seemed that nobody cared about it.Give me a few minutes and I'll put the latest version up here for you.
Click to expand...
Click to collapse
Thank you for the update! Looking forward to using it.
Edit: just one note: in the updated zip the folders seem to be missing. No worries since I just copied them from an older version. But might be worth the effort to add them in the update as well, te have a complete zip-file.
Hello
Thank you for sharing, I will test what I get
Updated to 1.05:
-Updated APKTool to 2.2.4
- Added -b switch to disable debug info in smali
@djb77
can this tools make higher version apk to low version like minsdk version 23 to minsdk version 17...

APK Editor (Simple GUI - IDE FOR APK) Decompile apk in 5sec and Edit - x86, x64

APK EDITOR (SIMPLE AND SMALL IDE FOR APK)​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hai.. Xda Friends and devs please take a try on this IDE for ones and say How would you feel? and this is a new try on IDE for APK with small and simple gui - it is easy to access files and quick edit behalf of using android studio and wait more than 10min on gradle building.. this is quick edit simple very easy.! ​
What is this?​
A Apk editor with simple and small GUI
No API Downloads required
No Android Studio with GBs of Download Packs
Only with less than 100MB use APK Editor
Easy to use Easy New features coming up!
What is needed to work and run?​
Java RDK or SDK
Internet for - serialization and De-serialization xml files
Apk Editor
Apk Editor -Alpha Full IDE For APK in windows Setup
------------------​
#Simple UI for editing Apk
#Easy Tasking
#Subtitute for Android Studio
#No Decompiling apk codes only Clicks
#Editing xml and java files builtin
#more coming updates
Just click and edit apk suits for apk editors
java and xml files editing...
unpack apk in 2 seconds...
no gradle no api no slow no time waste!​
Note -- (read this before Install or using)
-Must install java Run time kit
(online setup will run after install)
-Goto File > Open > Open apk for edit...
browse apk file for editing
Updates will automatically Reach you.!
Information​
Version- 1.00v alpha
APP DLL- jvm.dll
Run SDK- java SDK
IDE For- APK ONLY
API FOR- ALL Supported
Platf-m- x64 and x86 both
author main site
apkeditor blogspot
download link in attachments below===
MOD Edit:- Links Removed & Thread closed.

			
				
It's fake virus in
Nop
I doesn't have any virus bro... no virus just try .. can u send a screenshot if its there
This is no a virus
renzetti.s said:
It's fake virus in
Click to expand...
Click to collapse
it's a shortenlink redirection I you click iam not a robot its finish.
ok I will re link it in a 5 min
This
Sorry bro i have read this now
renzetti.s said:
This
Click to expand...
Click to collapse
i will re upload again a fresh exe bro
fake .. close post only virus
Looking for best hacking app for your android devices
As the name states, Apk Editor does the same job of its name. It gives you the features to Edit, make change save you customized app and if you don’t have the app you can extract form any app already install in your device.

[MOD][TEMPLATE] APK-Patcher Lite

APK-Patcher Lite
Flashable Zip Template for Modifying System APKs On-Device
Based on APK-Patcher by @osm0sis​
Information
This is a modified version of APK-Patcher that will delete / inject files into System APK files instead of using a baksmali / apktool method.
The method used here is a similar method used in my ROMs to patch files, where instead of having to have like for example 4 SystemUI files, I only needed to keep the actual files that were changed.
This method could also be used quite easily to apply OTA updates or addons on already pre-modified APK files.
LINK TO GITHUB (STANDARD): https://github.com/djb77/APK-Patcher-Lite
LINK TO GITHUB (MAGISK): https://github.com/djb77/APK-Patcher-Lite_Magisk
Usage
Copy your pre-compiled resource files (including .dex files) to the patch folder, removing the .apk part of the filename (ie: SystemUI)
Create a file in scripts with the same name (ie: SystemUI.sh) if you want to delete any existing files from the APK
Make edits to envvar.sh, and also to extracmd.sh if needed
Properties / Variables (envvar.sh)
banner="";
apklist="";
apkbak=/data/media/0/APK-Backup;
backup=1;
cleanup=1;
banner is the name of your patch zip, usually suggestive of what it does, to be displayed at the beginning of the zip flash. You should include your name/handle here like "by osm0sis @ xda-developers" for credit purposes.
apklist is a string containing the list of APKs to be patched included in the patch zip, separated by spaces between the quotes. Each APK is automatically found recursively in /system, then copied to the working directory to be decompiled and acted on, then copied back to /system.
apkbak is the location to place backups of the untouched APKs in apklist if backup=1 is set.
backup=1 will store backups of the untouched APKs in the location specified in apkbak.
cleanup=0 will keep the zip from removing it's working directory in /tmp/apkpatcher - this can be useful if trying to debug in adb shell whether the patches worked correctly. cleanup=1 is necessary on multi-APK patching zips, so it's recommended each APK to be patched be tested on their own with cleanup=0 before combining into a single zip.
envvar.sh
Modify the envvar.sh to add your banner, apklist, backup and cleanup options
Multiple files can be patched, put a space between the filenames (ie: apklist="file1.apk file2.apk"
extracmd.sh
Modify the extracmd.sh to add any additional commands to be performed at the end of the patching process that aren't patch-related (/data file changes,
scripts/$apkname.sh
fileremove="";
$apkname is the name of the folder that you put your resources files in. Copy scripts_sample.sh and rename it to your APK (ie: SystemUI.sh)
Multiple files can be deleted, put a space between the paths (ie: fileremove="/res/drawable/file1.png /res/drawable/file1.png"
Good job, mate. Usefull for a 5-SystemUI ROMs :highfive:
Good job as usual..... mate
Nice one mate
Can't wait to try it out
Well done, good job bro [emoji106]
Can I use this to get more coins in wonka's world of candy?
NICE... :good: :highfive:
Good work djb77
Replied to wrong thread
Could this modify an apk's screen orientation?
For months i've been trying to get USTVHUB to open on my Shield TV on 8.0 but wont because the app only opens in portrait mode-meant for phones only.
This app works on my S7 or phones. But no matter which screen orientation app i try, and tried editing code, the app crashes every time on my Shield tv because that's landscape mode.
If the OP app wont work for this can someone point me in the direction of something that would work to change an apk's screen orientation?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
dovedescent7 said:
Could this modify an apk's screen orientation?
For months i've been trying to get USTVHUB to open on my Shield TV on 8.0 but wont because the app only opens in portrait mode-meant for phones only.
This app works on my S7 or phones. But no matter which screen orientation app i try, and tried editing code, the app crashes every time on my Shield tv because that's landscape mode.
If the OP app wont work for this can someone point me in the direction of something that would work to change an apk's screen orientation?
Click to expand...
Click to collapse
My module will work if you give it the right files to inject, what files/resources my module injects into an APK is your responsibility.
this need root?
smallville7123 said:
this need root?
Click to expand...
Click to collapse
no root needed, just custom recovery to flash your finished zip
Does it support non system app? Can I add files (not replace) that does not exist in the APK itself? (My banking app launcher icon only support mdpi, so I want to add higher resolution)
For me returned error bellow
Code:
local entry crc does not match

Categories

Resources