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

Root Deodexed Rom

For my case.. I am getting installation error.
I am thinking main reason is updater-script.

I tried to copy codes from LG Esteem, LG Optimus 4x, Cyanogen mod but still failing ><

LG Motion | LG Esteem | Nexus 7 | Android | Smart Phones | Metro PCS: Creating LG Motion (MS770) Base Rom

Kitchen_Setup_LG_Motion_Almost.PNG


So far this is my latest version if someone can check that will be nice.

show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
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");
set_perm_recursive(0, 0, 0755, 0644, "/system");
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");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/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);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.2, 10);
unmount("/system");
 
Just wondering out of curiosity, can you not use the one from the D base-rom?

You mean the rom from cretinoid? (MS77010d_BASE_ROM.zip)
I may give a try.

While downloading it, someone post updater-script of this rom here?
I have very slow internet speed, it says 2hrs to go to download complete ><
 
I am still getting error but at least I know what the errors are now.
(Status6 -> Status7 lol)

I am just trying different updater-script combinatiosn at this point.

Codes & syntax are compared with CM10(hroark13), StockRom(Cretinoid) and other Samsung Custom Roms.

Once I have working rom I will post..
 
I am still getting error but at least I know what the errors are now.
(Status6 -> Status7 lol)

I am just trying different updater-script combinatiosn at this point.

Codes & syntax are compared with CM10(hroark13), StockRom(Cretinoid) and other Samsung Custom Roms.

Once I have working rom I will post..

Status 7 I believe is assert error, and Status 6 *if* I remember right, is syntax error or the newline characters are f**ked up. How are you opening and saving it?
 
Status 7 I believe is assert error, and Status 6 *if* I remember right, is syntax error or the newline characters are f**ked up. How are you opening and saving it?

I was able to address Status6 & 7 error.

Status 6 was, as you said, there was new line missing at the end :)
Status 7 was, I was using extra parameters when formating system folders.


After fixing those, the rom installed without error.

But when booting, it generates below message ><

Secure booting error
Cause: Boot Certification Verify


I am guessing..

1) If it's related to installing boot.img @ wrong folder ->
Instead of 'mmcblk0p7' I may try '/dev/block/platform/msm_sdcc.1/by-name/boot'

2) Firmware missing
I will copy & paste firmware link from CM10 script

3) META-INF\META-INF\com\android\metadata & otacert missing?
Somehow my kitchen didnt generete \com\android folder @ Meta-inf.
I may copy cretinoid's contents then try..




Anyway below is my latest updater-script.
Again, it installs okay but when booting you get security error ><

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("0. Unmounting System & Cache");
unmount("/cache");
unmount("/system");
ui_print("1. Formatting System & Cache");
format("ext4", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/cache");
format("ext4", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("2. Mounting System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("3. Package Extracting to System");
package_extract_dir("system", "/system");
ui_print("4. 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("5. 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("6. 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("7. Installing Boot.img");
package_extract_file("boot.img", "/dev/block/mmcblk0p7");
show_progress(0.2, 10);
unmount("/system");
ui_print("Finished");
 
Skimmed though it, and noticed you're formatting /system... That's where morningcall is. It be exact, its in /system/bin, and wallpaper in /sbin checks for it on boot, and init.lge.early.rc in / starts wallpaper on boot. Bottom line, don't format system ;)

Edit: and yeah, that boot.img must have messed it up too. Is it the stock kernel?
 
Skimmed though it, and noticed you're formatting /system... That's where morningcall is. It be exact, its in /system/bin, and wallpaper in /sbin checks for it on boot, and init.lge.early.rc in / starts wallpaper on boot. Bottom line, don't format system ;)

Edit: and yeah, that boot.img must have messed it up too. Is it the stock kernel?

Yeah it's a stock boot.img
I heard stock boot doesn't flash well on CWM.
Maybe I should try modified kernel?
 
Yeah it's a stock boot.img
I heard stock boot doesn't flash well on CWM.
Maybe I should try modified kernel?

Well, hoark's CM10 flashes the firmware D (I think its D) stock kernel, along with other stuff....
 
Well, hoark's CM10 flashes the firmware D (I think its D) stock kernel, along with other stuff....


Um... isn't the boot loader lock the thing keeping us from installing custom kernels? So idk how that would work...

I could be speaking with the wrong sphincter though...
 
Um... isn't the boot loader lock the thing keeping us from installing custom kernels? So idk how that would work...

I could be speaking with the wrong sphincter though...

Yes it does, but that doesn't mean we can't install one of LG's kernels ;)
 
OK... so the past two days, while I was desperately searching for the D firmware update so I could downgrade and put cm10 on because I was told that all ROMs are D based and should be flashed over D only, I could have just flashed cm10 and been good?
Fml
 
OK... so the past two days, while I was desperately searching for the D firmware update so I could downgrade and put cm10 on because I was told that all ROMs are D based and should be flashed over D only, I could have just flashed cm10 and been good?
Fml

You can, but there might be problems/glitches.
 
Hello. All.

I was able to install my base rom without

1) performing CWM System Format before install
2) Removing System Format in updater-script.

Anyway it installs fine & rebooting fine. Right now I am setting up account.

But am I doing it correct -_-?

I am afraind what I am doing is basically just wiping / factory resetting without installing it clean.
 
Hello. All.

I was able to install my base rom without

1) performing CWM System Format before install
2) Removing System Format in updater-script.

Anyway it installs fine & rebooting fine. Right now I am setting up account.

But am I doing it correct -_-?

I am afraind what I am doing is basically just wiping / factory resetting without installing it clean.
I don't know much about this but, you're working on the deodex rom right?

If it's booting right etc, and you wanna see if it worked, go download explorer from the market (or root explorer, whatever) and open it. then, look for the system folder, go to app, and see. Are there any .odex? if no, congratulations! :rolleyes:
 
I don't know much about this but, you're working on the deodex rom right?

If it's booting right etc, and you wanna see if it worked, go download explorer from the market (or root explorer, whatever) and open it. then, look for the system folder, go to app, and see. Are there any .odex? if no, congratulations! :rolleyes:

I don't see any odex.

I am going to upload soon :)
 
Now format /system and /data and see if it works. :)

Actually that was too risky so what I did was using recursive-delete on System/App on update-script.

Uploading is 80% done and I almost finished writing a post so you will see it soon.
 
Back
Top Bottom