yashsingh1/xdaforums huggingface dataset:
[Android Software Development] KemikalElite:
I didn't do anything different from the OP guide. I used an unofficial KANG CM9 from my device and combined it with the MIUIAndroid.com Nexus S build and removed the wallet.apk and Nfc.apk apps as they are not supported by my target device.
[Android Software Development] Raadius:
Ran into an issue, went to flash the zip and got this, E: cant find update script? Help!

Help! HTC Evo 4G porting MIUIv4 2.3.16

EDIT: Used a different base, and just dragged and dropped files instead of the traditional copy and paste than zipping it. Rom flashed fine, BUT im getting boot loops at the HTC Evo 4G splash screen, it just kept boot looping repeatedly, something I did wrong?! Help please.
[Android Software Development] xinos:
I'm having the exact same problem could you try replacing the libandroid_runtime and look at how far that gets you, cause when i replace libandroid_runtime it doesn't even get at the boot screen it just stays stuck at the splash screen.

EDIT: I'm using a Desire HD btw for everyone that skimmed my last post......
[Android Software Development] pele78:
meh...

tryin to port it to zenithink c71 tablet :mad::mad::mad::mad:
[Android Software Development] Raadius:
Replaced the libandroid-runtime.so from the CM7, didn't even get pass the boot HTC Evo 4G screen either, didn't even bootloop, just stayed there for 10 mins+ :(

Help anyone?! I hit OP up on twitter 2x, no response :(

EDIT: Tried another base, flashed fine. Stuck on HTC Evo 4G screen for 5mins, no boot so far...
[Android Software Development] ---UFO---:
I´m trying to port MIUI v4.1 JB from Nexus S to Motorola Milestone 2 and i have problem with software keyboard. It didnt show up.

I have tried to modify android.policy as in ICS MIUI, but there isnt any mLidOpen in JB MIUI in com/android/internal/policy/impl/PhoneWindowManager.smali

Thanks
[Android Software Development] riteshbendre:
Now I have a small problem.. framework.jar file is just 1kb in size... and i do get something called framework.odex ...so m stuck again..

please help :eek:
[Android Software Development] Lens_flare:
but maybe it have 0x0, 0x1 and -0x1? try to find them.

rom you using should be deodexed
[Android Software Development] riteshbendre:
I am using Nexus S MIUI ROM ... which is odex.. and porting it to Desire HD.. ..

So is there any way / tutorial to deoxed the odex files??

I found a couple of links but they talk about Deodexing STOCK ROMs.. .. ADB Pull and all ...

... :eek:
[Android Software Development] Lens_flare:
miuiandroid rom is always deodexed, try it.
[Android Software Development] riteshbendre:
Thx, I downloaded a de-odexed ROM .. for porting... now one last question

When I patch assetmanager.smali in framework.jar/android/content/res

Do i need to just copy paste the entire content from base framework.jar's assetmanager.smali ??

or

only add the missing lines, while keeping the original lines as it is ???
[Android Software Development] riteshbendre:
I tried patching it ..but somehow couldnt suceed ... attaching the files.. i would be greatful if you could patch and re-attach it..

I will take a look at it then.. as to what changes you did :)

thanks in advance :D

https://www.dropbox.com/sh/cm32b8y7cwoba4j/e1BirYWmRD
[Android Software Development] DJBhardwaj:
here: https://dl.dropbox.com/s/briwdvh8e84lkv5/AssetManager - Port(ritesh).smali?dl=1

Didn't need to patch much, except 1-2 lines. I guess you can use it without patching too, won't create any problem.
[Android Software Development] kiruiy:
wow..i also want port dianxin OS ICS to my device but i failed,could you hlep me? sorry for my poor English

---------- Post added at 03:41 PM ---------- Previous post was at 03:37 PM ----------

in this way then i'm failed, could you help me ?
[Android Software Development] Lens_flare:
don't even try with that guide.. with mine too :p
[Android Software Development] GazaIan:
Tried this, got bootloop (though the animation doesn't loop), logcat says this;

W/Zygote ( 105): Class not found for preloading: android.media.AudioManager$2
E/JNIHelp ( 105): Native registration unable to find class 'android/media/videoeditor/VideoEditorProfile', aborting
F/libc ( 105): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 105 (zygote)

What do I do? :(
[Android Software Development] Ozadroid:
Put audiomanager$2.smali from cm9 to miui framwork
[Android Software Development] Lens_flare:
it only will add problems.

that's what I think you should add.
[Android Software Development] Ozadroid:
i solved that error by adding AudioManager$2.smali yesterday :)
[Android Software Development] GazaIan:
Is that in framework.jar ? I know I just looked at it and already forgot where it is :(
[Android Software Development] Ozadroid:
yes in framework.jar

here...

android/media/AudioManager$2.smali
[Android Software Development] GazaIan:
My framework jar doesn't appear to have an AudioManager$2 file at all, it's totally gone. Is it device specific? I'm using a Jellybean ROM btw, trying to port MIUI 4.1
[Android Software Development] Ozadroid:
it isnt dere in CM10 ?? weird :-s
[Android Software Development] GazaIan:
I can check a CM10 built but I've been using a pure Jellybean AOSP build and the maguro MIUI build, neither have the file. Might just backport and throw a CM9 one in there (if it exists) and see what happens. Strange that Android would complain for it, and neither had it to begin with.
[Android Software Development] Shrewdy:
Which MIUI ROM to use ??

hi,

I read your post and its quite informative. However i did not find an answer to one question...

I have a Defy and currently we have CM9 (ICS) /CM10 (JB) builds for it. Now i understand that these builds can be used as the BASE ROM.

But what MIUI rom should be used as PORT ROM ?? (last stable MIUI build for Defy was 2.4.13).

I am thinking of porting MIUI over CM10!! But i am confused as to which MIUI version should i use ??? :confused:

Thanks
[Android Software Development] DJBhardwaj:
Nexus s is the best traget
[Android Software Development] Lens_flare:
try razr

nexus S, definitely.
[Android Software Development] Shrewdy:
R u sure i should be using nexus s....its not from the same manufacturer...

And btw does nexus s and defy have similar hardware????
[Android Software Development] Lens_flare:
it's not a deal with hardware, the main deal is that nexus S is AOSP, all other roms are STOCK (so as you understood, highly customised). See mine signature for more details :p
[Android Software Development] Shrewdy:
Whats AOSP

Sorry for sounding like a noob, but whats AOSP anyway ??

Don't Answer this i got the answer !! thanks anyways...will let you know how it went with porting !!

Thanks

---------- Post added at 11:23 AM ---------- Previous post was at 11:07 AM ----------

Another important question !!

Now i have a Defy with Red Lens running on Froyo Kernel...

If i use RAZR's MIUI for porting...will that create a problem...coz actually RAZR must be having a GB kernel ?? :eek:

Thanks
[Android Software Development] Lens_flare:
if both running ics, no matter, as you anyway will use your binaries and kernel.
[Android Software Development] redhatx:
@Lens_flare

how about galaxy wonder..which miui rom should be used??

sorry bad english..
[Android Software Development] Shrewdy:
did not find updater-script

hi Lens,

was reading through your guide Stage 1. Initial port, but i did not find the updater-script anywhere...i mean there is nothing in the build.prop file....is it somewhere else ???

From here on i will question u on your post itself....

Thanks
[Android Software Development] redhatx:
"updater-script" located in the "\META-INF\com\google\android\" folder
[Android Software Development] Lens_flare:
huawei devices are mostly opensource ones, you could try those..
[Android Software Development] redhatx:
stuck at miui logo :(

Logcat:

https://www.dropbox.com/s/kcpo0fgc51rl2lg/logcat.txt
[Android Software Development] DJBhardwaj:
This your error. Patch assetmanager.smali in framework.jar. smali is located at android/content/res/

E/dalvikvm( 138): ERROR: couldn't find native method

E/dalvikvm( 138): Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

E/JNIHelp ( 138): RegisterNatives failed for 'android/content/res/AssetManager', aborting
[Android Software Development] redhatx:
can you tell me how to patch assetmanager.smali?? sorry.. im noob.. :(
[Android Software Development] DJBhardwaj:
Refer to the second post to know about smali diff'ing/ patching.

Use the software winmerge for windows
[Android Software Development] Ozadroid:
bro dont mind but you just entered the android world so u shud not get into porting or development ryt now! take ur time learn the basics n then when u think u hv enough knowledge then u start. becoz if u start now u r going to make silly mistakes which we also cannot solve like u dont know how to patch a smali, so it may b the case that u patch it the wrong way. and ur ROM becomes a nightmare to u!

this is just my opinion, if u want to continue..

patching a smali means putting the missing 'methods', 'fields' and 'natives' from base to miui. and i am predicting that u r a windows user so download WINMERGE tool to find the difference in the 2 smalis.

PS: Read the whole first 4 posts before continuing.
[Android Software Development] Lens_flare:
heeyy, we are in proxuser's guide thread, it doesn't contain 4 stages, mine does :D

see signature.
[Android Software Development] Ozadroid:
HAHAHA LOL yaah xD
[Android Software Development] redhatx:
ok done. but i got this error.

https://www.dropbox.com/s/kcpo0fgc51rl2lg/logcat.txt
[Android Software Development] Lens_flare:
hope it's just your fault on recompiling part, as errors purely WTF.
[Android Software Development] proxuser:
Long time i dont work on port something. But i've seen so many porter had added me to their credits line, so thank you all. After 2 month i can contuine my job ;)
[Android Software Development] y2yu:
i lost rom for my mtk6573 china android but i have backup off system folder

can i use this guide to port rom for my phone?
[Android Software Development] Lens_flare:
flash backup via CWM, it's not place you are looking for.
[Android Software Development] yusufmerchant:
Hi can someone help me. i am also stuck in bootlogo.

If you need details let me know.
[Android Software Development] Lens_flare:
/dalvikvm( 3581): Unable to stat classpath element '/system/framework/filterfw.jar'
D/dalvikvm( 3581): Unable to stat classpath element '/system/framework/mediatek-framework.jar'

2 variants: or you don't have those files in physical level (so on system/framework) or you don't have those stateed in ramdisk' init.rc

Check those variants.
[Android Software Development] yusufmerchant:
Lens I don't have both file nor have I made any reference to it. So what is the prob
[Android Software Development] Ozadroid:
u have these files mentioned in BOOTCLASSPATH in ur init.rc file in boot.img

either remove that from init.rc or put the jar files in /system/framework
[Android Software Development] yusufmerchant:
The file it was asking was in base rom, so i updated it but now i am getting this error.
[Android Software Development] Lens_flare:
F/SystemServer( 9228): java.lang.NullPointerException
F/SystemServer( 9228):	at android.app.PendingIntent.getBroadcast(PendingIntent.java:293)
F/SystemServer( 9228):	at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:561)

have you changed InputMethodManagerService*.smali? If so, don't do that anymore.
[Android Software Development] Ozadroid:
i think u r doing it all wrong!

did u take the MIUI BASE of JB ?? and CM BASE of ICS?? coz ur log if full of this!!

W/PackageParser( 9228): /system/app/AntiSpam.apk (at Binary XML file line #0): Requires newer sdk version #16 (current version is #15)

W/PackageParser( 9228): /system/app/ApplicationsProvider.apk (at Binary XML file line #0): Requires newer sdk version #16 (current version is #15)

W/PackageParser( 9228): /system/app/Backup.apk (at Binary XML file line #0): Requires newer sdk version #16 (current version is #15)

the PackageParser needs sdk v16 but u have 15. sdk=15=ics and 16=JB

so either u r doing the wrong way i told above or if both the base are of JB den change dis line in BUILD.PROP

ro.build.version.sdk=15 and make it 16 not 15.
[Android Software Development] <JohnCarter>:
help me out

i'm in a bit of trouble

things i used

miui v4 for htc buzz

cm 9.1 for htc explorer

i got into the boot animation but stuck there . logcat says media.camera died and rest all is ok !

wow wow !

sry got it workin thanks 4 the guide any way
[Android Software Development] ifyouwant:
Sorry, I'm using kindle fire, Which device do i need to choose? Hjxhjx, please help me :(
[Android Software Development] Lens_flare:
the same nexus S for 2.8.10 version (last ics), and 2.9.14 (latest jellybean)
[Android Software Development] ifyouwant:
Thanks
[Android Software Development] eriknors:
I've got a question about my device. There has been a miui4 port made for my device seen here:

http://xdaforums.com/showthread.php?t=1830675

Only problem is anyone with cdma cannot use it. I looked over the op and didn't see any mention to cdma/gsm issues or what to do to get cdma to work. Is there something that can be done for this issue? (If I missed the section about how to fix I apologize)

Device:vivow

Currently running: ukb 2.1 X

S-off/&rooted
[Android Software Development] Lens_flare:
eriknors

my guide extends that one, so that your action would be treated as double post :P
[Android Software Development] v1r0x:
never mind...
[Android Software Development] Ozadroid:
replace all BlutoothA2DP smalis in /android/server
[Android Software Development] SKAm69:
Sorry for maybe a noob question but can MIUI 4.1 be ported to MIUI 4?

We have MIUI v2.6.2.9 for myTouch 4G Slide (Doubleshot), can v.2.9.14 be ported to v.2.6.2.9 with this guide?
[Android Software Development] Lens_flare:
in short - nope.
[Android Software Development] SKAm69:
Thanks for answering. But maybe the latest ICS MIUI can be ported to 2.6.2.9? For example, from Sensation 2.8 to myTouch 4G Slide 2.6.
[Android Software Development] Lens_flare:
last miui ics is 2.8.10.

I you want to, you might also port latest one from near device (like desire s or sensation), they are ics. But I have to warn you it will cost you tonns of replaced smalis, tonns of time tinkering on each smali etc.
[Android Software Development] Trublood_:
Well, I used an old miuiv4 port on my galaxy mini to copy framework and apps because its an ldpi, I did everything as said, but now its stuck on bootsplash D::highfive:

EDIT: Ok, used libandroid from base CM9, got stuck on bootloop.

EDIT2: Had status 6 error, changed updater with base and made modifications, now it says it cant open update-binary WTF
[Android Software Development] Lens_flare:
miui v4 is multidpi, no need to copy anyting except those in guide.

for more info about porting, see guide above :P
[Android Software Development] nikmaletz55:
Can i port JB MIUI using this guide?
[Android Software Development] Ozadroid:
Yes u can
[Android Software Development] kickassdave:
I'm attempting to port MIUI 4.1 to the Galaxy S3 using latest CM10 as a base.

Using Galaxy Nexus MIUI ROM.

I have followed the guide closely - but getting aborted status 7

set_perm: some changes failed

I presume this is due to a bad zip file more than anything else.... any ideas?

FIRST, I have to say, attempt to port or make any kind of ROM... so although I am pretty technically minded, I do appreciate any help :)
[Android Software Development] kong:
Check your update-script for lines with set_perm command and see if the file they're referring to is really there.
[Android Software Development] Lens_flare:
set_perm is fail safe. It means if file doesn't exist, it just skips it without error.

I suggest to check a syntax of it.
[Android Software Development] Ozadroid:
The most common mistakes in updater script is the missing semi-colon check for it..

And status 7 occurs mainly due to unmatched update and updater script. So take both from ur cm10 base n edit changes for miui.
[Android Software Development] ilive12:
Do I have to re-sign this or something? I make bring over the necessary parts of the MIUI rom to my base, and zip the base and then try to flash it but it won't even flash let alone boot.
[Android Software Development] Lens_flare:
no

do a logcat to see errors [google: adb logcat]
[Android Software Development] ilive12:
I formatted boot and system before flashing so there is no OS so I don't know if I can do a logcat... Flashing just doesn't work, says Opening Update then immediately stops trying to flash and brings me back to the homescreen of CWM.
[Android Software Development] Lens_flare:
check whether archive is accessible from your SD, it might be corrupted
[Android Software Development] josh2020glacier:
Yes i was having the same problem just now but i think i might have figured out the problem will try again in moring. Ill will get back and let you know

lg c800 running cm9 nightlies
[Android Software Development] ifyouwant:
Sorry for my question, Can i use this method to port miui gb too? if not, somebody can give me the tutorial to port miui Gb, Thanks so much
[Android Software Development] Lens_flare:
theoretically-yes, miui gb is cm-based, there shouldn't be much problems then.
[Android Software Development] Anon9mouz:
We need a jb miui guild

__________________________________________________
[Android Software Development] Lens_flare:
pardon? I missed something? All Galaxy nexus devices got MIUI, see miuiandroid.com
[Android Software Development] Anon9mouz:
Guide lol and I know I run the sprint gnex version but be nice to have a jelly bean miui guide and I'm not experienced enough to make a guide so I was just putting it out there lol

__________________________________________________
[Android Software Development] Lens_flare:
I have one[immature though], see my signature

PS: be polite and friendly if you want to find an answer without deep search.
[Android Software Development] Anon9mouz:
Huh u lost me I wasn't being rude at all just recommending something and I'm in tapatalk but I'll check

__________________________________________________
[Android Software Development] ifyouwant:
When i start, there is a liite of difference, What can i do? In miui Gb, I cann't find

"copy content-types.properties file to /system/lib"

Quote:

copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script

set_perm(0, 0, 06755, "/system/xbin/invoke-as");

(for backup & themes app work)

So, it will be wrong?
[Android Software Development] Lens_flare:
The only thing you should care about - framework code replacing (.smali), possibly you will see what to change in log.
[Android Software Development] martijnn2:
anyone managed to port it to a mtk 6575 device?
[Android Software Development] Lens_flare:
why not to try by yourself??
[Android Software Development] martijnn2:
I have ,somehow mtk devices are different...
[Android Software Development] irberserk:
I have a bootloop with this error:

How i can fix it? :(
[Android Software Development] Lens_flare:
Have you diffed AssetManager fram that folder before?

Anyway seems you should paste Configuration*.smali to android/content/res (framework.jar) from base to MIUI.
[Android Software Development] irberserk:
Lens thanks for the answer :), i used patchrom method to port miui from cm9 base, my phone not have ics stock rom but gingerbread.I have some doubt after make the command make firstpatch, sorry probably im off topic,I have a folder with: reject smali, old smali, dst_smali_original, dst_smali_patched,new smali. In the root of my phone folder i have framework,jar.out, services.jar.out,androidpolicy.jar.out and framework-res. The official guide says that i must resolve conflicts and i must modified the .smali in framework that are placed in root phone folder, the reject smali are in tmp folder. my question is: What smali i must diff? one is the .smali in root phone folder and the other should me my cm9 smali?this file is in the tmp directory as old smali? Im not sure what i do. Thanks and sorry for the long question :o
[Android Software Development] Lens_flare:
oh, sorry, I'm not familiar with patchrom, follow a log, it seems the only way to fix something.
[Android Software Development] irberserk:
Thanks the same, i will try later with a clean workspace :)
[Android Software Development] irberserk:
Here is my logcat im stuck on boot
[Android Software Development] Lens_flare:
QUOTA2 module is missing in kernel.

Don't actually know if it is crucial, but I'm in very doubt. Show a full log.
[Android Software Development] Lens_flare:
ya, it's there.

Keep in mind you should return all libs you changed before.

PS: change log app please, it is awful to read.
[Android Software Development] irberserk:
Sorry i use Qtadb for logging, i have follow the instruction at the first post. In the first time i used libandroid.runtime.so of the miui but i cant see neither the miui logo on boot, after changed it with base libandroid.runtime.so i have a lot of error.What libs i must changed?
[Android Software Development] Lens_flare:
use base runtime lib, now you are on path of changing smalis.

see my signature for smali porting guide.
[Android Software Development] irberserk:
Yes i use libandroid.runtime.so of my base i haven't changed any libs, i have only add content-properties etc etc and liblbesec.so i use base libs.

I know how change .smali i have read a lot of time your signature thread xD. I must diff which smali? assetmanager.smali as logcat says:

15:37:28.812 Error dalvikvm 684 Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I
15:37:28.813 Error JNIHelp 684 RegisterNatives failed for 'android/content/res/AssetManager', aborting

Thanks for help :D

p.s I must disassemble framework.jar?
[Android Software Development] Lens_flare:
FYI we are in another thread :P

exactly, you should diff AssetManager,smali. I presume you'll find a next smali after patching that one ;]
[Android Software Development] irberserk:
OMG a next smali...xD.The procedure is(say me if is wrong). I open meld as original file i assume the base .smali and propietario (or own) i don't know how i can say in english xD i'm italian the .smali of my ported rom (that is miui). I search for:

15:37:13.576 Error dalvikvm 597 Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

in base .smali and put it in miui.smali.It's right?
[Android Software Development] v1r0x:
Open both (base and miui) AssetManager.smali (it's in framework.jar/android/content/res) in meld and add any missing field/method to the miui one
[Android Software Development] irberserk:
I have changed a lot of .smali but now im stuck xD this is logcat:

I need help plz :( org.codeaurora there is'nt in miui.What i must do?
[Android Software Development] martijnn2:
For the zp200 zopo:

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

[ROM] MIUI for Zopo200

Greets
[Android Software Development] Lens_flare:
you got it right - codeaurora/performance is just missing, just grab it from CM and paste to smali folder.

PS:

proprietario=proprietary, you might say "miui one"
[Android Software Development] irberserk:
OK something works and something not. The hard time si now, my device is lge400 ldpi the ROM i ported hdpi :D in searching for a a guide to resize framewok.res.apk and systemui.apk. Later i will post a logcat because i nave problemi with the calls.

Inviato dal mio GT-P5110 con Tapatalk 2
[Android Software Development] _polimorph_:
I'm having allot of stuttering and a feeling of laggyness when pulling down the notification bar. It shouldn't be there as long as the base of port is CM10 for Samsng GS3 which has fluid animation. Anyone can give me a clue about this?
[Android Software Development] Lens_flare:
miui issue since release 2.8.17.
[Android Software Development] corby2geek:
A question

Hello proxuser, can I use kernel from base ?

Thanks :confused:
[Android Software Development] Lens_flare:
what's more, you have to do so