• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] How to port MIUI v4 to your Device

Search This thread

sendhiloo7

Senior Member
Sep 28, 2008
1,294
387
Chennai
OnePlus 9 Pro
Similar model phone.

Hi Guys,

I Need one help.. I have Micromax A116 & i foung Ginoee Dream 1 also same same chipset & all spec similar . Only different is size 5" & 4.65.

i have attached two build.prop files... can you please check shall i flash the rom from ginoee without porthing..
 

Attachments

  • Build.zip
    3.4 KB · Views: 3

acocalypso

Senior Member
Feb 7, 2011
481
251
Thanks to you guys i could solve most of my problems but maybe you could help me out by this one.

Code:
07-09 00:10:20.231: E/AndroidRuntime(7243): java.lang.ExceptionInInitializerError
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at com.android.thememanager.util.ThemeHelper.createRuntimeFolder(ThemeHelper.java:112)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at com.android.thememanager.ThemeApplication.onCreate(ThemeApplication.java:39)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4171)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.app.ActivityThread.access$1300(ActivityThread.java:133)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.os.Looper.loop(Looper.java:137)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at android.app.ActivityThread.main(ActivityThread.java:4765)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at dalvik.system.NativeStart.main(Native Method)
07-09 00:10:20.231: E/AndroidRuntime(7243): Caused by: java.lang.UnsatisfiedLinkError: Library shell_jni not found; tried [/vendor/lib/libshell_jni.so, /system/lib/libshell_jni.so]
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at java.lang.Runtime.loadLibrary(Runtime.java:393)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at java.lang.System.loadLibrary(System.java:535)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	at miui.os.Shell.<clinit>(Shell.java:6)
07-09 00:10:20.231: E/AndroidRuntime(7243): 	... 14 more

07-09 00:10:25.191: E/SQLiteLog(7297): (1) table analytics already exists
07-09 00:10:25.191: E/ANALYTICS.SQLITESTORE(7297): database:analytics_4.db is not writable!
07-09 00:10:26.101: E/AndroidRuntime(7277): FATAL EXCEPTION: main
07-09 00:10:26.101: E/AndroidRuntime(7277): java.lang.ExceptionInInitializerError
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.gadget.an.a(Utils.java:73)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.gadget.o.b(ConfigableGadget.java:283)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.gadget.P.dO(ClockGadgetDelegate.java:187)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.gadget.P.onCreate(ClockGadgetDelegate.java:82)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.Launcher.b(Launcher.java:2100)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.s.run(LauncherModel.java:1494)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.miui.home.launcher.Q.handleMessage(DeferredHandler.java:47)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at android.os.Looper.loop(Looper.java:137)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at android.app.ActivityThread.main(ActivityThread.java:4765)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at dalvik.system.NativeStart.main(Native Method)
07-09 00:10:26.101: E/AndroidRuntime(7277): Caused by: java.lang.UnsatisfiedLinkError: Library shell_jni not found; tried [/vendor/lib/libshell_jni.so, /system/lib/libshell_jni.so]
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at java.lang.Runtime.loadLibrary(Runtime.java:393)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at java.lang.System.loadLibrary(System.java:535)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	at miui.os.Shell.<clinit>(Shell.java:6)
07-09 00:10:26.101: E/AndroidRuntime(7277): 	... 15 more

MIUI boots fine so far, after the SetupWizard MIUIHome.apk fcs and theme also.

Would be really great if you could give me some tipps
 

Notorious

Senior Member
Aug 23, 2011
8,183
5,167
Sydney
Google Pixel 3 XL
Thanks to you guys i could solve most of my problems but maybe you could help me out by this one.


MIUI boots fine so far, after the SetupWizard MIUIHome.apk fcs and theme also.

Would be really great if you could give me some tipps

Your missing shell libs. Open the MIUI ROM youre porting from and go to system/lib/ and take the all the libshell lib files and add them to your rom

Sent from my SPH-L710 using xda app-developers app
 

acocalypso

Senior Member
Feb 7, 2011
481
251
Your missing shell libs. Open the MIUI ROM youre porting from and go to system/lib/ and take the all the libshell lib files and add them to your rom

Sent from my SPH-L710 using xda app-developers app

thanks for this, after copying the libs to my rom miui home wont start either

Full logcat:

Code:
07-09 19:51:14.310: E/NotificationService(3527): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
07-09 19:51:15.410: E/ResourceManager(3527): fail to load image: lock_screen_bar_time.png
07-09 19:51:15.520: E/ResourceManager(3527): fail to load image: volumn.png

07-09 19:51:17.190: E/MiuiCallNotifier(3722): Could not initialize TextToSpeech.

07-09 19:51:25.122: E/VoldConnector(3527): NDC Command {3 volume mount /storage/sdcard1} took too long (3553ms)
07-09 19:51:25.752: E/Trace(4237): error opening trace file: No such file or directory (2)
07-09 19:51:25.812: E/DefaultVoicemailNotifier(4212): No voicemails to notify about: clear the notification.
07-09 19:51:37.532: E/ShellServiceJni(3770): Can't obtain ShellService
07-09 19:52:38.992: E/Trace(4947): error opening trace file: No such file or directory (2)
07-09 19:52:39.972: E/ActivityManager(3527): ANR in com.android.thememanager
07-09 19:52:39.972: E/ActivityManager(3527): Reason: Broadcast of Intent { act=android.intent.action.COLLECT_ANALYTICS_DATA flg=0x10 cmp=com.android.thememanager/.util.ThemeAnalyticsReceiver }
07-09 19:52:39.972: E/ActivityManager(3527): Load: 4.21 / 2.03 / 0.77
07-09 19:52:39.972: E/ActivityManager(3527): CPU usage from 57204ms to 0ms ago:
07-09 19:52:39.972: E/ActivityManager(3527):   2.6% 3618/com.android.systemui: 1.4% user + 1.2% kernel / faults: 177 minor
07-09 19:52:39.972: E/ActivityManager(3527):   1.8% 2379/surfaceflinger: 0.6% user + 1.2% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 1393/kworker/0:2: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1% 4050/usbtestpm_mx_iddq: 0% user + 1% kernel / faults: 1099 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0.7% 3527/system_server: 0.3% user + 0.4% kernel / faults: 348 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0.4% 2387/adbd: 0% user + 0.4% kernel / faults: 176 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3511/logcat: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 12/kworker/u:1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1460/kworker/u:2: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1209/kworker/1:1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1368/card_read_monit: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1426/kthread_hdmi: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1507/file-storage: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2373/servicemanager: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3453/flush-ubifs_1_0: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3725/dhd_dpc: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3811/wpa_supplicant: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 4432/com.miui.notes: 0% user + 0% kernel / faults: 98 minor 1 major
07-09 19:52:39.972: E/ActivityManager(3527):   0% 4654/com.android.thememanager: 0% user + 0% kernel / faults: 24 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1309/aml_nftld: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2369/ubifs_bgt1_0: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2370/yaffs-bg-1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3770/com.miui.home: 0% user + 0% kernel / faults: 1 minor
07-09 19:52:39.972: E/ActivityManager(3527): 3% TOTAL: 0.6% user + 2.4% kernel
07-09 19:52:39.972: E/ActivityManager(3527): CPU usage from 1297ms to 1823ms later:
07-09 19:52:39.972: E/ActivityManager(3527):   69% 3665/android.process.media: 9.6% user + 59% kernel / faults: 362 minor 8 major
07-09 19:52:39.972: E/ActivityManager(3527):     67% 4965/MediaScannerSer: 7.6% user + 59% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   14% 1310/avnftl8: 0% user + 14% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   7.6% 3527/system_server: 5.7% user + 1.9% kernel / faults: 18 minor
07-09 19:52:39.972: E/ActivityManager(3527):     3.8% 3545/ActivityManager: 3.8% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 1209/kworker/1:1: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 2379/surfaceflinger: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.9% 3833/com.android.settings: 0% user + 1.9% kernel / faults: 3 minor
07-09 19:52:39.972: E/ActivityManager(3527): 66% TOTAL: 8.4% user + 47% kernel + 10% iowait
07-09 19:52:40.582: E/Trace(4987): error opening trace file: No such file or directory (2)
07-09 19:52:43.572: E/ShellServiceJni(3770): Can't obtain ShellService


its working when i start the shell via adb. isnt there any other option then init.d?
 
Last edited:

shubhamchamaria

Senior Member
Jan 28, 2011
2,792
2,243
Mumbai
thanks for this, after copying the libs to my rom miui home wont start either

Full logcat:

Code:
07-09 19:51:14.310: E/NotificationService(3527): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
07-09 19:51:15.410: E/ResourceManager(3527): fail to load image: lock_screen_bar_time.png
07-09 19:51:15.520: E/ResourceManager(3527): fail to load image: volumn.png

07-09 19:51:17.190: E/MiuiCallNotifier(3722): Could not initialize TextToSpeech.

07-09 19:51:25.122: E/VoldConnector(3527): NDC Command {3 volume mount /storage/sdcard1} took too long (3553ms)
07-09 19:51:25.752: E/Trace(4237): error opening trace file: No such file or directory (2)
07-09 19:51:25.812: E/DefaultVoicemailNotifier(4212): No voicemails to notify about: clear the notification.
07-09 19:51:37.532: E/ShellServiceJni(3770): Can't obtain ShellService
07-09 19:52:38.992: E/Trace(4947): error opening trace file: No such file or directory (2)
07-09 19:52:39.972: E/ActivityManager(3527): ANR in com.android.thememanager
07-09 19:52:39.972: E/ActivityManager(3527): Reason: Broadcast of Intent { act=android.intent.action.COLLECT_ANALYTICS_DATA flg=0x10 cmp=com.android.thememanager/.util.ThemeAnalyticsReceiver }
07-09 19:52:39.972: E/ActivityManager(3527): Load: 4.21 / 2.03 / 0.77
07-09 19:52:39.972: E/ActivityManager(3527): CPU usage from 57204ms to 0ms ago:
07-09 19:52:39.972: E/ActivityManager(3527):   2.6% 3618/com.android.systemui: 1.4% user + 1.2% kernel / faults: 177 minor
07-09 19:52:39.972: E/ActivityManager(3527):   1.8% 2379/surfaceflinger: 0.6% user + 1.2% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 1393/kworker/0:2: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1% 4050/usbtestpm_mx_iddq: 0% user + 1% kernel / faults: 1099 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0.7% 3527/system_server: 0.3% user + 0.4% kernel / faults: 348 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0.4% 2387/adbd: 0% user + 0.4% kernel / faults: 176 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3511/logcat: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 12/kworker/u:1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1460/kworker/u:2: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1209/kworker/1:1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1368/card_read_monit: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1426/kthread_hdmi: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1507/file-storage: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2373/servicemanager: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3453/flush-ubifs_1_0: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3725/dhd_dpc: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3811/wpa_supplicant: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 4432/com.miui.notes: 0% user + 0% kernel / faults: 98 minor 1 major
07-09 19:52:39.972: E/ActivityManager(3527):   0% 4654/com.android.thememanager: 0% user + 0% kernel / faults: 24 minor
07-09 19:52:39.972: E/ActivityManager(3527):   0% 1309/aml_nftld: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2369/ubifs_bgt1_0: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 2370/yaffs-bg-1: 0% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   0% 3770/com.miui.home: 0% user + 0% kernel / faults: 1 minor
07-09 19:52:39.972: E/ActivityManager(3527): 3% TOTAL: 0.6% user + 2.4% kernel
07-09 19:52:39.972: E/ActivityManager(3527): CPU usage from 1297ms to 1823ms later:
07-09 19:52:39.972: E/ActivityManager(3527):   69% 3665/android.process.media: 9.6% user + 59% kernel / faults: 362 minor 8 major
07-09 19:52:39.972: E/ActivityManager(3527):     67% 4965/MediaScannerSer: 7.6% user + 59% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   14% 1310/avnftl8: 0% user + 14% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   7.6% 3527/system_server: 5.7% user + 1.9% kernel / faults: 18 minor
07-09 19:52:39.972: E/ActivityManager(3527):     3.8% 3545/ActivityManager: 3.8% user + 0% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 1209/kworker/1:1: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.1% 2379/surfaceflinger: 0% user + 1.1% kernel
07-09 19:52:39.972: E/ActivityManager(3527):   1.9% 3833/com.android.settings: 0% user + 1.9% kernel / faults: 3 minor
07-09 19:52:39.972: E/ActivityManager(3527): 66% TOTAL: 8.4% user + 47% kernel + 10% iowait
07-09 19:52:40.582: E/Trace(4987): error opening trace file: No such file or directory (2)
07-09 19:52:43.572: E/ShellServiceJni(3770): Can't obtain ShellService


its working when i start the shell via adb. isnt there any other option then init.d?

Miui_frameworks.xml from /system/etc/

Sent from my Nexus 4 using xda app-developers app
 

acocalypso

Senior Member
Feb 7, 2011
481
251
Miui_frameworks.xml from /system/etc/

thanks for the replay but i have already copied miui_framework.xml.

im using init.d script for now. i figured out a lot of isnt working. like browser.

Code:
07-17 12:11:19.899: E/AndroidRuntime(5257): FATAL EXCEPTION: main
07-17 12:11:19.899: E/AndroidRuntime(5257): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.browser/com.android.browser.BrowserActivity}: java.lang.ClassCastException: com.android.browser.ea cannot be cast to com.android.browser.cP
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2077)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2102)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread.access$600(ActivityThread.java:133)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1198)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.os.Handler.dispatchMessage(Handler.java:99)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.os.Looper.loop(Looper.java:137)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread.main(ActivityThread.java:4765)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at dalvik.system.NativeStart.main(Native Method)
07-17 12:11:19.899: E/AndroidRuntime(5257): Caused by: java.lang.ClassCastException: com.android.browser.ea cannot be cast to com.android.browser.cP
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.MiuiNavigationBarPhone.a(MiuiNavigationBarPhone.java:173)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.eB.e(TitleBar.java:87)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.eB.<init>(TitleBar.java:78)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.at.<init>(BaseUi.java:150)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.ea.<init>(XLargeUi.java:60)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.BrowserActivity.ah(BrowserActivity.java:107)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at com.android.browser.BrowserActivity.onCreate(BrowserActivity.java:88)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.Activity.performCreate(Activity.java:5024)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-17 12:11:19.899: E/AndroidRuntime(5257): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
 
Last edited:

Slimegod

Senior Member
Mar 12, 2011
2,300
99
Anyone face a download link for v4 do I can try to port?

Sent from my SPH-L710 using xda premium

---------- Post added at 05:19 PM ---------- Previous post was at 04:48 PM ----------

Also I'm trying to port MIUIv3.7.5 from at&t to sprint. It's different variant carriers do I need to do anything cause of that. I read on a different thread I had to but couldn't find the global.jar file I needed to change in between the ROMs.

Sent from my SPH-L710 using xda premium
 

Romiui

Senior Member
Mar 4, 2012
1,066
673
34
Doha
After doing every thing as well i got error installing =(

xxxx.zip(bad)

what the problem ?

Can Any one help please ?
 

MasterAwesome

Recognized Developer
Jun 23, 2013
2,019
3,985
OnePlus 6
There is this device called micromax a210 which is the same specifications of micromax a116 which has an unofficial miui rom...since everything is same other than the camera, what are the files i would have to replace...please explain in detail...
 

vita94

Member
Apr 19, 2011
39
4
Niš
I tried porting MIUI from a similar device (LG GT540) to my GP Keon. I got the following error:
Code:
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
E/AKMD2   (  124): restore calibration data failed.
E/DirectVolume(  107): Dv:partAdd: ignoring part_num = 4 (max: 3)
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/AudioHardwareMSM76XXA(  120): failed to open AUTO_VOLUME_CONTROL /system/etc/AutoVolumeControl.txt
: No such file or directory (2)
E/QualcommCamera(  120): Qint android::get_number_of_cameras(): E
E/        (  120): Error Loading libmpqstobinder
E/        (  120): Error: Cannot load library: load_library[1091]: Library 'libmpqstobinder.so' not
found
E/GestureDeviceService(  120): Could not load gesture HAL module
E/JNIHelp (  118): Native registration unable to find class 'android/util/jTestFramework', aborting
F/libc    (  118): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

I really don't know what should I change I get that there is a problem with 'android/util/jTestFramework'. I need to add it somewhere but I don't know where.

Thanks in advance!
 

vita94

Member
Apr 19, 2011
39
4
Niš
I tried porting MIUI from a similar device (LG GT540) to my GP Keon. I got the following error:
Code:
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
E/AKMD2   (  124): restore calibration data failed.
E/DirectVolume(  107): Dv:partAdd: ignoring part_num = 4 (max: 3)
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/DirectVolume(  107): Invalid 'PARTN' value
E/AudioHardwareMSM76XXA(  120): failed to open AUTO_VOLUME_CONTROL /system/etc/AutoVolumeControl.txt
: No such file or directory (2)
E/QualcommCamera(  120): Qint android::get_number_of_cameras(): E
E/        (  120): Error Loading libmpqstobinder
E/        (  120): Error: Cannot load library: load_library[1091]: Library 'libmpqstobinder.so' not
found
E/GestureDeviceService(  120): Could not load gesture HAL module
E/JNIHelp (  118): Native registration unable to find class 'android/util/jTestFramework', aborting
F/libc    (  118): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

I really don't know what should I change I get that there is a problem with 'android/util/jTestFramework'. I need to add it somewhere but I don't know where.

Thanks in advance!

I managed to fix that error decompiled the framework.jar file of the original rom that works and added the jTestFramework to the new framework.jar that is used in MIUI, some other files showed that were generating fatal error (android/graphics/SurfaceTexture, android/view/GLES20Canvas) and I replaced those with original ones but now I also get
Code:
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
E/AKMD2   (  122): restore calibration data failed.
E/DirectVolume(  109): Dv:partAdd: ignoring part_num = 4 (max: 3)
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/DirectVolume(  109): Invalid 'PARTN' value
E/AudioHardwareMSM76XXA(  118): failed to open AUTO_VOLUME_CONTROL /system/etc/AutoVolumeControl.txt
: No such file or directory (2)
E/QualcommCamera(  118): Qint android::get_number_of_cameras(): E
E/        (  118): Error Loading libmpqstobinder
E/        (  118): Error: Cannot load library: load_library[1091]: Library 'libmpqstobinder.so' not
found
E/GestureDeviceService(  118): Could not load gesture HAL module
F/libc    (  116): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1)

116 matches the errors that I had previously with SurfaceTexture and GLES20Canvas, but they are not showing, also the 0x0000002c is not the same. What is now causing the problem? I'm new to this so sorry if the error is obvious.

Thanks in advance!
 

mstdzw

Senior Member
May 26, 2009
316
53
Is there a way to bootup android port from device witch diffrent screen dpi?

I try to port from Redmi's 1280x720 > lenovo a830 540x960
 

Top Liked Posts

  • There are no posts matching your filters.
  • 472
    Hi guys, last days i got messages about a guide port miui4 to each device.

    that is my method i use on my miui4 ports.

    take a any cm9 or aosp based ics rom as base. with this guide, you can port miui4 from any device to your one. for best compatibility use own brand base to port. if you have desire s then port from htc devices. if galaxy nexus then try port from nexus s ;)

    first of all replace complete folders with miui4 one.
    system/app
    system/framework


    copy libandroid_runtime.so lib from miui 4 (rom you port). without this file rom will not boot. if you get bootloop, try with base libandroid_runtime.so file..

    replace media folder with base rom (that themes, wallpaper, audio from miui work)

    copy telocation.db and yellowpage.db to /system/etc folder.
    copy content-types.properties file to /system/lib

    copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
    set_perm(0, 0, 06755, "/system/xbin/invoke-as");

    (for backup & themes app work)

    copy liblbesec.so from miui 4 to /system/lib and give permission on updater-script

    set_perm(0, 0, 0755, "/system/lib/liblbesec.so");

    (for superuser app from miui work)


    change values from build.prop

    ro.build.id=MIUI
    ro.build.display.id=MIUI
    ro.build.version.incremental=2.x.x (version number)

    ro.config.ringtone=MI.ogg
    ro.config.notification_sound=FadeIn.ogg
    ro.config.alarm_alert=GoodMorning.ogg
    ro.config.sms_received_sound=FadeIn.ogg
    ro.config.sms_delivered_sound=MessageComplete.ogg

    if your base rom has issues, these issues will seen on this port too. example, if camera not works on base rom, then will on miui4 port also not work!

    then add your stuff (updated apps, wallpaper or installer whatever you want :D )

    make your zip and there is it. if you open your thread, dont forget give a link to based ics and port rom's.
    that is method actually i use. for more info please use search on xda or ask on this thread. no private messages will answered from now.

    (if you like this guide, just give 5 star and click to thanks button)
    3
    damnit :[
    Code:
    E/dalvikvm(  100): ERROR: couldn't find native method
    E/dalvikvm(  100): Requested: Landroid/view/GLES20Canvas;.nStartTileRendering:(IIIII)V
    E/JNIHelp (  100): RegisterNatives failed for 'android/view/GLES20Canvas', aborting
    F/libc    (  100): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
    Porting from Nexus S to Liquid Mt (let's say, near the same as desire z)
    guided with OP, but no sucess..
    could somebody help to overcome it?
    android_runtime is from base rom, base rom is CM9 for mine device.

    //sry for posts: 1, actually modaco user :p

    ADD:
    nevermind, got it passed. For those who have the same problem you have to modify framewrok.jar to replace requested smali-s
    for example, for issue above, replace GLES20Canvas*.smali on android/view with those in your base' framework.jar
    3
    For those who are porting MIUI for qualcomm device (like htc desire z/s/HD) from newest CM source(it would affect anybody else) :
    theme engine is now affected. So new miui will hung on boot with unresolved android/content/res/AssetManager.
    Don't replace it! You should instead diff miui and cm smalis and add all missing and only missing methods to miui not deleting anything.
    Then just add PackageRedirectionMap*.smali to android/content/res/ folder, and replace WifiNative.smali on android/net/wifi/ .
    Thx cm team for including theme engine and complicating our lives :D
    3

    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...

    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 ;)
    2
    I can't say anything about ldpi and mdpi devices. Miui is designed for hdpi devices. This guide is for hdpi devices only..

    Some guys got it working on Mdpi devices with resizing but i don't know how's.

    We dont have a ice sandwich Rom on the vivid/hoilday would it be possible to port One this way

    Sent from my HTC PH39100 using XDA App

    I don't think. You need special kernel for that like cm9 .

    Sent from my HTC Desire S using xda premium