I often update my firmware. Like many on here, I am some what of a flash-aholic.
I created this tool to assist in returning the mods and themes back on to a newly flashed device.
It works by combining several zips into one zip that can be flashed with ease.
It does this by combining the scripts into one, and adding all the files into one zip for the script to unpack. Please be aware that the zips must be compatible with your device.
It's very simple to use. Please give it a try and let me know how it goes:
Warning: Use this program at your own risk. If something goes wrong then it is your responsibility. If you use this program, then you accept that anything that does go wrong is your own responsibility.
Creating zips:
Download and extract the program.
Run the program.
Hit the settings button and set up an output directory or leave it as the default (program location).
Select the zips you wish to combine.
Add a name for the combined file.
Select advanced settings to apply any settings to the generation of the script.
Wait for them to load (the combine button will become usable).
Click combine button to join the zips into one zip.
The file will be put into a folder named Final Outputs within the output directory you have specified.
Wait for any processes to finish (windows should provide progress windows).
Click the sign button if you wish to sign the zip.
Using zips:
Copy the zip to the android device.
Boot into recovery (requires custom recovery).
Perform a Nandroid backup of your device (If you do not perform this step then it is your responsibility if something goes wrong)
Flash the combined zip file.
Please Note: This is a beta version of the software and, as such, may contain glitches and problems. Please advise me if anything goes wrong, and if it does, what happened and what files you were using so I can make it better.
Also, please be aware that this program requires .net 4.0 and the signing component requires the Java Runtime. Links to both can be found on the website.
Download Latest Version Here
Changelog.
Currently working on:
Unnecessary files (multiple boot.img for instance)
Unnecessary code in the script.
Further Testing
You would have to make one big script. Also, any double code would have to be removed, mainly stuff like package_extract_dir type stuff, no sense in it extracting the same files twice.
Sent from my LG-P999 using xda premium
Волк said:
You would have to make one big script. Also, any double code would have to be removed, mainly stuff like package_extract_dir type stuff, no sense in it extracting the same files twice.
Click to expand...
Click to collapse
What about the updater-binary?
The result of this thinking pattern.
Clockwork Combiner
this seems to be amazing
newest version does not work. when i try to add the first zip file, nothing gets listed but the green bar is full and combine is able to be clicked. go to add second zip, it gets listed in the box, combine no longer available, go to add third zip, asks if i want to clear the selection out, click no, combine freezes up and doesn't respond. asus zenbook running windows 8.
t1.8matt said:
newest version does not work. when i try to add the first zip file, nothing gets listed but the green bar is full and combine is able to be clicked. go to add second zip, it gets listed in the box, combine no longer available, go to add third zip, asks if i want to clear the selection out, click no, combine freezes up and doesn't respond. asus zenbook running windows 8.
Click to expand...
Click to collapse
Have you updated your Java and .NET ? I've only used it with Windows 7, so it could be some kind of compability issue... Try running it in compability-mode for W7, and see if it works
i'm pretty sure that stuff is upgraded. when i go to add the first file, nothing appears in the box, but the combine button is highlighted and it says "checking each file for structure validity" and doesn't do anything else. this is while running in compatibility mode for windows 7
t1.8matt said:
i'm pretty sure that stuff is upgraded. when i go to add the first file, nothing appears in the box, but the combine button is highlighted and it says "checking each file for structure validity" and doesn't do anything else. this is while running in compatibility mode for windows 7
Click to expand...
Click to collapse
What files are you using? Got links?
They're a whole bunch of different files, roms and gapps and mods I was trying to combine for my galaxy nexus. I'll get u some links in a few.
---------- Post added at 07:25 PM ---------- Previous post was at 07:21 PM ----------
Here's three that I tried to combine
http://db.tt/3hhRnlZ1
http://db.tt/QwtvPVJH
http://db.tt/QwtvPVJH
thank you most have for me nice idea
works for me no problems combined some zips with out any fuss
t1.8matt said:
They're a whole bunch of different files, roms and gapps and mods I was trying to combine for my galaxy nexus. I'll get u some links in a few.
---------- Post added at 07:25 PM ---------- Previous post was at 07:21 PM ----------
Here's three that I tried to combine
http://db.tt/3hhRnlZ1
http://db.tt/QwtvPVJH
http://db.tt/QwtvPVJH
Click to expand...
Click to collapse
The problem seems to be with the very large size of the zips. I'm trying to find aw way to read and combine the zips more efficiently. This will be fixed in the next version, but for now, you will jsut have to give it time to work. Run it and let it go.
thanks for checking it out, i'll just hold out until you get everything settled. awesome idea though, i hope it works out for you.
Will this work for combing a zip which contains Aroma Installer?
Kage01 said:
Will this work for combing a zip which contains Aroma Installer?
Click to expand...
Click to collapse
I haven't looked into AROMA files as of yet. But I will look into it within the next couple of releases.
Looking forward for next releases
Sent from my LG-E739 using Tapatalk 2
t1.8matt said:
thanks for checking it out, i'll just hold out until you get everything settled. awesome idea though, i hope it works out for you.
Click to expand...
Click to collapse
So it seems that the zip engine i am using cannot handle zip's that have multiple files of the same name and hence crashes on that file. Thinking of moving to another zip engine or finding a way around it.
@OP... I have yet to try this, but am getting ready to, after I am done typing this up... Thank you for this. Even if it doesn't work for me, this is a path I have been seeking for some time now.
I am going to try this in a 2 phase test... 1st, I am going to try it with just the mods I have been adding to the ROM I use... If this is successful, 2nd, I intend to try and add all those mods to my ROM zip itself...
Amazing concept, and I look forward to trying it out. Again...Thank you for your work.
EDIT: AWESOME!!! I took all my flashable mods and compiled them into my rom. This app rocks!
i have few flashable zips that i always flash after main rom zip ... can i include these to main zip
Related
If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??
When you cook you need to make sure the gloves are on and you have the oven's temp turned up real nicely to fry that thing
I guess you didnt search or something? I need you to confirm that you cant/can see this at the top left corner of screen:
xda-developers > Dream > Dream Android Development
Press Dream then head to Q&A section please.Wait a sec...Thats not a Dream..You belong here for asking q's about your phone:
http://forum.xda-developers.com/forumdisplay.php?f=480
Just do a search for signing tool and it shows up.
rbrainard said:
If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??
Click to expand...
Click to collapse
its more complicated than it looks...
First u will have to know if removing those .apk will not cause any trouble...
Second u will have to sign the apks u r going to add, and signed the zip too...
about changing the boot.img has been tried before in another thread...
but most important u will have to search, search and read, read...
going to try and find some thread for u, before the mods closed this...
Need to have it resigned...once a zip file is open it breaks the signature but I would aslo like to kno if this is possible
ilostchild said:
Need to have it resigned...once a zip file is open it breaks the signature but I would aslo like to kno if this is possible
Click to expand...
Click to collapse
here its a thread about resigned:
http://forum.xda-developers.com/showthread.php?t=473580
read it all, has interesting stuff, but keep searching...
actually i would like to try this too...
if u ask devs, unless they want to teach u, great...
Wow...
You can open zips (roms/updates) and browse them without the need to resign them. If you change any of the contents in a zip (rom/update) file, as in remove or add, then you have to resign. You do not have to resign the apks you add to the zip (rom/update) file.
To do what you want to do, refer to the link about signing zips that was posted above. Remove the APKs, sign the zip (rom/update) file, and apply the update to your phone.
bring in the wrecking crew!
anyone know how to run this on a mac?
Ha people had post, but the one that make the thread, its no where...
Sweet! Thanks folks.
The "Search" function is the most important in any forum, but it does the user no good if they have absolutely positively no idea what to search for... lol
My goal is to take Manup's Eclair_2.1-v1.5 and remove all the .APKs I don't have any use for... Swap the boot.img for the eclair one with the 10MB hack, replace the SpareParts.APK with one that contains "Keep home app in memory" option, etc, etc, etc.
rbrainard said:
If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??
Click to expand...
Click to collapse
You've just described in detail what about 90% of roms out there really are: open zip, add/remove files, ..., profit!!!
As mentioned correctly by Moonspoon, all you'd need afterwards is to sign your package (just to ensure that there's no problems with the signature, delete the three files inside /META-INF (leave the folders alone)).
Also, as mentioned by ginatojr (kind of...), you have to know which files you're removing, for example, removing TelephonyProvider.apk, well, that should be obvious. One that's not so obvious is gtalkservice.apk. When I first started, I removed it because I though it was part of Google Talk, when in fact it's more closely related to GoogleApps and SubscribedFeedsProvider.
The only times you want to deal with signatures is if your roms come from two different sources (if you're using an AOSP test-signed core and want to toss in some release-singed Google apps), but for the most part it's unnecessary and mostly discouraged as it's a different can of worms.
So, yeah, that's basically "Rom Cooking 101", where most other people releasing roms are at "Rom Cooking 102", there's really nothing to it.
rbrainard said:
Sweet! Thanks folks.
The "Search" function is the most important in any forum, but it does the user no good if they have absolutely positively no idea what to search for... lol
My goal is to take Manup's Eclair_2.1-v1.5 and remove all the .APKs I don't have any use for... Swap the boot.img for the eclair one with the 10MB hack, replace the SpareParts.APK with one that contains "Keep home app in memory" option, etc, etc, etc.
Click to expand...
Click to collapse
The keep in home might not work on 2.1 roms yet.
If this works out... My future plans would include doing this to streamline and modify any ROM of my choice as they are released.
I have absolutely no intention of modifying ROMs for redistribution.
This will be for my own personal needs alone.
Can anyone tell me where the .APK files of Market downloads are stored on the handset?
rbrainard said:
Can anyone tell me where the .APK files of Market downloads are stored on the handset?
Click to expand...
Click to collapse
NEVERMIND!
Found them in /SDCard/BackupRoot/app directory.
Hello,
I need beta testers running Mac OS X to test a new application.
This application is for people who are either uncomfortable or unwilling to use Terminal and ./adb for pushing files to their device.
This first beta version is just to test how it works on different computers. It pushes the file to the sdcard of the phone using ./adb. The only input needed from the user is to select the file.
Later releases will let the user choose which folder on the device to copy to, but the next release will probably just involve pushing .apk to the /system/app folder.
Please let me know the results.
http://derekcwilkinson.com/PushFile.zip
Beta 2:
http://derekcwilkinson.com/Push_File_Beta_2.zip
Change Log:
Added option to choose the location that the file is to be pushed to.
Added Recovery application
Added Reboot application.
Planned Updates:
Pull File - Done
Device Backup - Testing (having issues)
Device Backup w/SD - Testing (having issues)
Install .apk - Done
Uninstall .apk
Restore Backup - Needs Device Backup
Restore Backup w/SD - Needs Device Backup
Flash ROM - Need help, PM me
I'll test it Downloading it now.
Works fine, I look forward to seeing it progress. I'll probably just use adb when I need to push something, but I'll keep testing whenever you update.
I've updated the first post with a new beta. This new beta includes:
Push file to specified location.
Reboot device
Reboot device into recovery.
derekwilkinson said:
Hello,
I need beta testers running Mac OS X to test a new application.
This application is for people who are either uncomfortable or unwilling to use Terminal and ./adb for pushing files to their device.
This first beta version is just to test how it works on different computers. It pushes the file to the sdcard of the phone using ./adb. The only input needed from the user is to select the file.
Later releases will let the user choose which folder on the device to copy to, but the next release will probably just involve pushing .apk to the /system/app folder.
Please let me know the results.
http://derekcwilkinson.com/PushFile.zip
Beta 2:
http://derekcwilkinson.com/Push_File_Beta_2.zip
Change Log:
Added option to choose the location that the file is to be pushed to.
Added Recovery application
Added Reboot application.
Planned Updates:
Pull File - Ready
Device Backup - Testing
Device Backup w/SD - Testing
Install .apk
Uninstall .apk
Restore Backup
Restore Backup w/SD
Flash ROM - Need help, PM me
Click to expand...
Click to collapse
nice this looks like it could be the underpinnings of droid explorer for Mac.
gunnyman said:
nice this looks like it could be the underpinnings of droid explorer for Mac.
Click to expand...
Click to collapse
It could be, but I'm going to need someone to help me create the UI for running the scripts. Right now they are all just separate applications
derekwilkinson said:
It could be, but I'm going to need someone to help me create the UI for running the scripts. Right now they are all just separate applications
Click to expand...
Click to collapse
Perhaps, since it's free, you could build the whole thing to run as a Safari extension? I don't know how feasible this is, just spitballing ideas.
Well I just finished the app to install applications. This could be especially useful for newbies who want to install custom applications. All they have to do is select the .apk and it installs.
The .apk installer is now ready for download.
http://derekcwilkinson.com/Derek_Wi...0/6/9_Push_File_for_Android__Install_APK.html
Just downloaded... I'll give it a try, thanks
Something very similar is being developed or Windows and Linux, maybe you can use it or work with the developer to get a working port to MAC. http://forum.xda-developers.com/showthread.php?t=683223
As a Mac user, it's very much appreciated that people like you put an effort to developing for our platform. Resources are very scarce and people new to Android are often discouraged with the more advanced stuff of the OS.
srkmagnus said:
Something very similar is being developed or Windows and Linux, maybe you can use it or work with the developer to get a working port to MAC. http://forum.xda-developers.com/showthread.php?t=683223
As a Mac user, it's very much appreciated that people like you put an effort to developing for our platform. Resources are very scarce and people new to Android are often discouraged with the more advanced stuff of the OS.
Click to expand...
Click to collapse
Great idea, it would be nice to allow users to browse the device for files. Right now, unless an app is being installed, they have to know the name of the file and location
Description:
The AndroidLib Expansion Project was created to bring support of more Android devices to my AndroidLib.dll project I'm working on. This project is a Windows executable (compiled batch script) that you will run on your computer with your Android device connected. This will NOT run automatically; it will give you a prompt to run after opening.
The main purpose of this project is to collect data about new phones for AndroidLib.dll, not about your specific phone, but about how it transfers specific data through it's shell and through the Android Debug Bridge (ADB), and more importantly, how that output is formatted.
This information will not be shared with anyone other than myself, and will only be used for further developing AndroidLib.dll to support many more Android devices than it currently does.
Source Code is available under "Download Info"
What it does:
Starts an Adb server
Checks Device List
Checks Device Type
Checks Device Serial (only for unique .zip filename)
Checks For SU
Checks UID
Checks BusyBox
Checks File System
Checks Battery Statistics
Checks Running Processes
Checks /data/system/packages.xml for existance
Checks Build Properties
Checks Shell Environment
Creates Zip of Data Above
Opens Upload Form in Browser After Exiting
NOTE: Does NOT Upload Automatically
Usage:
Download the Windows Executable below and run from any directory on your computer with your Android device connected.
Requirements:
Windows Computer
Android device to test
Download Latest Release
AndroidLibExpansion.exe
Download Info
AndroidLibExpansion.exe MD5: 3a8971f452ab7e3da63e375a859033d4
VirusTotal Report
Source Code
No zip file on my desktop to send...
drcell said:
No zip file on my desktop to send...
Click to expand...
Click to collapse
Check the Desktop folder in %USERPROFILE%\Desktop as well instead of just the graphical desktop. I have tested it working on 5 different computers here...
Can you upload to another site
Like http://www.mediafire.com/
TarekNajem04 said:
Can you upload to another site
Like http://www.mediafire.com/
Click to expand...
Click to collapse
Yeah, you can, if you send me the link to it.. but I just wrote that upload script so it would just go straight to my server.. Upload it to mediafire if you would like.
I realize now that this exe may not have worked correctly. I've had 3 reports now of no zip being created on the desktop. I am working to solve this issue, as you see in the source.. it really has no reason not to be creating on the desktop.
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Archer said:
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Click to expand...
Click to collapse
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
FredFS456 said:
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
Click to expand...
Click to collapse
Thanks for letting me know you ran a full search and nothing came up still, that actually does help me out, telling me it didn't write to anywhere else. I'll have a working version for you guys in a little bit.
Ok guys, fixed the problem. Works great now. Check the source code and VirusTotal report in the first post if you need to. Thanks again for everyone helping with this! And special thanks to nebenezer for testing the new builds!
regaw_leinad said:
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
Click to expand...
Click to collapse
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Archer said:
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Click to expand...
Click to collapse
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
This is my upload link because i couldn't upload with your page. It says "The file you are trying to upload is not a .zip file. Please try again."
http://db.tt/0HoRAK11
It works and I have uploaded the zip
Burned from my laser torch using pencil cells
Uploaded .zip file.
regaw_leinad said:
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
Click to expand...
Click to collapse
Apologies if that's how I came across - it wasn't intended. I've just uploaded a couple of zip files for you.
Thank you to everyone who has uploaded a zip so far! This is really helping development on AndroidLib. I am still accepting more uploads, so if you feel like helping develpment of AndroidLib, feel free to download and run the exe! I'm needing a few more Samsung devices in particular, those seem to vary in output between themselves.
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
The-Milkybar-Kid said:
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
Click to expand...
Click to collapse
Nope haven't got one yet, that'd be awesome! Thanks!
GgI am currently working on a major update to the apk manager application as well and changing the name to APK Multi-Tool with some new added features and also to fix some issues with some code errors.
I am also changing a lot of the features as well since a lot of the code has been outdated for a while.
I have updated all the files and modified Apk manager's Scripts to fix many user reported bugs from Daneshm90 apk manager which he had written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand
Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.
This script should make the process a LOT smoother.
Theres an option of compiling/signing/installing all in one step
Thanks:
Goes to Daneshm90 the Original Writer of APK Manager
Goes to Brut.all for his awesome tool.
Goes to JF for ofcourse, smali/baksmali
Features:
- Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
- Allows multiple projects to be modified, switch to and from.
- Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
- Batch optimize apk (Zipalign,optipng,or both)
- Batch Ogg optimization
- Batch install apk from script (option 19)
- Batch Theme Image Transfer TOOL
- Batch Theme optipng TOOL
- Batch Theme Zipalign APK TOOL
- Compression level selector (monitor status above menu)
- Error detection. Checks if error occurred anytime u perform a task, and reports it
- Extract, Zip apk's.
- Incorporates brut.all's apktool
- Improved syntax of questions/answers
- Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
- Optimize pngs (ignores .9.pngs)
- Pull apk from phone into modding environment.
- Push to specific location on phone
- Quick sign an apk (Batch mode supported)
- Read log (Option 24)
- Sign apks
- Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
- User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
- U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
- Zipalign apks
- Much Much More
Instructions:
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Run script
- Minimize the script
- Edit files inside the project folder
- Maximize the script
Requirements:
Java 1.7
Android SDK
FAQ
Resulting apk file is much smaller than original! Is there something missing?
First: compression of resources.arsc file. Sometimes this file is compressed in original apk, sometimes not and apktool always compress it. Second: lack of META-INF dir. Apktool builds unsigned apks, so they lack signatures stored in this dir. Third: apktool uses newest Android SDK, so it could optimize files better, especially if original app is old. So: unpack both original and resulting apk, remove META-INF from original and then compare sizes. If they're still much different, then you could report on XDA or somewhere.
There is no META-INF dir in resulting apk. Is this ok?
Yes. META-INF contains apk signatures mostly and after modifying apk in no longer signed, so there are no signatures in it. You have to sign resulting apk and then META-INF dir will be created.
What do you call "magic apks"?
Sometimes there are some apks which (for my current knowledge) are invalid, broken, theoretically they shouldn't exist. There may be many reasons of their existence: my lack of understanding of Android resources; some non-public, maybe future SDK tools or custom modifications of these; manual hacking of binaries, etc. Usually I can't do anything about it, but you could at least try to replace broken parts by something valid. Actually it's quite likely that they aren't even used, because if they would, then application would crash.
Got problems ?
1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.
TO DO LIST
Add new feature to Randomly Generate a new Key File for signing the apk files after modifying and recompiling of the apk files this will also allow of uploading to the android market as this added feature will allow you to sign apk files that you may of compiled without signing beforehand.
Modify the Signapk script to be compatible with the Randomly Generation feature in the works
and a few other added features are in the works as I am redesigning the application and rewriting a lot of the code to fix issues as well as some of the new features have broken parts as some features have been moved and broken some command line prompts.
Installing APK Multi-Tool Itself
Instructions (Linux):
1-Download, create a folder in your sdk called "APK-Multi-Tool" and extract into it.
2-Goto the the "sdk/APK-Multi-Tool" folder and rename "Script.sh" to "script.sh".
3-Go into the "other" folder, right click on one file at a time, goto "permissions" in the new window and check the execute box.(do this with all the files)
4-To add the path to your folder open up a terminal and type in -
sudo su
PATH=$PATH:/THE PATH TO YOUR "SCRIPT.SH"
(for me this looks like the following)
PATH=$PATH:/sdk/APK-Multi-Tool/other/
5-export PATH
6-install "sox"
7-Type into the terminal "cd PATH TO YOUR SCRIPT.SH"
7.5 export PATH={PATH}:/PATH TO Your SDK/sdk/platform-tools/adb
8-Type "./script.sh"
9-You should have a running APK-Multi-Tool.
how to install sox:
Open the software center of the linux service and searched for sox. Installed it and it there you will have SOX working.
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Open terminal and change-directory to APK-Multi-Tool(Easiest way is to type "cd ")
- Chmod 755 Script.sh
- Chmod 755 all files apps inside other folder
- Run script by typing ./Script.sh
- Minimize the script
- Edit files inside the out folder
- Maximize the script
Downloads:
https://github.com/APK-Multi-Tool/APK-Multi-Tool-Linux/archive/master.zip
Please check back daily or weekly as this project is under active Development and I am releasing Alpha releases on the website for Testing and bug reports.
Lol, why has nobody commented on this?
You're a savior. This is awesome. Can't wait for the rewrite.
AW: [Linux][UTILITY][TOOL] APK Multi-Tool
+1
Haven't seen this also available for Linux, so this is great.
Sent from my Galaxy Nexus using xda premium
Binary updates
UPDATED to apktool-cli-1.5.3-SNAPSHOT
-Updated to smali/baksmali to v1.4.2
-Fixed (issue #396) - Correctly handle android:debuggable while in debug
mode.
-Fixed (issue #340) - Fixed superclass errors on debug mode.
-Updated to Gradle 1.4
-Updated known bytes for configurations to 38 (from addition of layout
direction)
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks
Rodrigo Chiossi)
-Fixed (issue #427) - Correctly handles `--frame-path` on uild
Error 404 on GitHub download page
xcly said:
Error 404 on GitHub download page
Click to expand...
Click to collapse
Fixed
Sent from my DROID RAZR CDMA XT912 using Tapatalk 2
I merged a few projects together instead of having multiple Android developer projects. I did some spring cleaning and deleted a few projects that was not useful and served no purposes. Also renamed the project organization which broke the link forgot to update lol.
Sent from my DROID RAZR CDMA XT912 using Tapatalk 2
I ran the script but I can't see any folders being created.. Trying to sign an apk. Looked up on google and all I can find is your instructions to put apk in appropriate folder (which I can't see..)
Thanks in advance
I will look into this ABCs see what's up
Sent from my DROID RAZR CDMA XT912 using Tapatalk 2
I ran the apksign tool separately using terminal for now
I got
The program sox is missing or is not in your PATH,
please install it or fix your PATH variable
If I go to the other folder there is no sox like in the windows version.
I will look into this asap once I get some free time
Sent from my DROID RAZR CDMA XT912 using Tapatalk 2
civato said:
I got
The program sox is missing or is not in your PATH,
please install it or fix your PATH variable
If I go to the other folder there is no sox like in the windows version.
Click to expand...
Click to collapse
I had the same problem but it was fixed once I installed sox. There was a tutorial on google search for setting up apk manager you might wanna have a look at.
Sent from my GT-I9300 using xda premium
raziel23x said:
I will look into this asap once I get some free time
Sent from my DROID RAZR CDMA XT912 using Tapatalk 2
Click to expand...
Click to collapse
xcly said:
I had the same problem but it was fixed once I installed sox. There was a tutorial on google search for setting up apk manager you might wanna have a look at.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I got it solved , I just entered the Ubuntu software center and searched for sox. Installed it and it works.
Maybe good to add this in OP when using linux. It is stupid of me thinking it was something harder so thank you for your help and fast response.
A other methode I found here
PS:
You don't need to type in ./Script.sh in teminal in linux , just clicking on it (Script.sh) and select "run in terminal" does the trick without typing anything.
updated the original post with detailed instructions
raziel23x said:
updated the original post with detailed instructions
Click to expand...
Click to collapse
Put updated info into the README file. Made a few corrections (hope you like).
AndyOpie150 said:
Put updated info into the README file. Made a few corrections (hope you like).
Click to expand...
Click to collapse
pushed your changed to github all code changes are welcome even forking the repo on github and making changes and doing pull request are welcome
raziel23x said:
pushed your changed to github all code changes are welcome even forking the repo on github and making changes and doing pull request are welcome
Click to expand...
Click to collapse
Just uploaded changed attachment. Fixed minor typos in Installation Instructions. Sorry I didn't get it straight before you pushed to github.
I deleted the info for Windows in previous attachments as well due to this being for the Linux version. Didn't know if you caught that.
PS: Thought I would let you decide if you liked my hair brained ideas first.
Is there any way to have a .jar file work without having to rename to .apk, or is that a mind bogling code rewrite. I'm all for learning.
Hey, I made some changes to the script to act more like the windows version of this tool. I added a setup.sh which will create all the folders and set permissions to everything. i also the ability to have multiple projects going at the same time, and also added a separate jar/dex folder so there is no need to rename the jar files to .apk to edit it. and other updates as well. its not 100% up to par with the windows one, but these few changes make a huge difference. Would you be interested in this?
---------- Post added at 11:38 AM ---------- Previous post was at 11:36 AM ----------
AndyOpie150 said:
Just uploaded changed attachment. Fixed minor typos in Installation Instructions. Sorry I didn't get it straight before you pushed to github.
I deleted the info for Windows in previous attachments as well due to this being for the Linux version. Didn't know if you caught that.
PS: Thought I would let you decide if you liked my hair brained ideas first.
Is there any way to have a .jar file work without having to rename to .apk, or is that a mind bogling code rewrite. I'm all for learning.
Click to expand...
Click to collapse
actually yes there is..i made an updated version of the script which has those features
clmowers said:
Hey, I made some changes to the script to act more like the windows version of this tool. I added a setup.sh which will create all the folders and set permissions to everything. i also the ability to have multiple projects going at the same time, and also added a separate jar/dex folder so there is no need to rename the jar files to .apk to edit it. and other updates as well. its not 100% up to par with the windows one, but these few changes make a huge difference. Would you be interested in this?
---------- Post added at 11:38 AM ---------- Previous post was at 11:36 AM ----------
actually yes there is..i made an updated version of the script which has those features
Click to expand...
Click to collapse
Make a pull request on github and in will merge it
Sent from my Xoom using Tapatalk HD
After I install a rom I delete about 130 apk with Titanium Backup.
Can somebody point me in a direction on how I can make a flashable zip for removal?
I do not know where to find the full names of the apk's and where to start.
I have screenshots of all apk's I delete with TB.
LyLu said:
After I install a rom I delete about 130 apk with Titanium Backup.
Can somebody point me in a direction on how I can make a flashable zip for removal?
I do not know where to find the full names of the apk's and where to start.
I have screenshots of all apk's I delete with TB.
Click to expand...
Click to collapse
I might be able to help with this.
I wished to created one and managed to seek help on XDA on accomplishing this.
I've attached the debloat script.
In order to edit it you'll need to open it up on a computer and use Notepad++, thought when I used that I seemed to always get an error then when attempting flashing in TWRP. So I used my phone to do so.
Navigate to:
META-INF/com/google/android and open the updater-script file
You'll need to add/remove the lines such as:
delete_recursive("/system/app/AAAService");
Just make sure that you keep all formatting the same, such as making sure no unnecessary spaces are left in between lines and that each line keeps the semi-colon at the end of each sentence.
Then flash in TWRP.
Be mindful that there is part in that script that will wipe the caches too. Also the script is a little messy and I need to get round to deleting some as I think there are some duplicates. It's a huge heavy debloat list at present, inclusive of alot of Samsung stuff. So edit accordingly.
I've settled just for freezing them so far but it's my intention to finalise this debloat script and use after flashing a new rom.
Let me know how it goes.
cd993 said:
I might be able to help with this.
I wished to created one and managed to seek help on XDA on accomplishing this.
I've attached the debloat script.
In order to edit it you'll need to open it up on a computer and use Notepad++, thought when I used that I seemed to always get an error then when attempting flashing in TWRP. So I used my phone to do so.
Navigate to:
META-INF/com/google/android and open the updater-script file
You'll need to add/remove the lines such as:
delete_recursive("/system/app/AAAService");
Just make sure that you keep all formatting the same, such as making sure no unnecessary spaces are left in between lines and that each line keeps the semi-colon at the end of each sentence.
Then flash in TWRP.
Be mindful that there is part in that script that will wipe the caches too. Also the script is a little messy and I need to get round to deleting some as I think there are some duplicates. It's a huge heavy debloat list at present, inclusive of alot of Samsung stuff. So edit accordingly.
I've settled just for freezing them so far but it's my intention to finalise this debloat script and use after flashing a new rom.
Let me know how it goes.
Click to expand...
Click to collapse
Thank you very much! I will have a look and test
LyLu said:
Thank you very much! I will have a look and test
Click to expand...
Click to collapse
You're welcome.
I've still yet to test if but waiting in a new version of my favourite rom to be released.
I'm tempted to get a Note 8 port rom and debloat the hell out of it, even all Samsung stuff and try make as pure android as possible experience. Or do the same with an S8 rom. But for now just settled with freezing
would love a reliable list for debloating, this is a great step, thanks
cd993 said:
You're welcome.
I've still yet to test if but waiting in a new version of my favourite rom to be released.
I'm tempted to get a Note 8 port rom and debloat the hell out of it, even all Samsung stuff and try make as pure android as possible experience. Or do the same with an S8 rom. But for now just settled with freezing
Click to expand...
Click to collapse
Now I have taken away some of the lines that makes the phone not boot, like smartcardmanager etc, these can be frosen but not uninstaled from phone, or the phone wont boot!
I have a problem with the script tough, when I try to flash I get error: 6 in TWRP
LyLu said:
Now I have taken away some of the lines that makes the phone not boot, like smartcardmanager etc, these can be frosen but not uninstaled from phone, or the phone wont boot!
I have a problem with the script tough, when I try to flash I get error: 6 in TWRP
Click to expand...
Click to collapse
Ahh really? Sorry to hear this! Like I say I hadn't actually used it as such.
How did you edit the script? As I kept getting that error too, though when I used my phone to edit it rather than using my computer, that worked without that error 6
cd993 said:
Ahh really? Sorry to hear this! Like I say I hadn't actually used it as such.
How did you edit the script? As I kept getting that error too, though when I used my phone to edit it rather than using my computer, that worked without that error 6
Click to expand...
Click to collapse
Notepad+
What app you use to edit on your phone?
LyLu said:
Notepad+
What app you use to edit on your phone?
Click to expand...
Click to collapse
I used X-plore and open as a text document. Then used the edit button (top right), made ammendments and then save
This script will be a massive benefit to those (like me) you want a lite ROM with minimal Samsung stuff, thanks.
cd993 said:
I might be able to help with this.
I wished to created one and managed to seek help on XDA on accomplishing this.
I've attached the debloat script.
In order to edit it you'll need to open it up on a computer and use Notepad++, thought when I used that I seemed to always get an error then when attempting flashing in TWRP. So I used my phone to do so.
Navigate to:
META-INF/com/google/android and open the updater-script file
You'll need to add/remove the lines such as:
delete_recursive("/system/app/AAAService");
Just make sure that you keep all formatting the same, such as making sure no unnecessary spaces are left in between lines and that each line keeps the semi-colon at the end of each sentence.
Then flash in TWRP.
Be mindful that there is part in that script that will wipe the caches too. Also the script is a little messy and I need to get round to deleting some as I think there are some duplicates. It's a huge heavy debloat list at present, inclusive of alot of Samsung stuff. So edit accordingly.
I've settled just for freezing them so far but it's my intention to finalise this debloat script and use after flashing a new rom.
Let me know how it goes.
Click to expand...
Click to collapse
Thanks...but it´s possible add system apps too?? After the debloat i need to install some system apps to my rom....if the script do that it was very very nice tooo ....can you help me???