yashsingh1/xdaforums huggingface dataset:
[Android Software Development] zoldyck:
I add .SonyQualcommRIL7x27a .. and change the Ril in Phonefactory.smali but no use :(

I want to remove Phone FC Issue .. thats what I want :)
[Android Software Development] _polimorph_:
Besides adding SonyQualcommRIL7x27a also copy entire Phonefactory.smali and BaseComands.smali from CM to port. If you get bootloop post your LOG.
[Android Software Development] voetbalremco:
Dont forget to change ril values in the build.prop as well.
[Android Software Development] panel1:
missed call LED notifications not working

Thank you for your guide.

I have problem on HTC One V.

LED notification works normally, except for missed call. On missed call the LED not blinking as it should be.

In logcat I have found this: "E/lights (18214): Unsupported Led Attention"

Any idea where can be problem? With CM10 rom it's working OK.

Thank you
[Android Software Development] ic3141:
HELP

I,ve been using Lens method for a while and ported lots of MIUI roms to my HTC legend (Base CM9 and CM10). All working ok except the following (unofficial CM10 only, for CM9 I use 2.8.10 and don't have problems):

- Each time i port MiuiHome doesn't work and i have to use a previous MiuiHome.apk (from 2.10.19 or so)

- Theme manager - cannot change anything except wallpaper (tried the method with making up a theme folder under data/system but still no luck). For theme changer it says applied but nothing happens. For the others get FC (unfortunately Theme manager has stopped, or settings has stopped if using system settings to change).

Would this be because of my poor legend (600mHtz, 160DPI) or i miss something? Can anybody help?

Thank You
[Android Software Development] CosmicDan:
Those who can't build AOSP from source and use PatchROM should just wait a few months, Xiaomi are dropping ICS support when MIUI5 is out and will be releasing more support tools / code for porting to other devices.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] p.lu.k:
I don't know if it's going to help with your problem but you could try this: http://xdaforums.com/showthread.php?p=35044206
[Android Software Development] LegibleEel:
Anyone?
[Android Software Development] Red Devil:
Hi Sir ... I did the following ... but I keep getting an error in updater Script .. Status 7 regarding symlinks.. I tried the following :

Build 1 : Raw port as said in porting thread step 1.

Build 2 : Error in updater script. Status 7. So deletd Whole xbin from folder and added fresh xbin from cm10 beta 2.	Edited updater script to normal updater script from cm10 B#2.

Build 3 : Same error as in build 2. Replace SU from Xbin of MiUI.

I am porting new MiUI 3.1.1 from One V to explorer.
[Android Software Development] ak0r:
There some binary which is in your updater-script but not actually present in xbin or bin. Verify that.
[Android Software Development] Red Devil:
Thanks sir .. But I changed port and now it boots..Now Home Fc etc due to HDPI - MDPI . is usage of APKTOOL necessary or can I make it work with just unpaccking the apk with the help of Winrar or 7zip.. replacing files and repacking and signing ?

Previously it has worked for me.. but is it the correct way ?
[Android Software Development] ak0r:
MIUI apps are all dpi apps. HDPI apps works on mdpi. The issue is because of shelld binaries. Follow the steps for given for shelld issue. Check 1-2 pages back. The link is there.
[Android Software Development] sk8erboy:
Logcat. No app work.

Now I only can see the statusbar and lockscreen, but When I unlock screen. home launcher not work and it stoped.

here is my logcat. please help me solve it. thanks.
[Android Software Development] ic3141:
Thanks,

Tried but didn't work. I try now to find a way to mod ThemeManager.apk from 2.8.10 to work on JB but not can be done
[Android Software Development] sandy7:
Well iam also proting miui from past 5months.

But recent updates needs the 3 sheld files from libs to fix miuihome fc..

But I was still getting fc so what I did was just took the additional libs from hdpi which were not there in my mdpi and all working fine now..

So the miui home and themes fc is due to missing libs in lib folder..

Hope this helps u ..

Let me know if it works.
[Android Software Development] sk8erboy:
no shelld lib's problem, just another. but I cant find any ways to solve it. oh. its sense based miui. port from ones to onev.
[Android Software Development] _polimorph_:
Seems like a resource error. Check out BinderProxy.smali from framework/smali/android/os and diff if necessary.

W/WindowManager( 1987): Failed looking up window

W/WindowManager( 1987): java.lang.IllegalArgumentException: Requested window [B]android.os.BinderProxy@40e8d648[/B] does not exist
[Android Software Development] sk8erboy:
I will test..thx

hmmm. not work.
[Android Software Development] trulyliu:
Greate thanks.
[Android Software Development] ak0r:
Add missing shell libraries and binaries from /system/lib and /system/xbin/shelld
[Android Software Development] Red Devil:
Do I need tochange anything in my updater script . Cause I'm adding a busybox file? Symlinks ?
[Android Software Development] sk8erboy:
if your rom support init.d. try this script. also need libshell*
[Android Software Development] ak0r:
Nope. Just add the script into /etc/init.d given above. Add missing shell libraries from MIUI. Also add shelld from xbin.
[Android Software Development] Red Devil:
Thanks all for your valuable time.. Still not being able to pass the home.fc..

Cant obtain shell service.. anyway to bypass that ? Thanks for the reply in advance !
[Android Software Development] ak0r:
Is your device armv6?
[Android Software Development] systop:
thanks, it is a great thread for me to porting miui
[Android Software Development] voetbalremco:
use android_runtime.so from ported rom
[Android Software Development] rhlravi:
Can anyone help? :(
[Android Software Development] Red Devil:
Hello,

Armv7 . HTC Explorer ..

Would really appreciate any help whatsoever
[Android Software Development] twins.7:
and what if it's armv6?

it doesn't work?
[Android Software Development] ak0r:
I think no. I haven't come across armv6 device with successful port of MIUI 2.11.2 or later. All are having shelld issues. Themes won't work. And Launcher FCs.
[Android Software Development] sorullo_xgrx:
HTC thunderbolt Armv7 and I have the same shelld problem.. it might be something else.. I'm about to try again after modify the kernel see what happens
[Android Software Development] Red Devil:
I would like to add that themes also fc the same way Home fcs as in the time it takes to fc also file manager.. lol. I dont know if its a way to compare.. what I did replaced launcher with Nova.. it works.. I think all home dependent apps dont work. SystemUI works So i think there is no issue with respect to framework.. all other apps work.. Calling etc..

What doesnt work.. is about phone.. , USB and home for me.. Major.. and there is a series of all dies as soon as the miui setup complete but it then boots normally after sometime.. dont know why..

---------- Post added at 07:10 AM ---------- Previous post was at 07:08 AM ----------

Ill try to change kernel to 3.0 which has been recently ported to ourr phone
[Android Software Development] ak0r:
Try patching boot.img by modifying kernel.
[Android Software Development] Ozadroid:
HTC Explorer is Armv6!
[Android Software Development] Red Devil:
LOL No way sir ARM V7 sir ..
[Android Software Development] Ozadroid:
dafuq! o.O

yeah its armv7. i had the wrong info till now -_- :@
[Android Software Development] _polimorph_:
Does anyone have the skill and determination to port MIUI camera, with front facing camera (eg: from aries Mi2 rom) to other devices? I have the determination, but the skills are missing.
[Android Software Development] Ozadroid:
i think you just need to put the images from miui camera app to urs! :-s
[Android Software Development] _polimorph_:
I must say that's not such a bad ideea... Thanks :)!
[Android Software Development] xperiavish:
PLz help porting 2.11.5 to xperia u..

Hello there..this is an excellent guide..and i have been trying to port miui 2.11.5 from sony xperia s lt26i to my device sony xperia u st25i with cm 9 base but it doesnt boots and is stuck on miui boot logo..i am attaching a logcat..please anyone help me out here..i m willing to learn this and i really mean it..
[Android Software Development] _polimorph_:
Make more use of post #3 of this guide: debugging.

Your error is:

W/dalvikvm( 2741): Unable to register: not native: Landroid/content/res/AssetManager;.setConfiguration:(IILjava/lang/String;IIIIIIIIIIIIII)V

E/JNIHelp ( 2741): RegisterNatives failed for 'android/content/res/AssetManager', aborting

What you want to do to correct it is diff AssetManager.smali from framework.jar.
[Android Software Development] zoldyck:
miuihome.apk is not responding, i have a loading circle in the home screen and then the msg appears.i cant logcat cuz adb is not working.

any tip?
[Android Software Development] p.lu.k:
Did you start the shelld service?

I remember I had a similar issue when I was doing my port.

This post explains how to do it:

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

Another option is to put a file in the init.d folder. I think someone posted that file a couple of pages back but doing it this way didn't work for me.

Sent from my Inspire 4G
[Android Software Development] zoldyck:
I already use that TUT

but stuck on MiHome loading and not responding
[Android Software Development] xperiavish:
Thanx for the tip and a generous advice..but could you also tell me that while diffing the smali do we have to copy only the missing code or we also have to match the every. line no.s too..also for any other rom except miui,how to know what all smali are to be replaced and patched while doing framework edits..
[Android Software Development] LegibleEel:
Hey everyone. I have a problem when porting miui, The rom boots etc, everything seems fine beside 2 things. The notification bar doesn't show up and i have problem with mount. File explorer doesn't show anything on SD nor on the phone.

Logcat

Any help?

Thanks
[Android Software Development] xperiavish:
So finally i have successfully booted my first port miui but there is a strange problem..when coming from stock ics rom other than cm9 which i used as base,rom doesnt boots and is stuck at miui logo..also even while flashing the rom over cm9base if i wipe data,rom doesnt boots but wiping cache and dalvik is fine..plz help..
[Android Software Development] zoldyck:
New Problem

can't register Xiaomi account through phone ( got network error when I insert my Email ) any idea?
[Android Software Development] sandy7:
try from browser...
[Android Software Development] Red Devil:
Phone reboots when monitor is started ? Any clue how to fix.. Tried a lot of permutations with apps just wouldn't work

sent from my HTC Explorer A310e running on MIUI 4.1
[Android Software Development] pratikmore:
I made MIUI ICS rom for my hcl me u1 tab,but external sd card not shown in tab.I changed storage_list.xml in framework-res.apk but no luck.external sd card and internal sd card shows same storage.I have 16 gb external sd card.but it shows 2.5 gb i.e internal storage.any idea???
[Android Software Development] Notorious:
Logcat please
[Android Software Development] zoldyck:
that what I did :D

---------- Post added at 06:07 PM ---------- Previous post was at 06:05 PM ----------

new problem

I'm still unable to get a GPS work here

any tips?
[Android Software Development] Gerrett:
AW: [GUIDE][ICS/JB/common] Definitive FAQ for newest miui porting

Still have problems with some apps.

Facebook, Twitter, Youtube and more will directly FC.

12-23 16:39:32.845 E/Watchdog(2165): !@Sync 375
12-23 16:39:36.420 E/Trace (22840): error opening trace file: No such file or directory (2)
12-23 16:39:37.370 E/AndroidRuntime(22840): FATAL EXCEPTION: main
12-23 16:39:37.370 E/AndroidRuntime(22840): java.lang.NoSuchMethodError: android.support.v4.app.FragmentActivity.j_
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.google.android.youtube.app.honeycomb.phone.YouTubeActivity.j_(SourceFile:225)
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.google.android.youtube.app.honeycomb.phone.HomeActivity.n(SourceFile:421)
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.google.android.youtube.app.honeycomb.phone.HomeActivity.e_(SourceFile:236)
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.google.android.youtube.app.honeycomb.phone.HomeActivity.onCreate(SourceFile:169)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.Activity.performCreate(Activity.java:5191)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.ActivityThread.access$600(ActivityThread.java:140)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.os.Looper.loop(Looper.java:137)
12-23 16:39:37.370 E/AndroidRuntime(22840): at android.app.ActivityThread.main(ActivityThread.java:4898)
12-23 16:39:37.370 E/AndroidRuntime(22840): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 16:39:37.370 E/AndroidRuntime(22840): at java.lang.reflect.Method.invoke(Method.java:511)
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
12-23 16:39:37.370 E/AndroidRuntime(22840): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
12-23 16:39:37.370 E/AndroidRuntime(22840): at dalvik.system.NativeStart.main(Native Method)
12-23 16:39:37.375 E/android.os.Debug(2165): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error
12-23 16:39:40.610 E/WifiService(2165): Multicaster binderDied
12-23 16:39:45.685 E/Trace (23230): error opening trace file: No such file or directory (2)
12-23 16:39:46.080 E/WifiP2pStateTracker(2165): getNetworkInfo : NetworkInfo: type: WIFI_P2P[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
12-23 16:39:57.215 E/lights (2165): write_int failed to open /sys/class/sec/led/led_pattern

Gesendet von meinem GT-N7000 mit Tapatalk 2
[Android Software Development] a_swed:
anyone tried to port MIUI JB to MT6577 based phone? maybe someone can help me to choise the base? becouse i tried Galaxy Nexus S, but have only "cant register all android natives" or from Galaxy Nexus i have error in JNINative (dont forget) then i compile new framework.jar. but i have error in Audio.../smali, then then to another file, and so is almost infinite. but soon the error with Smali ended and there was one - cant register all android natives. :(

patchrom only work for ICS, but on my pc its not work, becouse cant compile framework-res.apk (some bad names of folders like sw600 and other), i tried to push another aapt, but nothing changed. so i dont know how can i do this. maybe some1 can help me?
[Android Software Development] Red Devil:
Fixed it... Thanks ! :D

Some issues with filemanager.. I dont know what.. I just got another apk from another ROM
[Android Software Development] Red Devil:
I am getting an error still.. error opening directory storage/usbdisk0 when I try to open about phone.. its an fc.. ! any one know how to fix.. thanks in advance
[Android Software Development] Megalith27:
Hi, i am getting following errors from radiolog and can't get data connection to work, not sure what these errors mean

E/GSM (28868): Exception in fetching EF_CSP data com.android.internal.telephony.IccFileNotFound

E/GSM (28868): [GsmSST] RIL implementation has returned an error where it must succeedcom.android.internal.telephony.CommandException: GENERIC_FAILURE

EDIT:

I also did the USB modding on 4th post, but my usb subsystem still doesn't work. Where should I look for resolution?

Appreciate the response.
[Android Software Development] Megalith27:
Anyone?
[Android Software Development] Megalith27:
Guys I would really appreciate the help on this, I don't want to be seen as pain in the neck, but I ran out of the options.
[Android Software Development] Red Devil:
MMS.apk STK.apk apps are in system/app ?

If it is. Try copying those files from cm to miui port .

BTW

Are you bootlooping?
[Android Software Development] Megalith27:
Ok, will try does apps from CM

No the rom boots just fine, I can establish data connection and usb symbol does appear on status bar but I can access sd card via usb cable
[Android Software Development] Red Devil:
Try modding the USB again.. it will work..
[Android Software Development] quantan:
Hi,

I have a trouble with diffing smalis (framework.jar). If a block code contains ".line XXX", do I have to change XXX or keep it (from base to port)?

Example:

.method public getThemePackageName()Ljava/lang/String;
.locals 1

.prologue
.line 714
iget-object v0, p0, Landroid/content/res/AssetManager;->mThemePackageName:Ljava/lang/String;

return-object v0
.end method
[Android Software Development] quantan:
After changing framework, phone still boots loop. I think the problem is:

02-10 19:23:57.127: E/AudioTrack-JNI(92): Can't find android/media/AudioFormat.ENCODING_AMRNB
02-10 19:23:57.127: E/AndroidRuntime(92): Unable to register all android natives
02-10 19:23:57.137: I/ServiceManager(86): service 'media.audio_flinger' died
02-10 19:23:57.137: I/ServiceManager(86): service 'media.player' died
02-10 19:23:57.137: I/ServiceManager(86): service 'media.camera' died

but I cant find how to fix it. Would you please help me with this :(

Thanks,
[Android Software Development] CosmicDan:
Read the OP. Jeez.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] quantan:
My mistake :(. Missing comparing AudioFormat. Will try again :D
[Android Software Development] twitish:
Miui 2.12.28 porting

Hello guys. I'm sorry if this has been posted here, I did a search and didn't find anything. :/

I have ported MIUI to the Droid X2 many times, however that was on CM9. Now that I'm trying to use a CM10 (unofficial) base, I am getting this error (full log is attached):

E/dalvikvm( 2527): VM aborting
F/libc ( 2527): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 2527 (system_server)

Anyone have any ideas as to what is happening? Thanks!

-twitish
[Android Software Development] ak0r:
Have you copied InputManager*.smali from services.jar? Your actual error is

E/dalvikvm( 2336): Class lookup Landroid/view/InputDevice; attempted with exception pending
W/dalvikvm( 2336): Pending exception is:
I/dalvikvm( 2336): java.lang.NoSuchMethodError: no method with name='notifyJackSwitchChanged' signature='(JIZ)V' in class Lcom/android/server/input/InputManagerService;

Check the OP for services.jar patch.
[Android Software Development] quantan:
Hi all,

I have another trouble but cannot find how to fix it :(

02-11 07:02:17.677: E/dalvikvm(92): Could not find class 'com.android.internal.widget.MzActionBarContainer', referenced from method com.android.internal.policy.impl.PhoneWindow.installDecor

Only Ported rom has MzActionBarContainer, so I cannot use diff method to fix. I don't know why it says cannot find class MzActionBarContainer; there is MzActionBarContainer.smali in com/android/internal/widget of Ported rom

02-11 07:02:17.697: E/PhonePolicy(92): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback

I can't find any difference about ContextMenuCallback between based and ported rom.

..

Full log is attached.

Anyone have any ideas as to what is happening? Thanks very much :)
[Android Software Development] MrColdbird:
Meizu phone, isn't it?
[Android Software Development] bbrad:
Nice guide
[Android Software Development] _polimorph_:
If you need methods/field from a .smali that is present only in the base rom just copy the whole file as it is to your build.

As for "PhoneWindow$ContextMenuCallback" error don't bother. There's no solution for that yet, just leave it as it is. Maybe it's not neccessary for a solution since it's not vital, maybe it doesn't counts at all.
[Android Software Development] twitish:
Ah yes I see that now... I must have missed it in my log. Thank you. :) It now boots but MIUIHome crashes immediately. Looks like I have some more to do. :) Thanks for your help!!!
[Android Software Development] quantan:
Yes, I try porting Flyme OS 2.0 to my phone :D

Sorry if my grammar makes you confuse :p. My situation is that MzActionBarContainer presents only in the port rom, and the error says "Could not find class 'com.android.internal.widget.MzActionBarContainer'". Maybe I will try removing MzActionBarContainer :confused:
[Android Software Development] ak0r:
Have you applied shelld patch? Check that as well.
[Android Software Development] twitish:
Looks like I've been out of the MIUI loop a while. Didn't even know about shelld. I placed it into xbin as well as the necessary libs. However, when the start shelld script is ran from init.d (kernel init.rc is out of the question due to locked boot loader) it wont move past the boot logo. I'm going to manually start shelld with adb shell here in a second and see what the issue is. Droid X2 is armv7 by the way.

EDIT: So, using shelld works after it has booted (starting it as root via adb shell). Now, SystemUI is crashing :/ Attached is my logcat. I know its something really simple, I just know it. But I'd rather get confirmation on what I think it is than mess everything up even more.

It boots to the activation screen, says SystemUI FC, then hot reboots after about 5-10 seconds. Any help is appreciated guys. :D
[Android Software Development] Alex93917:
Same problem ...
[Android Software Development] CosmicDan:
You're missing files from your base. Follow the OP.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] pongnamu:
In framework.jar?
[Android Software Development] CosmicDan:
No, from /usr/. Logcat clearly says missing file. If you deleted that then you probably deleted more things you shouldn't have.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] pongnamu:
But the problem is that I do have the file... :(
[Android Software Development] ThEuNdYiNg1:
i can't get data/mms working, can anyone help, i tried the changing ril but it caused no signal at all. under apn settings there are no apns.
[Android Software Development] CosmicDan:
ALL roms have ICU files. They are required for the ROM to boot.

I think you need to actually examine your logcat. Everyone needs to do that, there is too many just saying their problems which are unique. You must learn to resolve yourself.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] drshorty:
Im trying to port miui to nexus 4. It get stuck on miui logo. Logcat say error with "system/lib/libnetcmdiface.so but there is not file like that. Question... Can i port miui jb 3.2.8 to jelly bean 4.2.1? Is miui only for jelly bean 4.1.2....
[Android Software Development] _polimorph_:
MIUI 3.2.8 is based on ICS 4.0 or Jellybean 4.1, depending on the device, so more likely it would not work porting it. I also tried with no success, there are allot of framework changes in 4.2 vs 4.1.

In a few weeks MIUI v5 should be out and it will be 4.2 based, so your best option is to use MIUI v5 for porting to android 4.2.

EDIT: The last rumours suggest MIUI v5 will still be based on 4.1 at the moment, maybe with time they'll move on...
[Android Software Development] MrColdbird:
Yeah. If you wait for miui v5 though you could give it another try.
[Android Software Development] datagutt:
The latest MIUI v5 beta is confirmed to be 4.1 by a staff member on miuiandroid.com.
[Android Software Development] CosmicDan:
Great news! Don't have to spend weeks getting 4.2 to compile and work for Xperia 2011.

Sent from Xperia Play (R800a) with Tapatalk