[LG Optimus L9 P760, P765, P768, P769] artit:
HOW TO (Update : 2013/11/27)

Flash over last version

You can flash new version over old version

Put rom & gapps for MIUI in sdcard

Boot to recovery

Wipe cache & dalvik cache

Flash rom & gapps

Reboot

Flash this ROM over CM10.1

Didn't try it yet

Enable OC, change I/O scheduler and chnage CPU governor

You need to enable enable root permission first. Do it by open Permissions, MIUI logo on green background in System folder (Don't use Permission Manager on Desktop).

Select "Manage ROOT permission" > "Enable permission manager"

Install some CPU control app from market. I use "No frill CPU control". You can set frequency, I/O scheduler and CPU governor.

Read more about CPU governor at http://xdaforums.com/showthread.php?t=1792369 and http://translate.google.com/transla...013/01/governor-scheduler-tcp-bejegyzest.html

Read more about I/O scheduler at https://www.vincentkong.com/wiki/android/android-io-schedulers/

Please test all changes before select "Set on Boot" because if something go wrong you can reboot your phone to revert it.

If you select "Set on Boot" you must allow CPU control application to Auto Start in MIUI Auto-Start app. If not it'll not work.

Cannot connect to wireless access point

This problem mostly occur when you got some error at first boot. The problem is error interrupt startup service to write proper MAC address data to file. Your wifi mac address will be 00:00:00:00:00:00

If you got this problem during normal use please reboot your phone once or twice to solve it.

If above solution doesn't work try

Use file manager or adb to delete /data/misc/wifi folder from your phone

Reboot (disconnect usb cable to make sure there're no error at startup)

Safely switch between MTP/UMS in this ROM

You can run mtp.sh or ums.sh using script manager widget (install from play store) or terminal to switch between MTP and UMS.

Some usb dialog don't changed according to the mode you just switch to, please reboot your phone to make a proper change.

In UMS mode, don't try to click enable Mass Storage button because it'll unmount sdcard.

In UMS mode, don't set usb connection to "Mount sdcard" because it'll unmount sdcard upon connected.

Please set usb connection mode to "Charge only"

How to remove unused MIUI Chinese app

You can remove following apps

SuperMarket, MIUI chinese market. You can use root file explorer to remove /system/app/supermarket.apk

Some pre-install chinese apps setup files in /data/preinstall_apps. Just delete preinstall_apps folder.

Some pre-install chinese apps, delete AlipayMsp.apk, MiShop.apk and Userbook.apk from /data/app/

How to port MIUI v5 to using other CM rom as based

This is how I port my MIUI v5 to P769

Find CM 10.1.3 based rom that work on your phone (I used AntonX CM 10.1.3 rom)

Download MIUI v5 (may work with others MIUI that use CM 10.1.3 as based)

Copy following files from MIUI rom to based rom

/etc/
license/
permission_config.json
pinyinindex.ldf
telocation.ldf
weather_city.db
yellowpage.db

/fonts/
Miui-Bold.ttf
Miui-Regular.ttf
TobysHand.ttf

/framework/
android.policy.jar
framework-miui-res.apk
framework-res.apk
framework.jar
framework_ext.jar
services.jar
telephony-common.jar

/lib/
content-types.properties
libFreqFilter.so
libMiuiGalleryJNI.so
libaudiofp.so
libffmpeg_xm.so
libffplayer_jni.so
libimageprocessor_jni.so
libimageutilities_jni.so
libjni_resource_drm.so
libjni_resource_patcher.so
libkeygen_jni.so
liblbesec.so
liblocSDK_2_5OEM.so
libmp3lame.so
libpatcher_jni.so
libphotocli.so
libshell.so
libshell_jni.so
libshellservice.so

/media/
audio/ (missing files only or just copy all files)
lockscreen/
theme/
wallpaper/
bootanimation.zip

/xbin/
shelld
su

/etc/vold.conf

Extract based rom boot.img and add following lines at the end of init.rc file

service shelld /system/xbin/shelld
class main

Add additional jar to BOOTCLASSPATH, after framework.jar as below

export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:[COLOR="Red"]/system/framework/framework_ext.jar:[/COLOR]/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar

You may need to edit sdcard mount point in following files to match internal/external sdcard setting.

/etc/vold.conf

/init.lgep{MODEL}board.rc

/res/xml/storage_list.xml in framework-res.apk (decompiled)

Below is what I used in my rom

/etc/vold.conf

dev_mount sdcard /storage/sdcard0 auto /devices/platform/omap/omap_hsmmc.0/mmc_host

/init.lgep{MODEL}board.rc

...
on init
# See storage config details at http://source.android.com/tech/storage/

mkdir /storage/sdcard0 0666 system system
mkdir /storage/sdcard1 0555 shell shell

export EXTERNAL_STORAGE /storage/sdcard0

# Support legacy paths
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
...
# create virtual SD card at /mnt/sdcard, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)
# FUSE daemon
service sdcard /system/bin/sdcard /data/media /storage/sdcard1 1023 1023
class main

/res/xml/storage_list.xml in framework-res.apk (decompiled)

<?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" />
<storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_internal" android:emulated="true" android:mtpReserve="100" />
</StorageList>