yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Zehlek:
I figured it wouldn't work, I was bored so I thought what the heck lol
[Android Software Development] alnikki25k:
Complete Logcat:

I am trying to port MIUI v5 4.2.2 to the Xperia Z.

I have already tried with HTC one and the nexus 4 as bases. Same error. Can anyone please help me? :confused:

Base : CM10.1

Port : Galaxy S4 -
[Android Software Development] HTC_M7:
I would use updated guide

http://en.miui.com/thread-5643-1-1.html
[Android Software Development] alnikki25k:
Yup, I tried that as well. :(
[Android Software Development] HTC_M7:
Well ur power manager port was done incorrectly. U took all references of nativecpuboost and diffed over? Also when u diffed asset manager did u make sure u diffed only the major code blocks not the entire smali?
[Android Software Development] alnikki25k:
Yup. I have copied over all known entries of nativeCPUboost. Also Asset manager was diffed. But the logcat says something like

"Failed to find provider info for settings"

I have no clue what that is lol.
[Android Software Development] datagutt:
Has anyone got external sdcard to work in Music and Gallery apps? My external sd appears in file manager just fine.

Doesn't seem to be any errors in the logs, so it must be some xml bool or smali change.
[Android Software Development] Notorious:
Hi make sure you have your storage-list.xml from your device in youre framework-res.apk also switch Mountservice. Smali in services.jar and see if that does it
[Android Software Development] 181charan:
Can anyone help with this Logcat? It boots but continuous FCs

LOGCAT
[Android Software Development] superdragonpt:
Check your bool xml from the framework, and see if it's different from stock rom
[Android Software Development] adyscorpius:
Hey guys, just wanted to know, its pretty understood that we all port ROMs to a new phone, and the steps are more or less the same as in the OP. What I want to ask is, what do you guys do each week for the update? Repeat the same process or something else?

Sent from my One
[Android Software Development] Notorious:
Things change every week so something different is required sometimes example I port 3.6.28 and now when I port the latest ALOT of smali has been introduced that needs to be patched. You could also take the easy way out and port from [MENTION=569047]bmarko82[/MENTION] s4 ROM literally not have to do a thing because he's done all the work regarding smali or you can actually port it from Maguro and not piggy back off him like most have
[Android Software Development] adyscorpius:
Yea, I tried him ROM first, but that doesnt work anymore.. Was really wanting to ask for a way that was not as painful every week. Guess there are no shortcuts in life.. :P

Sent from my One
[Android Software Development] datagutt:
OK, fixed external storage, thanks to [MENTION=4229751]Notorious[/MENTION].

But i have a problem with signal strength, i tried replacing framework.jar.out/smali/android/telephony/SignalStrength* and framework.jar.out/smali/android/telephony/CellSignalStrength*, but it makes no difference.
[Android Software Development] Notorious:
Hi first make sure you have all your RIL present. Missing RIL can cause bad reading of signal. You should have added all your RIL files to framework.jar and telephony a common.jar. In 4.2 V5 you have to add all your RIL to telephony-common and in framework.jar. If that doesn't work there are other smalis related to signal strength that I can't remember off the top of my head. I'll check when I get home
[Android Software Development] ehsan-black:
replace all RIL*.smali (i mean all of them like QualcommSharedRIL) and PhoneFactory.smali and GsmDataConnectionTracker*.smali
[Android Software Development] ---UFO---:
problem patching WebSettingsClassic

Please, could someone tell me how to properly patch WebSettingsClassic in 4.2.2 MIUIv5 ?

I am folowing this guide: http://en.miui.com/thread-5643-1-1.html

But I cannot find .field private mMediaPreloadEnabled neither in my base nor in MIUI.

Thanks

EDIT:

Does anyone know what is wrong in this log? I cannot find what is causing errors.

http://pastebin.com/2bQzYZqR

Thanks
[Android Software Development] hellrokr:
Greetings!

So I wanted to port PAC ROM for MIUI.

My device is Nexus 4.

As deeply I love MIUI, I surely miss the customization of ROMs like AOKP, PAC etc.

I followed this tutorial and did everything as said

I copied the complete framework from MIUI ported ROM for nexus 4 and replaced it with PACs.

Currently I'm stuck in the bootloop.

Please help me.

Here is the logcat:

http://pastebin.com/KgQKyGtS

Does anyone has any idea about this?
[Android Software Development] Rox:
Isnt there official build for nexus 4?

Sent from my GT-I8160
[Android Software Development] sorullo_xgrx:
I'm guessing you have an official xiaomi phone and you are trying to port PAC Rom using miui as a base?... If that's your plan this might not be your guide though some things might be the same in the process of porting like framework apps and media ...
[Android Software Development] Notorious:
it doesnt work that way. You cant just remove all of MIUIs framework and replace it with PAC man and expect it to work
[Android Software Development] sorullo_xgrx:
Right you must use an aosp or cm base Rom for your device
[Android Software Development] hellrokr:
There is. I just wanted to have a PAC ROm with MIUI framework. That build is ported over AOSP.

I guess I wasn't clear enough. Let me re-frame it.

My device is Nexus 4. I want to port a MIUI ROM for Nexus 4 using PAC ROM as a base.

So that's what I did. I took PAC from here :http://xdaforums.com/showthread.php?t=2146879 and used this MIUI http://xdaforums.com/showthread.php?t=2327158.

I followed this guide but the ROM itself is not booting. I hope this clears up.
[Android Software Development] sorullo_xgrx:
Clear enough ... It should work using Pac as Pac is also made from aosp, but it should be always better taking cm or pure aosp as base, just a suggestion.. ok so there is a more updated Guide http://en.miui.com/thread-5643-1-1.html
[Android Software Development] hellrokr:
I get your point. My next try will be with CM only. But what I really want was to integrate the tweaks of PAC with MIUI.
[Android Software Development] ---UFO---:
Could anyone please tell me how to properly disassembly and then reassembly framework-res.apk in MIUI?

I always get SystemUI FC after i flash reassembled framework-res.apk. I have tried various Apktool versions and also various aapt.

Thanks

EDIT: I have finally managed to get rid of the bug. I have used tutorial here: http://xdaforums.com/showthread.php?t=1814441
[Android Software Development] hellrokr:
Tried with CM10.1 and still not booting up. A lot of errors in logcat.

Has anyone tried what I'm trying?

This ROM:

http://xdaforums.com/showthread.php?t=2050364 is all I want.

I tried to take references from this ROM but its based on CM10 and the framework is quite different in that version.

Plz Help :(
[Android Software Development] Notorious:
You do realize that is just PACman rom with just Miui launcher available in the market (free app) with LBE Guard and MIUI music app that are available for any ROM if you just search xda
[Android Software Development] hellrokr:
I know that, the only thing that i "hate" about android is that its black. like when i open settings, it should look like what MIUI is. Yes, there are themes for CM too but they are not perfect. All of them are based on black color as base.
[Android Software Development] Notorious:
Well for the ROM you linked I'm pretty sure they used this theme but its for HDPI only

http://xdaforums.com/showthread.php?t=1853132
[Android Software Development] hellrokr:
thanks! I'll try it anyways! :)
[Android Software Development] ---UFO---:
Sorry to bother you again, but after porting MIUI v4, my phone can only see Internal storage, but it cannot see External SD card.

I have ported rom from Galaxy Nexus.

Is there any fix for that?

Thanks.
[Android Software Development] Notorious:
Did you change your storage-list.XML in framework-res.apk with yours?
[Android Software Development] ---UFO---:
I have replaced it now, but now I can access sd card only with total commander and i need root permission to write it.

Sd card is visible neither in system settings, nor in miui file manager and gallery.
[Android Software Development] Notorious:
Decompile services.jar and replace MountService.smali tree with your phones
[Android Software Development] ---UFO---:
Thanks. Eventualy it was a problem with storage-list.xml. I have just recompilled framework-res.apk after changing that file wrongly.

Its really late for me now :D

Thanks again for your help. It is finally working properly.
[Android Software Development] webstar1:
I am totally baffled as to whats wrong with this log, any help appreciated

log:

http://pastebin.com/Ff060f8c
[Android Software Development] Notorious:
need more information as in what version of MIUI are you porting and android version 4.1 4.2?
[Android Software Development] webstar1:
4.2
[Android Software Development] Notorious:
Did you edit your bootclasspath in the boot.img to include Framework_ext.jar?
[Android Software Development] webstar1:
no i didnt, how do you include it?

I know how to decompile boot.img
[Android Software Development] Notorious:
Unpack your boot.img then go to init.rc then add framework_ext.jar to the bootclass path should go in between android.policy and mms-common in the boot class path
[Android Software Development] webstar1:
Thanks, hope it works
[Android Software Development] Notorious:
that will fix that error you might have many more to go
[Android Software Development] webstar1:
Stuck again, im using the galaxy nexus 4.2.2 as base

heres the log:

http://pastebin.com/7z2JGV2m

any help appreciated again, thanks
[Android Software Development] Notorious:
After recompiling framework.jar are you taking the classes.dex from it and sing it to the old apk? Because you have alot of errors related to.it also don't dirty flash your tapatalk it's throughout the log
[Android Software Development] lozohcum:
Have anyone successfully used patchrom to port MIUI5?
[Android Software Development] ---UFO---:
Could someone please help me, I'm stuck on this error:

E/BatteryService(816): wirelessOnlinePath not found
E/dalvikvm(816): ERROR: couldn't find native method
E/dalvikvm(816): Requested: Lcom/android/server/location/GpsLocationProvider;.native_agps_set_ref_location_cellid:(IIIIII)V
E/dalvikvm(816): Candidate: Lcom/android/server/location/GpsLocationProvider;.native_agps_set_ref_location_cellid:(IIIII)V
E/JNIHelp (816): RegisterNatives failed for 'com/android/server/location/GpsLocationProvider', aborting

Porting MIUIv5 3.8.23 from Galaxy Nexus 4.2.2 to CM10.1 base.

Thanks

EDIT: Here is full log in case you need it.

http://pastebin.com/CD8pFngM
[Android Software Development] Notorious:
Decompile services.jar then go to com/Android/server/location and open GPSLocationProvider.smali . Next look for this line in the smali

native_agps_set_ref_location_cellid:(IIIII)V

It needs to be changed to

native_agps_set_ref_location_cellid:(IIIIII)V

^ the smali is requesting that line but it finds the other instead
[Android Software Development] ---UFO---:
Thanks, but after I change that I got this logcat which has got realy wierd errors:

http://pastebin.com/x5QD598Y
[Android Software Development] thehacka1:
The error that caused the loop is 'Failed to find Settings provider'. Are you sure you are using the right framework and settings apps? Remember they must both come from port rom.
[Android Software Development] ---UFO---:
Yes both are right. This error pop up after I edited GpsLocationProvider.
[Android Software Development] anythingdust:
good time

I own butterfly x920E its for russia (similar HTC droid dna)

HTC Droid DNAhas a port for miui

you need to do that would be to adapt(for Butterfly) the assembly of the droid?

for the HTC butterfly is no cyanogen, but Google has a port edition (which is fully working except the camera) is a naked android, aosp

enough miui port and porting from the droid dna Google edition for that would adapt the assembly for butterfly x920E ???

thanks for help
[Android Software Development] ZduneX25:
I did, https://github.com/zdunex25/patchrom_mt11i
[Android Software Development] lozohcum:
Wow

Is it enough to follow patchrom guide? I tried but errors on every step.

Do you think I can use stock Jb to port MIUI using this guide?
[Android Software Development] thehacka1:
Yes you can but only if you are porting V4. V5 won't work with this guide.
[Android Software Development] lozohcum:
oh, so how other people make OTA for MIUI5 unofficial ports?

I'm going to try again but this time I want to use stock ICS 4.0.4 as base and Patchrom. Hope it will work
[Android Software Development] thehacka1:
They use PatchROM. Or use the porting guide on en.miui.com
[Android Software Development] lozohcum:
Lol but you said MIUI5 doesn't work with patchROM. So it works but not at all I guess.

I have ported MIUI5 3.6.7 to ,my device, can you tell me how to make an OTA for it?
[Android Software Development] thehacka1:
I said it doesn't work with this porting guide.
[Android Software Development] lozohcum:
Ah, so you mean this guide won't work with MIUI5 based on STOCK ROM. I am right? Sorry for being a dumb
[Android Software Development] thehacka1:
This guide only works with MIUI V4. Everything about V5 is on the official website.
[Android Software Development] lozohcum:
Okay I got it, thanks for patience
[Android Software Development] doga.ozkaraca:
why i'm getting that ??

D/dalvikvm( 2482): DexOpt: --- END 'apache-xml.jar' (success) ---

D/dalvikvm( 2482): DEX prep '/system/framework/apache-xml.jar': unzip in 37ms, rewrite 496ms

D/dalvikvm( 2482): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 2482): Added shared lib libjavacore.so 0x0

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

E/dalvikvm( 2482): Requested: Lorg/apache/harmony/xnet/provider/jsse/NativeCrypto;.EVP_PKEY_new_RSA_SECPkcs11:()I

E/JNIHelp ( 2482): RegisterNatives failed for 'org/apache/harmony/xnet/provider/jsse/NativeCrypto', aborting

F/libc ( 2482): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2482 (zygote)

V/AudioPolicyManagerBase( 2485): getNewDevice() selected device 0

I/AudioPolicyManagerBase( 2485): ### curdevice : 2

V/SamsungPowerSound( 2769): curAudioPolicyDevice:2

I/DEBUG ( 2470): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 2470): Build fingerprint: 'samsung/ja3gxx/ja3g:4.2.2/JDQ39/I9500XWUBMG1:user/release-keys'
[Android Software Development] _polimorph_:
I'm porting the MIUICamera.apk to Samsung Galaxy S3...yes I know you're tempted to say it's not possible, but first let me tell you that someone really made it for LG Nexus 4, so I reverse engineered his method and now I'm stuck with FC. Sadly he's not responding to pm's, so you're my last chance.

There are some small framework modifications, adding and diffing from miui some smalis, Camera* tree, adding a library "libjni_mosaic.so" and of course adding the Camera.apk. So here's the log with the FC caused by a "number format exception":

09-03 22:47:13.219: E/AndroidRuntime(12956): FATAL EXCEPTION: Thread-185
09-03 22:47:13.219: E/AndroidRuntime(12956): java.lang.NumberFormatException: Invalid int: "null"
09-03 22:47:13.219: E/AndroidRuntime(12956): at java.lang.Integer.invalidInt(Integer.java:138)
09-03 22:47:13.219: E/AndroidRuntime(12956): at java.lang.Integer.parseInt(Integer.java:355)
09-03 22:47:13.219: E/AndroidRuntime(12956): at java.lang.Integer.parseInt(Integer.java:332)
09-03 22:47:13.219: E/AndroidRuntime(12956): at android.hardware.Camera$Parameters.getInt(Camera.java)
09-03 22:47:13.219: E/AndroidRuntime(12956): at android.hardware.Camera$Parameters.getMaxSaturation(Camera.java)
09-03 22:47:13.219: E/AndroidRuntime(12956): at com.android.camera.Camera.qcomUpdateCameraParametersPreference(Camera.java:2579)
09-03 22:47:13.219: E/AndroidRuntime(12956): at com.android.camera.Camera.updateCameraParametersPreference(Camera.java:2831)
09-03 22:47:13.219: E/AndroidRuntime(12956): at com.android.camera.Camera.setCameraParameters(Camera.java:2884)
09-03 22:47:13.219: E/AndroidRuntime(12956): at com.android.camera.Camera.access$900(Camera.java:89)
09-03 22:47:13.219: E/AndroidRuntime(12956): at com.android.camera.Camera$CameraStartUpThread.run(Camera.java:329)
09-03 22:47:13.219: W/ActivityManager(6504): Force finishing activity com.android.camera/.Camera
Copy the Code

Full logcat: http://pastebin.com/dCfmudmf

ps: I even managed to take a screenshot the second before FC.
[Android Software Development] Zehlek:
Do you know what we have to add in those two files? I want to update nexus 4 version
[Android Software Development] thehacka1:
Decompile framework.jar. Go to org/apache/harmony/xnet/provider/jsse/NativeCrypto and open with Notepad++ and diff the file using base framework.jar.
[Android Software Development] fedevd:
I need some help here:

The first cap is of "apktool d -b framework.jar", the second one is for "apktool b framework.jar.out". I can't compile it due to IccCard*.smali issues.

Here [MENTION=4736154]mscreater[/MENTION] had the same issue as mine and [MENTION=1844875]CosmicDan[/MENTION] answered him here this: "Copy all IccCard*.smali files, not just one file.". MIUI framework.jar already have those files and CM framework.jar just have "IccCardConstants.smali" and "IccCardConstants$State.smali" and I don't think that those 2 files are the cause of this, so, what can I do to fix this weird damn issue?
[Android Software Development] mscreater:
first: i doesn't use "apktool d -b framework.jar" command, i don't understand the mean of "-b" i only use "apktool d framework.jar"

second: from the cap i fint that: may be you have change smali file, check if the ".method" and ".end method" is match

third: advice you use patchrom's apktool in git,i use that tools and all works well.
[Android Software Development] rivelta:
hi i want to ask about powering off issue and network data always on if im power on or restarting my device , how to fix it? or maybe you can help for spesific file location?

i have device amoi n 828 mtk based . thanks before
[Android Software Development] fedevd:
Happens when USB is plugged or even if it's not plugged??

Enviado desde mi C6602 usando Tapatalk 4
[Android Software Development] darkn3ss1:
..is possible to port ONLY contacts.apk and mms.apk from lastest MIUI 3.9.6 (or later) to my Galaxy Note 2 with stock firmware??

At the moment i have lastest rom MIUI 3.9.6 installed on it, but i have many problems..

I would to reinstall the stock firmware Samsung but only with app contacts and sms from Miui roms..

I suppose this is possible.. perhaps copying the framework-miui to samsung rom.. and after?

How i can this??
[Android Software Development] Notorious:
Did you add your NFC jar file to framework and did you switch the NFC folder inside of framework.jar with yours?
[Android Software Development] ---UFO---:
Yes, I have made both changes.
[Android Software Development] xnan:
How you fixed " ?: E/AndroidRuntime(310): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 144 cannot locate '_ZN10SkFontHost12GetTableDataEP8SkStreamjPPv' " ?
[Android Software Development] thehacka1:
He replaced the smali file with the CM9 one.
[Android Software Development] xnan:
Which smali ?
[Android Software Development] thehacka1:
Layout.smali
[Android Software Development] ZduneX25:
Anyone faced?? SOLVED.
[Android Software Development] spezi77:
How did you solve it? Which miui version?
[Android Software Development] ZduneX25:
[MENTION=5091819]spezi77[/MENTION] miuiv5 (4.2.2) https://github.com/zdunex25/patchrom_m0/blob/jellybean42/customize_framework.sh#L13
[Android Software Development] IImanuII:
Registred to discussion

Inviato dal mio Nexus 4 con Tapatalk 4
[Android Software Development] ZduneX25:
Anyone faced with network flow doubling? Data Monitor shows 140mb when I download 70mb and that's all no extra mbs taken.
[Android Software Development] Notorious:
It's related to Selinux u need someone to source build cm10.1 for your device with it removed
[Android Software Development] ---UFO---:
Thanks.

Do you know how to do it? I know how to build rom from source, but I dont know how to remove selinux from building.
[Android Software Development] Notorious:
https://github.com/MIUI-i9300/andro...mmit/78491100df4b5e4fefa93f2ef61025a1ee258e77
[Android Software Development] ---UFO---:
Thank you very much.

Just one more question. It's enough to build only kernel, or I have to recompile whole CM.

Thanks.
[Android Software Development] Slimegod:
Want to port a MIUI ROM from the Nexus 4 to Sprint, would I have to change the libs to d2- common?
[Android Software Development] CNexus:
From that commit it looks like you just need to build a kernel with it disabled
[Android Software Development] ---UFO---:
Thanks for all advice, but at least on my device it isnt working.

I was comparing 2 CM10.1 bases with miui:

1) CM10.1 nightly form 2.July.2013 - old base

2) CM10.1.3 stable from 23.Sept.2013 - new base

I have found out, that even kernel with selinux is working on my old base MIUI.

No matter which kernel I used with new base (selinux/without selinux) there is always GPSLocationProvider error.

So I have came to conclusion that there must be something else which is hurting MIUI, not in kernel but in CM base.

I have also tried to build my own CM base with kernel source without selinux, but result is the same as CM10.1.3 stable build.

All ideas would be really appreciated.

Thanks.
[Android Software Development] ZduneX25:
[MENTION=3355080]datagutt[/MENTION] said that he had to recompile cm to disable selinux (in this thread about miui 4.2.2 cm based), so maybe the commit under kernel level is not enough [MENTION=1258660]---UFO---[/MENTION]
[Android Software Development] datagutt:
Add "HAVE_SELINUX=false" before make. That should disable SELinux not only at kernel level.
[Android Software Development] ---UFO---:
Could you be please more specific where should I add it?

Thanks

EDIT: You ment something like this, am I right?
[Android Software Development] datagutt:
Yeah, that should work nicely.
[Android Software Development] CNexus:
That flag only works on 4.2.x

On 4.3.x, selinux is enabled by default

Just a heads up if you're doing 4.3.x miui
[Android Software Development] Gerrett:
Anyone tried miui based on 4.3 ?

Gesendet von meinem LG-D802 mit Tapatalk
[Android Software Development] ---UFO---:
Well, it isnt working for me. Still the same error with GPSLocationProvider.

Is there any way to found out If it was really build without selinux?

I dont know what else could be wrong. :crying:
[Android Software Development] Slimegod:
Did a port and when I flashed is like the port never took. Boot animation and kernel were still the same. Followed the guide step by step.
[Android Software Development] waulliano:
Problems with Port

Guys, I'm having problems with a port for my phone Blu Dash 4.5. :crying: Miui installs normally but has some bugs. No SD card, no internal memory, no sound, no make calls. Push the button to turn off the screen and the screen does not appear again. Can anyone help me? Miui Version 3.8.2 android 4.2.1. Thank you!
[Android Software Development] Slimegod:
Hey what's up, I have a question. I would like to port a MIUI ROM from the Nexus 4 to my Sprint s3. Will I be able to do that and if so can someone direct me. I've ported before but not from different phone models. Thanks y'all it's appreciated.
[Android Software Development] Red Devil:
Yes sir that is pretty possible.. Follow the guide.. Its pretty well detailed.. Google as well ... And xaomis website itself has a few guides on porting you can check them out as well.. Else the threads are available for help :)