Hi,
Here is a flashable ZIP template. This is just an empty zip file that you can put anything that you want and will write it to /system. This mod is good if you want to change SystemUI's or something. It will not contain a ROM. This is just adding APK's to ROM's, Frameworks, Libraries, Bootanimations or other things found in /system
GUIDE -
Want to personalize it a little? Here is a quick guide.
What you will need
- NotePad++
1 - Download Flashable ZIP template
2 - Extract it
3 - Go to META-INF/com/google/android/
4 - Right click on 'updater-script' and open with NotePad++
5 - You can only change code line of the text in red ''ui_print("blahblahblah");''
6 - Once editted the test in the UI print tags save it and close
7 - To add things to flash go to /system
8 - Add the file you want in its specific directory* e.g. - Applications go in /system/app and frameworks go in /system/framework and Boot Animations go in system/media
9 - Once done, select both META-INF and System Folder and right click and select 'send to > compressed zip folder
10 -You are all done!
Download -
http://d-h.st/E5n - Don't say thanks. Hit that button
You can use this without credits just giving something back to XDA
Press thanks if this helped. Will do other guides too
XDA:DevDB Information
Flashable ZIP template, a Tool/Utility for the Android General
Contributors
StarFighter
Version Information
Status: Stable
Current Stable Version: V1.0.5
Stable Release Date: 2014-02-06
Created 2014-02-06
Last Updated 2014-02-10
So this is basically Ui_print design which we see in Recovery right?
:...::::Recognized TDT™ member:::...
....::◀Press Thanks if I helped▶:::...
DeveDroid said:
So this is basically Ui_print design which we see in Recovery right?
:...::::Recognized TDT™ member:::...
....::◀Press Thanks if I helped▶:::...
Click to expand...
Click to collapse
Yes. The text in UI print shows up in recovery
Sent from my LG-D802 using XDA Premium 4 mobile app
StarFighter said:
Yes. The text in UI print shows up in recovery
Sent from my LG-D802 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
So it is designed? or is only a text? I mean is this for people who don't know how to create a updater_script? Or it is a designed updater_script for all of'em?
:...::::Recognized TDT™ member:::...
....::◀Press Thanks if I helped▶:::...
there are five ui_print in script, is it ok to edit all of them? I'm just confused because some lines I think are related for writing something to the system. Sorry newb
Geddd said:
there are five ui_print in script, is it ok to edit all of them? I'm just confused because some lines I think are related for writing something to the system. Sorry newb
Click to expand...
Click to collapse
All UI prints can be editted. It doesnt matter. I just put them as the text of what is being installed beneath it.
How to edit script if I'am use kitkat? I want to flash an app to priv-app folder.
Thanks in advance.
exodius48 said:
How to edit script if I'am use kitkat? I want to flash an app to priv-app folder.
Thanks in advance.
Click to expand...
Click to collapse
create a folder called Priv-App in the system folder. Job done
Please don't upload any file on the ****ing d-host. I can't download!!!!!!!!!!!!!!! It is just a bloatware.
Related
Ok, So after copying 200 or so png's in the Drawable_xlarge_mdpi and the drawable_mdpi folder, I get my image mods after flashing.
But, they still only show the stock number of images, 9 or 10. Charging works ok.
So somewhere, there are some xml files I need to edit to reflect the filename additions?
Or am I missing something else?
A501 HC 3.2
Thanks guys and girls!
Battery_Charge.xml & Battery_Discharge.xml should be what your looking for.
Sent from my DROIDX using Xparent Red Tapatalk
DRTMI said:
Battery_Charge.xml & Battery_Discharge.xml should be what your looking for.
Sent from my DROIDX using Xparent Red Tapatalk
Click to expand...
Click to collapse
Thanks. I kind of figgured those were the xml files I was looking for. Problem is, I'm playing hell with de-compiling my framework-res to be able to edit the xml files.
Can't make much progress with the apktools available, even when including the dependancy apk's. So clearly I am a noob with decompiling framework-res
So my next question, is there any difference between a com gen 1 stat_battery_charge.xml; for the a500 and 501? If not, is it feasible to switch the modified xml to replace the current stock one?
here is how i mod those files as well as the icons and so on
i copy the system ui.apk to a folder on my desktop
i open it with winrar.. DO NOT EXTRACT IT.. pull out the folder containing the png files or xms you want to edit.. Just drag and drop them to another folder..
edit them to your hearts desire.
open the system.ui apk again in win rar.. drag the edited folder back into the system.ui.. push it to your tablet.. to say download folder..
then copy it to the original place it will ask you to replace say yes.. your tablet will CRASH .. REBOOT then if you edited the files corectly it will boot and show your changes.
i dont know if this is the correct way easiest way .. but IT DID WORK FOR ME.. USE AT YOUR OWN DESCRESSION..
I could send you the apktool I am using. Its the only one I have found that works worth honeycomb.
Sent from a phone.
NunHugger said:
I could send you the apktool I am using. Its the only one I have found that works worth honeycomb.
Sent from a phone.
Click to expand...
Click to collapse
Would be much appreciated Just send a link, and thanks!
erica_renee said:
USE AT YOUR OWN DESCRESSION..
Click to expand...
Click to collapse
Thanks Erica! That's what I've been doing Actually, wanted to do some editing to the xml files itself. It's easy for png's, at they don't get compiled.
Anytime we take the first step, and install iconiaroot, we do so at our own discretion
Here's an updated apk_manager if you prefer that method.
I normally use a CWM zip since I have to reboot anyway. You can usually start with any theme zip and just make sure their updater-script copies /system to /system and just look through the zip to see what it copies, and if it looks normal, you can make the directory structure the same but copy your own over the old ones (and delete any orginal files that you won't be overwriting). i.e. it should look like:
system/app/SystemUI.apk
system/framework/framework-res.apk
system/fonts/blah.ttf
Just drag your files into the zip in the same place and use it.
And then as a precautionary measure, just do this once or any time you mess with more files (for inexperienced modders): Make a 2nd copy of that zip and call it blah-revert.zip then copy the orginal files over those modified files. Once you have both zips on the device, if anything goes wrong you can flash the revert to get back quick.
IMPORTANT - APK extraction is needed only when you are going to edit or replace png's for theming. If you want edit xml's, you need to decompile the apk instead of extracting it.
If you want to decompile an apk, read this tutorial - http://forum.xda-developers.com/showthread.php?t=1664292
1) Download apkmanager ( http://apkmultitool.com/downloads/Apk_Manager_5.0.2.zip ) and install it
2) Put the apk you want to decompile in 'place-apk-here-for-modding' folder.
3) Double click on 'script'
4) Ignore the 'adb not found' command and press enter
5) Type 22 i.e. 'set current project' and press enter.
6) Type 1 and press enter
7) Type 1 again and press enter to extract
8) Wait until the extraction finishes.
9) Minimize command line and go to projects -> filename.apk -> change/edit the required png's
Warning - Do not edit 9.pngs or replace them just like that. They are not normal png's. For mor info on how to edit 9.png's, follow music.soul's tutorial - http://forum.xda-developers.com/showthread.php?t=1559154
10) Switch back to command-line, type 3 and press enter.
11) If it is a system app's apk, type 1 and press enter. If it is a normal apk, type 2 and press enter.
12) Wait until the command-line comes back to its initial look.
13) Go to 'place-apk-here-for-modding' folder, your new file will be unsignedfilename.apk
14) Copy the file to SD card, rename it and remove 'unsigned' from file's name.
15) Push the file to original folder using root explorer and set proper permissions.
EG - If you modded framework-res.apk, push your new file to /system folder. Set permissions to rw-r--r-- and then move the file to /system/framework folder.
PS - Make a nandroid backup before doing this if you modded framework. Backup the original app's apk in case something goes wrong
Sent from my GT-S5830 using Tapatalk 2
Excellent guide
evil_penguin said:
Excellent guide
Click to expand...
Click to collapse
Thanks
Sent from my GT-S5830 using Tapatalk 2
APK manager is the only thing I need? Or do I also need Java SDK and Android SDK. For theming only.
Thanks dude! now I will start to mod my stock LUBKPL rom to my personal preferences and if it goes fine I will share my mods. Now in Mexico there are president elections and I work for one of the 4 countenders so I will star my mods before July 5 here are a LOOOOOTTTT of work rite now!
kevin03 said:
APK manager is the only thing I need? Or do I also need Java SDK and Android SDK. For theming only.
Click to expand...
Click to collapse
You only need apkmanager and a good image editing software like photoshop.
Sent from my GT-S5830 using Tapatalk 2
How about unpacking and repacking roms? How do I do that?
Woho. One more awesome guide. Thanks dev
Sent from my GT-S5830 using xda premium
Both the guides are very clear and detailed, I think they are eligible enough to be featured on XDA news. What say guys? How can I submit his threads for XDA news?
Sent from my GT-S5830 using xda premium
kevin03
7zip.It's easly
Rishris said:
Both the guides are very clear and detailed, I think they are eligible enough to be featured on XDA news. What say guys? How can I submit his threads for XDA news?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Lol, that's too much. I did not write the guides to get featured on XDA news. I just wrote them to help newbies. And I dont think they consider such normal stuff for XDA news. Thanks for the appreciation anyway
Sent from my GT-S5830 using Tapatalk 2
So I got the apk manger from the link you posted and followed all directions, but when I get to the step where I decompile the apk, i get an error.
I've attached a picture maybe this will help.
what im trying to decompile is a MMS.apk from my nexus.
thanks in advance and sorry for reviving an old thread.
Supports ICS & Jellybean
Things You Need To Do
WINDOWS
Note: Tested on Windows 8
1) 7-Zip
2) Winmerge
3) Notepad++
4) Java SE Development Kit
5) Install in default location
6) You should not choose a root path that includes spaces in directory names
C:\my port\Miui_Auto_PorterV* 《-- won't work
C:\my_port\Miui_Auto_PorterV* 《-- will work(there should not be any spaces)
LINUX
Note: Tested on Ubuntu 12.10
1) 7-Zip
2) Meld
3) KWrite
4) Java SE Development Kit
5) Install them
6) You should not choose a root path that includes spaces in directory names
Home/user/my port/Miui_Auto_PorterV* 《-- won't work
Home/user/my_port/Miui_Auto_PorterV* 《-- will work(there should not be any spaces)
7) You need to set permissions of these 2 files as "executable"
- MIUI-Auto-Porter-LinuxV*
- tools/apktool
COMMON
1) "common sense"
2) Give credits and thanks
Click to expand...
Click to collapse
Click to expand...
Click to collapse
How To
NOTE: Script is auto explanatory, so you just need to follow it.
NOTE: If your working directory is in system partition, you need admin rights.
1) Now just start the MIUI-Auto-Porter-V*.cmd
2) The script starts creating folders
NOTE: Make sure you extract your miui and cm zip's in their respected folders
1) CM - Extract your cm zip inside it
2) MIUI - Extract your miui zip inside it
3) PORT - Its automatically generated dont manually edit it
4) WIP - All your apk's jar files are decompiled here you can manually edit your smali's here
5) Tools - All the tools required by the script are here(comes in the zip)
Click to expand...
Click to collapse
3) Now it asks you if you need to copy these files into your miui rom
NOTE: Its a simple y/n answer for it
Code:
1) CM NFC
2) CM Camera
3) Delete MIUI Camera
4) Again a y/n question if you want to copy service.jar USB folder, if yes it will take you to manual diffing
5) All the files will automatically be displayed to dif or to manually edit
6) To know more about what to manual diff, please follow Lens_flare's guide.
7) After you finish manually diffing, let the script do its job,
8) Collect your miui_signed.zip and happy flashing
9) Any doubts feel free to ask me
10) Dont forget the THANKS button & to give proper CREDITS if you use it
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Things This Script Does
NOTE: These are mixed ICS & Jellybean files, the script does it automatically dont worry about that.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Automatic
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Folders
Code:
- system\app\
- system\framework\
- system\fonts\
- system\media\
File's
Code:
[I]Lib Files[/I]
- system\lib\content-types.properties
- system\lib\liblbesec.so
- system\lib\liblocSDK_2.5OEM.so
- system\lib\libjni_resource_drm.so
[I]Etc Files[/I]
- system\etc\yellowpage.db
- system\etc\telocation.idf
- system\etc\spn-conf.xml
- system\etc\telocation.td
[I]Permission Files[/I]
- system\etc\permissions\com.nxp.mifare.xml
- system\etc\permissions\miui-framework.xml
- system\etc\permissions\com.google.android.media.effects.xml
- system\etc\permissions\com.google.android.media.effects.xml
- system\etc\permissions\com.google.widevine.software.drm.xml
- system\etc\permissions\com.google.widevine.software.drm.xml
- system\etc\permissions\com.google.android.maps.xml
[I]Xbin Files[/I]
- system\xbin\su
- system\xbin\invoke-as
Smali's
Code:
[I]Framework Smali's[/I]
- org\codeaurora\Performance.smali
- android\graphics\Paint.smali
- android\os\Environment.smali
- android\net\wifi\WifiNative.smali
- android\bluetooth\HeadsetBase*.smali
- android\os\Power.smali
- android\view\GLES20*.smali
- android\view\HardwareCanvas.smali
- android\os\PowerManager*.smali
- android\hardware\Camera*.smali
- android\server\BluetoothA2dpService*.smali
- android\webkit\WebView*.smali
- android\webkit\WebSettings*.smali
- android\webkit\HTML5*.smali
- android\webkit\SelectActionModeCallback*.smali
- com\android\internal\telephony\BaseCommands.smali
- com\android\internal\telephony\RIL*.smali
- com\android\internal\telephony\Samsung*.smali
- com\android\internal\telephony\QualcommSharedRIL*.smali
- android\content\res\PackageRedirectionMap*.smali
- android\app\ProfileManager*.smali
- android\media\AudioManager$1.smali
- android\media\AudioManager$2.smali
- android\media\MediaRecorder*.smali
- android\app\ProfileGroup*.smali
- android\os\IPowerManager*.smali
- com\android\internal\app\ActivityTrigger.smali
[I]Services Smali's[/I]
- com\android\server\input\InputManager*.smali
- com\android\server\wm\InputManager*.smali
- com\android\server\watchdog*.smali
XML's
Code:
[I]Framework-Res XML[/I]
- res\xml\storage_list.xml
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Manual
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-NOTE: Script either ask's you what to do, or opens the files for manually editing or diff'ing.
APK's
Code:
- Copy CM Camera.apk
- Copy CM NFC.apk
- Delete MIUI Camera.apk
Smali's For Diff'ing
Code:
- framework\os\SystemProperties.smali
- framework\android\media\AudioFormat.smali
- framework\com\android\internal\telephony\PhoneFactory.smali
- framework\android\content\res\AssetManager.smali
- services\com\android\server\PowerManagerService.smali
XML's For Editing
Code:
- res\values\bools.xml
- res\values\arrays.xml
Others Files For Editing
Code:
- system\build.prop
- META-INF\com\google\android\updater-script
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Random Auto Stuff
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Code:
- Installs the necessary Framework Files
- Decompiles Framework-Res(CM\MIUI) to "wip\apks\(CM\MIUI)\framework-res.apk.out"
- Decompiles services.jar(CM\MIUI) to "wip\jars\(CM\MIUI)\services.jar"
- Decompiles framework.jar(CM\MIUI) to "wip\jars\(CM\MIUI)\framework.jar"
- Decompiles android.policy.jar(CM\MIUI) to "wip\jars\(CM\MIUI)\android.policy.jar"
- Builds all the files after you edit them
- copy the necessary files from the built files into the actual roms files. (prevents signing apk's)
- zipaligns all the apk's
- creates flashable zip
- signs the zip
- final zip is 'miui_signed.zip'
Click to expand...
Click to collapse
Click to expand...
Click to collapse
ChangeLog
Code:
[B]V4[/B]
- Introducing Linux version
- Improved copying
- improved start up
- improved explanation
- (linux/windows) now u can place your working folder anywhere,... (You
should not choose a root path that includes spaces in directory names)
[CENTER]=-=-=-=-=-=-=-=[/CENTER]
[i]V3[/i]
- Improved folder creation
- Improved cm and miui folder detection
- Improved user friendly features
- Script optimization
[I]V2[/I]
- Script Cleanup
- More User Friendly
[I]V1[/I]
- Initial Release
Click to expand...
Click to collapse
Downloads
Windows - Click Here
Linux - Click Here
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Thanks To
Lens_flare, iBotPeaches, proxuser, android
Click to expand...
Click to collapse
Click to expand...
Click to collapse
testing..
^^^
let me know how it works,...
Where do I put the ROMs at? What folder?
Sent from my VS920 4G using Tapatalk 2
start the script,... it will guide you,...
UPDATED: its more user friendly now,...
I don't see the cm folder though...
Sent from my VS920 4G using Tapatalk 2
Buddy all folders are there and they are getting created perfectly...
Please follow the on screen instructions of the script...
Superb tool, many thanks for your work on this!
When diff -ing smali files, I'm confused, do I merge from right to left or vice versa? The file on the left is the original MIUI file, so I add from the left?
Many thanks again.
Peace
Edit: if Miui is on left and CM file is on the right, then I add content from CM file, i.e right -> left? Right?
When diff ing You always add stuff to your miui... not the other way around...
The next version will try to make it a lil easier..
Yeah the folders are still not there, I am following the directions, so I guess I am unlucky.....
Sent from my Nexus 7 using Tapatalk 2
What do you mean the folders are not there?? As I said the script explains itself... so you should just follow it...
Cm n miui folders are created 1 after the other... so when the script stops n tells you to extract a particular zip, its waiting for u to extract it... then it checks it n then the other folder is created...
(sent through internet)
Good jobs here..:good:
Yeah it says put cm ROM in cm folder and no folder appears should I put script in C:\ I'll try that and give it a go
Sent from my Nexus 7 using Tapatalk 2
azoller1 said:
Yeah it says put cm ROM in cm folder and no folder appears should I put script in C:\ I'll try that and give it a go
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Run as admin
BrianXP7 said:
Do you have any plans for a Linux version, though?
Click to expand...
Click to collapse
If the demand for Linux version is high...
I don't mind writing one for it...
(sent through internet)
azoller1 said:
Yeah it says put cm ROM in cm folder and no folder appears should I put script in C:\ I'll try that and give it a go
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Nocturnal_50 said:
Run as admin
Click to expand...
Click to collapse
Exactly if you are in system partition... you need to run as admin...
I didn't involve admin rights so that people won't be scared...
And you can use any working location... it will work... it is not predefined... it detects location automatically...
(sent through internet)
This tool would be awesome to have in linux as well...
Please consider it..
Could u add GB?
>> Tapatalk
Hi! Great tool, but can I port MIUI on my stock Sense-based ROM?
This patch is multi devices and multi roms, you can use it on any roms, this patch will allow you to install apps/games into your internal storage, not just in system storage. This patch very useful if you like doing flashing/changing rom, you don't have to install apps/games manually, one by one like before, with this, you just flash it in the recovery that you've installed all apps that you always use on previous roms...
How to use it ?
- Download the patch from here
- Extract it : You'll find these folders
> data/app
> META-INF/..../updater.script
> system/app
- If you want to install your apps in internal storage, put your .apk files inside "data/app"
- If you want to install your apps in system storage, put your .apk files inside "system/app"
- Repack the zip, then flash in the recovery
- Don't forget to wipe cache and dalvik cache before flashing...
- Enjoy
If you like this patch, don't forget to press THANKS button
Great work bro.... It will be useful for those who like to make a mod or app ported but they posted through root explorer, as an example (rw-r--r--) LOL , I'm sure many who download your work even though no one comments. here as it.
Keep up bro
excellent... I may look into modifying to add "system/priv-app" as an option [emoji106]
update: modding not required as /system includes /system/priv-app from updater.script point of view ~ just had to add a priv-app folder to paste apks into
Cemungudh mastah
ibanez7 said:
Great work bro.... It will be useful for those who like to make a mod or app ported but they posted through root explorer, as an example (rw-r--r--) LOL , I'm sure many who download your work even though no one comments. here as it.
Keep up bro
Click to expand...
Click to collapse
Thank you my friend,
iBuzman said:
excellent... I may look into modifying to add "system/priv-app" as an option [emoji106]
update: modding not required as /system includes /system/priv-app from updater.script point of view ~ just had to add a priv-app folder to paste apks into
Click to expand...
Click to collapse
yes, you can add everything inside system folder, not just app in system/app or system/priv-app, if you had a mods in the other folder(in system/etc for example), just make folder "etc" inside folder system....
cause my script is working for the whole folder in system...
itsnie said:
Cemungudh mastah
Click to expand...
Click to collapse
teenagers words
nice one done
where download link?
Yes where download link...?
Sent from my GT-I9500 using Tapatalk
Sir i need that zip.. but link is broken
ibanez7 said:
Great work bro.... It will be useful for those who like to make a mod or app ported but they posted through root explorer, as an example (rw-r--r--) LOL , I'm sure many who download your work even though no one comments.
I need that zip can u give me??
Click to expand...
Click to collapse
The link is broken but I think someone made a copy here.
[ I'm posting this here in case it gets lost in the original thread ]
Attached is a flashable zip with a patched services.jar that fixes the color fade bug, one of the memory leaks introduced in lollipop
This is not my work, I just asked for a favor from @mikeyinid and packed it into a flashable zip, so you need to go Thank him if you use this.
We are very grateful Mikey.
mikeyinid; said:
.Just so you understand what the patch actually does... It doesn't help with the aggressive killing of apps we all know about. What it does do is keep the device from becoming unstable over time. There is another memory leak caused from something regarding music playback, there isn't anything I can do about that right now
Click to expand...
Click to collapse
P.S this is the services from VN ROM but should be compatible with most other deodexed ROMs with the same base (hopefully)
you can also manually do it by pasting the services.jar from the zip into system/framework and setting permissions then rebooting.
You should always make a nandroid backup before flashing any system files
How to this without flashing in twrp. Im on ocv and rooted with 0x0 knox. You said to set permission, how do i do yhis. Ty
Sent from my SM-G925F using XDA Free mobile app
trazfer said:
How to this without flashing in twrp. Im on ocv and rooted with 0x0 knox. You said to set permission, how do i do yhis. Ty
Sent from my SM-G925F using XDA Free mobile app
Click to expand...
Click to collapse
Which file explorer do you use ? I use AntTek . download this if you don't have an explorer with root capabilities.
Extract the services.jar to the root of your internal memory from the zip file attached .
Then navigate to Device /system/ and click the overflow menu. Go to remount partition and the select R/W.
Then go back to the services.jar that you extracted earlier, select it the hit copy . and copy to /system/framework/ .
Once that has completed. Navigate to /system/framework/services.jar . hold your finger on there for two seconds and release and a menu should come up , go to the bottom and select change permissions and select tick boxes as follows:
User / read + write
Group / read
Other / read
Click OK
Reboot
it's from deodexed Rom..?
Alex-V said:
it's from deodexed Rom..?
Click to expand...
Click to collapse
It is...
tiboric said:
[ I'm posting this here in case it gets lost in the original thread ]
Attached is a flashable zip with a patched services.jar that fixes the color fade bug, one of the memory leaks introduced in lollipop
This is not my work, I just asked for a favor from @mikeyinid and packed it into a flashable zip, so you need to go Thank him if you use this.
We are very grateful Mikey.
P.S this is the services from VN ROM but should be compatible with most other deodexed ROMs with the same base (hopefully)
you can also manually do it by pasting the services.jar from the zip into system/framework and setting permissions then rebooting.
You should always make a nandroid backup before flashing any system files
Click to expand...
Click to collapse
mikeyinid said:
It is...
Click to expand...
Click to collapse
so I say big thanks for share with us ?