yashsingh1/xdaforums huggingface dataset:
[Android Software Development] augus7:
Just wondering, since there's a MIUI app in Google pLay, what are the advantages having a standalone MIUI compared to having the mIUI app on top of your stock ROM ?
[Android Software Development] Lens_flare:
If you have an iPhone launcher, say, do you have the iOS UX? Same with custom roms like miui. think about it..
[Android Software Development] nasty007:
solved one error but new one show up

I/dalvikvm( 352): at java.lang.Thread.run(Thread.java:856)

I/dalvikvm( 352):

E/dalvikvm( 352): VM aborting

F/libc ( 352): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)

pastebin link http://pastebin.com/tCtTTgy5

thanks
[Android Software Development] Lens_flare:
I/dalvikvm( 352): Rejecting re-init on previously-failed class Landroid/webkit/WebViewCore; v=0x40a2fb18
W/dalvikvm( 352): Exception thrown (Ljava/lang/VerifyError;) while throwing internal exception (Ljava/lang/VerifyError;)
E/dalvikvm( 352): Class lookup Landroid/webkit/WebViewCore; attempted with exception pending
W/dalvikvm( 352): Pending exception is:
I/dalvikvm( 352): java.lang.VerifyError: android/webkit/WebViewCore

you haven't solved it.. still webviewcore fault. Have you replaced whole tree or just add methods?
[Android Software Development] patou75:
Ok thanks ! I will try. But if I replace framework and other stuff from my miui rom (official but translated), can I have ics spell checker and magnify glass ? Cause in official miui rom for i9100 we haven't that. Rom is based on samsung rom :(

Envoyé depuis mon GT-I9100 avec Tapatalk
[Android Software Development] Lens_flare:
if it is implemented by rom translator ;]
[Android Software Development] nasty007:
i have add missing methods
[Android Software Development] Lens_flare:
As I missed one release..

My new experience on 2.6.15 and latest cm9 source:

first of all, again new method:

E/dalvikvm( 219): ERROR: couldn't find native method
E/dalvikvm( 219): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
E/JNIHelp ( 219):

I'm not risky enough to replace whole PowerManagerService, so I have only added requested method - nativeStartSurfaceFlingerOffAnimation. Just one moment I should point:

same method is already on miui source, but named nativeStartSurfaceFlingerAnimation. So just add "Off" to it and that is it. Another moment: there should be also nativeStartSurfaceFlingerOnAnimation, it should be near 2nd inclusion of "Off" one(you will see a big code addition in any diff tool).

Second and more common and annoying - webkit:

E/dalvikvm( 576): ERROR: couldn't find native method
E/dalvikvm( 576): Requested: Landroid/webkit/WebViewCore;.nativeGetTextureGeneratorThreadID:()I
E/JNIHelp ( 576): RegisterNatives failed for 'android/webkit/WebViewCore', aborting

At first release I faced that (2.6.1) I have just replaced WebViewCore*.smali tree. then realised browser and all apps are using webview just crashing. So now I found all smalis by keyword "WebView" and replaced'em all. Now I have no problem with browser :D
[Android Software Development] ngocphong_gha:
goog job :)
[Android Software Development] kong:
Just want to properly say THANKS to you. This has been a problem for me during the past two weeks :D
[Android Software Development] Lens_flare:
2wfs team:

what device are you using as miui base? seems resourcenotfound exception problem is about that :D

htc devices are obviously using htc framework part, that are linking to base ones at compilation process, so you are getting these errors..

please proove my thoughts -__-

for example, resac(you know him right? :D) is porting from SE LT-18i! which is damnely different from his xperia x10 mini pro.. that's why my suggestion is as above.
[Android Software Development] resac:
Exactly.. its completely diff...:mad:
[Android Software Development] medicjunKie:
I don't have data (internet connection) any ideas?

This is in GB
[Android Software Development] Lens_flare:
We are talking about miui v4 there..

as you asked, try a custom RIL class like lgeqcomm(LGEQualcommRIL.smali+phonefactory.smali patch).
[Android Software Development] patou75:
can someone help me ? Here is my logcat :) thnk you !
[Android Software Development] Lens_flare:
your problem is common:

E/dalvikvm( 9154): ERROR: couldn't find native method
E/dalvikvm( 9154): Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I
E/JNIHelp ( 9154): RegisterNatives failed for 'android/content/res/AssetManager', aborting

use search on this thread.
[Android Software Development] patou75:
Ok thanks :)

Envoyé depuis mon GT-I9100 avec Tapatalk
[Android Software Development] patou75:
I don't get it : I need to add missing smali FILES on MIUI framework or add all missing LINES on all smali files and add PackageRedirectionMap*.smali and wifinative ?

edit : aahh ok ! I need to compar all assetmanager and add missing lines and then add just packag.. and wifinative file JUST that's it ? Sorry cause my englsih isn't perfect ^^
[Android Software Development] howdid:
wrong thread lol
[Android Software Development] patou75:
my new logcat :(
[Android Software Development] patou75:
man... everytime that I solved an error like assetmanager where I added only missing lines and add PackageRedirectionMap*.smali and wifinative.smali, a new one appear. Like camera.smali, then BluetoothA2dpService.smali then PowerManagerService.smali and now inputmanager.smali. What I did is only replace these specifics files by take then from CM9. I'm going to be crazy :mad::mad:

I'm doing it wrong ??
[Android Software Development] Lens_flare:
You should replace also a tree of the files(files which contain the same name at the beginning ).

Your last log said about camera, but seems it's fixed as you describe.

So what's your problem now?
[Android Software Development] Megalith27:
Hi, I have read this whole thread and was hoping that may be some of you can help or point in the right direction.

UFO, has ported MIUI v4 to Motorola Milestone 2, link to thread below:

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

The thing is when CM9 (Android 4.0.3) is used as base ROM there is not problem with accessing SD card via USB and with mobile data (internet) (v4 ROM is Wajk's WIUI(MIUI) for Motorola Defy)

But when CM9 (Android 4.0.4) is used as base ROM there is a problem with accessing SD card via USB and mobile data (v4 ROM is MIUI for Motorola Droid 2)

I have used both of CM9 roms and none of them have this problem. As I understood some users here also had/have similar problem/s but don't know if and how they were able to resolve it.

I would appreciate any kind of input/comment from more experienced users/dev (Lens maybe etc.)

Thanks in advance.
[Android Software Development] Lens_flare:
are you about usb masstorage right? I'll investigate it as soon as new version appear(just got ums work on my device with cm).

You do have a custom RIL class.

Find it out by searching "ro.telephony.ril_class" at build.prop, the name after "=" is a smali you should replace in miui.

But first of all you have to change RIL*.smali at com/android/internal/telephony (framework.jar), then a smali you found as your ril class. Also it could be reasonable to replace (gsm/cdma, depends on network device have)dataconnectiontracker at corresponding gsm/cdma folder in the same directory as previous defines like RIL.

I'm noob, especially on kernels ;[
[Android Software Development] Megalith27:
Thanks for quick response,

strangely I dont see "ro.telephony.ril_class" line at build.prop in neither of the roms one which doesn't have mobile data problem and in the one that has...:confused:
[Android Software Development] Lens_flare:
alright, then you are using stock ril.. then just follow my guide about other files I specified
[Android Software Development] Megalith27:
Dont mean to be a pain in the neck, but could you please may be give a step by step instruction? :o

Cause I am kinda lost right the with the instructions, as you can tell i am newbie to android....
[Android Software Development] Lens_flare:
disassemble both framework.jar, find a path on them: com/android/internal/telephony

on that path there are RIL*.smali tree(set of files with same name and $)

grab them from base rom and put to miui.

find folders gsm and cdma at the same path, find gsmdataconnectiontarcker and cdmadataconnectiontarcker, replace them also in miui.

Assemble miui framework you got and that is it.
[Android Software Development] nerotix:
I'm trying to port MIUI v4 to Galaxy S3 I9300. This is the first time of me doing anything like this, so please be kind:P

So far, I've gotten to getting the MIUI bootlogo and then just doesnt do anything, I made a logcat, its quite long but since I'm so inexperienced, I have no idea where to look for.

Here it is:

http://pastebin.com/9h9KDpXM

Thanks in advance!
[Android Software Development] Lens_flare:
wow sgs3, great!

Ok, you have a common problem:

E/dalvikvm( 1910): ERROR: couldn't find native method
E/dalvikvm( 1910): Requested: Landroid/hardware/Camera;.native_setup:(Ljava/lang/Object;I)V
E/dalvikvm( 1910): Candidate: Landroid/hardware/Camera;.native_setup:(Ljava/lang/Object;II)V
E/JNIHelp ( 1910): RegisterNatives failed for 'android/hardware/Camera', aborting

Disassemble framework.jar both from base rom and miui with apktool, then take all smali with "Camera" in name from base framework you disassembled and put to miui framework, they are located at smali/android/hardware.

Assemble framework.jar you got and then you could continue porting.

To prevent some common errors, use in-thread search, it will point you to remaining porting moments.
[Android Software Development] Duarte777:
i´ve found all the tutorial but i got bootlop :(

Porting from MUIU 4 LG 2x for Lg optimus black as CM9 as base...
[Android Software Development] patou75:
ok so I solved error for assetmaanger, bluetoothA2DP, powermanagerservice, inputmanger, camera. But now I don't know what is wrong...

http://pastebin.com/pAE91twv
[Android Software Development] Lens_flare:
log it and we'll see..

oh no, again..

E/AndroidRuntime( 2286): android.content.res.Resources$NotFoundException: Resource ID #0x111003b

use nexus S base, you will avoid that problem with 75% chance..
[Android Software Development] patou75:
well I'm not lucky, I use Nexus S rom...
[Android Software Development] Alex93917:
Hello !

I have tried to port MIUI V.4 for my Galaxy S Plus I9001 with CM9 base. But, it doesn't work. I repeated the steps several times but did not do it!

Please, help me ='(

Logcat : http://pastebin.com/2s4Rt3wz

It stuck in "Galaxy S Plus I9001" bootscreen kernel.

I have tested this : http://xdaforums.com/showpost.php?p=25171176&postcount=231

Replace "libandroid_runtime.so" of MIUI Nexus S 4 by CM9 SGS + original, but doesn't work ='(

I use Nexus S files.

I replace MIUI 4 files "libandroid_runtime.so" and "libhardware_legacy.so", and now, it's bootloop on Xiaomi logo, logcat : http://pastebin.com/kKLJLhSB
[Android Software Development] nerotix:
Thanks alot, that fixed the error, I kinda understand how to find a error in logcat I think and hope:P

However, still stuck at MIUI boot logo, this is logcat(can't figure this one out):

http://pastebin.com/vkY4BXnV

Thanks!
[Android Software Development] Lens_flare:
there is a way with adding 1.apk (or smth) to framework-res.apk' apktool.yml.

For more information ask lenny_kanno

E/dalvikvm( 1911): Could not find class 'android.widget.ScrollBarDrawable', referenced from method android.view.View.awakenScrollBars

you have added/deleted something special, maybe assetmanager? It should be modified instead of replacing.

stand with that variant, it should work. However you got a following error

22:58:08.922 Error dalvikvm 648 ERROR: couldn't find native method
22:58:08.922 Error dalvikvm 648 Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

Assetmanager.smali. use search on this thread, should find an answer. nerotix it's also could be for you.
[Android Software Development] nerotix:
For the assetmanager, you mean this right?

http://xdaforums.com/showpost.php?p=26232467&postcount=426

I've tried that, but I dont rly understand what I should replace.. I open both files in WinMerge but how I know which line to copy and which not? Or should I make them identical?
[Android Software Development] Lens_flare:
lines which are not present in miui should be added, just don't touch lines which are there but differ
[Android Software Development] patou75:
and where I can find him ? I don't know how to search his name on XDA...
[Android Software Development] Megalith27:
I need help, I was able to baksmali classes.dex and do all the above step, but now when i am trying smali, I am getting bunch of errors with "error for input: invalid text"

Btw, I am using Kubuntu...any help is more than welcome. Thanks
[Android Software Development] nerotix:
http://xdaforums.com/showthread.php?t=1296802

Check there :)
[Android Software Development] Megalith27:
Thanks, I was trying doing that but getting this:

parviz@parviz-MM061:~$ dir

android-sdk-linux

classes.dex

framework

Pictures

Videos

android-sdk_r18-linux.tgz

Desktop

framework.jar

Public

workspace

baksmali.jar

Documents

Music

smali.jar

Calibre\ Library

Downloads

out1

Templates

parviz@parviz-MM061:~$ java -Xmx512M -jar smali.jar out1/ new-classes.dex

UNEXPECTED TOP-LEVEL EXCEPTION:

java.lang.RuntimeException: Cannot find file or directory "new-classes.dex"

at org.jf.smali.main.main(main.java:184)

I used "dir" command just to show you the folders that I have, so the next commant was more clear
[Android Software Development] nerotix:
The error says it all.. "Cannot find file or directory "new-classes.dex" and u even typed dir and as u can see, u dont have a directory or file named "new-classes.dex" so ofcourse it can't find it.

Put the classes.dex in the same folder as the backsmali & smali and then type:

java -jar baksmali.jar classes.dex

Now in that folder, a new map will automaticly be created, called "out", there are all your smali's now.

If you wanna compile it again into a new classes.dex

you should use this command:

java -Xmx512M -jar smali.jar out

(I say 'out' because thats the name of the folder with all your smali's, instead of out u can use the name of whatever u named the folder)

Hope it helps
[Android Software Development] Megalith27:
That did the trick, thanks again, man...

One more question :) not to be too much, how do I sign .zip file?
[Android Software Development] Alex93917:
I have modified Framework.jar with Assetmanager.smali (I forget exactly name),"webviewcore.smali" and others files quoted here : http://xdaforums.com/showthread.php?t=1643676

I have replaced all files mentioned in logcat with error native line. And this logcat is my last test.

It doesn't boot, and it bootloop on Xiaomi.com bootscreen.

Infos :

--> Nexus S source

--> I have a I9001 Galaxy S Plus

--> Framework.jar modified with "Assetmanager.smali" and "webviewcore.smali"

Thank you in advance ! :)

Edit at 18:55 GMT : Update my logcat, new status.
[Android Software Development] nerotix:
About that I have no idea, what I always do use just use a zip file that is already signed and pull the files out that u dont need and put ur own file in it, uze 7zip for that.
[Android Software Development] paxChristos:
Just an fyi to everybody posting full logcats,

adb logcat *:E

will only print out errors & fatal messages making it much easier to see where the problem is.

Pax
[Android Software Development] Lens_flare:
on this thread there is a guide from him about your problem, try to find it.

you know, sometimes "I/" tag says more :D

20:53:32.611 Warning dalvikvm 31681 DexOpt: --- END 'framework.jar' --- status=0xff00, process failed
20:53:32.611 Error dalvikvm 31681 Unable to extract+optimize DEX from '/system/framework/framework.jar'
20:53:32.611 Debug dalvikvm 31681 Unable to process classpath element '/system/framework/framework.jar'
20:53:32.721 Error JNIHelp 31681 Native registration unable to find class 'android/debug/JNITest', aborting

also damn unlucky problem haven't solved yet. I hope you just corrupted framework.jar

For those of you who suffering from lack of mass storage:

services.jar - usb folder, framework-res.apk - usb_storage.xml at xml and line custom_UMSlunfile="[path to masstorage file, see source tree]" at values/strings.xml. That seems all needed for usb.

For me it not works coz I'm on old usb source and am using legacy usb manager at CM, those of you who have a new usb source may have luck on it. In old source there is seems a problem with systemUI and mountservice, which couldn't be modified ;[
[Android Software Development] Alex93917:
New status : http://pastebin.com/hPGQTXbC

Infos :

Nexus S Sources

To i9001 Galaxy S Plus

Smali's modified.
[Android Software Development] Lens_flare:
java.lang.VerifyError: android/webkit/WebViewCore

check this out. Should be a full tree, not just WebViewCore.smali
[Android Software Development] Alex93917:
Okay, i've verified this smali and : http://pastebin.com/pKvV9dCu

It's semi booting. I've again stuck in bootscreen Xiaomi.com, but the brightness has decreased, and i've a vibrate of boot.
[Android Software Development] Lens_flare:
13:06:50.568 Error dalvikvm 140 ERROR: couldn't find native method
13:06:50.568 Error dalvikvm 140 Requested: Landroid/media/MediaRecorder;.native_start:()V
13:06:50.568 Error JNIHelp 140 RegisterNatives failed for 'android/media/MediaRecorder', aborting

add MediaRecorder.smali, then we'll see.
[Android Software Development] XCellPhoneSalesRep:
Not sure if this has been mentioned yet but maybe you could start a list at the bottom of your post with successful v4 ports with their links and what devices. Not sayin you should do the footwerk but whomever ported v4 should post the info including what device they ported from to what they ported too and the link to their thread...

Just a suggestion...
[Android Software Development] proxuser:
thats good idea, but someone has ported but given nothing of credits. if someone has succesful ported it, should give a link in this thread and i will add them to front page.

can't say people should give link to my thread. if they want this, then they should do it self. but thanks for support ;)
[Android Software Development] dark_knight35:
Can someone help me? I ported miui to Galaxy S with this guide, base is Dax's CNA port. My problem is that reboot option shows "your phone will shut down", but if I press OK, phone reboots. Does anyone know how to fix this?

And can someone tell me how to add data folder in aosp-based roms? Same like Samsung-based?

Thx in advance
[Android Software Development] SpaceCaker:
Lol

If you press reboot option and then press ok its normal that it reboot
[Android Software Development] rukin5197:
I gave you credit in my post, after being reminded of course :)

Optimus V

mdpi

600mhz processor

armv6

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

there is the thread if you are looking to do anything with it :)
[Android Software Development] dark_knight35:
But it shows "your phone will shut down". That's not normal.
[Android Software Development] rukin5197:
I'm sorry, but I didn't even touch this file when porting, so do I need to port this as well?
[Android Software Development] jrongi1:
Thanks for the great how to.

All went well, but I got no mobile data.

Miuiandroid ns & iczen rc1

vibrant icz

360° Productions
[Android Software Development] pikachukaki:
I'm a noob ok :P i do as the quide said i took desirehd miui rom (cos many rom for my device are desirehd ports) and a 50-50 working ics for my device u8800pro..i did as you said but when im trying to install the zip its says devicename error boardname error something like that!
[Android Software Development] rukin5197:
ANY AND EVERYBODY WITH DATA PROBLEMS: LISTEN UP!

This is what you need to do:

Open up the framework-res.apk from the original CM9/ICS (you don't need to decompile) and go to res/xml/apn.xml and put it on your desktop. After porting over the framework files, open up the one again and replace it with the one in there. (the apn.xml, not the framework-res.

This fixed data for me, and I have a good idea it will for you.

This really should be in the OP :)
[Android Software Development] Sesme:
Sensors bug for me

Anda data conection bug on 2.2.24 and 2.2.10

Motorola defy
[Android Software Development] Dhiraj:
Did you follow this method ? I am an user of HTC Explorer running sense 3.5 . I am a fan of MIUI . Recently Samsung ace got Miui4 port which has almost same specification as explorer . Can anyone help me to port it for explorer?
[Android Software Development] Ron G:
use gannon5197 guide. this guide for mdpi,ldpi device. it's help me to port miui 4 rom on optimus me. optimus me is ldpi device.

http://xdaforums.com/showthread.php?p=22953053#post22953053

this link of guide.
[Android Software Development] gulbir101:
um so i have a LG ally, but theres no CM9 or ICS Rom for it? could i use any other rom? it has a ArmV6 600 Mhz processor and its a MDPI device. anything? :)
[Android Software Development] Mohanshbhr:
Which miui rom base u used for porting to ldpi device, i m getting some png errors due to ldpi, i m also porting to a samsung ldpi device.
[Android Software Development] Ron G:
you can use https://github.com/bearstouch/android_img_resizer this android_ img resizer.
[Android Software Development] gulbir101:
Can I use a different port cuz the ally doesn't have a cm9 or ics rom! Could I use a rom from a similar phone from same brand? It has similar specs?
[Android Software Development] Ron G:
are you mean miui android 2.3 version? I tried to port 2.3 miui from this guide. My ported rom boot but allways getting android system fc. But you can try
[Android Software Development] gulbir101:
Ill try that when I get a chance! But I'm wondering if a ics from can be ported to the ally from a different LG phone?

Spec:

Armv6 Processor (600 MHz)

3.2 in screen

mdpi device.

Could anyone port?
[Android Software Development] Ron G:
why you not try to port ics and other roms from optimus one. I think o1 roms can be run on your device also you can try gt540 roms.
[Android Software Development] Alex93917:
Bootloop : http://pastebin.com/WgjNJ15v

2nd : http://pastebin.com/1nn7E6j7

I'm here now : http://pastebin.com/SKdncVGC
[Android Software Development] nerotix:
I've done that now, I've only added lines that were missing to the MIUI port AssetManager.smali

Seems it didnt help at all or am I looking wrong?

http://pastebin.com/LzQmm7Mw

Thanks
[Android Software Development] nasty007:
got error and cannot get thru

18:22:20.297 Info AudioFlinger 419 Loaded primary audio interface from LEGACY Audio HW HAL (audio)

18:22:20.407 Info AudioFlinger 419 Using 'LEGACY Audio HW HAL' (audio.primary) as the primary audio interface

18:22:20.407 Info AudioFlinger 419 Loaded a2dp audio interface from A2DP Audio HW HAL (audio)

18:22:20.407 Debug AudioHardwareInterface 419 setMode(NORMAL)

18:22:20.407 Info AudioHardwareMSM72XX 419 Set master volume to 5.

18:22:20.407 Info CameraService 419 CameraService started (pid=419)

18:22:20.407 Debug QcomCamera 419 HAL_get_number_of_cameras: loading libcamera at 0xb000e260

18:22:20.407 Info AudioFlinger 419 AudioFlinger's thread 0x13200 ready to run

18:22:20.407 Warning AudioFlinger 419 Thread AudioOut_1 cannot connect to the power manager service

18:22:20.407 Verbose AudioHardwareMSM72XX 419 AudioStreamOutMSM72xx::setParameters() routing=2

18:22:20.407 Verbose AudioHardwareMSM72XX 419 set output routing 2

18:22:20.407 Info AudioHardwareMSM72XX 419 Routing audio to Speakerphone

18:22:20.407 Verbose AudioHardwareMSM72XX 419 doAudioRouteOrMute() device 1, mMode 0, mMicMute 1

18:22:20.408 Debug HTC Acoustic 419 msm72xx_enable_audpp: 0x0007

18:22:20.408 Debug AudioHardwareMSM72XX 419 setVoiceVolume(1.000000)

18:22:20.408 Info AudioHardwareMSM72XX 419 Setting in-call volume to 5 (available range is 0 to 5)

18:22:20.408 Info AudioPolicyService 419 Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)

full logcat http://pastebin.com/6pXP7zBB