[GUIDE][NEWBIE] Setting Up Apktool for PC - Android General

• For Computer
Requirments:
Apktool(Advanced Apktool By BDFreak)
Java
SDK
Disabled Signature check services.jar
Commonsense
Logic
Instructions:
- Extract AdvanceApktool.zip
- Inside AdvanceApktool there are 4 folders:
• 1-BDFreak: Where apktool.jar, signapk.jar and etc located
• 2-In: Where you will put the app that will be decompiled
• 3-Out: Where the decompiled apps located
• 4-Done: Where the recompiled apps located(result)
- Go to system > framework of the rom and copy FRAMEWORK-RES.apk and MEDIATEK-RES.apk
- Paste it inside the 1-In FOLDER
- Open AdvanceApktool.exe and Press 1 - Install FRAMEWORK
- Choose FRAMEWORK-RES and import it
- Choose MEDIATEK-RES and import it
- Place any app you want inside 1-In folder
- Type 2 - Decompile files and wait
- Self Explore nalang sa ibang features
Note:
- Always press 4 - Recompile, Sign, and Zipalign Files after you press 3 - Recompile files
for good :v
- You can also replace the version of apktool for example the given apktool is apktool 2.0 RC3
you can replace to apktool 2.0 RC4 or apktool 2.0.1 by renaming it in apktool.jar and replace apktool.jar inside 1- BDFreak
• FAQ's
Why need to import FRAMEWORK-RES and MEDIATEK-RES?
- Because the resources of there system apps comes from that two apps
- Also you need to remove FRAMEWORK-RES and MEDIATEK-RES when you are decompiling a third party app
Note:
If you have questions just message us
#WeAreTeamPussy

Related

[Tool]MIUI translateion's kitchen

Miui translation's kitchen is a new (in development) tool to automate many aspects of the translation of MIUI.
Feature:
- deodex original miui rom
- decode apk from list (Configurable from an external file) or single from terminal
- build apk from list (Configurable from an external file) or single from terminal
- add translation folder (Configurable from an external file)
- compare translation file (Configurable from an external file) [not completed now]
- sign apk and update.zip (not sure it works fine)
- fix build error (missing same packages, in development)
for now the kitchen is under development but usable for test.
source: github
for setup kitchen
Code:
. tools/kitchensetup
for prepare rom folder (extract zip and deodex the rom)
Code:
extract_deodex
for prepare rom folder (no odexed rom)
Code:
extract
for decode apk
Code:
decode
for check modified xml
Code:
test
for apply translate
Code:
translate
for fix xml files
Code:
fix
for rebuild apk
Code:
build
for sign apk and zip (it fix apk compression level for resources.arsc)
Code:
sign
this is the actualy completely function.
for now not all apk is successefull installed, I don't know what is the problem
If you have been helpful, buy me a beer
Sorry for bad eng
The tool is almost finished, the problem is that the apk (also unchanged) recompiled can not (even if signed) to be installed.
there are only a few exceptions like bugreport, FileManager and SoundRecorder
Can anyone help me? I tried apktool, 1.4.3 and 1.4.2
Thanks for your efforts, I will try to translate to french with it and report back the results

[Tool][UPDATED v3.5] x-TOOLS - set of GUI-based android engineering tool [12/12/12]

Hello peeps,
I found myself a li'l bit lazy to decompile/re-compile apk files through a command line window each and every time by instructing it
So I decided to build a GUI version of apktool that will help me, and ofcourse others, to decompile and re-build apk files in just a single click.
UPDATED v3.5 with signapk, dex2jar and smali tools.
What is x-TOOLS?
x-TOOLS (previously known as x-APKTool) is a set of GUI-based android engineering tools.
x-TOOLS lets you do forward/reverse engineering in an easy and more convenient way. :good:
Features:
• One-click decompile apk file.
• One-click compile/re-compile edited apk file.
• One-click sign apk and update.zip file.
• One-click conversion of .dex file to .jar file and vice versa.
• One-click conversion of smali files to human readable form and vice versa.
• Detailed logs of output and error (if found).
• Save detailed log in text file.
• Keep recent files record for fast access.
• One-click install framework-res.apk to decompile and recompile stock/custom rom’s dependent apk files.
• One-click install SemGenericUxpRes.apk or resources.apk file.
• Working to build more new features…
Minimum requirements of x-TOOLS:
1. .net framework 3.5 or higher. Download here (if you are on Windows 7 or higher you don’t need to install it.)
2. JRE 1.6 or higher. Download here
NOTE: There was an old problem with Samsung Smali codes that gave error in baksmali process. So if you want to decompile your apk (extracted from Samsung devices), you have to first remove classes.dex file from apk using 7-zip/Winrar and then tried decompiling the apk.
Tested and suggested by aadroid.dev at here
Screenshot:
Attached at bottom of OP.
Changelog:
V3.5:
1. x-APKTool is now formally known as x-TOOLS.
2. Added GUI-based dex2jar tool.
3. Added GUI-based smali tool.
4. Added GUI-based separate apk and update.zip signing tool.
5. Added an option to select,copy and save detailed log in text file. (right click on log window to get these options)
6. Icon improved
7. Added (minor) Google licence info.
8. Fixed some minor bugs.
v1.5:
1. Added automatically signing apk after compilation.
2. Added more info about processing apk file.
3. Added more info about processing apk file.
4. Fixed path name and file name related issues.
5. Fixed a major bug that occurred while forcely decompiling apk file.
6. Fixed some minor bugs.
v1.0:
1. Initial release
Click to expand...
Click to collapse
Download link: download here
Mirror: Download here
Report me for any bug/error. Request/suggestions are always welcome..

[TOOL|WINDOWS]Android Supertool v1.0b- simple yet flexible

Hi folks!
Just want to share this tool for everyone who wants to try this.
Requirements:
- Machine with Windows OS
- Java on Windows (will auto download and install if not exist)
Installation:
+ Extract zip file and double-click exe file to launch (in any location).
+ Then follow simple instructions. It will ask you to select the following:
- 1. your Working Directory - drag and drop it. "WS_Default" workspace inside your working directory will be automatically created. You can add and delete after.
- 2. smali jar version **
- 3. baksmali jar version**
- 4. apktool jar version**
**In 2, 3 and 4, latest versions are recommended but if you're having issues on the ROM your working, you can select the earlier versions (add it if it's missing) for the specific workspace.
- 5. api level - select according to your android version
- 6. signature files: pk8 and pem - you can use your own signature files
- 7. java heap size - recommend not less than 512M. Increase if you want better java performance
- 8. PNG optimization level - recommend 3. The higher, the longer the process will take.
- 9. app compression level - recommend 5. The higher compression, the smaller the app. But app launches more
- efficient if less compressed (but not much significant impact)
Same instructions to follow when adding new workspace.
ANDROID SUPERTOOL v1.0b
Features:
- ESSENTIAL TOOLS for android modding hacking or backward engineering in one place with pretty intuitive interface (noob-friendly, i guess)
+ ADB Commands [select preset adb commands (pull, push, install, reboot, logcat) or throw your own]
+ Deodexing tool [select all, just apks or just jars; may use custom bootclasspath]
+ Apk/jar Decompiler
+ Apk/jar Recompiler [with original signature]
+ Dex (only) Decompiler
+ Dex Recompiler [will auto-inject to respective app]
+ Re-sign apk/jar
+ Optimize apk/jar
+ Extract ROMs [tar.(md5)]
+ Img to ext4 convertion [for samsung ROMs]
+ Open ext4 imgs [using Linux Reader - will autodownload and install if not exist]
+ Extract YAFFS img​- FLEXIBLE WORKING DIRECTORY
+ Select your own working directory
+ Multiple WORKSPACE [create, select, delete workspaces] - you can use separate workspace for each ROM or for each app (depends to you)​- MULTIPLE WORKSPACE
+ Different settings per workspace: Installed Framework, smali*.jar, baksmali*.jar, apktool*.jar, ignore mode, app compression, png optimization level, signature files, java heap size.
+ Auto-creates folders structure per workspace:​+ Frameworks => where installed framework is located
+ Odexed (\app, \framework, \priv-app) => destination for ADB pull for ODEXED ROM; Deodex tasks select apps from these folders
+ Deodexed(\app, \framework, \priv-app) => destination for ADB pull for DEODEXED ROM; Decompile tasks and optimize tasks select apps from these folders
+ DecompDex (\app, \framework, \priv-app) => destination for decompile dex tasks; Dex recompiler tasks select apps from these folders
+ Decompiled (\app, \framework, \priv-app) => destination for decompile apk/jar tasks; Apk/jar recompiler tasks select apps from these folders
+ Recompiled (\Unsigned, \Signed) => destination for recompile dex/apk/jar tasks; App optimizer tasks can also select apps from these folders; App signer tasks select apps from Unsigned subfolder
+ Optimized (\app, \framework, \priv-ap) => destination for optimize apk/jar tasks; ADB push tasks also select from these folders
+ temp => misc tasks utilizes this folder; log files is located in log subfolder.​- OTHERS
+ You can update or add your own - apktool*.jar, smali*.jar, baksmali*.jar, signature files, new api-level
+ Auto-open destination settings (ON/OFF)
+ 2-generation-autoback-up system
+ More may come soon.​
BUGS, SUGGESTIONS AND FEATURE REQUEST:
-Just report it here or PM me.
Please click THANKS if you :good: this tool.
CREDITS:
code.google (apktool, smali, baksmali, unyaffs)
Igor Pavlov/7zip.org/sourcefourge (7zip tool)
Cosmin Truţa/sourcefourge (optiPNG tool)
gnu.org (wget)
Red Hat (cygwin)
Oracle (java RE)
DiskInternals (LinuxReader)
Kai Wei/Bernhard Ehlers/ (unyaffs)
Xda developers (for various guides and tools)
Google (for everything)​
Changelog:
--reserved--​

[Guide] How change icons ON your devices!

Change the icons of applications directly on your android devices.
You can work on your device:
- decompile
- modify
- compile and
- sign your application.
A). Prerequidites:
- rom deodexed
- root
- zip
- knowledge of decompiling and recompiling the .apk
B). These files download:
- Tools apktool ---> https://app.box.com/s/zeuzgbzc1a4h9d7dk6n9
(Original thread: forum.xda-developers.com/shoxthread.php?t=2488697
- This zipper ---> https://app.box.com/s/eo2zj583npvrawqh3c2s
- Site of icons ---> www.iconspedia.com
C). Installation of tools:
- Install zipper as application
- Make iconspedia as favorite in your browser
- Install apktool4.4: dezip apktool4.4_armhf. zip on sdcard-root. In this folder found apktool4.4.1.apk and install it.
D). Create a work folder on sdcard-root.
E). The work:
- Download the icon you want make
- Execute apktool application and choose application to modify icon.
- Go to work folder and brower the decompiled folder of application.
- Findd the folder RES and open it.
- Search ALL files with names DRAWABLE* ****
- Open these files one by one, find and change the icon desired. Keep the same names of icon
- Recompile your application
- Sign your application within apktool.
- Reinstall this application ON YOUR DEVICE.
END.

[TOOL] APKTool batch script v3.1 (batch files, signer, drag and drop)

Hello, I present a simple to use batch script for Compiling/Decompiling/Signing, focused on files drag and dropping.
Features:
.APKs decompilation
.APKs compilation
Automatic backup of previously compiled .APKs (single backup only)
Batch compiling/decompiling
Full drag and drop support, working with .APKs and folders simultaneously even from different directories
Optional integrated APK Signer (check "Prerequisites")
Interactive command line environment with different options available, minimal user interaction necessary
Multiple checks to avoid errors and any data loss
Compatible with spaces in filenames/paths
Very lightweight, the script itself:<10KB, combined with signer:<30KB
Prerequisites:
Apktool fully installed on "C:\Windows", all required device frameworks must be installed, too*
For signing support:
Download LtHuNTer_StepheN's apk_signer from here , and paste "mysigner.bat" into the tool's directory. Afterwards, replace "YOUR\PATH TO\APK Signer\mysigner.bat" from "APKTool v4.1 XDA.bat" (lines 63, 155, 161) with your own path. Note: The output (signed) .APK stays in /dist folder with no name change.
To enable zipaligning support, copy the included "zipalign.exe" & "myzipaligner.bat" to a location of your choice and then edit the following lines from "APKTool v4.1 XDA.bat": "YOUR\PATH TO\zipalign.exe\myzipaligner.bat" (lines 156, 162)
Working Java Runtime (check by entering "Java -version", without quotes, in command line)
How to use:
1.) Uncompress APKTool v3 XDA.zip. Copy "APKTool v3 XDA.bat" anywhere to the system (desktop is recommended for fast access, shortcut works too)
2.) Drag any APKs or a previously decompiled folders and drop it to "APKTool v4.1 XDA.bat" If a file is selected, it will be decompiled to the user selected folder. If a folder is selected, it will be compiled, creating a backup of the previously compiled (if any) in the process. Afterwards, if signing is supported, the batch script will ask if you want the file to be signed and automatically zipaligned. Any selected options will apply to every single selected file/folder for the session, unless otherwise selected.
3.) For signing and zipalign support, check above.
4.) You may use "copy.bat" to copy the compiled .apk from the decompiled folder to its root. Just drag and drop the folder containing "dist" to the batch file.
Check changelog on first post.
Fully tested on my PC running Windows 10. If you find any bug, please post the steps required to reproduce it. If you have any applicable suggestions, please let me know.
Don't reupload, modified or not, claiming it's yours.
Many thanks to LtHuNTer_StepheN for his signer.
Changelogs
alpha: combined Compilation and Decompilation scripts
beta: added multiple files drag and drop support
v1: added integration for APK signer
v2: added backup support, enhanced interactivity
v3: bugs polish, first public release
v3.1: fixed small bug, now should work without problems with .APKs containing spaces
v4.0: added integration for files zipaligning
v4.1: fixed bug concerning batch files support, now there shouldn't be any problems
Reserved post
am I blind or are there no download link?

Categories

Resources