{
"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"
}
Hello! I have built a little windows app that allows you to easily create flashable zips. (tested on Nexus 5 (android 4.4) and Samsung galaxy S i9000 (android 4.3))
INTRODUCTION:
This program allows you to create flashable zips. Basically the program just creates directories needed
for flashable zip and place edited updater-script and selected apk or zip to right folder.
Then these folders are zipped with DotNetZip library. And voilà zip is ready to be flashed.
To use signing, make sure you have Java installed on your compuer.
CURRENTLY NOT COMPATIBLE WITH ANDROID 5.0 LOLLIPOP!
FEATURES:
- Creating flashable zips for user, system apps, framework-res.apk, bootanimation and build.prop
- Editing updater-script
- Drag & Drop functionality
- Signing created zip
Upcoming Features:
- Lollipop support
- Multi languag support
CHANGELOG:
Version 1.5:
- Simplified interface
- Improved code
- Minor bug fixes
Version 1.3:
- Added custom names option
- Rearranged options
Version 1.2:
- Android 4.4+ Kit Kat support (for apps in priv-app)
Version 1.1:
- Added signing zips
- Improved code and minor bug fixes
Version 1.0:
- Added more options
- Support for creating Zip's with multiple Apk's
- Completely rearranged UI
- Code improvments and bug fixes
Version 0.2:
- Kit Kat support
- Creating zips for build.prop
- Added options tab
- Bug fixes and improved code
- Added Microsoft.VisualBasic.PowerPacks.Vs.dll (thanks to @codelover)
Version 0.1:
- Beta relese (2014-01-29)
HOW TO:
Just drag an apk or zip to the textbox, and then follow message boxes for editing updater-script.
Name your zip and press enter. Zip will be saved to selected directory in options. There you can also
toggle message box pop-ups.
(great tutorial for editing/explaining updater-script http://forum.xda-developers.com/showthread.php?t=2377695)
"No one has ever become poor by giving."
Anne Frank
Seems interesting.
Did you test it and can you give an exemple of what you did, it'd be nice.
Best regards
Franky
any plans for a osx version?
Dont Working
It won't open on my PC, windows 7 enterprise x86.
will it be possible to flash apk's + data as of a backup?
Dosen't Work !!!
Hi, I've yet to try the tool. Found you through the portal, Yay! Wanted to thank you for your work on this app, as it's something for which I've been looking. Thanks for your hard work, the development and for all future work on this app to come. Cheers!
tinydynamite00
I don't think Visual Basic Power Packs is installed by default, download it HERE.
@OrglCe, you might need to consider include 'Microsoft.VisualBasic.PowerPacks.Vs.dll' in your zip package, of cause, under same path with Ionic.Zip.dll.
EDIT: Logo expanded too much here.
Keep up the good work.
Cheers
codelover said:
I don't think Visual Basic Power Packs is installed by default, download it HERE.
@OrglCe, you might need to consider include 'Microsoft.VisualBasic.PowerPacks.Vs.dll' in your zip package, of cause, under same path with Ionic.Zip.dll.
EDIT: Logo expanded too much here.
Keep up the good work.
Cheers
Click to expand...
Click to collapse
can we creat stock rom zip by this tool
STOCK ROM SOURCE FTF FILES
It works! Windows 8.1. If you edit the installation hands 4.4 also works.
Awesome, cant wait for kitkat support
xyagnesh.davex said:
can we creat stock rom zip by this tool
STOCK ROM SOURCE FTF FILES
Click to expand...
Click to collapse
+1:good:
This app looks great.
What would be greater is that the support of kernel flashing, i.e. boot.img files.
Great work @OrglCe will be following the progress of this app!
I want to edit some system files (e.g. build.prop) using my own scripts, do I have to choose the "flash system app" option? My problem is to find the right update-binaries files, the ones from working zips failed and I have no idea about creating my own.
I wish there would be some equivalent tools for linux...
klenamenis said:
I want to edit some system files (e.g. build.prop) using my own scripts, do I have to choose the "flash system app" option? My problem is to find the right update-binaries files, the ones from working zips failed and I have no idea about creating my own.
I wish there would be some equivalent tools for linux...
Click to expand...
Click to collapse
The "flash system app" option is only for flashing system apps. You can't use it to flash build.prop or any other system file.
But I will try make that option in the future releases.
sweeet good job!!!! :victory:
Can it made to add more than one to the zip?
alammori said:
Can it made to add more than one to the zip?
Click to expand...
Click to collapse
This feature will be added in the next versions of the app. I will try to make it as soon as possibile,
Related
This tool let you to analyze *ANY* DSM or *ANY* Folder containing DSM. It doesnt use files like packages.sof or other so you can analyze XIP folders, SYS folders, OEM folders, DUMP folder, and others.
However, it can export files listed in a DSM in a folder that you want (useful if you analyze a dump folder). Another feature is that it can modify package name and package versions.
Screenshots: (not updated, 1.5)
After analyzing a 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"
}
After analyzing a DSM and clicking on "Manage Files Included":
Tools menù Opened:
Certificate info:
PS. The certificate window depends on your system language
Changelog
Code:
Update - 1.9:
- Added Dissolvence on opening and closing
- No more compressed: no antivirus false-positive detection anymore
- Added command line switches:
-a DSM_PATH (analyze the dsm specified)
-af F_PATH (analyze the folder specified)
-mp F_PATH (make packages in the folder specified)
-mpnc F_PATH (make packages in the folder specified but without making certificates)
- Other small changes
- Other small fixes
Update - 1.7:
- Added Random Button at the right of GUID boxes (to generate a random guid!!)
- Added Make Packages Function in tools menu (It works a little different then Bepe's package tool)
- Added Correct Packages Lists in tools menu (To check if all files listed in some DSM(s) are present there, and correct them automatically.)
It will check for unlisted files too (as make packages function do) and will ask to you if make a package with the unlisted files (as make packages function do too)
http://rapidshare.com/files/168309883/DSMAnalyzer-1_7.rar
Update - 1.6:
- Added function to Remove a certificate
- Added "Delete package files" to tools menu (this will allow you to delete a package entirely with all his files, useful when you want to delete a pkg from a dump...THIS WILL NOT DELETE REGISTRY ENTRIES!!!)
- Added function that allow to remove files listed that are not present in the DSM folder automatically (in manage files included window)
- Small fixes
http://rapidshare.com/files/166327889/DSMAnalyzer_1.6.rar
Update - 1.5:
- Added possibility to export, view and import certificates
- Added possibility to modify voices in file list
- Added function to populate the file list automatically
- Added Donate button
- Remapped objects TabIndex
[url]http://rapidshare.com/files/165396325/DSMAnalyzer-1_5.rar[/url]
Update - 1.4:
- Better Error Handling
- GUID can be modified now
- File list can be modified now
- Now DSMs can be created from nothing
- Some small fixes
[url]http://rapidshare.com/files/163149188/DSMAnalyzer-1_4.rar[/url]
Start Version - 1.2:
[url]http://rapidshare.com/files/162480867/DSMAnalyzer.rar[/url]
Download latest version:
http://rapidshare.com/files/210015398/DSMAnalyzer_1.9.rar
Modules Tool v0.1
This tool allows you to convert modules to file and viceversa. It can try to fix modules converting them to file then back to modules.
http://rapidshare.com/files/244548153/ModulesTools.rar
Nice!!!, release it already
ather90 said:
Nice!!!, release it already
Click to expand...
Click to collapse
How cool, when can we see the light of this tool !!
Of course....i want it
ehehe good works miky!
Thanks a lot!
ok,ok link added
michyprima said:
This tool let you to analyze *ANY* DSM or *ANY*
Click to expand...
Click to collapse
Thank you for this tool ..
michyprima said:
PS: Other tools coming soon!
Click to expand...
Click to collapse
What other tools, can we expect from you ?
nice work indeed , any hint on the upcoming tools ?
tools from my kitchen that i coded myself, so simply apps like this, but some times useful a lot.
michyprima said:
tools from my kitchen that i coded myself, so simply apps like this, but some times useful a lot.
Click to expand...
Click to collapse
Sounds really cool, i will keep one eye on you, and your usefull tools
Cool, great tool even for "non experienced" chef!
Nice tool, very thanks
You are wlcome
A dream which is coming into reality....
Hopefully there will come a day to easily convert any cabs to an OEM package...
Awesome tool. Gonna subscribe to this thread to keep an eye on the upcoming tools too Thanks a lot
Thanks for great tool michyprima!
character said:
Hopefully there will come a day to easily convert any cabs to an OEM package...
Click to expand...
Click to collapse
This day came long time a go Try to use ervius tool: Package creator v2.7
anyone that can tell me if for him works good?
michyprima said:
anyone that can tell me if for him works good?
Click to expand...
Click to collapse
I have found it usefull, i have find out that the one sys file i have downloaded is 20755 instead of 20921
DSM Analyzer updated to v1.4!!!
This is nice!
Thanks for the update.
Hello XDA-developers!!
I've created a simple tool for signing Apk's and Zip's with GUI with Drag & Drop functionality. Signing is based on signapk.jar.
Features:
- Drag and Drop Apk or Zip
- Signing with 4 different keys: Test, Platform, Media, Shared.
Changelog:
1.0
- Beta Relese
1.1
- Added Settings Tab
- Option to select where to save signed files
1.2
- Added option to disable message alerts
- Fixed bugs, rewritten code
How To:
Run the Apk&ZipSigner.exe. Then you can choose or Drag & Drop any apk or zip to the textbox.
Then you can choose your key for signing files.
Just click on the button and signed file will be saved to choosen directory (change it in settings.
Files in the Tools folder are used for signing files so don't delete them.
In quick signer mode you can just drag the file in the text box, the file will be signed and
saved in the selected directory. If directory isn't specified the signed file will be saved in the root
folder of the program.
{
"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"
}
thanks my bro
Nice tool.
Btw, whats the different with this: - Signing with 4 different keys: Test, Platform, Media, Shared ?
exodius48 said:
Nice tool.
Btw, whats the different with this: - Signing with 4 different keys: Test, Platform, Media, Shared ?
Click to expand...
Click to collapse
+1
nice bro
why you dont add sign market key ?
or maps key ?
not workin with me pro
exodius48 said:
Nice tool.
Btw, whats the different with this: - Signing with 4 different keys: Test, Platform, Media, Shared ?
Click to expand...
Click to collapse
+ 2
Nice
---------- Post added at 05:37 PM ---------- Previous post was at 05:30 PM ----------
exodius48 said:
Nice tool.
Btw, whats the different with this: - Signing with 4 different keys: Test, Platform, Media, Shared ?
Click to expand...
Click to collapse
+3
exodius48 said:
Nice tool.
Btw, whats the different with this: - Signing with 4 different keys: Test, Platform, Media, Shared ?
Click to expand...
Click to collapse
Honestly I don't know what are Shared and Media keys for. Test key is general key for signing apks and zips and Platform
key is for signing apks which are moved to /system/app directory on your phone. If you don't sign them with Platform key, phone will get into bootloop.
I just put Media and Shared into the app if anyone finds it useful.
You are just amazing bro......
hey dudes.how r u? I try to sign some apps and nothing happens.it just says in one second that my app has been signed,but I can't find them anywhere.
sweet thanks, makes things easier
Sorry, but I can not finde the download link!
token2021 said:
sweet thanks, makes things easier
Click to expand...
Click to collapse
Hi! where is the download link?? Thanks!
Do someone have an download link? please, since XDA changed it's design, many attached files disappeared
thks
WHERE IS THE LINK???
OrglCe said:
Hello XDA-developers!!
I've created a simple tool for signing Apk's and Zip's with GUI with Drag & Drop functionality. Signing is based on signapk.jar.
Features:
- Drag and Drop Apk or Zip
- Signing with 4 different keys: Test, Platform, Media, Shared.
Changelog:
1.0
- Beta Relese
1.1
- Added Settings Tab
- Option to select where to save signed files
1.2
- Added option to disable message alerts
- Fixed bugs, rewritten code
How To:
Run the Apk&ZipSigner.exe. Then you can choose or Drag & Drop any apk or zip to the textbox.
Then you can choose your key for signing files.
Just click on the button and signed file will be saved to choosen directory (change it in settings.
Files in the Tools folder are used for signing files so don't delete them.
In quick signer mode you can just drag the file in the text box, the file will be signed and
saved in the selected directory. If directory isn't specified the signed file will be saved in the root
folder of the program.
Click to expand...
Click to collapse
thanks
This will sign apks on your phone with test keys
{
"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"
}
What does 'Universal PA GApps Customizer' do?
It will generate a gapps-config based on your preferences, and save it on sdcard to can be loaded by a PA GApps package. So you can fully customize the installation!
The key words used are from TK GApps! So, older PA GApps based packages may have less key words(e.g. stock PA GApps script), or other packages which improved the stock PA GApps scripts may have more key words(e.g. Open GApps)! UPGC is an universal package, for now I just follow TK GApps key words, but soon I may start adding kind of "profiles" with key words for more packages.
Supported PA GApps based packages:
TK GApps - UPGC covers all keywords offered by this package
Open GApps - UPGC doesn't cover all key words offered by this package
Any other PA GApps based package (stock PA GApps scripts) - UPGC includes more keywords than this package offers
*Presets key words are not included (yet)
Latest version: R3
Download: https://www.androidfilehost.com/?w=files&flid=32578
Please offer feedback!
Thanks to:
@amarullz - for his AROMA Installer
@TKruzze - for his PA GApps scripts (especially update-binary)
@MastahF, @osm0sis, @TKruzze - for their PA GApps based packages
Reserved.
Not working for me.
It latest twrp it is just mentioning ... Starting Aroma ... But nothing happens and I need to force the reboot by pressing >8 Sec. Power button
Excellent. Works exactly as expected on my mako.
One minor error to be fixed: in the stock apps removal page, Browser is incorrectly labelled as CalendarGoogle.
Thanks & keep up the good work
solar666 said:
Not working for me.
It latest twrp it is just mentioning ... Starting Aroma ... But nothing happens and I need to force the reboot by pressing >8 Sec. Power button
Click to expand...
Click to collapse
Use a older version.. OnePlus One owners face this issue mostly..use TWRP 2.7.0.0 or 2.8.4.0
ahaider7 said:
Excellent. Works exactly as expected on my mako.
One minor error to be fixed: in the stock apps removal page, Browser is incorrectly labelled as CalendarGoogle.
Thanks & keep up the good work
Click to expand...
Click to collapse
Oh..thanks for report! I will fix it soon..also I will improve it a little bit
raulx222 said:
Use a older version.. OnePlus One owners face this issue mostly..use TWRP 2.7.0.0 or 2.8.4.0
Oh..thanks for report! I will fix it soon..also I will improve it a little bit
Click to expand...
Click to collapse
TK just released a new version with a new Photos keyword for the new Google Photos app!
so i flash this customizer and then flash whatever pa gapps package i have?
Update! Added "Photos" Keyword, fixed some strings, and new color theme!
Midnight_Rider said:
so i flash this customizer and then flash whatever pa gapps package i have?
Click to expand...
Click to collapse
Yes. If you save the .gapps-config in the same folder as the zip package, then be sure that PA GApps package is also in the same folder with the .gapps-config file when you flash it.
raulx222 said:
Update! Added "Photos" Keyword, fixed some strings, and new color theme!
Yes. If you save the .gapps-config in the same folder as the zip package, then be sure that PA GApps package is also in the same folder with the .gapps-config file when you flash it.
Click to expand...
Click to collapse
Finally got the chance to try this out on my old GN yesterday! Great job! It's beautiful!
Two things I was wondering about:
1) Is it possible for it to detect if there is already a .gapps-config/gapps-config.txt and load the "current saved config" from it as a starting point?
2) Can the UPGC zip directly flash the GApps package after it writes the config file? I think @hlxanthus was close to figuring this out (if he didn't actually have it working). :good:
osm0sis said:
Finally got the chance to try this out on my old GN yesterday! Great job! It's beautiful!
Two things I was wondering about:
1) Is it possible for it to detect if there is already a .gapps-config/gapps-config.txt and load the "current saved config" from it as a starting point?
2) Can the UPGC zip directly flash the GApps package after it writes the config file? I think @hlxanthus was close to figuring this out (if he didn't actually have it working). :good:
Click to expand...
Click to collapse
1) Of course. But to read the .gapps-config and then to set the settings from AROMA based on .gapps-config it's some work and I can't implement this feature right now. Another simple way to do the same thing, is to save the .prop files (where the settings from AROMA are stored) on sdcard and load them in the coming installations.
2) Uhm, I don't know if that is possible. If @hlxanthus knows, I'm open to listen
osm0sis said:
Finally got the chance to try this out on my old GN yesterday! Great job! It's beautiful!
Two things I was wondering about:
1) Is it possible for it to detect if there is already a .gapps-config/gapps-config.txt and load the "current saved config" from it as a starting point?
2) Can the UPGC zip directly flash the GApps package after it writes the config file? I think @hlxanthus was close to figuring this out (if he didn't actually have it working). :good:
Click to expand...
Click to collapse
raulx222 said:
1) Of course. But to read the .gapps-config and then to set the settings from AROMA based on .gapps-config it's some work and I can't implement this feature right now. Another simple way to do the same thing, is to save the .prop files (where the settings from AROMA are stored) on sdcard and load them in the coming installations.
2) Uhm, I don't know if that is possible. If @hlxanthus knows, I'm open to listen
Click to expand...
Click to collapse
1) @raulx222 a working method is included in the package I sent you a while ago. But it is quite convoluted getting it working, but worth it on the end. But, as I assume, if free time is a factor we understand why you don't implement it.
2) To actually call another script/zip to flash from within this aroma package? Well in theory you can call it to unzip to /tmp then set permissions on tkruzzes update-binary (which is just a bash script in the end) and run it. But I was never able to get this to work. If there is a more direct way to do this, I have no idea..
Looks like google clock is missing on the include/exclude keyword in R2
raulx222 said:
Use a older version.. OnePlus One owners face this issue mostly..use TWRP 2.7.0.0 or 2.8.4.0
Click to expand...
Click to collapse
Is this going to be fixed, or will it stay like this?
scorpionhd2 said:
Is this going to be fixed, or will it stay like this?
Click to expand...
Click to collapse
I can't fix that. We must wait for amarullz to release an update for AROMA Installer.
raulx222 said:
I can't fix that. We must wait for amarullz to release an update for AROMA Installer.
Click to expand...
Click to collapse
Got it, thanks!
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-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