FORUMS
Remove All Ads from XDA

[WINDOWS/LINUX][PORT][MIUI]Auto MIUI Porter v4

611 posts
Thanks Meter: 510
 
Post Reply Email Thread
Supports ICS & Jellybean



Quote:

Things You Need To Do
Quote:

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


Quote:

How To

Quote:

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

Quote:

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)

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

Quote:

Things This Script Does
Quote:


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:
Lib Files
- system\lib\content-types.properties
- system\lib\liblbesec.so
- system\lib\liblocSDK_2.5OEM.so
- system\lib\libjni_resource_drm.so

Etc Files
- system\etc\yellowpage.db
- system\etc\telocation.idf
- system\etc\spn-conf.xml
- system\etc\telocation.td

Permission Files
- 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

Xbin Files
- system\xbin\su
- system\xbin\invoke-as
Smali's
Code:
Framework Smali's
- 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 

Services Smali's
- com\android\server\input\InputManager*.smali
- com\android\server\wm\InputManager*.smali
- com\android\server\watchdog*.smali

XML's
Code:
Framework-Res XML
- 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'


Quote:

ChangeLog

Code:
V4
- 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)

=-=-=-=-=-=-=-=
V3 - Improved folder creation - Improved cm and miui folder detection - Improved user friendly features - Script optimization V2 - Script Cleanup - More User Friendly V1 - Initial Release


Quote:

Downloads
Quote:


Windows - Click Here
Linux - Click Here


Quote:

Thanks To
Quote:

Lens_flare, iBotPeaches, proxuser, android

The Following 101 Users Say Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
 
 
16th November 2012, 10:07 AM |#3  
chiragkrishna's Avatar
OP Senior Member
Flag bangalore
Thanks Meter: 510
 
More
^^^
let me know how it works,...
The Following 3 Users Say Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
16th November 2012, 12:32 PM |#4  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,692
 
Donate to Me
More
Where do I put the ROMs at? What folder?

Sent from my VS920 4G using Tapatalk 2
The Following User Says Thank You to azoller1 For This Useful Post: [ View ] Gift azoller1 Ad-Free
16th November 2012, 01:29 PM |#5  
chiragkrishna's Avatar
OP Senior Member
Flag bangalore
Thanks Meter: 510
 
More
start the script,... it will guide you,...
The Following User Says Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
16th November 2012, 02:46 PM |#6  
chiragkrishna's Avatar
OP Senior Member
Flag bangalore
Thanks Meter: 510
 
More
UPDATED: its more user friendly now,...
The Following 2 Users Say Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
16th November 2012, 10:49 PM |#7  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,692
 
Donate to Me
More
I don't see the cm folder though...

Sent from my VS920 4G using Tapatalk 2
16th November 2012, 11:29 PM |#8  
chiragkrishna's Avatar
OP Senior Member
Flag bangalore
Thanks Meter: 510
 
More
Buddy all folders are there and they are getting created perfectly...
Please follow the on screen instructions of the script...
The Following User Says Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
18th November 2012, 04:21 PM |#9  
chris5s's Avatar
Senior Member
Flag Scotland
Thanks Meter: 315
 
Donate to Me
More
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?
18th November 2012, 09:59 PM |#10  
chiragkrishna's Avatar
OP Senior Member
Flag bangalore
Thanks Meter: 510
 
More
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..
The Following 2 Users Say Thank You to chiragkrishna For This Useful Post: [ View ] Gift chiragkrishna Ad-Free
19th November 2012, 01:19 AM |#11  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,692
 
Donate to Me
More
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
Post Reply Subscribe to Thread

Tags
aosp, auto, miui, port, porter

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes