[WINDOWS/LINUX][PORT][MIUI]Auto MIUI Porter v4 - Android Software Development

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?

Related

PUMa (Patch Utility Manager)

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.

[ROM Release] Kiss4Droid (Based on B572G)

This is the 1st ROM I developed/cooked
It is based on official B572G Release so it's Gingerbread 2.3.5
The ROM follows a K.I.S.S philosophy trying to have almost no extra apps installed so you can build your system around your needs
Let's see what changed:
Changes:
1) Changed Default Launcher to Zeam
2) Removed a lot of apps from Huawei and left only the essential ones(install everything else you need from PlayStore or by installing apk files from other roms)
3) Changed Default CPU Governor to SmartAssV2
4) updated hosts file(no more ads) and gps.conf (for europe usage)
5) Added Volume Rocker Wake
6) Unlocked FPS & Root Permissions(of course )
7) Removed some audio files from the media folder to save space
8) Added init.d & build.prop tweaks(some of them may not work,but they don't have any side effect in the system so I left them there on purpose)
9) Changed Camera & Settings Icon to look like ICS (thanks to Pikachukaki for his great guide in replacing .png files in apk files)
10) Patched libsqlite.so
11) HDR function enabled on camera(well this actually is included in number 8 cuz it's a build.prop tweak )
12) Fast Boot Option is removed (again a build.prop tweak)
I have also made some little tricks here and there in the cust.img so make sure before flashing the ROM that you have a working backup and/or a backup of the cust.img
I edited the cust.img and removed all extra apps and module files there,and also changed the default language to english because without this the ROM would boot the 1st time in chinese
If you don't want to flash my cust.img that is in the .zip file simpy delete it from there
If you flashed and you want your old cust.img back simply boot into pink screen and replace it with you cust.img backup
There is no side effect from the cust.img change except that you will lose swype,huawei ime(I prefer the basic android keyboard anyways) and also the Totem Weather Widget
Installation:
Do the following in any order
-------------------------------------------------
Wipe data/factory reset
Advanced->Wipe Dalvik Cache
Mounts & Storage-> Format system
--------------------------------------------------
Now flash the .zip file
Reboot
Enjoy!
Everything is working in this ROM (because it's based on official B572) except TV-OUT of course
Anyway.Tell me what you think of my 1st work on android.
Happy Flashing
Download:
http://www.mediafire.com/?roqglp5mbh3621m
Nice ROM. Keep It Up. Post Some Screenshots If You Can.
Thanks.
Screenshoots added!
Note that the screenshoot app and es file explorer that you see in the 2nd image aren't present when you first install the ROM.You have to install them from play store
That's great. thanks for share.
Nice work..you manage to edit the cust.img??nice!!!i was bored to install linux!!
Modding the cust.img wasn't hard actually.
Btw pikachukaki,again thanks a lot for helping with my first updater-script issues!
Moihack said:
Modding the cust.img wasn't hard actually.
Btw pikachukaki,again thanks a lot for helping with my first updater-script issues!
Click to expand...
Click to collapse
NP m8....i havent search it for long...so i didn't try to modified...also for GB it didnt have no point...the rom is broken from release one! anyway..one day remain for ICS...lets see!!
could you please tell me how i can have contact sync on this rom? whenever i click accounts on the contacts apk i get android.process.core force close. I have installed the latest gapps but still no sync. other than that great rom
Is it any better than cm7
Sent from my u8800-51 using xda premium
cm7 is the best rom on u8
:thumbup:
Sent from my u8800pro using CM 7.2 Shendu
Somcom3X said:
Is it any better than cm7
Sent from my u8800-51 using xda premium
Click to expand...
Click to collapse
hmmm. That is a personal opinion. I like cm7 more due to the power widget,screen on/off animation etc
But if someone wants an official huawei gingerbread ROM(official for U8800+, not a port from honor e.g kalo) then this should be a good choice.
kostismv said:
could you please tell me how i can have contact sync on this rom? whenever i click accounts on the contacts apk i get android.process.core force close. I have installed the latest gapps but still no sync. other than that great rom
Click to expand...
Click to collapse
get these: http://www.mediafire.com/?z6da8r2ox4kr7a7
don't flash the zip
unzip the files included and copy/paste them in your /system/app folder
Thanks
Sent from my U8800Pro using xda app-developers app
Moihack said:
hmmm. That is a personal opinion. I like cm7 more due to the power widget,screen on/off animation etc
But if someone wants an official huawei gingerbread ROM(official for U8800+, not a port from honor e.g kalo) then this should be a good choice.
get these: http://www.mediafire.com/?z6da8r2ox4kr7a7
don't flash the zip
unzip the files included and copy/paste them in your /system/app folder
Click to expand...
Click to collapse
This zip file is corupted...
I can't extracted it...
dingila said:
This zip file is corupted...
I can't extracted it...
Click to expand...
Click to collapse
extracts fine with no erros here on win7 x64 bit and 7zip 9.20 x64
maybe the file corrupted on download! try redownloading and extract
Moihack said:
extracts fine with no erros here on win7 x64 bit and 7zip 9.20 x64
maybe the file corrupted on download! try redownloading and extract
Click to expand...
Click to collapse
I tried 5-6 times already ...
Or the minimum is 10 times
dingila said:
I tried 5-6 times already ...
Or the minimum is 10 times
Click to expand...
Click to collapse
do you try to extract from phone or from pc? if yes with which program? try with 7zip just to make sure
p.s. downloaded the file twice and I got no errors really
Can you fix your Release? (CyanogenMod 7.2 (By Moihack)
And there are no such things:
1. GoogleContactsSyncAdapter
2. GoogleCalendarSyncAdapter
3. Gmail
To put it all in, as you should be?
And post it back here!
Please!
And if you can try to put this App inside if you can of course!!! Sound recorder from MIUI...looks like old tape
Thanks in advance!
dingila said:
Can you fix your Release? (CyanogenMod 7.2 (By Moihack)
And there are no such things:
1. GoogleContactsSyncAdapter
2. GoogleCalendarSyncAdapter
3. Gmail
To put it all in, as you should be?
And post it back here!
Please!
And if you can try to put this App inside if you can of course!!! Sound recorder from MIUI...looks like old tape
Thanks in advance!
Click to expand...
Click to collapse
Sorry my friend but no... School keeps me really busy this year and I don't have the patience to wait for the upload to end while changes are only these small things. However I can help you include them in a personal cm7.2 .zip of yours and flash it correctly If want a how to p.m.
dingila said:
This zip file is corupted...
I can't extracted it...
Click to expand...
Click to collapse
Rename the file to sync.zip include the .zip part
Sent from my u8800-51 using xda premium

[Linux][UTILITY][TOOL] APK Multi-Tool

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

[How to] translate to your language TURBO UI GAMER EDITION

This thread has the goal to help users translate the rom TURBO UI GAMER EDITION that only has portuguesebr,en,ch,tw. REASON: i cant do it all by myself. i never ask for donations,just a thanks,but with all roms im helping,users and developing some other roms,i never got a cent from anybody. i dont do it for money,but all contribution are highly appreciated,since i spend a lot of time.​
Full thread here:http://forum.xda-developers.com/showthread.php?t=2201338​
FILES YOU NEED:
- Apktool - Compiles and decompiles apks (type extract, but Winrar not have to use this same program)
- UpdateSingTool - After compiled apks need a signature, that is what this program does.
- Notepad + + - edit the XMLs in a more organized way.
DOWNLOAD HERE ALL FILES NEEDED:Turbo Gamer Edition TRANSLATE
PART 1/if anyone have doubts directly PM me.. :​
First we have to put APKTool disk C :/ or D :/ ....
In the folder where is the apktool.bat copy the following files from your rom: / system / framework / framework-res.apk
/ system / framework / SemcGenericUxpRes.apk
In that same folder where is the apktool and those files you just copied, will you hold shift and press the right mouse button, then click "Open command window here"
In this screen prompt that opens you will write:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
(fra writing prompt and press Tab to complete the filename, not only the framework-res.apk, only used for example.)
With these commands you will install the things you need to be able to decompile the apks.
Now I give the commands you use to decompile the apks and compile:
(Remembering must be installed with the framework, as explained at up to close the prompt have to install again).
apktool d nameofApk.apk - Decompile.
apktool b nameofApk - Compile. (Without the. Apk at the end)
When decompiling will be created a folder with the name of the apk in the same folder you are working in these folder will be all the apk files.
To translate'll get into the res folder, there will be a folder named values ​​within this folder will be a file called string.xml, most of what the user sees in this file, but we will not change it, but will change the language "mother" of the ROM.
Let's create a folder with the code values ​​that we want to translate the language.
Ex: values​​-pt-BR (Portuguese Brazil), values​​-es (Spanish) ...
In this folder you'll want to copy the files to translate.
If you want to translate to Spanish its better create the folder values​​-es and copy the files from the values​​-PT-BR, since the languages ​​are similar. Use Notepad + + to translate.
Click to expand...
Click to collapse
PART 2​
after finish we will use the translate command to compile, if the framework installed and all is right in the translation will compile, will be created two folder inside the folder you compiled apk, dist and build, build folder will be apk without the signature, to sign this apk is only put in the folder and click updatesingtool sign_apk.bat, after a few seconds will be created nameofapk.apk_signed.apk a file, this file is the file that goes to rom.
Now just rename the taking _signed.apk and replace this file in the rom.
files to translate:
In the folder / system / framework
-famework-res.apk (much to translate) - things rom as shut down, restart buttons, statusbar
in the folder / system / app
-applicationsprovider.apk - i do not remember
-bluetooth.apk - order of bluetooft
-calculator.apk - calculator
-calendarprovider.apk - calendar, this is kind of big, have those events and such
-certinstaller.apk - i do not remember
-contacts.apk - your contacts, as i recall is kinda big.
-contactsprovider.apk - i do not remember
-downloadprovider.apk - menu download
-downloadproviderui.apk - i do not remember
-drmprovider.apk - i do not remember
-gallery.apk - gallery.
-launcher2.apk - slinger rom
-mediaprovider.apk - i do not remember
-miuimusic.apk - player's rom
-mms.apk - posts.
-packgeinstalller.apk - package installer
-settings.apk (also great) - menu settings
-settingsprovider.apk - i do not remember
-sidekick.apk - cleaner apps, one that appears when you hold home, is not going to be translated into japanese
-stk.apk - yes tool kit
-systemui.apk - status bar
-telephonyprovider.apk - i do not remember
-thememanager.apk - themes
at times may have to translate string.xml, plurals.xml arrays.xml and depends on the apk.
Click to expand...
Click to collapse
Good luck and thanks in advance.
Seems hard, but only takes 2 or 3 apk for you to know HOW TO DO IT..than is all the same..so its time consuming only.
but no hurries..all help is appreciated and we gonna have a full rom for all users.
just want to ask if i can get some users to translate on their own language.
spanish-romeo charly
french-
german-DSoundso
russian-
czech- Frutak
poland-
others?
Click to expand...
Click to collapse
smokerman said:
[*]- UpdateSingTool - After compiled apks need a signature, that is what this program does.
PART 1 :​
Click to expand...
Click to collapse
I will do it for the german language but can you tell me where to get this programm? google isn't any help. there are some sign tools but nothing named UpdateSignTool.
Oh and when do I have do do this step`?
smokerman said:
DOWNLOAD HERE ALL FILES NEEDED:Turbo Gamer Edition TRANSLATE
Click to expand...
Click to collapse
You mean uploading the files to there? Otherwise the link is missleading.​
DSoundso said:
I will do it for the german language but can you tell me where to get this programm? google isn't any help. there are some sign tools but nothing named UpdateSignTool.
You mean uploading the files to there? Otherwise the link is missleading.
Click to expand...
Click to collapse
link fixed..all files you need are there.
to sign this apk is only put in the folder and click updatesingtool sign_apk.bat, after a few seconds will be created nameofapk.apk_signed.apk a file, this file is the file that goes to rom.
Now just rename the taking _signed.apk and replace this file in the rom
Sorry but I still have a question. I am not sure which part I should translate. I made a screenshot and you tell me if I did it right.
DSoundso said:
Sorry but I still have a question. I am not sure which part I should translate. I made a screenshot and you tell me if I did it right.
Click to expand...
Click to collapse
yes,its right. ..just see how its changed if you have any doubts..new version released with portuguese.:good:
if anyone have doubts directly PM me..
please dont do a translation before posted here and say..i will add it on users language,if not maybe 2 users do same language..not needed..bettersplit apks on the same language..you do this,i do that, if you know what i mean.
updated users and languages their are doing on post 3.
as you read you can see it on 1 post.:good:
thanks to the great neroyoung.
spanish translation
have you already translated in spanish?

[MOD] Flashable ZIP template - ANY DEVICE

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.

Categories

Resources