• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root (ROM)(Beta)LG-MS770 Deodexed/Debloated/Base Rom

Bard

Android Expert
Intro
I know few others are also working on Stock rom, so I just wanted to create own thread not to interrupt others.


ROM Description
Stock - it uses base kernel
Zipaligned - APK is optimized (that's what they say lol)
Deodexed - no odex file at System/App, easy to modify in the future
Moderately Debloated - many Metro, LG, Google apps removed
Rooted, Recovery - SU, 2nd Init App included
Tested with my phone multiple times, Wifi, 4G, Call, Message, App all work.



Warnings
1. You must installed Version E firmware.
For more information please check this thread. If you have a different version install may interrupt or you may get morning call error.

2. You must know what you are doing.
Although I tested with my phone, any development done on LG Motion is very unstable at this moment.
This may (perma) brick your phone.

3. You must know how to unbrick the phone.
Please refer sammyz's guide here

4. Your phone must be rooted and LTE2's 2nd-init Recovery installed.
I found out hroark13's one click root & recovery tool is the easiest one.
Thread and download link can be found from here.

5. You must have nandroid back up ready on your SD Card.


Install Steps
1. Download l0_signed_020613_114144.zip from here then copy it on the root of external-SD card.
Google Docs - removed temporarily
D-H.st - Dev-Host - l0_signed_020613_114144.zip - The Ultimate Free File Hosting / File Sharing Service

2. Go to CWM by clicking Reboot Recovery @ 2nd-init Recovery app

3. Back up your current rom to your SD card if you haven't done it already.

4. Wipe data/factory reset

5. Wipe cache partition

6. Advanced -> Wipe Dalvik Cache
Becareful NOT to select Reboot Recovery accidentally. It's on the top so it's very easy to click.

7. Mount and Storage -> format /Cache

8. Mount and Storate -> format /Data
Do NOT format /System you will get security related errors.

9. Switch to Current SD Card to External by clicking Home button

10. Install Zip from sdcard

11. Choose l0_signed_020613_114144.zip which you placed on the SD card

12. Wait until installation finishes.
You must have Step1. Deleting System.... to Step12. Finished

13. If you see any error during installation or you don't see Finished message do not reboot.
Restore your phone with premade Nandroid backup.

14. If install was success Select 'Reboot System Now'
You may have to select it multiple times.

15. First reboot will take long.
Metro PCS Logo may stay longer than you expected just wait till it loads.

16. Once it boots, set up your account & test all functions.

ScreenShots

2013.02.06-14.57.22%5B1%5D.jpeg


2013.02.06-14.57.36%5B1%5D.jpeg


2013.02.06-16.30.14%5B1%5D.jpeg


2013.02.06-16.30.32%5B1%5D.jpeg



Update Log
02/07/2013 - File uploaded on d-h.st, (Beta) added on thread title
02/06/2013 - Initial Release


Challenges & To do
1. How should I perform complete install with actually formatting system folder.
2. Size is too big (430MB) need more debloating.
3. Does this actually install kernel from ZIP? Can any expert confirm?
4. Let me know if I am doing something wrong. I am open to suggestion & guide.
5. LG Keyboard not working?



Thanks to
Sammyz - unbrick guide
Cretinoid (Hroark13) - root and recovery program, CM10 updater-script
985hPaKick - 2nd init recovery app
You - brave enought to download and use my humble rom lol


Donation & Thanks
I've done all my testing and developing with my day-to-day phone -_-;;
Little support will defintely get me going for future project and development :)

1. You can come to my homepage and click pay-pal donation link.

2. Or you can click Google Ads on my homepage

3. Or you can just say thanks / hit thank button / give me support on future project.


Thank you & Good Luck
 
Downloading.

Gonna rip apart and check for malware if you don't mind then report on flash results.

Sure please to do so :)

I've done too many brick / unbrick / install / wipe so.. I am eager to listen the result from others :)

GL!
 
Please op change 1st step to backup ROM into external SD
- It's written @ warning section but anyway I added back up step @ installtion section as well

Can you post updater script? Please
- I know it's not the best / better script but here it is :)


show_progress(0.1, 0);
ui_print("");
ui_print("LG-MS770(Motion)");
ui_print("Stock Base ROM");
ui_print("-Zipaligned, Deodexed, Debloated");
ui_print("Contributed by Kyle");
ui_print("(AKA Bard @ Android Forum");
ui_print("");
ui_print("1. Deleting System APP only");
delete_recursive("/system/app");
ui_print("2. Unmounting System & Cache");
unmount("/cache");
unmount("/system");
ui_print("3. Formatting Cache Only");
format("ext4", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/cache");
ui_print("4. Mounting System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("5. Package Extracting to System");
package_extract_dir("system", "/system");
ui_print("6. Tool Box Symlink");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
ui_print("7. Firmware");
symlink("/firmware/image/apps.mbn", "/system/etc/firmware/apps.mbn");
symlink("/firmware/image/dsp1.mbn", "/system/etc/firmware/dsp1.mbn");
symlink("/firmware/image/dsp2.mbn", "/system/etc/firmware/dsp2.mbn");
symlink("/firmware/image/dsp3.mbn", "/system/etc/firmware/dsp3.mbn");
symlink("/firmware/image/dsps.b00", "/system/etc/firmware/dsps.b00");
symlink("/firmware/image/dsps.b01", "/system/etc/firmware/dsps.b01");
symlink("/firmware/image/dsps.b02", "/system/etc/firmware/dsps.b02");
symlink("/firmware/image/dsps.b03", "/system/etc/firmware/dsps.b03");
symlink("/firmware/image/dsps.b04", "/system/etc/firmware/dsps.b04");
symlink("/firmware/image/dsps.b05", "/system/etc/firmware/dsps.b05");
symlink("/firmware/image/dsps.mdt", "/system/etc/firmware/dsps.mdt");
symlink("/firmware/image/modem.b00", "/system/etc/firmware/modem.b00");
symlink("/firmware/image/modem.b01", "/system/etc/firmware/modem.b01");
symlink("/firmware/image/modem.b02", "/system/etc/firmware/modem.b02");
symlink("/firmware/image/modem.b03", "/system/etc/firmware/modem.b03");
symlink("/firmware/image/modem.b04", "/system/etc/firmware/modem.b04");
symlink("/firmware/image/modem.b06", "/system/etc/firmware/modem.b06");
symlink("/firmware/image/modem.b07", "/system/etc/firmware/modem.b07");
symlink("/firmware/image/modem.mdt", "/system/etc/firmware/modem.mdt");
symlink("/firmware/image/modem_f1.b00", "/system/etc/firmware/modem_f1.b00");
symlink("/firmware/image/modem_f1.b01", "/system/etc/firmware/modem_f1.b01");
symlink("/firmware/image/modem_f1.b02", "/system/etc/firmware/modem_f1.b02");
symlink("/firmware/image/modem_f1.b03", "/system/etc/firmware/modem_f1.b03");
symlink("/firmware/image/modem_f1.b04", "/system/etc/firmware/modem_f1.b04");
symlink("/firmware/image/modem_f1.b05", "/system/etc/firmware/modem_f1.b05");
symlink("/firmware/image/modem_f1.b06", "/system/etc/firmware/modem_f1.b06");
symlink("/firmware/image/modem_f1.b07", "/system/etc/firmware/modem_f1.b07");
symlink("/firmware/image/modem_f1.b08", "/system/etc/firmware/modem_f1.b08");
symlink("/firmware/image/modem_f1.b09", "/system/etc/firmware/modem_f1.b09");
symlink("/firmware/image/modem_f1.b10", "/system/etc/firmware/modem_f1.b10");
symlink("/firmware/image/modem_f1.b13", "/system/etc/firmware/modem_f1.b13");
symlink("/firmware/image/modem_f1.b14", "/system/etc/firmware/modem_f1.b14");
symlink("/firmware/image/modem_f1.b21", "/system/etc/firmware/modem_f1.b21");
symlink("/firmware/image/modem_f1.b22", "/system/etc/firmware/modem_f1.b22");
symlink("/firmware/image/modem_f1.b23", "/system/etc/firmware/modem_f1.b23");
symlink("/firmware/image/modem_f1.b25", "/system/etc/firmware/modem_f1.b25");
symlink("/firmware/image/modem_f1.b26", "/system/etc/firmware/modem_f1.b26");
symlink("/firmware/image/modem_f1.b29", "/system/etc/firmware/modem_f1.b29");
symlink("/firmware/image/modem_f1.fli", "/system/etc/firmware/modem_f1.fli");
symlink("/firmware/image/modem_f1.mdt", "/system/etc/firmware/modem_f1.mdt");
symlink("/firmware/image/modem_f2.b00", "/system/etc/firmware/modem_f2.b00");
symlink("/firmware/image/modem_f2.b00", "/system/etc/firmware/modem_fw.b00");
symlink("/firmware/image/modem_f2.b01", "/system/etc/firmware/modem_f2.b01");
symlink("/firmware/image/modem_f2.b01", "/system/etc/firmware/modem_fw.b01");
symlink("/firmware/image/modem_f2.b02", "/system/etc/firmware/modem_f2.b02");
symlink("/firmware/image/modem_f2.b02", "/system/etc/firmware/modem_fw.b02");
symlink("/firmware/image/modem_f2.b03", "/system/etc/firmware/modem_f2.b03");
symlink("/firmware/image/modem_f2.b03", "/system/etc/firmware/modem_fw.b03");
symlink("/firmware/image/modem_f2.b04", "/system/etc/firmware/modem_f2.b04");
symlink("/firmware/image/modem_f2.b04", "/system/etc/firmware/modem_fw.b04");
symlink("/firmware/image/modem_f2.b05", "/system/etc/firmware/modem_f2.b05");
symlink("/firmware/image/modem_f2.b05", "/system/etc/firmware/modem_fw.b05");
symlink("/firmware/image/modem_f2.b06", "/system/etc/firmware/modem_f2.b06");
symlink("/firmware/image/modem_f2.b06", "/system/etc/firmware/modem_fw.b06");
symlink("/firmware/image/modem_f2.b07", "/system/etc/firmware/modem_f2.b07");
symlink("/firmware/image/modem_f2.b07", "/system/etc/firmware/modem_fw.b07");
symlink("/firmware/image/modem_f2.b08", "/system/etc/firmware/modem_f2.b08");
symlink("/firmware/image/modem_f2.b08", "/system/etc/firmware/modem_fw.b08");
symlink("/firmware/image/modem_f2.b09", "/system/etc/firmware/modem_f2.b09");
symlink("/firmware/image/modem_f2.b09", "/system/etc/firmware/modem_fw.b09");
symlink("/firmware/image/modem_f2.b10", "/system/etc/firmware/modem_f2.b10");
symlink("/firmware/image/modem_f2.b10", "/system/etc/firmware/modem_fw.b10");
symlink("/firmware/image/modem_f2.b13", "/system/etc/firmware/modem_f2.b13");
symlink("/firmware/image/modem_f2.b13", "/system/etc/firmware/modem_fw.b13");
symlink("/firmware/image/modem_f2.b14", "/system/etc/firmware/modem_f2.b14");
symlink("/firmware/image/modem_f2.b14", "/system/etc/firmware/modem_fw.b14");
symlink("/firmware/image/modem_f2.b21", "/system/etc/firmware/modem_f2.b21");
symlink("/firmware/image/modem_f2.b21", "/system/etc/firmware/modem_fw.b21");
symlink("/firmware/image/modem_f2.b22", "/system/etc/firmware/modem_f2.b22");
symlink("/firmware/image/modem_f2.b22", "/system/etc/firmware/modem_fw.b22");
symlink("/firmware/image/modem_f2.b23", "/system/etc/firmware/modem_f2.b23");
symlink("/firmware/image/modem_f2.b23", "/system/etc/firmware/modem_fw.b23");
symlink("/firmware/image/modem_f2.b25", "/system/etc/firmware/modem_f2.b25");
symlink("/firmware/image/modem_f2.b25", "/system/etc/firmware/modem_fw.b25");
symlink("/firmware/image/modem_f2.b26", "/system/etc/firmware/modem_f2.b26");
symlink("/firmware/image/modem_f2.b26", "/system/etc/firmware/modem_fw.b26");
symlink("/firmware/image/modem_f2.b29", "/system/etc/firmware/modem_f2.b29");
symlink("/firmware/image/modem_f2.b29", "/system/etc/firmware/modem_fw.b29");
symlink("/firmware/image/modem_f2.fli", "/system/etc/firmware/modem_f2.fli");
symlink("/firmware/image/modem_f2.fli", "/system/etc/firmware/modem_fw.fli");
symlink("/firmware/image/modem_f2.mdt", "/system/etc/firmware/modem_f2.mdt");
symlink("/firmware/image/modem_f2.mdt", "/system/etc/firmware/modem_fw.mdt");
symlink("/firmware/image/q6.b00", "/system/etc/firmware/q6.b00");
symlink("/firmware/image/q6.b01", "/system/etc/firmware/q6.b01");
symlink("/firmware/image/q6.b03", "/system/etc/firmware/q6.b03");
symlink("/firmware/image/q6.b04", "/system/etc/firmware/q6.b04");
symlink("/firmware/image/q6.b05", "/system/etc/firmware/q6.b05");
symlink("/firmware/image/q6.b06", "/system/etc/firmware/q6.b06");
symlink("/firmware/image/q6.mdt", "/system/etc/firmware/q6.mdt");
symlink("/firmware/image/rpm.mbn", "/system/etc/firmware/rpm.mbn");
symlink("/firmware/image/sbl1.mbn", "/system/etc/firmware/sbl1.mbn");
symlink("/firmware/image/sbl2.mbn", "/system/etc/firmware/sbl2.mbn");
symlink("/firmware/image/tzapps.b00", "/system/etc/firmware/tzapps.b00");
symlink("/firmware/image/tzapps.b01", "/system/etc/firmware/tzapps.b01");
symlink("/firmware/image/tzapps.b02", "/system/etc/firmware/tzapps.b02");
symlink("/firmware/image/tzapps.b03", "/system/etc/firmware/tzapps.b03");
symlink("/firmware/image/tzapps.mdt", "/system/etc/firmware/tzapps.mdt");
symlink("/firmware/image/wcnss.b00", "/system/etc/firmware/wcnss.b00");
symlink("/firmware/image/wcnss.b01", "/system/etc/firmware/wcnss.b01");
symlink("/firmware/image/wcnss.b02", "/system/etc/firmware/wcnss.b02");
symlink("/firmware/image/wcnss.b04", "/system/etc/firmware/wcnss.b04");
symlink("/firmware/image/wcnss.mdt", "/system/etc/firmware/wcnss.mdt");
ui_print("8. Setting Permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
ui_print("9. Busy Box & Super User");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
ui_print("10. Install Boot & Recovery img");
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
package_extract_file("recovery.img", "/dev/block/platform/msm_sdcc.1/by-name/recovery");
show_progress(0.2, 10);
ui_print("11. Unmount System");
unmount("/system");
ui_print("12. Finished");
 
So this has some apps removed right? If so it isn't stock. Not to be a pain, but could you also past an unmodified de-odexed version? I'd kinda like to tweak and debloat it myself. Thanks for your hard work.
 
So I reckon I would be the goat and test this. Followed the steps and got to step 11, clicked it to install and it came back with error (bad file). Could it be me??
 
Does it matter which firmware you flash this from or do you need to upgrade to E then flash? im only asking because it doesnt mention it, but i saw E on one of the screenshots and want to be 100% sure because i remember flashing roms on my old phone and it would change stuff in the about phone section.
 
I don't think you have to. I only have the c firmware downloaded, but I flashed a d rom and it reports as d.
 
So this has some apps removed right? If so it isn't stock. Not to be a pain, but could you also past an unmodified de-odexed version? I'd kinda like to tweak and debloat it myself. Thanks for your hard work.

That's a good idea.

Once I get positive result from others (it's stable and safe) I will work on deodexed/bloated(?) version.
 
My ? is this.....my motion is stock e (rooted), and debloated. Should this be done on a fresh new firmware or can it be debloated. Trying to figure why I get stuck at step 11 (bad file error) when it attempts to install. I too have followed the steps to the T..........
 
My ? is this.....my motion is stock e (rooted), and debloated. Should this be done on a fresh new firmware or can it be debloated. Trying to figure why I get stuck at step 11 (bad file error) when it attempts to install. I too have followed the steps to the T..........

i finally unbricked. it takes me 3 hours to unbrick on my lisa 2 computer.

Sorry for all your trouble, it might be Google Docs having incomplete file uploaded (link removed)

I uploaded file from my phone to d-h.st then I re-downloaded the file from the site, installed it on mine. It installs without error and it reboots fine.

New download link is up. Would you guys mind try again?

If you want to make sure you have good file you can try MD5 match checking as well.
 
Back
Top Bottom