yashsingh1/xdaforums huggingface dataset:
[Android Software Development] sandy7:
V3 is really kickass ...ill try it today for JB miui..thanks.

sent straight from hell
[Android Software Development] ak0r:
I am facing wierd issues. When v3 tries to make zip file it removes app folder inside port. so my ported ROM gets no app. even folders inside media also getting removed.
[Android Software Development] ic3141:
Hi Mate,

After running the auto-porter at the end says the signed rom miui-signed.zip is ready, or something like that, but all i can see in the folder is miui-unsigned. Am i doing something wrong?

Thanks
[Android Software Development] Nocturnal_50:
forgetting to sign the rom perhaps
[Android Software Development] holden56:
when using the updater is it normal for it to say could not find sources building resources?
[Android Software Development] LEGEND94:
Will this script able to work for LG P999 aka G2x?
[Android Software Development] Nocturnal_50:
Any device as long as you have a cm ROM for the target device
[Android Software Development] chiragkrishna:
i couldnt understand what you are trying to say,...

strange you are the only 1 complaining about it,...

wait for sometime it might be signing the zip file,...

yes
[Android Software Development] chris5s:
^ I think djpatch was asking how to diff that file - to keep the left side or the right side, or to merge from left to right, or right to left.

Peace
[Android Software Development] chiragkrishna:
@chris5s

Thanks got it...

Those are usb Smali's...

Don't diff them...

Just match the ID's...

For that u need to follow lens flare's guide...

And once again the script explains it to you... you just failed to read it...
[Android Software Development] chiragkrishna:
update

Linux version is 80% complete... it does the same thing as windows version... it can take long as some things are not working correctly...

Btw script will be using meld for diff'ing n kwrite for editing... hope it's ok with u guys...

Windows version...

I don't think there are any changes required...
[Android Software Development] jbbandos:
I'll try to find some time to play with the Linux version this weekend, thanks!
[Android Software Development] chris5s:
Time to dust off my Ubuntu partition then ... thannks for continued development

Peace
[Android Software Development] chiragkrishna:
never said its coming this weekend :p

Cheers :good:

@ALL

NOTE: You need to have the "MIUI-Auto-Porter-V*" folder in root of your partiotion.

for example "C:\MIUI-Auto-Porter-WinV3"

The main reason few people are experiencing problem is because they are placing it inside a folder

example "C:\XYZ\MIUI-Auto-Porter-WinV3"<--- it wont work this way

** dont know if i can fix it, some issue in setting the paths i guess, but who cares it works right ;)

(linux version wont have this problem)
[Android Software Development] chiragkrishna:
need testers for linux version,...

if anybody is interested pm me,...
[Android Software Development] chiragkrishna:
updated

- linux version added

- (linux/windows) now u can place your working folder anywhere,... (You should not choose a

root path that includes spaces in directory names)

- see the change log
[Android Software Development] a_swed:
who can help me?

My port dont boot with any folders in /system/media dir with this errors: http://pastebin.com/8KbJBRhv

and when i try to boot with ported labandroid_runtime.so i have bootloop: http://pastebin.com/3pqjiuJ1

EDIT: i have icudt46l.dat file

when i try to boot only with one file in media dir - bootanimation.zip, it's booting normal.
[Android Software Development] chiragkrishna:
Use the new version...

You should not have spaces in folder names in which u keep ur working directory...
[Android Software Development] polomalkin:
so I should have CM10 ROM for my device that would be "transform" into MIUI by Script?

Is it change something in bootloader? because of ASUS JB bootloader I can brick my Pad by using some ICS files (bootloader, kernel, etc).
[Android Software Development] a_swed:
i used latest v4 version. Spaces?
[Android Software Development] chiragkrishna:
C:\my port\miui_auto_porter 《-- won't work

C:\my_port\miui_auto_porter 《-- will work(there should not be any spaces)
[Android Software Development] chiragkrishna:
See the OP.... I've given detailed explanation of what the script does...
[Android Software Development] a_swed:
maybe you dont read my question? MIUI auto porter works very well, i have a bootloop, when i have some directories in rom.zip/system/media/ (like /audio /theme /wallpapers /lockscreen). when i try to boot without this folders it's booting normal

thanks for your answers
[Android Software Development] djpatch:
someone could post the command file xcopy please?

edit

solved, thank you
[Android Software Development] chiragkrishna:
Oh sorry... may be I miss read...

Check ur cm/miui roms md5...

Compare booting logcat n non booting logcat...

:confused:
[Android Software Development] a_swed:
maybe i dont understand you, but what i must do with md5 cheksums?

here with non booting rom (bootloop): http://pastebin.com/8KbJBRhv

worked version maybe later, i cant i find worked version on my PC
[Android Software Development] chiragkrishna:
^^^

Some times it's as simple as a corrupted download which might cause the bootloop...

As far as the logcat... it's not able to find 2 files... search for "couldn't" and " could not"

Can't open /efs/imei/bt.txt

System/usr/icu/icudy46l.dat

Might be that's the reason...
[Android Software Development] mohamobo:
thx for linux :good:
[Android Software Development] a_swed:
with /efs/imei/bt.txt - it's because i dont have IMEI (0000...), but all roms works fine.

/usr/icu/icudy46l.dat - this file i have in this folder and general question why without any folders in system/media folders its boot?
[Android Software Development] chiragkrishna:
update : get ready for a major update... next version will have (linux/windows)

1) automated extraction of cm/miui zips

2) option to have 3 way reboot option (only jb/ics)

3) option to change the image in settings-about page (use custom branding images)

4) option to add stuff to your Rom like apps etc.

5) automatic display md5 of the final zip file after it is created
[Android Software Development] knight84:
installing necassary framework files

Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound

Exception: C:\my_port\port\system\framework\framework-res.apk (The system cannot

find the path specified)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:481)

at brut.androlib.Androlib.installFramework(Androlib.java:447)

at brut.apktool.Main.cmdInstallFramework(Main.java:199)

at brut.apktool.Main.main(Main.java:72)

Caused by: java.io.FileNotFoundException: C:\my_port\port\system\framework\frame

work-res.apk (The system cannot find the path specified)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:127)

at java.util.zip.ZipFile.<init>(ZipFile.java:143)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:449)

... 3 more

Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound

Exception: C:\my_port\port\system\framework\framework-miui-res.apk (The system c

annot find the path specified)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:481)

at brut.androlib.Androlib.installFramework(Androlib.java:447)

at brut.apktool.Main.cmdInstallFramework(Main.java:199)

at brut.apktool.Main.main(Main.java:72)

Caused by: java.io.FileNotFoundException: C:\my_port\port\system\framework\frame

work-miui-res.apk (The system cannot find the path specified)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:127)

at java.util.zip.ZipFile.<init>(ZipFile.java:143)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:449)

... 3 more

decompile jars that need smali editing

Input file (C:\my_port\port\system\framework\services.jar) was not found or was

not readable.

Input file (C:\my_port\port\system\framework\framework.jar) was not found or was

not readable.

Input file (C:\my_port\port\system\framework\android.policy.jar) was not found o

r was not readable.

I: Baksmaling...

===================

may i know what's wrong with this?

I had install JDK

my MIUI folder Framework-res.temp is empty.:confused:
[Android Software Development] chiragkrishna:
Check if u have those files in the first place...

port/system/framework/

Looks like

Framework-res.apk

Framework-miui-res.apk

Services.jar

Framework.jar

Android.policy.jar

Are missing in your port folder... or the port folder Is empty ..

Did u extract ur mini zip n the cm zip in the right directories...

Windows or linux?

Did u modify the script??

--------------------------

note linux version is very unstable... sorry for the bugs... next version will be bug free
[Android Software Development] Athhar:
Bro...i was trying to port miuiandroid rom on my nexus to my samsung tab2 using your tool.but i am having bootloops.please help me.
[Android Software Development] chiragkrishna:
^^^

you need to debug and use logcat to know what went wrong,...

from here your on your own,... follow lens_flare guide,... in OP,...

all the best debugging,...

Once I release the next big version...

I'll work on a way to help boot your device and make it stable...
[Android Software Development] ak0r:
Waiting for download link. Thanks bro :)
[Android Software Development] Hamodi:
after the auto porting done !!

the rom shud boot ?!!!
[Android Software Development] BigDogPooh:
maybe maybe not.....with the newer versions you need to modify your boot.IMG I would suggest running adb so you can see your log cat. This way if it doesn't boot you know where to look...
[Android Software Development] dntipwn:
MiuiHome Has stopped?

Everything seems to boot fine and the only problem is the MiuiHome has stopped and wont go away it repeats popping up..... Any help would be appreciated
[Android Software Development] Hamodi:
im not good on this part !

i dont know how to read the log debuging :(

but i think i have to edit the framework too

it will not boot with out this
[Android Software Development] Hamodi:
i have question

when doing manually editing or diff'ing. .. i need to merg all the missing files ? with the line numbers too ?!

i'v noticed that all the line numbers are diffrent from CM

im merging google nexus s Miui JB with Xperia S CM 10 !!
[Android Software Development] chiragkrishna:
people having problems with rom not booting and debugging issues, merging doubts

Follow this guide... read the first 4 post... it can't be explained more clearly...

http://xdaforums.com/showthread.php?t=1777999
[Android Software Development] hanoian:
Sorry for noob question. If CM and MIUI have different boot.img, which one is chosen?
[Android Software Development] chiragkrishna:
Boot.img is always from cm...
[Android Software Development] BigDogPooh:
Line numbers don't affect anything...typically the methods are what need to be diffed...you also always add from cm to miui...and you don't have to merge all the missing files...usually just methods that are missing...

Download the SDK from Google this will allow you to get the log cat with some of the built in tools in the SDK.
[Android Software Development] hoseth0711:
I got a question or two... When i have to merge nativecpuboost am i then right in choosing the powermanagerservice from the cm folder? And where should i add the two lines im asked too according to the last part of the guide?

Sendt fra min GT-I9100 med Tapatalk2
[Android Software Development] BigDogPooh:
Use winmerge to compare the miui powermanagerservice smali to the cm powermanagerservice smali..

you will see nativecpuboost on the cm side and just copy into miui.
[Android Software Development] wess786:
I extracted both CM and MIUI in their respected folders but the cmd still says I got no cm zip in the folder.
[Android Software Development] Martovitz:
Great work, vary informative. Please keep up the great work. :D

Remember to give THANKS when THANKS are due.
[Android Software Development] wess786:
It's working now.
[Android Software Development] jaydvn:
Thanks for this great tool... Hope that it will work with my device.
[Android Software Development] acervenky:
Flashed The .zip

But Stuck In Infinite Boot :(

Waiting for v5.

Anyways,Good Efforts ;)

Regards,

acervenky,

XPT
[Android Software Development] XeoNoX:
does this work with the new MIUI v4 3.x releases (eg: v4 3.1.11) release??
[Android Software Development] xxxMADxxx:
Yes
[Android Software Development] ak0r:
This is due to shelld issue.

Add missing shelld binary and shelld libs from MIUI to you port.

Then create init.d script like 25shelld and add following line in it.

/system/xbin/shelld &

---------- Post added at 01:08 PM ---------- Previous post was at 01:07 PM ----------

Chirag may be you should think to update your tool with shelld patch. Its necessary in newer versions of MIUI.
[Android Software Development] spc_hicks09:
Great concept and would be good for people just getting into development. I think the instructions need to be a little more simplified though. For instance, how do you even start the porting script in terminal? How do you actually install the tar files for 7zip and Meld? Some people won't know this stuff and I just think it will get a lot more popular if it's explained more. Not to mention, more people would get into development.
[Android Software Development] systop:
nice work, very usefull, thank you very much!
[Android Software Development] spc_hicks09:
Nevermind
[Android Software Development] lagloose:
Linux script is full of errors...

First of all, the 'apktool' you have provided with the package does not know the option '--no-debug-info'. Second, obviously it doesn't handle the subdirectories 'apks' and 'jars' in your script because 'merging framework files' fails...

Please don't get me wrong, but i suggest that next time, you do at least a 'basic' test of things you release...

Greetz
[Android Software Development] Racing19969:
yes the linux script is full of bugs.. directories are not created... apktool options do not work, sub-directories are messed up...
[Android Software Development] Racing19969:
Tried doing what you stated above but still crashes repeatedly...

copied shelld to xbin... added libshell.so, libshel_jni.so and libshellservice.so to libs folder and added init.d script and rebooted... tried using Miuihome launcher and repeated crashes.. any other ideas?? would really like to use it on my port. I am able to use the older launcher with no issues
[Android Software Development] p.lu.k:
Here is another way to start the shelld service:

http://xdaforums.com/showthread.php?p=35044206

When I was porting, the init.d way didn't work for me but the one in that post worked great.

Hope it helps.

Sent from my HTC Inspire 4G
[Android Software Development] Rosemberg91:
noob question... this amazing porter can work for port miui rom on tablet???
[Android Software Development] iBotPeaches:
Looking at this script. It sure looks like a perfect copy of my hardcoded to hell MIUI build port scripts: https://github.com/iBotPeaches/Android-MIUI-Porting , and based on the fact that my name is in the credits. I assume it is.

This script wasn't made for all devices to be ported. It was uploaded to Github, since my previous HDD died randomly so I now keep my pointless build scripts on GIthub. I'd recommend if you take my project to understand how it works a bit before you start re-releasing things :) as it works fine, but your implementing it wrong in your usage.
[Android Software Development] playingeetar247:
Alright, I've followed the instructions in the OP and the guide from lens flare but I'm getting stuck with a boot loop on miui boot animation. Any thoughts as to what I might be doing wrong? I'm on Windows 8 and am porting for the tmo galaxy s2.
[Android Software Development] BigDogPooh:
Did you run ddms to see what the errors are...did you modify your boot image(required) for newer builds...
[Android Software Development] chiragkrishna:
Sorry guys after a long time... been busy like hell...

Yes linux script doesnt work... its crap btw... which I had corrected in my yet to be released script... only the windows script works from op...

@ibotpeaches

Yea man its a mix of ur script n lens guide...

@all others

As ive told u guys several times... this only automates few known things... rest u need to debug n fix it urself... logcat to the rescue...
[Android Software Development] Holyrolla:
I used the tool on two computers and on both (Windows on both), it appears that "framework-res.apk" from CM is not decompiled, leaving that directory empty. When it opens up WinMerge to diff (either public.xml or strings.xml) it comes back that the CM version cannot be found. I'm running the command prompt as admin, should I also do something else?
[Android Software Development] BigDogPooh:
Is it cm 10.1....if so then the apktool may need to be updated..
[Android Software Development] Holyrolla:
I am using CM10.1. But don't I have to be careful of the version of apktool I use as it relates to MIUI also? I thought there was a specific version that worked with it.
[Android Software Development] iBotPeaches:
You are confused. The only thing MIUI requires is a special aapt version. Apktool v1.5.2 will work fine assuming you provide the MIUI aapt.
[Android Software Development] BigDogPooh:
Actually CM 10.1 is for 4.2....Miui is only out for 4.1 right now so porting with 10.1 wont work anyway..
[Android Software Development] [SP]JESTER:
Dude you are a freaking genius! Much love and respect!

I am quite confused on one part tho. When the USB and Public.xml opens up. Do i moved the requested id's from the CM rom (right) to the MIUI (left)?

If so that would cause an error because the ids are there. Not sure exactly what to do here any help is appreciated

Some kind of merge, maybe im just to tired to understand, its only 4 in the morning lol
[Android Software Development] Holyrolla:
You are correct. Thanks. And thanks to the other person who noted that it's aapt, not Apktool, that needs to match for MIUI.
[Android Software Development] playingeetar247:
I'm still having problems with a boot loop :mad:, who wants to look at my logcat and help me out a little? :D
[Android Software Development] omiez:
Does This tool work for Razr i?

Or better. Can I use this tool with an original 4.1.2 Motorola Rom and make a custom firmware?

The Razr i has Intel x86 processor,remember this please.
[Android Software Development] fedevd:
Someone give a hand here?

https://www.dropbox.com/s/8un0rlmmdsrhv8u/log.txt

Enviado desde mi GT-I9070 usando Tapatalk 2
[Android Software Development] coolbud012:
Can we port an MTK based rom?
[Android Software Development] omiez:
Can somebody answer my question on post #120

From My Razr i XT890 using Tapatalk 2!
[Android Software Development] Arjav23:
cool.....

do you have a tool for CM7 too??
[Android Software Development] MezManiac:
for some reason, when going through the script, i get errors saying 'java' is not a recognized as an internal or external command.

i did install java development pack with jre. im just a bit confused why this is happening. help??
[Android Software Development] brakke97:
Is it compatible with MIUI v5?
[Android Software Development] t1gartist:
it appears that first little viberation that you get when turning device on failed and it also looks like maybe you need to look at the init.rc of the kernels and the init.img and check them out maybe even take the init.img of the port and swap it out for the base and then check init.rc for baseline and change accordingly
[Android Software Development] hepi_hape:
wow, i finaly find this auto script.

hope it help me thx anyway

---------- Post added at 11:33 AM ---------- Previous post was at 10:33 AM ----------

Hey bro... 1 question

i'm usualy use Beyond Compare software for diff

what should i change in script ? so it not call winmerge,, thx ;D
[Android Software Development] keval_104:
help

ported rom with the help of this ported in the rom adb is broken and rom not booting....any suggestions.... [MENTION=2750809]chiragkrishna[/MENTION]
[Android Software Development] t1gartist:
Did you change all ids and did you modify the bootpath for miui in kernel?

Also what phone are u porting too
[Android Software Development] penguin449:
Got Bootloop /:
[Android Software Development] acocalypso:
Hey guys im trying to port MIUI to my tablet and run into following problem:

it will boot up to miui logo and then nothing happens:

logcat says following:

E/AndroidRuntime( 3482): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread

E/AndroidRuntime( 3482): java.lang.NoSuchMethodError: <init>

E/AndroidRuntime( 3482):	at com.android.server.PowerManagerService.<init>(PowerManagerService.java:398)

E/AndroidRuntime( 3482):	at com.android.server.ServerThread.run(SystemServer.java:155)

E/AndroidRuntime( 3482): Error reporting crash

E/AndroidRuntime( 3482): java.lang.NullPointerException

E/AndroidRuntime( 3482):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:96)

E/AndroidRuntime( 3482):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)

E/AndroidRuntime( 3482):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)

so i used baksmali to services.jar and took a look at powermanagement inside there is a method called <init> but no smali file called PowerManagerService$<init>.smali

i also checked services jar from base and port rom.

can somehelp me please?
[Android Software Development] acocalypso:
ok fixed that problem. but has someone an idea for this problem?

06-03 18:35:03.340: E/PhonePolicy(6535): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
06-03 18:35:08.380: E/Trace(6533): error opening trace file: No such file or directory (2)
06-03 18:35:08.380: E/AndroidRuntime(6666): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
06-03 18:35:08.380: E/AndroidRuntime(6666): android.content.res.Resources$NotFoundException: String resource ID #0x60c022c
06-03 18:35:08.380: E/AndroidRuntime(6666):	at android.content.res.Resources.getText(Resources.java:248)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at android.content.res.MiuiResources.getText(MiuiResources.java:53)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at android.content.res.Resources.getString(Resources.java:332)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at android.content.Context.getString(Context.java:292)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at com.android.internal.policy.impl.MiuiPhoneWindowManager$MiuiSettingsObserver.onChange(MiuiPhoneWindowManager.java:827)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at com.android.internal.policy.impl.MiuiPhoneWindowManager$MiuiSettingsObserver.observe(MiuiPhoneWindowManager.java:815)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at com.android.internal.policy.impl.MiuiPhoneWindowManager.init(MiuiPhoneWindowManager.java:105)
06-03 18:35:08.380: E/AndroidRuntime(6666):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:859)
06-03 18:35:08.740: E/installd(2389): eof
06-03 18:35:08.740: E/installd(2389): failed to read size
06-03 18:35:09.220: E/BandwidthController(6707): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
06-03 18:35:09.220: E/BandwidthController(6707): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
06-03 18:35:09.390: E/AudioHardwareALSA(6706): ALSALib device/ainol/elf2/alsa-lib/src/control/cards.c:230:(snd_card_get_aml_card) cardname =AML-WM8960, card = 0
06-03 18:35:09.420: E/AudioFlinger(6706): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.usb (No such file or directory)
06-03 18:35:09.420: E/ALSAModule(6706): s_standby handle h 0x42ba1610
[Android Software Development] lozohcum:
This program is useless, it doesn't decompile jar files, it doesn't copy all needed files so 80% of work is skipped by errors