yashsingh1/xdaforums huggingface dataset:
[Android Software Development] wahbufetz:
Thanks for this FAQ

I wanna ask if my device can be ported with Miui, though i have a stock rom, not based with CM,aosp,aokp or any other, just stock rom.

There are no developers on our phone, that is why i am tryin to learn just portin...

I have Cherry Mobile Titan TV here in the philippines rebranded from Karbonn A30 in India and Vsuni1 in China...

Armv7 Processor

Mtk6577

Android 4.1.2

Dual Core

And so on...

Please Advise
[Android Software Development] maestrobarako:
yes it can.. i already ported an MIUI for Myphone A878 using stock rom , which is my device right now, and im currently porting for A848 using another stock rom but im stuck at bootlogo. i wonder if it is because my ported MIUI is 4.0.3 and my bas is 4.0.4 but accrding to our friend here it can still be ported..
[Android Software Development] wahbufetz:
Thanks for the reply. Do u know if i can port Jellybean also? Using this tutorial? I once tried it but i am also stucked on boot logo... and do u have any link where i can get Miui and its versions?
[Android Software Development] maestrobarako:
jellybean is MIUI V5 and yes you can port if you can find V5 versions for your device.. does the international brands of your phone has MIUI? if it has, then port those Roms, it will surely work.. you can find a lot of MIUI for MTK devices at hotapk.com
[Android Software Development] wahbufetz:
If I am not mistaken, is has miui but not on jb, only ics. Lemme have a recap, I need an miui v5 Rom so I can port it on my stock jb Rom, ryt? Very noob Q
[Android Software Development] maestrobarako:
yup..since V5 mostly runs on JB.. you can port from other brands also, as long as it has the same chipset (MTK 6577)

try porting the MIUI V5 for Micromax A110
[Android Software Development] sorullo_xgrx:
Can you get a logcat

---------- Post added at 09:44 AM ---------- Previous post was at 09:40 AM ----------

That I have seen lately only the galaxy s2 uses a stock rom for v5 the rest is aosp/cm base. If there a build for your phone with aosp/cm builds you can try porting miui v5. Good luck.

Look cm10.1 on my T2
[Android Software Development] wahbufetz:
We do not have any cm or aosp build coz we do not have any developer... It is just a cheap phone, maybe that is why. But I can contribute with ours but of just a little knowledge.....
[Android Software Development] fedevd:
Ported succesfully, now, when I send a SMS tje signal turns off ann 2 sec later turns on.. Looks like SMS service reboot the RIL but Wifi isn't affected.. Only off and on the signal.. How can I solve that??

Enviado desde mi GT-I9070 usando Tapatalk 2
[Android Software Development] hepi_hape:
Hello all

seems my logcat now work!

but when i reach to read this logcat : logcat 1

i see :

after read from the guide

i disassemble framework.jar

and replace the .smali from CM to ported MIUI

again i assebling and make rom using kitchen

DAMN! it's still bootloop

this second logcat : logcat 2

from the scond logcat i didn't know again what should i do ??? :crying:

thx for helping
[Android Software Development] fedevd:
Kitchen? Why kitchen? Just replace the files mentioned on OP and then balsmali framework.jar of port and base and start replaceing smalis..

Enviado desde mi GT-I9070 usando Tapatalk 2
[Android Software Development] hepi_hape:
Is that ok, just replacing with fixed file ? Not re-sign the entire .zip ?
[Android Software Development] sorullo_xgrx:
Kitchen?
[Android Software Development] fedevd:
You have to do this.. Download smali and baksmali tools, create in your desktop 2 folders (one called MIUI and the other called CM) and a copy of bougth tools in bougth folders. Put in MIUI folder the "framework.jar" of the MIUI you wanna port and in the other folder (CM) the framework.jar of CM.. Decompile bougth files in CMD using this command:

java -jar baksmali.jar framework.jar -o framework.jar.out

Then just replace or add missing smalis moving the right smalis from CM to MIUI..

When you're done, just compile the MIUI framework with all the new smalis using this:

java -jar smali.jar framework.jar.out

When it's done, you will see a new "out.dex" file, took that file and move into "framework.jar" (open framework.jar with Winrar or 7zip), done this, delete "classes.dex" inside "framework.jar" and rename "out.dex" to "classes.dex", close Winrar/7zip and push to MIUI..

Enviado desde mi GT-I9070 usando Tapatalk 2
[Android Software Development] hepi_hape:
Is that wrong ? Im new here and always use xda kitchen before

do you mean from this : smali/baksmali

before, Im just use apktool
[Android Software Development] cowsquad:
I wanna learn how to port a ROM. If I wanted to port a galaxy nexus maguro to the galaxy nexus toro, do I have to replace a lot of files, or should be easier ? Since they are alike. Any help or suggestions will be appreciated?
[Android Software Development] rishabh.raj37:
For simple porting try this- http://xdaforums.com/showthread.php?t=1908008
[Android Software Development] lozohcum:
I have almost working port of newest MIUI5 3.5.17

but there is error that causes bootloop, those lines are repeated forever:

I/ServiceManager( 455): Waiting for service miui.shell...
E/ShellServiceJni( 455): Can't obtain ShellService
I/ServiceManager( 455): Waiting for service miui.shell...
I/ServiceManager( 455): Waiting for service miui.shell...
I/ServiceManager( 455): Waiting for service miui.shell...
I/ServiceManager( 455): Waiting for service miui.shell...
I/ServiceManager( 455): Waiting for service miui.shell...
E/ShellServiceJni( 455): Can't obtain ShellService
I/ServiceManager( 455): Waiting for service miui.shell...

does anyone know how to fix it? it doesn't seem to be sth hard to fix
[Android Software Development] Notorious:
Make sure you edit init.rc in your boot.img for shelld (can't remember exact line off top of my head) also add in shell libs to system/lib and shelld file to xbin from the miui rom
[Android Software Development] lozohcum:
I added shell libs and shelld to xbin but I can't recompile boot.img because of error :

Android Magic not found in boot.img. Giving up.
[Android Software Development] dejanxxxx:
I am very confuse, after when ported ROM, did must flashing- I know that not boot because my phone is ARM6, and ROM which I por is ARM7. And so confuse me what I do, really I flashin ROM, bu after restrt from CWM,again boot in CWM.

Please help me, I have everything what need, but dont understand what must do when finish port.
[Android Software Development] lozohcum:
And what if adb doesn't work in rom? In my case, adb bridge never works so I can't look into logcat
[Android Software Development] sk8erboy:
I meet this problem too. how did u solve it? plz help.
[Android Software Development] fedevd:
If you're using CM as base, ask the CM dev if he can add this to "init.rc":

service shelld /system/xbin/shelld
class main
[Android Software Development] lozohcum:
I send pm to FreeXperiaProject

hope they will answer
[Android Software Development] fedevd:
Send me the kernel
[Android Software Development] blackwing182:
well they will never add that to a cm repo :P
[Android Software Development] fedevd:
Not to repo, just unpack kernel, add that to "init.rc" and repack the kernel
[Android Software Development] lozohcum:
I can't do this, every tool I try to use gives me an error while unpacking :/
[Android Software Development] fedevd:
Send me the kernel and I'll take a look..

Sent from Tapatalk 4 Beta
[Android Software Development] dejanxxxx:
problem with call

I have problem with phone call. I hear everything, but on the other side can not hear caller. How fix this, only this is my problem.Oh excellent porting, but only this problem
[Android Software Development] Notorious:
Disassemble Phone.apk and navigate to res/values/bools.xml to change:

<bool name="send_mic_mute_to_AudioManager">[COLOR="Orange"]false[/COLOR]</bool>

->

<bool name="send_mic_mute_to_AudioManager">[COLOR="orange"]true[/COLOR]</bool>
[Android Software Development] dejanxxxx:
I work this in porting miui and is like in code <bool name="skip_restoring_network_selection">true</bool> ,

When want do adb log.txt I get this

.

Did is this line in permissions
[Android Software Development] dejanxxxx:
Permissions on Phone .apk is ok , did must change smali.res in framework, I copy whole folder framework to base rom from port rom. I read Lens_flare tutorial for porting . Only this is my problem.

Here logs
[Android Software Development] dejanxxxx:
Confuse me , which smali must compare. Here is blue color-did must compare this files with blue color?, or must compare with green color.

I found in smali/com some files which have in base rom, and dont have in port rom, did should these files from base rom , put in port rom.
[Android Software Development] sorullo_xgrx:
Green means is smali missing on miui framework, you don't have to copy it to miui if you don't have to. Blue is what you need to diff

Look cm10.1 on my T2
[Android Software Development] dejanxxxx:
This mean that everything files whom find in smali which is blue, must diff?
[Android Software Development] fedevd:
Can anyone help me with this?:

E/BandwidthController(13543): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256

E/BandwidthController(13543): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256

I/ServiceManager( 1714): service 'media.audio_flinger' died

I/ServiceManager( 1714): service 'media.player' died

I/ServiceManager( 1714): service 'media.camera' died

I/ServiceManager( 1714): service 'media.audio_policy' died

I/Netd (13638): Netd 1.0 starting

D/AndroidRuntime(13639):

D/AndroidRuntime(13639): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/AndroidRuntime(13639): CheckJNI is OFF

D/dalvikvm(13639): Unable to stat classpath element '/system/framework/framework2.jar'

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

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

I/mediaserver(13640): ServiceManager: 0x4195dce0

I/AudioFlinger(13640): Using default 3000 mSec as standby time.

D/dalvikvm(13639): Trying to load lib libnativehelper.so 0x0

D/dalvikvm(13639): Added shared lib libnativehelper.so 0x0

I/CameraService(13640): CameraService started (pid=13640)

[SIZE="6"][B]F/libc (13639): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1), thread 13639 (zygote)[/B][/SIZE]

I/AudioPolicyManagerBase(13640): ### stringToEnum() found AUDIO_DEVICE_OUT_EARPIECE

I/AudioPolicyManagerBase(13640): ### stringToEnum() found AUDIO_DEVICE_OUT_SPEAKER
[Android Software Development] MezManiac:
sorry for the noob question, but when diffing smali, when there is a line that needs to be added or modified, do u need to change the line number? when are the cases when the line number has to be changed?

can someone give me an example?
[Android Software Development] sorullo_xgrx:
You don't have to change the line # if its on red just leave it as it is it won't change anything

---------- Post added at 11:46 PM ---------- Previous post was at 11:43 PM ----------

I don't see anything really full logcat could help. :thumbup:
[Android Software Development] ZduneX25:
How about miui not booting at all? I tried to port it based on aosp 4.1.2 for i9300, result phone turns off itself after this logo:

Well rom not boot, so I cannot get logcat, when I plug it to pc it starts to charge battery (you know the battery animation when phone is off)..
[Android Software Development] hnkumar:
Looks like problem with dalvik-cache rights problem. System cannot able to dex files in cache. Until or unless it won't dexed your applications will give FC. Look at righs to solve it.
[Android Software Development] lozohcum:
okay but how to fix it?

Should I replace xbin folder? (use MIUI's xbin)
[Android Software Development] sorullo_xgrx:
Congrats on porting miui V5 I keep trying but I'm stuck at some error I just can't figure out com/android/content/configuration or something like don't remember. If anyone did encounter this error please help well back to your question.

Did you move miui-framework from etc > permisions to your base folder

Try that and let us know
[Android Software Development] lozohcum:
There is no permission file like miui-framework in MIUI5 I am porting so I don't have it in already ported rom too. I'll try to find it somewhere
[Android Software Development] sorullo_xgrx:
Maybe inside the kernel or what if you use one from an miui V4 ROM

---------- Post added at 01:03 PM ---------- Previous post was at 12:56 PM ----------

Here is one from v4 ROM

http://db.tt/eb4AgwSo
[Android Software Development] lozohcum:
May I take this file from older build for Crespo? (3.2.22)

I am porting the newest build of MIUI - 3.6.7
[Android Software Development] sorullo_xgrx:
Yeah try with that one. The link I provided contains one I extracted from the nexus 7 3.2.22 ROM.
[Android Software Development] lozohcum:
Those permission files refer to miui-framework.jar but I have no such a file even in rom I am porting.

Should I add this file from old miui5 build?

And it's interesing how other people run MIUI5 on their's devices without miui-framework.jar

any ideas how to solve it?

I added miui-framework to etc/permissions, it doesn't help

Same with miui-framework.jar, I added it but still multi FC
[Android Software Development] ktempleton:
I was told that the fc problem can be fixed with an init d script that allows the cache be made writable hold on I'll get you the script

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

[ROM]MIUI.us Weekly Release-MIUIv4.1 for E4GT[3.2.22]w/ Toolbox and WiMAX!
[Android Software Development] Tim_Pan:
hi,all!

i am porting the GN's miui v5 (based on 4.2), but i can't make my lgp880 boot nomally.

i can't find the problem from the logcat.:confused:

i hope someone can help me.thanks advanced.:)
[Android Software Development] Rempty:
[MENTION=3141383]ZduneX25[/MENTION]

Possible reasons:

Init.d script incompatible.

Some incorrect bins.

Kernel problems.
[Android Software Development] ZduneX25:
I think that base was too old, when I rebased it from aosp to cm 10 it started to boot.

__________

Sent from awesome Galaxy S3
[Android Software Development] ThEuNdYiNg1:
any fix for graphical glitches, i have moved the gles* files, paint.smali, hardwarecanvas.smali but still same issue

EDIT:nvm i fixed it. it was a build.prop issue. i had to add hwui.render_dirty_regions=false

hwui.disable_vsync=true to the build.prop.

my only issue now is touch sensitive lights. they turn on only when i mess with the screen brightness.
[Android Software Development] fedevd:
Eeeehmmm.. help?

LOG
[Android Software Development] carloswii5:
Can Anyone Help me out?

when i try flashing i get this error

set_perm: in (directory/file)

(Status 7)

Installation Aborted
[Android Software Development] Notorious:
This is the issue

18:32:05.470 Warning InterfaceController 3596 Warning (Cannot load library: load_library(linker.cpp:771): library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library

Add that lib from the MIUI ROM into your base rom

---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------

You messed up in the updater script make. Are you porting v4 or v5? those lines regarding invoke-as and Su and the symlink are not needed unless you have root issues. So stick to the ROMs original updater script
[Android Software Development] Alex93917:
There is no "libnetcmdiface.so" in MIUI Rom ='(
[Android Software Development] Notorious:
You positive? What phone are you porting miui from?
[Android Software Development] Alex93917:
Galaxy Nexus.
[Android Software Development] Notorious:
You are using a 4.2.2 aosp base right?
[Android Software Development] Alex93917:
Yes, CM10.1.
[Android Software Development] Notorious:
I'm looking through the log more closely and its looking for some .txt files that are not in sound image directory and it can't find a module either
[Android Software Development] lozohcum:
W/PackageManager( 473): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
W/PackageManager( 473): Unknown permission com.android.launcher.permission.PRELOAD_WORKSPACE in package com.google.android.partnersetup
W/PackageManager( 473): Unknown permission android.permission.WRITE_INTERNAL_STORAGE in package com.miui.player
W/PackageManager( 473): Unknown permission com.android.vending.billing.IBillingAccountService.BIND2 in package com.google.android.gsf.login
W/PackageManager( 473): Unknown permission com.android.chrome.TOS_ACKED in package com.google.android.gsf.login
W/PackageManager( 473): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9be45)
W/PackageManager( 473): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.google.android.talk
W/PackageManager( 473): Unknown permission android.permission.ACCESS_COARSE_UPDATES in package com.miui.cloudservice
D/dalvikvm( 473): GC_CONCURRENT freed 3220K, 60% free 3695K/9155K, paused 4ms+7ms, total 126ms
D/dalvikvm( 473): WAIT_FOR_CONCURRENT_GC blocked 34ms
W/PackageManager( 473): Unknown permission com.sonyericsson.permission.CUSTOMIZATION in package com.sonyericsson.textinput.uxp
W/PackageManager( 473): Not granting permission android.permission.INTERNAL_SYSTEM_WINDOW to package com.sonyericsson.textinput.uxp (protectionLevel=2 flags=0x9bc45)
W/PackageManager( 473): Unknown permission android.permission.READ_OWNER_DATA in package com.google.android.setupwizard
W/PackageManager( 473): Unknown permission android.permission.WRITE_OWNER_DATA in package com.google.android.setupwizard
W/PackageManager( 473): Unknown permission com.google.android.voicesearch.SHORTCUTS_ACCESS in package com.google.android.googlequicksearchbox
W/PackageManager( 473): Unknown permission com.google.googlenav.friend.permission.OPT_IN in package com.google.android.googlequicksearchbox
W/PackageManager( 473): Unknown permission com.google.android.apps.maps.permission.PREFETCH in package com.google.android.googlequicksearchbox
W/PackageManager( 473): Unknown permission com.google.android.apps.googlevoice.permission.AUTO_SEND in package com.google.android.googlequicksearchbox
W/PackageManager( 473): Unknown permission com.google.android.gm.permission.AUTO_SEND in package com.google.android.googlequicksearchbox
W/PackageManager( 473): Unknown permission android.permission.MANAGE_USERS in package com.android.vending
W/PackageManager( 473): Unknown permission android.permission.INTERACT_ACROSS_USERS in package com.android.vending
W/PackageManager( 473): Unknown permission adnroid.permission.CHANGE_WIFI_STATE in package com.tencent.tmsprovider
W/PackageManager( 473): Unknown permission android.permission.READ_SECURE_SETTINGS in package com.wali.miui.networkassistant
W/PackageManager( 473): Unknown permission android.permission.READ_SETTINGS in package com.wali.miui.networkassistant

I think this gives me FC of Phone, Xiaomi services, Permission manager and more. Does anyone know how to fix this multi Force Close?
[Android Software Development] Notorious:
Full log please
[Android Software Development] Tim_Pan:
hi,

last time, i ported from binaries but the phone could not boot.

so,i backported cm10 for lgp880. (it seems easier..:p internal sdcard can't be mounted yet.)

now i am porting miui with patchrom and logcat has errors now. it's a good start...

E/Zygote ( 155): Error preloading android.database.CursorWindow.
E/Zygote ( 155): java.lang.ExceptionInInitializerError
E/Zygote ( 155):	at java.lang.Class.classForName(Native Method)
E/Zygote ( 155):	at java.lang.Class.forName(Class.java:217)
E/Zygote ( 155):	at java.lang.Class.forName(Class.java:172)
E/Zygote ( 155):	at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:288)
E/Zygote ( 155):	at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:235)
E/Zygote ( 155):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:527)
E/Zygote ( 155):	at dalvik.system.NativeStart.main(Native Method)
E/Zygote ( 155): Caused by: java.lang.ExceptionInInitializerError
E/Zygote ( 155):	at android.content.res.Resources.getSystem(Resources.java)
E/Zygote ( 155):	at android.database.CursorWindow.<clinit>(CursorWindow.java:47)
E/Zygote ( 155):	... 7 more
E/Zygote ( 155): Caused by: java.lang.NoClassDefFoundError: miui.content.res.ExtraConfiguration
E/Zygote ( 155):	at android.content.res.Configuration.<init>(Configuration.java)
E/Zygote ( 155):	at android.content.res.MiuiResources.<clinit>(MiuiResources.java:45)
E/Zygote ( 155):	... 9 more
D/AndroidRuntime( 155): Shutting down VM
[Android Software Development] Alex93917:
I've a white screen after kernel animation, no reaction ...
[Android Software Development] _polimorph_:
Just rename framework_ext.jar to framework2.jar. There's also no need to modify init.rc.
[Android Software Development] fedevd:
Already did that and still not working.. In fact I am trying to port your MIUI v5 and boots but lot of bugs and errors of installd commands, java, unable to load "x" smali.. Can we talk on Hangouts or Gtalk?

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
[Android Software Development] Notorious:
In v5 4.2 There is Framework_ext.jar and it is not in 4.2 aosp roms. So it is never registered as being there. You have to change the boot class and add it in or it won't boot
[Android Software Development] Alex93917:
Hi !

I port MIUI to the Galaxy S Plus I9001, everything is working great, except 1 thing ... Network is working except 2G/3G (There is no APN). To resolve this issue, I have to enable and disable the Airplane Mode. After do it, it's properly working ...

Can you help me ? =)
[Android Software Development] _polimorph_:
Does anyone care to share how to do that properly?
[Android Software Development] Notorious:
[MENTION=3212538]blackwing182[/MENTION] should he did it for us on the US Gs3
[Android Software Development] fedevd:
In CM kernel source you need to add into BOOTCLASSPATH value "/system/framework_ext.jar" and compile it.. You can unpack, mod and repack the kernel but is better if you do on source and compile from... I already sent you a couple PM's, tried to be in contact with you and no answer, I already tried to port using CM10.1 as base and never boot.. In fact, Lens Flare told me that will never boot 'cus CM10.1 is not for MIUI, AOSP is the best choice.. Anyway, i'm out of MIUI now..

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
[Android Software Development] Notorious:
I got it booting perfectly fine on cm10.1 base
[Android Software Development] fedevd:
That's great!! I already added framework_ext.jar into kernel but lools like it was not executed the jar file... Can we talk over Hangouts later?

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
[Android Software Development] 2nd Sky:
Hi, I tried to Port a MIUIv5 from Nexus4 to the "sister device" - LG Optimus G (E975) but it isn´t booting (i tried it a lot of time, over 30 zip´s on my PC and aöljgköidsöjafdlgjsfgljk it istnt booting :(

i think, its not so easy!? must i do a kernel modification? what do i wrong?

im so sad, there´s no MIUI for my lg optimus G (e975 - international version!)

can someone help me??
[Android Software Development] mr.nou:
I tried port miui v5 from zte u930 and u970 as base to my phone (zte v970)

But it's stuck on miui bootlogo

I tried use removed bootloop but theres nothing

You anyone can join me to make it possible?

You Don't Say
[Android Software Development] fedevd:
Debugg people, debugg.. Logs will show you why is bootlooping..

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
[Android Software Development] mr.nou:
How to get logcat when bootloop

You Don't Say
[Android Software Development] fedevd:
Should be enable even if bootloop, if not, you screwed something about adb service

Enviado desde mi GT-I9070 usando Tapatalk 4 Beta
[Android Software Development] sorullo_xgrx:
+1 this logcat is your friend
[Android Software Development] 2nd Sky:
who can i activate logcat (build.prop?)

i was in a bootloop but my pc can´t find my phone :/