[HOWTO] Build your own rom for GT-I8190(golden) with dsixda's Android Kitchen - Galaxy S III Mini General

...here is my "HOWTO" build your own stocked based rom for GT-I8190(golden) - "all versions" ...
...this Guide is written with the following basic set up: "Microsoft Windows 8 pro 64bit - cygwin 2.774"
preparation & requirements:
- patience ....
- a working and updated dsixda's Android Kitchen version http://forum.xda-developers.com/showthread.php?t=633246
+ this tools.zip (unzip it and copy it into your /kitchen/tools folder)
- a original Samsung firmware (golden) .tar.md5
example: HOME_I8190XXAMD3_I8190OXAAMD3_1154865_REV00_user_low_ship.tar
- 7-zip 9.20
1. unpack the "firmware.tar.md5" with 7.zip
2. inside extracted folder you find boot.img, cache.img, hidden.img, modem.bin, STE_boot1.img, STE_boot2.img and system.img
3. now select boot.img & system.img and pack a new .zip file with 7.zip
4. copy the new .zip file into your /kitchen/original_update folder
5. now start dsixda's Android Kitchen...."MAIN MENU"
5.1 extract sec_csc.zip - go to "0 - ADVANCED OPTIONS" ---> "18 - Plugin scripts" ---> "(3) Extract_SGS2_CSC_from_cache.img"
5.2 after extracting "sec_csc.zip" unpack it with 7.zip ...
6. now go back to "MAIN MENU" & "Set up working folder from ROM"
7. after extracting system.img copy the "system" folder from "sec_csc.zip" into your "workingXXXXX/system" folder .
8. now go back to "MAIN MENU" & go to "8 - Show working folder information"
it schould look like this:
Code:
Android OS version : 4.1.2
Device : golden
Model : GT-I8190
ROM Name : JZO54K.I8190XXAMD3
CSC version : I8190OXAAMD3
Rooted (Superuser app + su) : No
Rooted (unsecured boot.img) : No
BusyBox installed : No
BusyBox run-parts support : No
Apps2SD (Apps to EXT) enabled : NO
/data/app enabled : NO
Custom boot animation allowed : NO
Nano text editor installed : NO
Bash shell support : No
/system/framework is deodexed : NO
/system/app is deodexed : NO
radio.img found : NO
ROM will wipe all data : NO
9. now you can make your changes like "root" "busybox" etc...
10. ... when you have done all your changes go back to "MAIN-MENU" and follow this:
"99 - Build ROM from working folder"
Code:
Select a build option:
1 = Interactive Mode - recommended for most users
(Guide me through the build)
2 = Lazy Mode - trust the kitchen to do everything without asking
(Zipalign, Edify, sign ROM, auto-name ZIP)
3 = Express Mode - for advanced users
(Zipalign, Edify, don't sign ROM, auto-name ZIP)
4 = Extreme Mode - for advanced users
(No zipalign, no script conversion, don't sign ROM, auto-name ZIP)
5 = Cancel - Don't build now
==========================================================================
[COLOR="Red"]Number (default: 1): 1[/COLOR]
Would you like to optimize the APK files by zipaligning them (y/n)? (default: y):[COLOR="Red"] n[/COLOR]
NOTE: This device (golden) requires an updater-script
--------------------------------------------------------------------------
Converting to updater-script, please wait ...
- Initial formatting ...
- copy_dir ...
- set_perm_recursive ...
- set_perm ...
- run_program ...
- package_extract_file ...
- show_progress ...
- set_progress ...
- sleep ...
- delete/delete_recursive ...
- symlink ...
- write_raw_image ...
- format and mount ...
- unmount ...
- Final formatting ...
Device name in kitchen, or variant of: golden
Please ensure these device mount statements are correct:
--------------------------------------------------------------------------
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p20");
--------------------------------------------------------------------------
Copying update-binary ...
„../../../../../tools/update_files/emmc-update-binary“ -> „update-binary“
--------------------------------------------------------------------------
An updater-script has been created under META-INF/com/google/android of
your working folder. Please review it and make any necessary changes. An
update-binary has also been added.
DO NOT delete any of the files under META-INF/com/google/android.
Proceed with the change (y/n)?
y = Proceed; updater-script and update-binary will be used in the ZIP
file; update-script will remain in working folder.
n = Cancel; updater-script and update-binary will be deleted and not
used.
? [COLOR="Red"](default: y): y[/COLOR]
Making update.zip ...
update.zip created
It is recommended that you sign your ROM.
Sign it (y/n)? (default: y): y
Signing update.zip ...
The new ROM will be named golden_signed_050613_162708.zip
Change the name (y/n)?[COLOR="Red"] (default: n): n[/COLOR]
Found OUTPUT_ZIP folder
==========================================================================
Congratulations ...
...copy it to your sdcard and flash it with cwm recovery

....updater-script examble:
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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("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, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
package_extract_file("boot.img", "/dev/block/mmcblk0p20");
show_progress(0.2, 10);
unmount("/system");
modem.bin (baseband) update .zip:
updater-script:
Code:
show_progress(0.100000, 0);
ui_print("GT-I8190 modem.bin update");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
show_progress(0.100000, 50);
write_raw_image("/tmp/modem.bin", "/dev/block/mmcblk0p16"),
delete("/tmp/modem.bin"));
show_progress(0.100000, 100);
ui_print("Done");
example .zip (XXAMD3):
View attachment GT-I8190_modem.bin-update.zip

thank you for this
it is a huge huge help

Thanks alot. I got it working with your previous instructions from earlier help in the other thread, but how do we flash "modem.bin" for baseband updates?
Any idea if it can be done with kitchen or do we still have to do it with odin?

tys0n said:
Thanks alot. I got it working with your previous instructions from earlier help in the other thread, but how do we flash "modem.bin" for baseband updates?
Any idea if it can be done with kitchen or do we still have to do it with odin?
Click to expand...
Click to collapse
added @ 2nd post

Thanks enox, this is great!

Hi! Thanks for this tutorial :good: But I have one big problem :/ Everything goes good, but after flash it kill my phone Luckily I brink back it for live.
I have one question. I set option "ROM will wipe all data" and I think that this bricks my phone. Is sufficient remove "format("ext4", "EMMC", "/dev/block/mmcblk0p25");" from "updater-script" or will be better build whole ROM again without option for wipe data?
Btw, I think that I am not first one who had this problem and maybe it will be good to write in first post that wiping ROM will brick your phone
I found how to fix it here. After flash stock recovery and stock fw i had to go to stock recovery and wipe data and cache.

Hi enox, any chance of a re-up of the tools.zip? link seems to be down atm, thanks.
[EDIT] Must have been something wrong with the site, the link works again now, cheers.

xenex1 said:
Hi enox, any chance of a re-up of the tools.zip? link seems to be down atm, thanks.
Click to expand...
Click to collapse
the download link works .... just try it again...

enox.co said:
the download link works .... just try it again...
Click to expand...
Click to collapse
It does indeed, just downloaded it thanks. :good:

nice
two questions:
how can i root a original firmware with this tutorial ... i mean that the created custom firmware is a rooted firmware? bt: is my root is lost when I flash the created rom?

hurricane2012 said:
two questions:
how can i root a original firmware with this tutorial ... i mean that the created custom firmware is a rooted firmware? bt: is my root is lost when I flash the created rom?
Click to expand...
Click to collapse
this tutorial is on to build your own rom using kitchen
concerning the how to root your custom rom
refer to other tutorials on dsizda's Anrdoid kitchen found on XDA forums
if you have gotten Kitchen running you will see option 2 is "Add root permissions"
this will add root to your custom ROM

Thanks

hurricane2012 said:
Thanks
Click to expand...
Click to collapse
no problem
just be sure to check your updater-script when prompted to do so
you may need to make corrections to it

The created rom works ... but i have no phone signal and wifi ... why? i use HOME_I8190XXAMD3_I8190OXAAMD3_1154865_REV00_user_low_ship.tar following all steps from post #1 - set root and busy box ... no more! after flashing all thinks work - but no phone signal and no wifi

hurricane2012 said:
The created rom works ... but i have no phone signal and wifi ... why? i use HOME_I8190XXAMD3_I8190OXAAMD3_1154865_REV00_user_low_ship.tar following all steps from post #1 - set root and busy box ... no more! after flashing all thinks work - but no phone signal and no wifi
Click to expand...
Click to collapse
you should flash from post #2
example .zip (XXAMD3):
GT-I8190_modem.bin-update.zip

Doesnt work for me Baseband unknown ... Wifi cant connect

hurricane2012 said:
Doesnt work for me Baseband unknown ... Wifi cant connect
Click to expand...
Click to collapse
... if you have done all steps .... it should work ....

enox.co said:
... if you have done all steps .... it should work ....
Click to expand...
Click to collapse
no ... doesnt work ... i have do all steps ... but after flash my own rom phone and wifi dont work ... i have no idea why ... which original rom do you use exactly? where do I get this rom?

hurricane2012 said:
no ... doent work ... i have do all steps ... but after flash my own rom phone and wifi dont work ... i havy no idea why ... which original rom do you use exactly? where do I get this rom?
Click to expand...
Click to collapse
http://hotfile.com/dl/211675727/04f...-GT-I8190-DBT-I8190XXAMD3-1366526389.zip.html
...

Related

Android Kitchen

Hi everyone
How does everyone do dev work for the u8800?
I previously made a custom rom for the u8150 with a custom kernel but I used the kitchen by dsixda. Is the kitchen usable for the 8800 or does everyone use scripts to customise it and old fashioned hacking?
http://forum.xda-developers.com/showthread.php?t=633246
Thanks
Paul
PaulMilbank said:
Hi everyone
How does everyone do dev work for the u8800?
I previously made a custom rom for the u8150 with a custom kernel but I used the kitchen by dsixda. Is the kitchen usable for the 8800 or does everyone use scripts to customise it and old fashioned hacking?
http://forum.xda-developers.com/showthread.php?t=633246
Thanks
Paul
Click to expand...
Click to collapse
I haven't tried much. I had some hard times modifying updater.scriot, because it didn't have all required options. I think people here use scripts.
i have used it to make a custom rom for my u8800pro.
actually i have many many problems with the updater.script....so i can't install my rom.
Yeah, I guess it takes a lot of work for the updater script to get files and locations right.
Going to start playing and see what things look like.
PaulMilbank said:
Yeah, I guess it takes a lot of work for the updater script to get files and locations right.
Going to start playing and see what things look like.
Click to expand...
Click to collapse
i have changed many lines in the original updater.script made by dsixda kitchen (except symlinks) but it doesn't work.
this is my modded updater.script for u8800pro:
Code:
format("ext3", "EMMC", "/dev/block/mmcblk0p12");
mount("ext3", "EMMC", "/dev/block/mmcblk0p12", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/getprop");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
unmount("/system");
mount("vfat", "EMMC", "/dev/block/mmcblk0p1", "/cust");
package_extract_file("boot.img","/cust/image/boot.img");
unmount("/cust");
ok, actually this is the problem with the updater.script:
CWM error message: format() expects 2args, got 3
i understand the reason of this error but another updater.script (for example genokolar's cm7 updater.script) has the same lines and it works.
matteof93 said:
ok, actually this is the problem with the updater.script:
CWM error message: format() expects 2args, got 3
i understand the reason of this error but another updater.script (for example genokolar's cm7 updater.script) has the same lines and it works.
Click to expand...
Click to collapse
I believe genokolar has also got a different updater-binary or whatever it is called. When building CM9, it builds something like that for me.
First, check bootable/recovery/updater/install.c, it might have definitions for the updater-script. On CM9, it gives format(fs_type, partition_type, location, fs_size), 4 parameters. Check what's said in yours.
Blefish said:
I believe genokolar has also got a different updater-binary or whatever it is called. When building CM9, it builds something like that for me.
First, check bootable/recovery/updater/install.c, it might have definitions for the updater-script. On CM9, it gives format(fs_type, partition_type, location, fs_size), 4 parameters. Check what's said in yours.
Click to expand...
Click to collapse
i have used geno's update.binary and i got the same error.
this is my new updater.script
Code:
show_progress(0.2, 0);
ui_print("Formatting /system");
format("ext3", "EMMC", "/dev/block/mmcblk0p12");
mount("ext3", "EMMC", "/dev/block/mmcblk0p12", "/system");
mount("vfat", "EMMC", "/dev/block/mmcblk0p1", "/cust");
show_progress(0.5, 0);
ui_print("Extracting files to /system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/getprop");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.2, 0);
ui_print("Updating boot image");
package_extract_dir("cust", "/cust");
show_progress(0.1, 0);
unmount("/system");
unmount("/cust");
ui_print("Installation Finished");
matteof93 said:
i have used geno's update.binary and i got the same error.
Click to expand...
Click to collapse
Check this post. I think the recovery is messing up because AOSP has a different recovery.
Try this for example:
format("EMMC", "/dev/block/mmcblk0p12");
format("ext4", "/dev/block/mmcblk0p12");
Blefish said:
Check this post. I think the recovery is messing up because AOSP has a different recovery.
Try this for example:
format("EMMC", "/dev/block/mmcblk0p12");
format("ext4", "/dev/block/mmcblk0p12");
Click to expand...
Click to collapse
same problem
Have you managed to get it working? i'd love to try to cook a rom with it.
julle131 said:
Have you managed to get it working? i'd love to try to cook a rom with it.
Click to expand...
Click to collapse
the kitchen works, i have also found a script that allow us to obtain the system.img (as boot.img i have used the one placed in my image folder) but the problem is the updater.script
S
matteof93 said:
the kitchen works, i have also found a script that allow us to obtain the system.img (as boot.img i have used the one placed in my image folder) but the problem is the updater.script
Click to expand...
Click to collapse
If the rom is for personal use, is it possible to copy script and binary from other roms?
Sent from my Desire HD using XDA App
julle131 said:
S
If the rom is for personal use, is it possible to copy script and binary from other roms?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
it is not possible because in the updater.script of a rom there are some commands (like "symlink") that are made only for that rom.
matteof93 said:
the kitchen works, i have also found a script that allow us to obtain the system.img (as boot.img i have used the one placed in my image folder) but the problem is the updater.script
Click to expand...
Click to collapse
What was the script?
PaulMilbank said:
What was the script?
Click to expand...
Click to collapse
this is my updater.script
Code:
show_progress(0.2, 0);
ui_print("Formatting /system");
format("ext3", "EMMC", "/dev/block/mmcblk0p12");
mount("ext3", "EMMC", "/dev/block/mmcblk0p12", "/system");
mount("vfat", "EMMC", "/dev/block/mmcblk0p1", "/cust");
show_progress(0.5, 0);
ui_print("Extracting files to /system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/getprop");
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(0, 0, 04755, "/system/bin/bash");
symlink("/system/bin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.2, 0);
ui_print("Updating boot image");
package_extract_dir("cust", "/cust");
show_progress(0.1, 0);
unmount("/system");
unmount("/cust");
ui_print("Installation Finished");
Cheers. Where did you find the unpack script that worked?
PaulMilbank said:
Cheers. Where did you find the unpack script that worked?
Click to expand...
Click to collapse
probably on modaco....
you need to use this perl script http://www.zebadger.com/android/scripts/split_updata.txt with this crc in the same directory http://www.zebadger.com/android/binary/crc
this is the original thread: http://android.modaco.com/topic/311344-repacking-updataapp-was-new-version-of-split-updatapl/
BTW, the problem is the updater.script

[Q] Black screen after flash custom rom for i9502

Hi everyone,
Need for you help and thank you very very much.
I am trying to learn to make a custom rom for i9502 but I met a problem.
I download offical CMG2 firmware and get the system.img and cache.img(for csc files), I forked kitchen git and patch it to support 9502(maybe not succeed...)
I made common stuff in kitchen like Root init.d deodex zipalign, disable startup sound and enable data app support, then build up the rom with kitchen.
But when I flash this rom, my phone fail to startup. It go to totally black(I am not sure black or just not boot) after the china unicom logo showed. I tried to wipe and flash other roms and my phone startup right, so I am sure it's the problem of my custom rom.
I can't make the adb logcat because it's just too fast to go black. Do you have any idea about this problem?
BTW:
after I flash that rom, when I try to reboot from the recovery(phliz recovery for i9500), there is not an warning for "disable offical recovery recover" nor "root".
I used the offical boot.img for the offical rom and unoffical recovery from phliz.
I attach my last failed updater-script as blew (I just use kitchen to build up the uncompressed offical rom without any other operation as root, deodex..etc).
View attachment updater-script.txt
Code:
show_progress(0.1, 0);
unmount("/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p20", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/grep");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/setsebool");
symlink("toolbox", "/system/bin/restorecon");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/load_policy");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/playback");
symlink("toolbox", "/system/bin/du");
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_pair_devlist.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(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p9"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");
Download this one
https://mega.co.nz/#!2IJFFTiJ!ZfTqIh6Kiu59XYJvKYpxKtywIJUMxl1dAkghtKV0ieU
Thanks,
Disturbed™
Sent from my Disturbed™ Galaxy S4 using Tapatalk (VIP)
______________________________________________________
Wait for my time, U gonna pay for what U have done. - Disturbed™
post a new link please
your link is dead please post another

help updater script

hello sir
u have been helping me a lot
i am uploading my update script from my working folder
please tell me if there are any errors as well as will this work while flasing from cwm recovery
First of all,Change the thread title all of us are here to help you
And second,specify what help you want from him,without telling us what help you need he can't help you...
Take this as a suggestion
-Regards
you wont know till you flash it - what works on one device might not work on another even if symantically correct
best thing to do is do what I do - test your own work
marcussmith2626 said:
you wont know till you flash it - what works on one device might not work on another even if symantically correct
best thing to do is do what I do - test your own work
Click to expand...
Click to collapse
hello
ok i changed the mount points but still got status 0 error
here is the coding of updater script
Code:
show_progress(0.1, 0);
ui_print("WELCOME");
ui_print("PANDORA ROM");
mount("rfs", "EMMC", "/dev/block/stl19", "/system");
mount("rfs", "rfs16", "/dev/block/stl11", "/data");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
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("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/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, 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(0, 0, 0777, "/system/bin/a2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/00banner");
set_perm(0, 0, 0777, "/system/etc/init.d/01sysctl");
set_perm(0, 0, 0777, "/system/etc/init.d/02firstboot");
set_perm(0, 0, 0777, "/system/etc/init.d/04apps2sd");
set_perm(0, 0, 0777, "/system/etc/init.d/99complete");
set_perm(0, 0, 0777, "/system/bin/launcha2sd");
set_perm(0, 0, 0777, "/system/bin/starta2sd");
set_perm(0, 0, 0777, "/system/bin/jita2sd");
set_perm(0, 0, 0777, "/system/bin/chka2sd");
set_perm(0, 0, 0777, "/system/bin/zipalign");
set_perm(0, 0, 0777, "/system/bin/sysinit");
set_perm(0, 0, 0777, "/system/bin/busybox.a2sd");
set_perm(0, 0, 0644, "/system/bin/apps2sd.hlp");
set_perm(0, 0, 0777, "/system/xbin/a2sd");
set_perm(0, 0, 0777, "/system/bin/dtinstall");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 04755, "/system/xbin/bash");
symlink("/system/xbin/bash", "/system/bin/sh");
set_perm(0, 0, 04755, "/system/xbin/nano");
set_perm(0, 0, 04755, "/system/xbin/sysrw");
set_perm(0, 0, 04755, "/system/xbin/sysro");
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");
show_progress(0.1, 10);
show_progress(0.2, 0);
run_program("/data/dtinstall.launch");
delete("/system/bin/dtinstall");
delete("/data/dtinstall.launch");
show_progress(0.2, 10);
unmount("/system");
unmount("/data");
please help
abhishekr700 said:
hello
ok i changed the mount points but still got status 0 error
here is the coding of updater script
please help
Click to expand...
Click to collapse
script looks fine - you probably havent changed the update binary to the one I gave you earlier
here it is again in attachment - unzip and replace the one in your rom zip with it
dont put it in the kitchen working folder - build the rom and then use winrar to open the zip and delete the scripts and then drag the new scripts into the zip folder
marcussmith2626 said:
script looks fine - you probably havent changed the update binary to the one I gave you earlier
here it is again in attachment - unzip and replace the one in your rom zip with it
dont put it in the kitchen working folder - build the rom and then use winrar to open the zip and delete the scripts and then drag the new scripts into the zip folder
Click to expand...
Click to collapse
hurray i replaced the update binary and now i successfully flashed my rom
but my phone got into a bootloop
why??
abhishekr700 said:
hurray i replaced the update binary and now i successfully flashed my rom
but my phone got into a bootloop
why??
Click to expand...
Click to collapse
how long is a bit of string?
logcat it with adb - some file you modded is wrong - probably a jar file but who knows - could be anything
marcussmith2626 said:
how long is a bit of string?
logcat it with adb - some file you modded is wrong - probably a jar file but who knows - could be anything
Click to expand...
Click to collapse
hey logcat gave me this
- exec '/system/bin/sh' failed: No such file or directory (2) -
Click to expand...
Click to collapse
abhishekr700 said:
hey logcat gave me this
Click to expand...
Click to collapse
sounds like you didnt wipe system data and cache and mount system data and cache before you flashed the zip
edit sorry - I assmue that error was on the adb command and not in the logcat it produced as previously thought
thats because you havent installed adb drivers and your phone is not set to usb debugging mode - you will have to add it to the build prop I think - there is a guide somewhere for using adb on a device which cant boot and doesnt have usb debugging turned on
you can always flash stock rom then turn on usb debugging then flash your rom and then take a logcat
marcussmith2626 said:
sounds like you didnt wipe system data and cache and mount system data and cache before you flashed the zip
edit sorry - I assmue that error was on the adb command and not in the logcat it produced as previously thought
thats because you havent installed adb drivers and your phone is not set to usb debugging mode - you will have to add it to the build prop I think - there is a guide somewhere for using adb on a device which cant boot and doesnt have usb debugging turned on
you can always flash stock rom then turn on usb debugging then flash your rom and then take a logcat
Click to expand...
Click to collapse
i wiped
system
cache
dalvik cache
using cmw
i used this command for logcat
adb logcat -v long > logcat.txt
i tested rhis command firsy on my present rom
i had installed my phone drivers earlier
but i dont know how to enable usb debugging on my newly built custom rom
can u detail me abut that build.prop u r talking about
abhishekr700 said:
i wiped
system
cache
dalvik cache
using cmw
i used this command for logcat
adb logcat -v long > logcat.txt
i tested rhis command firsy on my present rom
i had installed my phone drivers earlier
but i dont know how to enable usb debugging on my newly built custom rom
can u detail me abut that build.prop u r talking about
Click to expand...
Click to collapse
add this to the build.prop and default.prop
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
or from adb console you can type (with phone in recovery mode)
Code:
adb shell
su
mount -o remount,rw /system
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
restart phone and adb should work
its also a good idea when you are building a rom to mod one file at a time and then flash it - otherwise its like trying to find a needle in a haystack if you have no idea which file has the error
marcussmith2626 said:
add this to the build.prop and default.prop
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
its also a good idea when you are building a rom to mod one file at a time and then flash it - otherwise its like trying to find a needle in a haystack if you have no idea which file has the error
Click to expand...
Click to collapse
one thing i noticed after the logcat response that
in/system/bin/ there is a file sh0 and not sh
why is it and do i need to rename it to sh to work
because logcat said that it couldnt fild such file
can that be a erroe and renaming the file fix it
abhishekr700 said:
one thing i noticed after the logcat response that
in/system/bin/ there is a file sh0 and not sh
why is it and do i need to rename it to sh to work
because logcat said that it couldnt fild such file
can that be a erroe and renaming the file fix it
Click to expand...
Click to collapse
here is that file if you need it (unzip the file in attachement and place in system/bin)
I have no sh0 in my folder so im guessing its an incorrectly named file
marcussmith2626 said:
here is that file if you need it (unzip the file in attachement and place in system/bin)
I have no sh0 in my folder so im guessing its an incorrectly named file
Click to expand...
Click to collapse
is sh0 in place of sh can produce error
abhishekr700 said:
is sh0 in place of sh can produce error
Click to expand...
Click to collapse
well if its looking for a filename it cant find thats going to cause an error
unzip the file I gave in my last post and put in bin folder and reflash the rom and see if it boots or you can use adb commands (if usb debugging is enabled)
marcussmith2626 said:
well if its looking for a filename it cant find thats going to cause an error
unzip the file I gave in my last post and put in bin folder and reflash the rom and see if it boots or you can use adb commands (if usb debugging is enabled)
Click to expand...
Click to collapse
can this also cause bootloop
abhishekr700 said:
can this also cause bootloop
Click to expand...
Click to collapse
If a file is missing then yes
why dont you just try it?
abhishekr700 said:
i wiped
system
cache
dalvik cache
using cmw
i used this command for logcat
adb logcat -v long > logcat.txt
i tested rhis command firsy on my present rom
i had installed my phone drivers earlier
but i dont know how to enable usb debugging on my newly built custom rom
can u detail me abut that build.prop u r talking about
Click to expand...
Click to collapse
Never wipe dalvik cache while installing ROM. Only wipe data, cache. Don't wipe Dalvik Cache. Whenever I wipe dalvik cache while installing any STOCK based ROM, I get a bootloop and stuck at Samsung Galaxy y screen.
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
marcussmith2626 said:
If a file is missing then yes
why dont you just try it?
Click to expand...
Click to collapse
ok placed sh file in system bin
still bootloop
in updater script found this
set_perm(0, 0, 04755, "/system/xbin/bash");
symlink("/system/xbin/bash", "/system/bin/sh");
Click to expand...
Click to collapse
abhishekr700 said:
ok placed sh file in system bin
still bootloop
in updater script found this
Click to expand...
Click to collapse
as long as kitchen created your update script and all you did was edit the top part above the sym links to set the correct mount points it should all work fine
like I said if you are getting bootloops logcat it - its impossible for me to say why it doing it really - could be anything - any little change you have done which is why I said when build building a rom make one change at a time and test

[Q] Status 7: Cooked ROM with Android Kitchen

I cooked a rom with Android Kitchen, and now when I try to flash my custom rom with CWM, I get the infamous Status 7 error.
Installing Update...
format() expects 5 args, got 4
e:error in ...........................
W:zip
(Status 7)
Installation aborted.
I have been reading and I read that it is a problem with my "update-script" so I will post that below.
show_progress(0.1, 0);
unmount("/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p16", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/grep");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/setsebool");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/load_policy");
symlink("toolbox", "/system/bin/setconsole");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/readlink");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/mkswap");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/swapon");
symlink("toolbox", "/system/bin/freshsebool");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/clear");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/restorecon");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/du");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/swapoff");
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_pair_devlist.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, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
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");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p20"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p2", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
unmount("/system");
Status 7 usually means the updater script is wrong. You didn't select or do something properly with android kitchen.
Sent from my SPH-L720 using Tapatalk
daniel4653 said:
Status 7 usually means the updater script is wrong. You didn't select or do something properly with android kitchen.
Sent from my SPH-L720 using Tapatalk
Click to expand...
Click to collapse
I followed the directions to a T. Would it be foolish to replace the update script with one from another custom rom? also is there a reason you're saying updateR script? because my folder is an update script.
When I tried making Roms with kitchen back on the gs3 I was advised that it would be the updater script.
Sent from my SPH-L720 using Tapatalk
---------- Post added at 08:42 PM ---------- Previous post was at 08:42 PM ----------
Because Its not executing the install correctly.
Sent from my SPH-L720 using Tapatalk

[Q] Status 6, help from developers.

I am not a ROM cook expert. But I like to Deodex and make a very little changes keeping the taste of Samsung untouched.
I used dsixda kitchen to Deodex and build the ROM. However, I'm facing a problem to flash and from my search I found that there are 2 reasons may do this.
1. Updater - script format may not be Linux. I checked and it is Linux.
2. Issue with the script. Here is my problem and I couldn't figure out.
Can someone help.
Code:
show_progress(0.1, 0);
format("ext4", "EMMC", "/dev/block/mmcblk0p23");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
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/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");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/grep");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/setsebool");
symlink("toolbox", "/system/bin/restorecon");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/load_policy");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/playback");
symlink("toolbox", "/system/bin/du");
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_pair_devlist.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, 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(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p14"),
delete("/tmp/boot.img"));
show_progress(0.2, 10);
flash_modem
unmount("/system");
unmount("/data");
Sent from my SM-N9005 using Tapatalk
Help please.
Sent from my SM-N9005 using Tapatalk
You have two closing parens on the delete("/tmp/boot.img"); line.
Sent from my leanKernel 2.3 powered stock 4.4.2 SM-N900T
toastido said:
You have two closing parens on the delete("/tmp/boot.img"); line.
Sent from my leanKernel 2.3 powered stock 4.4.2 SM-N900T
Click to expand...
Click to collapse
Isn't this the closing of assert?
Sent from my SM-N9005 using Tapatalk

Categories

Resources