Description
This post contains the information and the Visual Studio 2010 solution zip file
to create a plugin for the newly re-released RegawMOD Bootloader Customizer.
Once you create your plugin, please either pm me, or post in the RM Bootloader Customizer's thread
with your completed plugin, so I can add it to post #2's List of Plugins!
Current enum of known devices (not all may compatible with this tool though)
Usage
This ReadMe is a block comment in the BootloaderPlugin class that you have to modify.
All you need to do is follow these steps to create your plugin. This all takes place in Microsoft Visual Studio.
Code:
/*
* RegawMOD Bootloader Customizer Plugin Template ReadMe
*
* 1. Make sure the external reference to 'RegawMOD Bootloader Customizer.exe' is correct and valid.
* 2. In the Project Properties window, change the following to your own values:
* - Assembly Name
* - Default Namespace
* - Information in 'Assembly Information...'
* 3. Change the namespace of this class to the same as your Default Namespace you just defined
* 4. Drag and Drop your hboot.img (rename your image to hboot.img) and android-info.txt to the root of the project
* in the Solution Explorer, overwriting the placeholder hboot.img and android-info.txt files.
* 5. Make sure they are set to "Embedded Resource" in their properties window.
* 6. Edit ONLY the private fields below to match your configurations
* 7. Build and deploy your dll under the "Release" configuration
*/
Requirements
.NET 4.0
Microsoft Visual Studio 2010/2012 (any version) - Get Express Here
HTC device with S-OFF bootloader
Changelog
Version 2.1 | 10.09.13
Add Verizon HTC One support
Version 2.2.2 | 06.10.13
Added support for HTC One varieties
Version 2.2 | 02.18.13
Support for Droid DNA and HTC One series
Download Latest Release
Bootloader Plugin Template.zip
Download Info
Bootloader Plugin Template.zip MD5 - f8a4f4b1dc5b6ce8958af06c044036b7
Source code
Github
Reserved.....
RESERVED!
Updated OP with new links to updated version of plugin, I had to add support for a few more devices in the HTC_DEVICE enum and added a few more fields.
Also, spread the word about this. This will only work and go big if people develop plugins for it!
Nice work, Dan.
I think I'm going to try this for the OG EVO .
Updated OP with new build of the Tester application as well as new plugin template zip (if you already built one, it will still work). Got rid of using MEF for the plugins, I just wrote my own easier system.
Dang, just realized I left out a few fields I needed to be in the plugin. New version coming soon. And yes, you will have to rebuild your plugin to make it compatible.
I'm making great progress on this. I removed the need to reference an external dll to create the plugin, now you just need to reference the application itself as I implemented the plugin interface into it. This cuts back on a lot of confusion, as well as keeps it more organized. I'll put out an updated version tomorrow (Wednesday the 18th) and a whole new plugin zip.
Updated OP with new download. Got rid of the need to reference the external dll to create the plugin. Now you just reference the application itself (included in zip).
I have succesfully build an custom dll an loaded it into the .exe.
When I click the create zip button it tells me it hasnt been implented yet, how do I build the zip then? Thank you!
terrormattie said:
I have succesfully build an custom dll an loaded it into the .exe.
When I click the create zip button it tells me it hasnt been implented yet, how do I build the zip then? Thank you!
Click to expand...
Click to collapse
The actual program is in the final testing phase, as stated in the OP, the one included in the zip is just a tester application. I should be releasing the full application very soon, as I have successfully built a zip for the EVO 4G LTE with it.
regaw_leinad said:
The actual program is in the final testing phase, as stated in the OP, the one included in the zip is just a tester application. I should be releasing the full application very soon, as I have successfully built a zip for the EVO 4G LTE with it.
Click to expand...
Click to collapse
For other devices - will the S-OFF method matter? The OG EVO is an mtd device, and Revolutionary flashes a custom HBOOT to the device. However, it can be overwritten just by hex-editing an unmodified HBOOT to a higher number than Revolutionary.
Will that affect how the program works?
-----------
Current Device: HTC EVO 4G LTE | ROM: Chaos | Kernel: Stock (3.0.8-01368-g6fdcee1)
I have no idea what im doing, but i wanna use this... the config directions are very vague, how do i copy my hboot.img and android text files and wow... im so lost
Captain_Throwback said:
For other devices - will the S-OFF method matter? The OG EVO is an mtd device, and Revolutionary flashes a custom HBOOT to the device. However, it can be overwritten just by hex-editing an unmodified HBOOT to a higher number than Revolutionary.
Will that affect how the program works?
Click to expand...
Click to collapse
It won't actually affect the program if you get all of the details correct. If you can flash an unsigned PC36IMG.zip on the EVO, then this should work.
117micc said:
I have no idea what im doing, but i wanna use this... the config directions are very vague, how do i copy my hboot.img and android text files and wow... im so lost
Click to expand...
Click to collapse
If you're familiar with Visual Studio, then just drag and drop the hboot image and android-info.txt file into the root directory of the project in the Solution Explorer. Creating this plugin shouldn't be too hard, I thought the instructions weren't too technical.
I'm going to have a build of the full application out soon.
Also, if you want to check it out, I'm working on this live on UStream right now.
http://ustre.am/KNpp
Initial personal testing went well. I have a rehearsal to go to right now, but I should release the full application tonight if all goes well and I don't find any more huge bugs. Thank you PoorCollegeGuy for writing up an article on this! http://www.xda-developers.com/android/bootloader-customization-now-open-to-more-s-off-htc-devices/
In the last test version the max chars for the banner text was still 16 regardless of the settings. Hope this will be fixed in your release tonight.
terrormattie said:
In the last test version the max chars for the banner text was still 16 regardless of the settings. Hope this will be fixed in your release tonight.
Click to expand...
Click to collapse
Fixing it right now. I also fixed a few other bugs that I found as well. Going to release it once I put that in and write up the post.
When Will This Be Released?
pokedude750 said:
When Will This Be Released?
Click to expand...
Click to collapse
I'm actually uploading it right now, and finishing up the thread
Related
PUMa - Patch Utility Manager
The program is designed to install patches in the most universal applets\libraries firmware of Samsung-communicators. It works with both odexed, and with deodexed components of many firmware of devices I9100/I91**,I9300,I9500,G850,G900*,G920*/G925*,G928*,G930*/G935*,N7000,N7100,N900*,N910*,N920*,I9001,I9250(Galaxy NEXUS),I8150,P5100/5110,T310/311. Likely to install some patches and other communicators based on the Android OS. It works with external patch (the description of the format and work with them, see Puma_extpatch.txt file.. while only in Russian). Optionally, the added ability to load external data from internet. Information about loading the file is stored in the archive dllink.bin.
The following types of downloads:
• Modem FW (modem firmwares)
• Dump FW (dump stock firmware (aka the contents of the folder /system))
• Dump Content (content dump the firmware, broken into pieces by certain categories)
• Camera (camera firmwares)
• Firmware (common firmwares of devices)
• Program (program & tools)
Working with the program:
0) program preferably placed in a folder without spaces and in the Latin alphabet
1) before running the program in the folder "In" place the files that need to be applied patch/es or used submenu Necessary files for to obtain the necessary files
2) in the program indicate the type of device, AndroidOS version, the class of the patch on the right side select desired patch and click Apply. If you install the patch unnecessary, it is necessary will be shut down and run again, showing only the necessary patches.
At the end of the program components can be patched to pick up from folder "Out". Also, the after applying the patch, the program may specify a update to flashing with help ClockworkMode. While working with a patch program provides information on the processed applet\libraries as follows:
Installed - the patch is applied
Present - patch is already installed in the object
Impossible - impossible to apply the patch to the object
Partially installed - installed only a few points of patch
Mismatch - firmware version of the object is failing the established type device/AOS patch
Attention! Due to the fact that some antivirus programs (Norton360, NOD32, Avast,...) have a somewhat paranoid algorithm for determining the virus, they "found a virus" in PUMa.exe. This is a lie, because the program simply packed EXE-packer to save space. Place the file in the Exceptions PUMa.exe antivirals, so it will not annoy you. Also below is a MD5-hash of the file PUMa.exe, according to which you can verify its correctness, upon receipt of any sources
Patches supported by the program : Post #2
Donations to the project (special thanks ) : bezbo, pglmro
v 4.8
- Added Value_Res tool (Tools-Working with resources-Value_Res). It allows you to change resource values of APK-file (variables of xml-files from the folder res\values) without decompiling\recompile the applet. Currently supported by work with variables of type bool, color, dimen, integer. The algorithm works with the tool:
1. select the apk-file for editing; will automatically upload the names and values resources in the tabs
2. double click on a line change\edit variable (value changed resources are marked in bold)
3. at the end of the work click the Save button (a new file will be created with the current name, the old file is renamed to *.apk.bak)
- Added tool Obfuscation (Tools-Smali-Debug-Obfuscation). In the current version implemented methods of obfuscation of class names, methods, fields on algorithms Mirroring, Numeric order, NDP and Randomized in smali-code (the name and the algorithms invented by me). Distinctive features of the algorithms on a 5-point scale:
a) readability (1-good..5-bad)
b) difficulty in decryption (1-simply..5-impossible)
c) final code length (1-more..3-same..5-less)
Code:
(a) (b) (c)
Mirroring: 3 2 3
Numeric order: 2 4 5
NDP: 4 3 2
Randomized: 4 5 4
For general use available obfuscation method field names with algorithm Mirroring. Tool results on other methods and algorithms are only available by personal request.
- Changed algorithm decompilation\recompile applets with multiple dex-component
- Font in the program changed to Tahoma
- Supplied with the program added to the external patches:
N910*_6.0.*
N920*_6.0.*
G930*/G935*_6.0.*
• System-Removing the signature verification applications
• System-Increasing the speed of response Automatic Brightness Control (ABC)
• System-Adding buttons 'Only once/Always' in task 'To open with'
MD5 : 6498af8f3e16c9657d3af5c7253dd0a7 *PUMa.exe
Download mirror link : >>> Here are stored PUMa <<<
Patches supported by the program:
(for new dev&AOS... older please see list in PUMa_eng.txt)
Grate concept ! i'll try it asap.
realy good job man .
if you can added many usefull mod . exampel : extended power - battery % - scroling cyanogen - . . .
tanks for perfect job.
Nice to see you here!
Great work!
nice !!
thank you.
Pako7 said:
1) before running the program in the folder "In" place the files that need to be applied patch/es
Click to expand...
Click to collapse
Works with Samsung stock roms?
alberto888zz said:
Works with Samsung stock roms?
Click to expand...
Click to collapse
with any.. stock and custom
mehrzad1363 said:
realy good job man .
if you can added many usefull mod . exampel : extended power - battery % - scroling cyanogen - . . .
tanks for perfect job.
Click to expand...
Click to collapse
Not all patches can be added to the program, but only those that are unifying the code
I am guessing this must work for i9100g series awell?
manishdev said:
I am guessing this must work for i9100g series awell?
Click to expand...
Click to collapse
i don't know.. you can try.. put your files in folder IN, select device I9100 and go forward.. If your files can be patched - this program will
Does not find the file even if I have placed in the folder In...what's wrong?
alberto888zz said:
Does not find the file even if I have placed in the folder In...what's wrong?
Click to expand...
Click to collapse
what files? what firmware? Odexed or deodexed? what patches?.. please say
Pako7 said:
what files? what firmware? Odexed or deodexed? what patches?.. please say
Click to expand...
Click to collapse
I have stock 2.3.6 KK1 ITV on my GS2. I have rooted it and transferred the system files by rootexplorer from sd to my computer.
Now i put the files (mms.apk, phone.apk, contacts.apk, etc...) in In folder but when i press apply on your PUMa Manager don't work.
Sorry for my bad english
alberto888zz said:
Now i put the files (mms.apk, phone.apk, contacts.apk, etc...) in In folder but when i press apply on your PUMa Manager don't work.
Click to expand...
Click to collapse
I tried on KK2 - all o'k..
1. if in the field "Necessary files" required files are odex-files (type DEX), then they must be placed in a folder "In", but not apk
2. try to put the program in the root of drive C, for example in the folder c:\PUMa
Pako7 said:
I tried on KK2 - all o'k..
1. if in the field "Necessary files" required files are odex-files (type DEX), then they must be placed in a folder "In", but not apk
2. try to put the program in the root of drive C, for example in the folder c:\PUMa
Click to expand...
Click to collapse
See this!
alberto888zz said:
See this!
Click to expand...
Click to collapse
i see this is strange
After running PUMa in folder OUT is a file Mms.apk? If not - can try handly copy this file from IN to OUT and press Apply
Tried on i9100G, shows installed etc, but when i try the sms to more than 10 persons it dsnt work. Even the call end immediately and noise reduction on by default dsnt work
manishdev said:
Tried on i9100G, shows installed etc, but when i try the sms to more than 10 persons it dsnt work. Even the call end immediately and noise reduction on by default dsnt work
Click to expand...
Click to collapse
all can be .. on I9100G program has not been tested. Tell us what you have firmware and if I have it I'll try to see applets mms and phone
ps.. i see mms & phone applet (only on old fw DZKJ2) - patches "call end immediately", "noise reduction on by default" should work. Under question - "disable control of number sending". In next version i try it's patch rewrite
Great job, working perfect for I9100 XWKK5 with russian contacts rule, cancel delay rings and stop converting SMS to MMS. Was installed by one zip file via CWM. Are donated ($100 - Confirmation number: 2SC26619W1027282U).
Thanks a lot.
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
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
Hi, following XDA user djamol tutorial, I've created an helper that allows in less click to patch system app to use OEM APIs
This app is based on This tutorial from this topic (ok... seems that there's no more tutorial there)
Remember that you need an SD card into your phone!
NOTE | I've updated this app to 0.7 and some of the functionalities are changed, so some of the tutorials created for 0.6 or less may be obsolete!
how does this work?
Detailed instructions are available within the app. Just swipe to go to the next section.
Changelog
Latest release
v 0.7 (27/02/2016)
- added MixRadio support
- new Interface and icon
- other bugfixes
Old releases
v0.6 (08/06/2015) [Still available]
- added extras and infos app support
- small UI fix and bugfix
- Update made with the collaboration of WojtasXda :good:
v0.5 (31/12/2014) HAPPY NEW YEAR! [Still available]
- trying to fix ACCESS DENIED error
- fixed scrollviewer bug
- better english (please let me know if I can write better)
- Added Field Medic app for testing purpose
v0.4 (23/12/2014)
- better naming messagge errors
- changed try-catch positions
- definitive "about" structure (not content)
v 0.3 (22-23/12/2014)
- fixed another crash
- now xap apps subfolder gets copied too!
v 0.2 (22/12/2014)
- fixed a crash
- fixed app patching for Glance Background and Preview For Developers
v 0.1 (16/12/2014)
- first release
Text related to versions 0.6 and less
NEW IMPORTANT! Give SD card permissions
Tap "SD Card permissions" button
Tap only "SD card"
Press the check button into the bottom appbar
"SD Card permissions" button will became green
It isn't necessary to set the "Unhide WPSystem" green.
Choose the app target
With this first version it's possible to choose five target apps, i will add other apps soon:
Live Lock Screen beta
Glance Background beta
Preview for developers
Field Medic
Extras and infos [NEW!]
Download the app and move it to SD card (using storage sense)
Pin the app into the start screen (obviusly you can't pin extras and infos before Update 2)
Choose the custom XAP (the app uses the integrated file picker)
Patch!
FAQ
Q: I'm getting ACCESS DENIED error
A: When you get this error, an error message will appear, make sure that "SD Card permissions" is GREEN and not RED
Q: the app crashed immediately after patch
A: ehm... I don't know, please advice me within this topic. Try to deploy again the app.
Q: Preview For Developers (or other apps) vanished from app list and I can't reinstall or unistall
A: Use Storage Sense to unistall the app
Q: Can I restore original apps?
A: Sure! Unistall and reinstall the target app
OTHER TROUBLESHOOTING
> Remove/unistall the app from the app list within your phone
> Be sure that in Storage Sense default location for app storage is INTERNAL MEMORY
> Deploy the app with "Windows Phone Application Deployment 8.1" (the 8.1 is relly important, the name may change, don't use 8.2, 8.0 or without numbers). Some Visual Studio versions have multiple deployers included, use the 8.1 version.
Glossary
Swapper: CustomWPSystem app
App target: The first/second party app to patch (Preview For Developers for example)
Homebrew XAP: the dev-made XAP that you can patch to target apps (CutomPFD for Example)
Thanks to everyone that is related with this project
Sorry for bad english and enjoy!
Looks great thanks
does anybody have the latest "registry editor" form djmol ?
i want to try the "preview voor developers" with the latest "registry editor" from djmol
please share the link
many thanks in advance
michael
Pasquiindustry said:
Hi, following XDA user djamol tutorial, I've created an helper that allows in less click to patch system app to use OEM APIs
This app is based on This tutorial from this topic (ok... seems that there's no more tutorial there)
How does it functions?
Choose the app target
With this first version it's possible to choose only three target apps, i will add other apps soon:
Live Lock Screen beta
Glance Background beta
Preview for developers
Download the app and move it to SD card (using storage sense)
Choose the custom XAP (the app uses the integrated file picker)
Patch!
The app will automatically patch the app
This is the first release ever, so there may be bugs. I've tried with a custom lockscreen and it worked.
Remember that you need an SD card into your phone!
Sorry for bad english and enjoy!
Changelog
v 0.1 (16/12/2014)
- first release
Click to expand...
Click to collapse
I've the XAP but it seems doesn't work, I've tried to apply the program manually and with CustomWPSystem, but Preview For Developers doesn't open...
I could try to make a port...
megasounds said:
Looks great thanks
does anybody have the latest "registry editor" form djmol ?
i want to try the "preview voor developers" with the latest "registry editor" from djmol
please share the link
many thanks in advance
michael
Click to expand...
Click to collapse
here you go
http://www7.zippyshare.com/v/93645961/file.html
i am having problems too. i am on build 8.10.14203. when i launch the patched app, it's stuck on "...loading..".
can people that have it working please post their wp81 build numbers and firmware revision number?
Mhm... which apps are you trying to patch?
I've added a lot of try-catch during patching with detailed message error and the app stay opened after patching (it will show up a message too)
Check the SD card root for wpsystem folder, there is apps or asspx folder?
Maybe the app that are you trying to apply doesn't have a compatible manifest...
Try to apply them manually and check if that works...
please let me know your wp8 build number.
i would appreciate a regeditor that is already adjusted to be compatible with preview for developers hijacking.
i tried the regeditor from djamol posted above with PFD.
but no luck. stuck on ..loading... when i try to launch it.
i don't know what else to try. can anyone with build 14203 or above confirm that the regeditor above is working with PFD?
That XAP isn't working for me too. I've Tried manually but the app still stuck to loading screen.
However I'm on Build 14219.
I will try to make my own regeditor based on that XAP
Hi all,
Did some cleaning of OT posts. Please keep this thread on topic
-snickler
Ok, I've tried to make my own registry edititor based on DevProgramUI, but I can't patch it to Preview For Developers, the app crashes on startup (as DevProgramUI...). I've tried with my program and manually with a file Explorer...
I Will post soon the registry editor to a new topic, bug I don't know if it writes correctly registry Keys after patching the app :/
UPDATE: I have tried Glance Background Registry editor (the djamol one) and it works without problems with my tool
UPDATE 2: I'm writing here for the preview for developers crash problem: http://forum.xda-developers.com/win...-capabilitiy-hack-t2937089/page2#post57606692
UPDATE 3: I maybe found the solution! I will publish as sson as possible the new XAP
Hi, I understand why that doesn't function and I will send soon an update.
Try to soft-reset your phone, sometimes are the wpsystem folder permissions that cannot be unlocked
Yes, with this first version, only patching Live Lockscreen works because that app didn't remove every file/folder under guid folder for wp8 apps (preview for developers and glance background)
For wp8.1 apps it isn't necessary to delete every file/folder
I've fixed that with the next release that is coming soon
Version 0.2 available now!
Now it's possible to patch correctly apps for Preview For Developers and Glance Background
0.3 version will be available soon to fix other small things
Sorry for third consecutive post, but I've updated again the tool
Now it's posssible to copy and patch entire XAP with subfolders and their files
Pasquiindustry said:
Sorry for third consecutive post, but I've updated again the tool
Now it's posssible to copy and patch entire XAP with subfolders and their files
Click to expand...
Click to collapse
still it doesnt work . acess denied . tried teboot .but still same error
by manually coping reg app contents it worked though
Check this solution here http://forum.xda-developers.com/showpost.php?p=57697453&postcount=7
0.4 update available now, I think this will be the latest one for now I think
I have still no luck using it.
Here is some minor mistakes with this app:
Apps folder getting renamed to apps (littlecase first digit "A")
Four stage of Applying... called Defualt app backup (instead of Default)
and the "swapper" doesn`t starting if installed on SD card and then being moved to Internal/Phone storage. Just infinite Loading... appears if you made it. I was forced to install it directly to Phone storage to work.
I`m trying to apply your registry editor to Preview for Developers app. And getting errors (permissions and E_ACCESSDENIED/0x80070005) at the last stage (Default app backup line is filled and Applying custom XAP file is at the dots animation stage). And I`m able to rename Apps forlder with Pocket File Manager, WPSystem folder attributes unchecked correctly, Preview for Developers folder {178AC... is empty after your app`s activity.
I had successfully installed @djamol registry editor but it is now broken by your app
I`m running Lumia 620 with Cyan update that was installed on PfD build which allows to install Cyan onto it. Extras+info app shows Core Build ID 3058.50000.1425.10479. OS version is 8.10.14176.243.
winphoneuser said:
I have still no luck using it.
Here is some minor mistakes with this app:
Apps folder getting renamed to apps (littlecase first digit "A")
Four stage of Applying... called Defualt app backup (instead of Default)
and the "swapper" doesn`t starting if installed on SD card and then being moved to Internal/Phone storage. Just infinite Loading... appears if you made it. I was forced to install it directly to Phone storage to work.
I`m trying to apply your registry editor to Preview for Developers app. And getting errors (permissions and E_ACCESSDENIED/0x80070005) at the last stage (Default app backup line is filled and Applying custom XAP file is at the dots animation stage). And I`m able to rename Apps forlder with Pocket File Manager, WPSystem folder attributes unchecked correctly, Preview for Developers folder {178AC... is empty after your app`s activity.
I had successfully installed @djamol registry editor but it is now broken by your app
I`m running Lumia 620 with Cyan update that was installed on PfD build which allows to install Cyan onto it. Extras+info app shows Core Build ID 3058.50000.1425.10479. OS version is 8.10.14176.243.
Click to expand...
Click to collapse
if you are using pfd app then follow these steps
1. try using above app
2. it will show error , ignore it .
3. now manually copy contents of reg app and paste them in pdf app . ( for copy - paste use "file Manager" or "Folders" app )
4. done
It worked for me .
irshad2809 said:
if you are using pfd app then follow these steps
1. try using above app
2. it will show error , ignore it .
3. now manually copy contents of reg app and paste them in pdf app . ( for copy - paste use "file Manager" or "Folders" app )
4. done
It worked for me .
Click to expand...
Click to collapse
Finally done it manually. After your post I tried to remove PfD app, redownloaded it from store and then with "swapper" tried to swap the apps. After the error messages I did use Pocket File Manager and realized that this time Preview for Developers folder was not empty, there was Install folder into it. I have renamed folder apps to Appx, erased the content of Preview for Developers folder ( {178AC... ) and then renamed folder Appx to Apps.
"Swapper" is the name of the CustomWPSystem app. @GoodDayToDie used it the first time (see original post). I do liked it and then used by myself. Probably that naming making problems for translating sites. Sorry for the inconvience.
Click to expand...
Click to collapse
Using Metro Commander Pro (paid one, but I got it for free during giveaway) I have copied content of {27D6A090... to {178AC... and:
It works!