[Porting Tool] MIUI APKTool - Android Software Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Overview
This is a more than full-featured APKTool GUI, It has a few options for porting which I'll explain in great detail but for now I'd like to say despite the minimalistic look which will stay lite forever, it does do a lot for efficiency and can be used for things other than MIUI, but is made especially for MIUI.
Notepad++
This deals with edits that need to be made with Notepad++ in general; It will open the selected file from WIP as well as the one from the Rom being ported for easy comparison.
Kernel Options
Pretty Simple, Executing the 'Unpack Boot.Img' Command will automatically split your Ramdisk; which can be found in root\boot, Repack puts everything back together and inserts Boot.img back into your WIP Rom folder.
Backup Options
Use this to make a backup of the current WIP Rom files; any backup files stay present until manually overwritten; saving time since the boot.img and updater-script can be used for any MIUI build generally.
Target
When a Workspace is generated, all APK and JARs will be placed into respective folders for easy access, tick 'Base' to work with your base rom APK and JARs and tick Port to work with your Port rom components
Download: MIUI APKTool 0.10
Handbook and source / Original post

Misc. Notes
This can be compiled If you have AHK installed easily by just pasting the code into a new AHK file.

Are you a fans of MIUI?

ImaxAndroid said:
Are you a fans of MIUI?
Click to expand...
Click to collapse
Huge fan, I'm also a member of the porting team at en.miui.com ;x

Bump, I have recoded this and it is less complex in general, using only variables to keep track of its own settings.
Aapt should be kept in the same directory and folder settings are no longer persistent for the sake of simplicity; however rotating folders are still possible and it works the same as before

I added porting options lol

Bump, I've added more to this and removed the need to have to set folders before each use; Ramdisk stuff has been streamlined to be more 'in the background' and the option to backup Build.prop, Updater-Script and boot.img have been added as well.
The Backup options apply to things inside 'WIP' and when using the Load option, it inserts backup content into WIP. This takes a lot of pain away from multiple ports or multiple attempts when trying to find the right base as far as Updater-Script and Boot.img go.
Lastly the Workspace Generator has been updated to mirror the new dependancies that have appear in MIUI 3.9, this should now support all MIUI JB versions 3.9 and under
Lastly the GUI is less clunky and less obnoxious to use, and faster in general

any tutorial on how to use this?

Will try

Related

[v2.5.1] Android BootChangerGUI

An windows .net application that writes/reads to and from:
/system/media/
/system/customize/resource/
/data/local/
To change the boot screen. Very simple and easy to use.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download in attachments
v1.1.4 - Tick Box Added switch between /data/local/ and /system/media/
v1.1.5 - Tweaked GUI
v1.2.1 - Tweaked GUI again; added /system/customize/resource/ support added help via clicking android.
v1.2.2 - Test button added; launches the phones boot screen
v1.3.5 (BETA) - New UI and rearranged coding. /Glitchy
v2.1.0 - Tweaked UI and Recovery/Backup Directory Selection
V2.1.1 - Fixed Bug
v2.5.1 - /system/ mounting supported, moveable windows
Nobody taking interest?
0*_*0
I am really interested
not just that you & me sharing & developing same idea
.
I'm really happy to see someone interested write android programs
I sent you a message >>> please chick your index
thank you ...
Update
v2.5.1 - /system/ mounting supported, moveable windows.
I am very new to the android hacking community so please forgive my ignorance. But is this a program that allows you to create a boot animation for your device?
NicholasQ said:
I am very new to the android hacking community so please forgive my ignorance. But is this a program that allows you to create a boot animation for your device?
Click to expand...
Click to collapse
Assuming you've rooted your device then yes.
Works lang a charm I finally modified my bootanimation using this. One thing though I made a mistake on the command prior making it work.
adb push bootanimation.zip /system/custom/resource (should be customize) How can I remove that. Btw Thanks a lot 2 thumbs up to you.
How to use (I'm stupid so i need instructions) Please
Ill change that now :L
Depending on your phone it has different locations for the bootanimation.
If you tick all the boxes then hit backup open each file until you recognized one as the one you see at the boot screen then simply overwrite that with a custom one. Keeping a backup of course incase it doesnt work properly.
very nice idea! good job!
NicholasQ said:
I am very new to the android hacking community so please forgive my ignorance. But is this a program that allows you to create a boot animation for your device?
Click to expand...
Click to collapse
It doesn't let you create one, but it can set one recover and backup current ones etc.
please explain more
I don't understand at all how to use it ...... :'(

[SCRIPT] APK Manager like UI interface to edit m10 files

Based on apk manager script I have created a script which gives ease to modify m10 files. Copy script.bat into folder where m10tools binaries exist (at location where m10decoder.exe, m10encoder.exe, etc...).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download Script File Here
Installation:
1. Create folders Decoded, Encoded and m10_files at location where m10tool binaries are placed.
2. Copy script.bat at location where m10tool binaries are placed.
How to use
1. Place you m10 files in m10_files folder.
2. Select desired operation as shown in screen shot.
Change Logs
Code:
[B]Version 1.0[/B]
Initial release
Let me know if anyone needs any help on this
Hmmm... We need something like this impleted in apkmanager... Looks great amresh!
worked like a charm, thanks a ton amresh
Man thats great thanx!
Senergized in 3D
Can't believe I haven't thanked you yet. I've been using this for about a month now, and one thing everyone should know, is this tool has an extra advantage. Contrary to the m10 Editor UI Application, this script uses straight command line which makes all of your sense 3.0 m10 images decode with the same file name every time, where as the UI will give you random file names every time. And this is way simpler
Amresh, This was an ingenious idea and I can't thank you enough!
mpitcher225 said:
Can't believe I haven't thanked you yet. I've been using this for about a month now, and one thing everyone should know, is this tool has an extra advantage. Contrary to the m10 Editor UI Application, this script uses straight command line which makes all of your sense 3.0 m10 images decode with the same file name every time, where as the UI will give you random file names every time. And this is way simpler
Amresh, This was an ingenious idea and I can't thank you enough!
Click to expand...
Click to collapse
Has this program been optimized to work with sense 3..5?
Sent from my A500 using xda premium
i tried to modify the htc love apk. m10 files, but the thing is when i separate the dat and png files the folders are empty...plz help if u can..
sweet, thanks, will give it a shot

[Tool][Windows] Cassini.1.2 - Now Compress Any App! (*)

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now Support all Apps! (*)​
Download - Cassini.1.2 - 3.5MB [Google Drive]
Download - Cassini.1.2 - 3.5MB [Dev-Host]​
About
First of all, the reason that this program took this much time to come out is because my career-deciding exams where on. So I'm sorry about that.
The newest edition features a GUI - like UI that helps user to easily create new projects (for rom or collection of apps) and manage them.
With the new algorithm the for compression you can ensure that almost all of your apps get compressed successfully! You just have find the perfect set of settings for that particular app. Use it ti compress apps and get a performance boost for your phone as well as save some space!​
Setting Up your PC!
Note: You can skip this step if you already have Java installed on your PC, or you don't want to use the Sign Apk setting for compression.
Download The following resources first:
Java SE Run-time Environment 7 [ Java Dependencies For Signing APK tool ]
Now let's begin setting up your PC,
Install the above mentioned programs.
Go to Advanced System Properties.
It looks like this:
Go to Environment Variables, then create a new System Variable, having name JAVA_HOME and value as the path where you have installed the JRE.
It looks like this:
Now after creating the JAVA_HOME variable, search for Path system variable in the System Variables list. Now this is a bit tricky. Once found click on it and then on Edit. Move the cursor to the end of the string till you see ";" (without quotes), add the path to your JRE bin folder just after it.
It looks like this:
Manual for Cassini.1.2 - Information about the program.​
Include this in your signature if you like and support Cassini and you are using the apps compressed by Cassini!
​
:good: Hit thanks if you liked it! :good:​
Screens for Cassini.1.2
Screenshots of Cassini.1.2

[Tool] Nocturnal Automated APK tool 1-18-2015

I have created this tool a few years ago but kept it for internal use. Now i am releasing it for public use.
This is a very easy apk tool
Instructions:
Make sure you have Java JDK installed and Path set
Download the latest Nocturnal_apk_toolkit.zip
Extract the zip
place the framework-res.apk from the rom you are working with in the apktool folder
drag the framework-res.apk into the apktool-if -2.0.0rc3
next drag the apk you want to edit to the apktool-d -2.0.0rc3
you can edit the apk in the newly created folder
once finished, drag the edited folder into the apktool-b -2.0.0rc3
Once compiled, resign and enjoy!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
XDA:DevDB Information
[Tool] Nocturnal Automated APK tool 1-18-2015, Tool/Utility for all devices (see above for details)
Contributors
XsMagical
Awesome, I'll try it out as soon as I get the chance. I've been having issues to my current APK Tool in recompiling lollipop aosp system apps after making modifications. Hopefully this fixes my issue.
Sent from my Nexus 5 using xda premium
XsMagical said:
I have created this tool a few years ago but kept it for internal use. Now i am releasing it for public use.
This is a very easy apk tool
Instructions:
Make sure you have Java JDK installed and Path set
Download the latest Nocturnal_apk_toolkit.zip
Extract the zip
place the framework-res.apk from the rom you are working with in the apktool folder
drag the framework-res.apk into the apktool-if -2.0.0rc3
next drag the apk you want to edit to the apktool-d -2.0.0rc3
you can edit the apk in the newly created folder
once finished, drag the edited folder into the apktool-b -2.0.0rc3
Once compiled, resign and enjoy!
XDA:DevDB Information
[Tool] Nocturnal Automated APK tool 1-18-2015, Tool/Utility for all devices (see above for details)
Contributors
XsMagical
Click to expand...
Click to collapse
lick download error Nocturnal_apk_toolkit.zip upload lick https://mega.nz thanks for Nocturnal_apk_toolkit.zip

[ZIP][TEMPLATE] Adaptive Junk Remover

My first smartphone was the Samsung Galaxy S2. And I was shocked how Samsung "destroys" their own device by adding - sorry for the harsh words - idiotic and useless apps.
Samsung is the main reason why many people (most apple users) are mocking Android.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Samsung is the worst manufacturer in adding useless apps. Who needs 23 hubs for social, fitness, books, games, blablabla and 3 app stores? And 2 music players?
Nobody, I guess... That's why I deleted the useless apps from /app and /priv-app after every update and that was awful.
Some weeks ago I made this flashable zip which allows me to delete all unnecessary (at least for me!!!) apps with one flash. I made it for personal use with my OPO and BlissPop. I don't need NFC or CellBroadcastReceiver. Never.
Every ROM is different. Every ROM has same apps in /system but also different ones. That's why I'm sharing a template for the flashable zip, not a ready-2-flash-zip.
Adaptive Junk Remover
1. download the provided zip file for KK / L
2. open it with WinRAR (the best program)
3. browse to \META-INF\com\google\android
4. open the file called updater-script with Notepad++ (also the best program)
5. a) you will see this (for a ROM based on Android 5.0.x // CM12), the delete_recursive tag is necessary because L stores apps in subfolders
b) you will see this (for a ROM based on Android 4.4.x // CM11)
6. you have to add the apps you want to remove, have a look inside your /app and /priv-app folder
7. a) enter the folder name (CM12): delete_recursive("/system/app/FOLDER-NAME"); or delete_recursive("/system/priv-app/FOLDER-NAME");
b) enter the app name (CM11): delete("/system/app/APP-NAME.apk"); or delete("/system/priv-app/APP-NAME.apk");
maybe you have also .odex files, delete them with delete("/system/app/APP-NAME.odex");
8. if you've finished save the file, WinRAR asks to update the zip-file, affirm that (!!!IMPORTANT!!!)
9. flash the zip in your custom recovery
!!!WITHOUT GUARANTEE!!!
delete only apps you know they're safe to remove (link, link, link, etc.)
be aware that some apps share their libs, etc.
if anything goes wrong, for example FCs, simply reflash (dirty) your ROM and delete the FC'ed app from the updater-script of the Junk Remover
if you have questions, feel free to ask
my updater-script for my OPO running BlissPop looks like this, using it after every update, no FC, no other issue
Code:
delete_recursive("/system/app/AntHalService");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/CMWallpapers");
delete_recursive("/system/app/Eleven");
delete_recursive("/system/app/Email");
delete_recursive("/system/app/FaceLock");
delete_recursive("/system/app/Galaxy4");
delete_recursive("/system/app/HoloSpiralWallpaper");
delete_recursive("/system/app/HTMLViewer");
delete_recursive("/system/app/LiveWallpapers");
delete_recursive("/system/app/LiveWallpapersPicker");
delete_recursive("/system/app/MonthCalendarWidget");
delete_recursive("/system/app/NfcNci");
delete_recursive("/system/app/NoiseField");
delete_recursive("/system/app/OpenCamera");
delete_recursive("/system/app/PhaseBeam");
delete_recursive("/system/app/PhotoPhase");
delete_recursive("/system/app/PhotoTable");
delete_recursive("/system/app/PicoTts");
delete_recursive("/system/tts");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/Terminal");
delete_recursive("/system/app/VisualizationWallpapers");
delete_recursive("/system/app/WhisperPush");
delete_recursive("/system/priv-app/CellBroadcastReceiver");
delete_recursive("/system/priv-app/CMAccount");
delete_recursive("/system/priv-app/DeviceControl");
delete_recursive("/system/priv-app/Mms");
delete_recursive("/system/priv-app/MmsService");
delete_recursive("/system/priv-app/ScreenRecorder");
delete_recursive("/system/priv-app/Tag");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/priv-app/VoiceDialer");
Nice. Thanks for sharing. You did a great job explaining how to go about this and the script/zip works great. Thanks for taking the time.
oak said:
Nice. Thanks for sharing. You did a great job explaining how to go about this and the script/zip works great. Thanks for taking the time.
Click to expand...
Click to collapse
Thanks for the feedback!
Will need to make one for myself.
Sent from my Nexus 6 using Tapatalk
This worked like a charm. Thanks.

Categories

Resources