yashsingh1/xdaforums huggingface dataset:
[Android Software Development] v1r0x:
Do you mean the bottom navigationbar?

decompile the framework-res.apk using apktool.

change dir to

framework-res/res/values

and open the bools.xml

add (or edit if "true")

<bool name="config_showNavigationBar">false</bool>

@permissions:

I think you need to copy the miui-framework.xml from v4 build

/system/etc/permissions

into your port
[Android Software Development] KaranKapoor:
Incoming Call Bug resolved! Apparently, I forgot to replace a lib. Yes, that's right. :| :/

Thanks for all the help, guys!
[Android Software Development] KennyG9:
Well, thank you. I posted a thread on XDA a few days ago about framework-miui.apk compilation, but unfortunately it still doesn't succeed. I always get the same logcat&bootloop. I'm going to try something tomorrow.

Whoow :) . Worked like a charm. Thank you very very much. Everything seems to work great. I'm still having some graphic issues (on PIN entering espacially and on SMS notification). Hope I could get a logcat and screenshot in the near future.

Edit : Finally, I could take a screenshot.

USB Mounting doesn't work.

KennyG9
[Android Software Development] KemikalElite:
E/dalvikvm( 1105): ERROR: couldn't find native method

E/dalvikvm( 1105): Requested: Landroid/view/GLES20Canvas;.nStartTileRendering:(I

IIII)V

E/JNIHelp ( 1105): RegisterNatives failed for 'android/view/GLES20Canvas', abort

ing

F/libc ( 1105): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

I keep getting that error as part of the media service died loop. I've already patched the Canvas and Paint smali files in the framework.jar. If it actually means anything tile rendering is disabled in the build prop.

# QCOM

debug.enabletr=false
[Android Software Development] Lens_flare:
what android_runtime.so are you using? if miui' one then replace files only requested by logcat, nothing extra..
[Android Software Development] dhk.-:
im using base one.... miui one stuck al boot logo... i will test porting again....
[Android Software Development] v1r0x:
maybe you have the wrong versions?

for decompile use apktool 1.4.2.31 and for recompile use 1.4.3

I posted this in the AutoAPKTool-Thread.

Hope this helps

Sometimes I have those issues too. Don't know whats the problem :(

It really looks like you took the wrong GLES20Canvas.

Had the same error and replace the GLES20Canvas.smali in the v4 framework.jar with the one of the ICS worked.
[Android Software Development] KennyG9:
Well, what do you mean with 1.4.2.31 ? 1.4.2 OR 1.4.1 OR 1.4.3 ? I guess I tested every possible combinaison and it always bootloop.

I simply replaced GLES20Canvas*.smali from my CM9. I don't know why it shows this.

KennyG9
[Android Software Development] v1r0x:
There's a modified version of 1.4.2

If you "install" the framework-res and decompile with this one you shouldn't get errors while recompile with 1.4.3

I think you only need the GLES20Canvas.smali and not the others
[Android Software Development] KennyG9:
Well, the problem is not compilation error. It bootloops.

Well, I'm going to try this.

Thanks,

KennyG9
[Android Software Development] v1r0x:
Oh, my bad.

Thought you couldn't recompile.

Good Luck
[Android Software Development] oSandmaNo:
Help me please.

Im trying to port this to my defy+ since we don't have any MIUI yet(The defy version charges our battery only till 80%)

Not getting any bootloops using both libandroid_runtime files of MIUI or base cm9 rom. But it never gets past the bootanimation. I cant get a logcat since it doesnt get detected on ADB when its booting up. It logs only after the phone has been turned on completely(Which doesnt happen on my port). When I try ADB logcat during boot it just says "waiting for device".

Can someone guide me please??

I've googled a lot now. Can't believe Im awake because of this!!
[Android Software Development] cowsquad:
Try this after your phone stars bootlooping, take the battery off, then reboot into recovery. After that try to get adb logcat. Also, you could get the recovery log, usually saved in cache.

Make sure your miui port zip file size isn't too big, because otherwise your phone wouldnt pass the boot animation.
[Android Software Development] wali01x:
hey guys. im trying to port & use samsung vibrant to t989 (hercules). t989 has cm9 which im trying to use and now logcat is only logcatting "Waiting for service altcmdFwd..." whats that suppose to mean. sorry for being a noob still trying alot of variation
[Android Software Development] oSandmaNo:
Ok I wil try that. And the file size is 142 MB.

EDIT:

Rebooted into recovery and adb worked. But when i reboot from there to get to the bootanimation it stops.
[Android Software Development] wali01x:
ok guys couple of things im getting in my logcat.

some are unknown permissions which is annoying now. and also phonepolicy , wallpaper service (wallpaper_info.xml), org.bluez, appwidgets.xml, androidruntime, activity manager.. anyways im attaching a log, i hope someone can guide me in which direction im heading. i know the boot reloops because of permission but also because of androidruntime and activity manager killing stuff.. anyways id appreciate anyone's help. thank you

http://dl.dropbox.com/u/57175877/logcat.txt

and this is logcat with gapps installed ..http://dl.dropbox.com/u/57175877/WITH GAPPS LOGCAT.txt

and also im using t989 cm9 and samsung vibrant 2.5 v4 miui ics .. and with gapps logcat i had lockscreen popup for 2 seconds then reloop
[Android Software Development] dhk.-:
any help? where can i find it?
[Android Software Development] Lens_flare:
dhk

try to revert audiomanager smali to miui ones..

at least android/app is also located at framework.jar
[Android Software Development] shubhamchamaria:
see I have a HTC one V...Will this work if i use stock(sense) rom to port??
[Android Software Development] oSandmaNo:
How to logcat during boot? Please help me

It just says waiting for device

logcat works in recovery though
[Android Software Development] wali01x:
this is how u logcat while in booting.

adb logcat -v long ... this will give u each service and so happening

adb logcat -v long >> Desktop/logcat.txt this will take ur logcat.txt to desktop and it'll make it easier

adb logcat >> Desktop/logcat.txt ... is gonna direct it to desktop without the services but the full one.
[Android Software Development] oSandmaNo:
Thanks but no luck :(

It still shows waiting for device

It works in recovery mode and when I go back to Stock it works when the phone is switched on but never during bootup

adb devices doesnt show any devices attached during boot but only after boot is complete.

EDIT:

I waited till the boot was complete (This is on Stock ROM) and Ive got a log cat. Please tell me if this log inclues the log during boot. Then i will try on MIUI

http://pastebin.com/FagcL1Df

EDIT 2:

Tried on MIUI. Still stuck in bootanimation and the resulting log was empty :(
[Android Software Development] wali01x:
yeah that has log of ur phone booting. what i can suggest to you is reboot ur computer and change usbs see if it helps..
[Android Software Development] oSandmaNo:
Done that. But same result. The log while booting MIUI is empty again :o
[Android Software Development] wali01x:
i don't know what 2 tell u dude. im in same process but my stuff works. adb logcats u name it.
[Android Software Development] oSandmaNo:
I tried another computer now and still it doesnt work!!!

Why doesn't it produce a logcat during bootup?? :( :( :(

Worst luck ever!
[Android Software Development] Lens_flare:
I've mentioned that some miui devices doesn't produce log.. so maybe you are porting from one of them? As for example for me it was huawei honor..
[Android Software Development] oSandmaNo:
Im porting from Droid X to Defy+
[Android Software Development] Lens_flare:
I'm pretty sure that nexus s base doesn't have that bug :p

seems it is somewhat framework-related...
[Android Software Development] oSandmaNo:
So can I try porting from Nexus S MIUI?
[Android Software Development] ldiomedi:
Nexus ported to defy has a lot of bugs. I try so many roms for my regular defy and best was that the droid x. I'm actually using 2.5.4. keep working whit that. Can't try to port for defy+

Enviado desde mi MB525 Miui V4 usando Tapatalk
[Android Software Development] Lens_flare:
don't forget: they are also porting from nexus coz don't have official miui support -__-
[Android Software Development] oSandmaNo:
Yes im porting same version. How did you get past boot animation? Please check your pm.
[Android Software Development] ldiomedi:
I know, but the droid x port has the most bugs fixed for the Motorola hard, like sensors

Enviado desde mi MB525 Miui V4 usando Tapatalk
[Android Software Development] dhk.-:
with windows i have no logcat in booting.... but with ubuntu i've it! try it man....

---------- Post added at 11:43 AM ---------- Previous post was at 11:13 AM ----------

my rom boot!!!! i'm really thanked to every one that help me :D lens specially....

now i get no launcher :/ why? miui permissions? all is working fine :D

i have a few problems....

no data, no mic, misplaced keyboard, camera previews but cant take photo....
[Android Software Development] oSandmaNo:
Ok tried from Ubuntu and still no result. Logcat doesnt work on any rom during boot. Im cursed?
[Android Software Development] thetrisatria:
try to put this line in your build.prop

in my case, i forgot to type adb then i get no logcat. but when i added it, wohoooo welcome back logcat.
[Android Software Development] oSandmaNo:
Nope doesnt work. Logcat works while phone is switched on but not during boot. So I have no way to see whats happening when phone is stuck in bootanimation and get a logcat.

EDIT:

Its just not logcat. ADB doesnt see my device at all during bootup. It shows a blank list of attached devices
[Android Software Development] thetrisatria:
yes, i used to have the same problem as yours. when i check with ddms, there's no device listed. so this not only logcat affected, but whole adb function. i managed to fix it by adding the line above and my device recognized again. so sad if that not works for you. :(
[Android Software Development] oSandmaNo:
Even during boot?
[Android Software Development] paxChristos:
adb (and logcat by extension) do not work until you see the boot animation.

Pax
[Android Software Development] oSandmaNo:
I see but mine doesnt work during bootanimation either. Im going to give up then.
[Android Software Development] thetrisatria:
rite, adb working during boot animation. but before it, the device should be recognized but in offline mode (ddms)

well, that's not good decision. never give up dude, maybe you're one step to the boot :)
[Android Software Development] paxChristos:
Are you using an unsecure kernel?

If the in the initfs, default.prop has the following line in it

ro.debuggable=1

Then adb is available to you from the get-go.

Pax
[Android Software Development] oSandmaNo:
Right I wont give up then!

I dont know about the kernel but i found a default.prop and the value of the key you said is already 1.
[Android Software Development] darkspore:
Hi. I ported MIUI v4 from DHD(RD-MIUI) to LG Optimus Sol and I can`t get working gsm data. Can anybody help me?

---------- Post added at 10:52 PM ---------- Previous post was at 10:41 PM ----------

May be if you get ROM without sense. You can port MIUI v4.
[Android Software Development] IdeosDev:
Anyone have any idea about mic fix on miui or encounted incall mic not working?
[Android Software Development] dhk.-:
I'm on the same situation, someone in p500 forum know how to fix it but don't answer my pm
[Android Software Development] Reviewers:
Followed the guide about to flash now and will post results.

I did 100% what you said to do so it should boot.

Update: It's hanging at MIUI android screen not going passed that..
[Android Software Development] IdeosDev:
Well shall need to wait another one can help us out :)
[Android Software Development] dhk.-:
try copying the audio.a2dp.default.so in system/lib/hw with the one of the last working build if you have one...
[Android Software Development] Reviewers:
Got it booting

Thanks!
[Android Software Development] sanderbouw:
Hi, i'm facing the same problem as the one posted over here, with the dieing media:

http://xdaforums.com/showpost.php?p=25717563&postcount=274

But i have no clue how to do it.

In the attachment you'll find the files. I hope someone can do this step for me and help me out.

Thanks in advance.
[Android Software Development] v1r0x:
It's very simple.

download smali-1.3.2 and baksmali-1.3.2 from http://code.google.com/p/smali

move those two files in your work-folder (e.g. c:\android\smali\

place your framework jars in the same folder

you need to extract the jars. So open a command line and change dir to your smali folder (e.g. cd c:\android\smali)

type the following command:

java -jar baksmali-1.3.2.jar framework-baseICS.jar

and rename the "out" folder to something like "framework-base".

Then run this command:

java -jar baksmali-1.3.2.jar framework-miui.jar

Copy the Paint.smali from the framework-base to out

run this command:

java -jar smali-1.3.2.jar out -o classes.dex

open your framework-miui.jar with 7zip (or another zip program) and place the classes.dex (which should be created after the last command) in the jar.

copy the updated framework-miui.jar in your rom/on your phone and reboot
[Android Software Development] sanderbouw:
Thanks a lot! Got about 10 more error's but finally got it working now! Like you said before, it's very simple.:p
[Android Software Development] muchopoli83:
Hello to all!

I'm doing a port MIUI v4, to samsung galaxy tab, and I managed to work all right, ril, root, etc. .. least the keypad

does not appear. is as if it were installed. but is installed

any solution?

thank you very much

regards
[Android Software Development] eboIa:
Wow, would be very nice to share your port on Galaxy Tab threads. Thanks.
[Android Software Development] edwardng:
FAQ

Sorry for being a noob,

1.What is the Prerequisites/ tools?

2.Does this miui porting requires linux (ubuntu) os or windows?

3.Does this method involve compilation/decompilation?

4.How to unzip it and compress it back to make a rom zip?

Is anyone here willing to help me to understand? Thanks. :)
[Android Software Development] ldiomedi:
1- you need a cm9 build for your device and some miui v4 to port. Could be for any device. I try much of then.

2- i can do it in both os.

3- not necessarily. If you can't boot and have to replace some smali file or modify a xml file, then yes. Compiling/decompiling jar file is easy. The problem most of the time became whit framework-miui-res.apk and framework-res.apk. You must find the correct tools to make it work.

4- i use 7zip on windows (can be winrar or winzip) and the default compressor on linux.

Enviado desde mi MB525 Miui V4 usando Tapatalk
[Android Software Development] Lens_flare:
For those who are porting MIUI for qualcomm device (like htc desire z/s/HD) from newest CM source(it would affect anybody else) :

theme engine is now affected. So new miui will hung on boot with unresolved android/content/res/AssetManager.

Don't replace it! You should instead diff miui and cm smalis and add all missing and only missing methods to miui not deleting anything.

Then just add PackageRedirectionMap*.smali to android/content/res/ folder, and replace WifiNative.smali on android/net/wifi/ .

Thx cm team for including theme engine and complicating our lives :D
[Android Software Development] dhk.-:
thanks again lens... I tried to port new version and have error compiling.... now I know why
[Android Software Development] ---UFO---:
I have sucessfully ported MIUIv4 to Motorola Milestone 2, but I have some problems:

1. after I slide out hardware keyboard, screen won't rotate

2. USB mass storage isn't working

Could anyone please help me? Thanks.
[Android Software Development] thetrisatria:
1. go here and see step8

2. try to add this: persist.sys.usb.config=mass_storage,adb at your build.prop.
[Android Software Development] dhk.-:
If this don't work pm me....
[Android Software Development] m4rk84:
No offense taken at all, but I have a phone I'm willing to fry so little to no worries. I'll see what I can find on me own...
[Android Software Development] proxuser:
when u get bootloop, try original libandroid_runtime.so
[Android Software Development] jahlovePL:
I succesfully ported MiUi to E15i, but USB Storage don't work, usb charging is ok! One more thing is that, animations overlaping at first boot, I think it's because superuser permissions - i haven't liblbesec.so file.

Can u upload one for me? Do you know how to fix USB storage?
[Android Software Development] haydnlj:
Thanks - unfortunately no luck tho..

Attached logcat if anyone can add input - no expectations here however :)

Seems to be boot looping on media server issues.

Note: Phone is Huawei u8800 / MIUI 4 from Desire Z (All current GB MIUI ports are from Desire Z, so working on assumption the very similar HW should play well with MIUI 4).
[Android Software Development] cj360:
kinda want to try this for my xperia, not sure which miui rom to use tho.....
[Android Software Development] smokin901:
it is bootlooping because of this 'android/graphics/Paint' IMO. First thing i would do is take a working ICS build for the phone preferably CM9 then replace only framework, app folders and telelocation.db,yellowpages.db in etc from miui. and will try to get phone booting. setting correct permission in updater-script is very important
[Android Software Development] dinesh690:
Tried this but it still seems to be Cm9, with MIUI apps. And yes i did copy the system/framework and over
[Android Software Development] rukin5197:
This helped port over to my Optimus V!! Thank you so much! But I made some edits that weren't in the OP.
[Android Software Development] dswaggz:
OK here goes a dumb question will this work for the EXHIBIT II 4G

via tha ♚EII4G 
[Android Software Development] Dhiraj:
Any chance to get it for MDPI devices ?
[Android Software Development] rukin5197:
I ported it to my mdpi armv6 device 600 mhz. Lol pretty good too
[Android Software Development] nuuits:
what edits did you make?

i'm trying to port this to my Optimus Slider and it's not working lol.

EDIT: my phone doesn't have ICS yet.

ANGST.
[Android Software Development] Ron G:
how you do this? I tryied this but not work on p350. P350 have ics rom. Can you plz explain how can port miui to mdpi or ldpi?
[Android Software Development] nuuits:
Not sure if you've seen this before, but this might be a great one to port to your phone as the icons are for mdpi. yeah it has problems but you get the problems that your base rom has and not the rom that you ported.

good luck!
[Android Software Development] Justice™:
Would it be possible to port from a LDPI device, to another LDPI device?

I'm planning to port the X10 Mini version of MIUI4 over to the HTC Wildfire.
[Android Software Development] nuuits:
I'm sure it would work just fine as long as they both have the same resolution.
[Android Software Development] mmmcfc:
Excellent guide proxuser, you should be a recognized dev by now
[Android Software Development] Ron G:
yes you can do this but i'm not sure on x10 and wildfire. Because x10 use Chipset	Qualcomm MSM7227 and wildfire use Chipset	Qualcomm MSM7225 this is different chipest. But you can try
[Android Software Development] Justice™:
I'll try it anyway. Chipset differences haven't stopped the wildfire developers before. I'll post back here just to confirm it works on phones with chipset differences.
[Android Software Development] proxuser:
thx man, maybe recognized porter ;)
[Android Software Development] medicjunKie:
/starters question

When you add stuff to build.prop does it go at the bottom of everything?

Or in a specific place?
[Android Software Development] dhk.-:
Search were are the lines to change in your build.prop and replace it...
[Android Software Development] medicjunKie:
Got it, thanks.

How do I give permissions in updater script?

That's all I need to flash my rom. :)
[Android Software Development] dhk.-:
Copy some line of the end of the script that says set perms 06775 and the route...
[Android Software Development] ---UFO---:
Thanks.

I will try 1. later.

2. but i already have persist.sys.usb.config=mass_storage,adb in my build.prop.

EDIT: adb is working for me also without enabling in settings
[Android Software Development] dhk.-:
I will send you a pm... its my same case and already fixed it
[Android Software Development] thetrisatria:
why don't you share here instead via pm?
[Android Software Development] dhk.-:
ok...

you need to change all the usb*****.smali in com/android/server/usb in services.jar

after that you need to decomplile framework-res.apk and add the next in res/values/strings.xml

<string name="config_legacyUmsLunFile">/sys/devices/platform/usb_mass_storage/lun0/file</string>

and add the next in res/values/public.xml

<public type="string" name="config_legacyUmsLunFile" id="0x010404cc" />

compile an try.... sure works
[Android Software Development] ---UFO---:
Thanks. I will try it. But how to change usb*****.smali in services.jar? Should I copy it from base CM9 services.jar?

Thanks
[Android Software Development] dhk.-:
Yes...
[Android Software Development] nasty007:
i have try this but i got error when compiling
[Android Software Development] dhk.-:
you need special apktool to compile and decompile ics framework-res.apk
[Android Software Development] ---UFO---:
I have also problem with recompiling framework-res.apk

But i think, the line we added to public.xml is causing it.

Here is my log.

Should I just delete line which have the same id?

<public type="string" name="stkCcUssdToDial" id="0x010404cc" />

EDIT: After deleting that line, framework-res.apk was built without problem.

But I think, that line has somethink to do with phone.

I am going to test it.

EDIT2: USB mass storage isn't working. I have also make full wipe.
[Android Software Development] ---UFO---:
This isn't working for me. It only caused that now the software keyboard show up only when i have hardware keyboard slided out. When I slide it in, software keyboard didn't show up.

Strange is that before aplying fix from step8, keyboard backlight was working only if keyboard was slided in. Now it is working properly.
[Android Software Development] nasty007:
i have right apktool version, i have decompile and compile ICS .apk and it worked OK
[Android Software Development] dhk.-:
dont delete it.... only change the id for the one not used in public for strings..... example

if the last string line is

<public type="string" name="stkCcUssdToDial" id="0x010404cc" />

put in the line that i say to you

<public type="string" name="usbLunUmsFile" id="0x010404cd" />

if the latest digit is z change it to 1 and if is 0 change it to a
[Android Software Development] nasty007:
yessss, now it works

compiling got without error

EDIT: usb is not working...
[Android Software Development] ---UFO---:
I have recompiled it this way, but USB is not working for me either.
[Android Software Development] dhk.-:
did you copy all the usb****.smali in com/android/internal/server/usb/ ?

did you change the id in the public string?
[Android Software Development] ---UFO---:
Yes.
[Android Software Development] russian392:
Will this work for LG Optimus one/ LG thrive??

Thanx, reply using PM
[Android Software Development] Silverstarjigar:
give it permissions on updater-script

set_perm(0, 0, 06755, "/system/xbin/invoke-

as");

what do u mean by this??

updater script??

whats this! just tell me, my rom will be ready then:-D
[Android Software Development] ldiomedi:
Reading something, maybe u can find the answers. check the link:

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

Enviado desde mi MB526 usando Tapatalk 2
[Android Software Development] nasty007:
now it wont mount my internal storage either, i have Droid 3
[Android Software Development] Lens_flare:
Do you have proper ramdisk?

For sure, check out dhk's posts
[Android Software Development] Lens_flare:
so you have to get aosp/cm rom working first