Need Help With Cooking Own Stock Rom - Samsung Galaxy Gio GT-S5660

hi
I want to cook my own rom. I downloaded a stock rom and extract the files. I want to make it cwm flashable. There are many files and i dont know which files are needed to make it cwm flashable . These are the files: arm11boot, csc.rfs, mibib, oemsbl, qcsbl, amss, recovery.img, boot.img and system.rfs.
Also i want to convert it to ex4 and use phiexz kernel. I downloaded phiexz kernel and there is a boot.img, a system folder and a META-INF folder. I think i must replace the stock roms boot.img by the boot.img from phiexz and copy the system folder from phiexz's kernel to the system folder of the stock rom. But what is the META-INF folder?
I already searched for guides to cook own rom but all of them are for modifying cwm flashable custom roms and not stock roms. It would be nice if someone can help me
Sorry for my bad english

Take system.rfs from stock, boot.img from phiexz stockkernel
Extract system.rfs with terminal in linux or on windows use magic iso
Take the META-INF folder from another rom and edit it to be like yours.
Sent from my GT-S5660 using xda premium

okay thank you
but how do i sign the zip file? In cwm the installation aborts...
i tried to sign with dsixdas kitchen but no sucess...
Sorry for my bad English

You can flash unsigned zips from recovery
Wich error you get in cwm?
Sent from my GT-S5660 using xda premium

i get this error when Signature Check is enabled:
Code:
Finding update package...
Opening update package...
Verifiying update package...
E:failed to seek in /sdcard/MyRom.zip (Invalid argument)
E:signature verification failed
Installation aborted.
and this when Signature Check is disabled:
Code:
Finding update package...
Opening update package...
E:Can't open /sdcard/MyRom.zip
(bad)
Installation aborted.
//Edit: Now i get a "Status 7" Error

Status 7 is updaterscript error, you didnt modify it..
Follow the guides
Sent from my GT-S5660 using xda premium

okay the installation is working
but i dont know how to set the permissions and how to "symlink". Because of that the rom doesnt boot.
I have already copied the "set permission and symlink script" from this page http://www.androidpit.de/de/android/forum/thread/439522/Workshop-Rom-koecheln and this page http://forum.xda-developers.com/showthread.php?t=936175 but it doesnt work
this is my script without set permission and so on
Code:
ui_print("");
ui_print("");
ui_print("Installation of MyRom");
ui_print("------by [email protected]");
ui_print("");
#Mounting
ui_print("Mounting...");
ui_print("mount /system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("mount /data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("mount /cache");
run_program("/sbin/busybox", "mount", "/cache");
ui_print("Mounting finished");
ui_print("-----------------");
ui_print("");
#Wiping
ui_print("Wiping...");
ui_print("wipe /system");
delete_recursive("/system");
ui_print("wipe /data");
delete_recursive("/data");
ui_print("wipe /cache");
delete_recursive("/cache");
ui_print("Wiping finished");
ui_print("-----------------");
ui_print("");
#Installation
ui_print("Installing...");
package_extract_dir("system", "/system");
ui_print("Installation finished");
ui_print("-----------------");
ui_print("");
#InstallationKernel
#Thanks to phiexz :)
ui_print("Installing Kernel...");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("Installating Kernel finished");
ui_print("-----------------");
ui_print("");
#Unmount
ui_print("Unmounting...");
ui_print("unmount /system");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("unmount /data");
run_program("/sbin/busybox", "unmount", "/data");
ui_print("unmount /cache");
run_program("/sbin/busybox", "unmount", "/cache");
ui_print("Unmounting finished");
ui_print("-----------------");
ui_print("");
ui_print("Installation of MyRom finished");
ui_print("Please Reboot Your Phone");

emyaz said:
okay the installation is working
but i dont know how to set the permissions and how to "symlink". Because of that the rom doesnt boot.
I have already copied the "set permission and symlink script" from this page http://www.androidpit.de/de/android/forum/thread/439522/Workshop-Rom-koecheln and this page http://forum.xda-developers.com/showthread.php?t=936175 but it doesnt work
this is my script without set permission and so on
Code:
ui_print("");
ui_print("");
ui_print("Installation of MyRom");
ui_print("------by [email protected]");
ui_print("");
#Mounting
ui_print("Mounting...");
ui_print("mount /system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("mount /data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("mount /cache");
run_program("/sbin/busybox", "mount", "/cache");
ui_print("Mounting finished");
ui_print("-----------------");
ui_print("");
#Wiping
ui_print("Wiping...");
ui_print("wipe /system");
delete_recursive("/system");
ui_print("wipe /data");
delete_recursive("/data");
ui_print("wipe /cache");
delete_recursive("/cache");
ui_print("Wiping finished");
ui_print("-----------------");
ui_print("");
#Installation
ui_print("Installing...");
package_extract_dir("system", "/system");
ui_print("Installation finished");
ui_print("-----------------");
ui_print("");
#InstallationKernel
#Thanks to phiexz :)
ui_print("Installing Kernel...");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("Installating Kernel finished");
ui_print("-----------------");
ui_print("");
#Unmount
ui_print("Unmounting...");
ui_print("unmount /system");
run_program("/sbin/busybox", "unmount", "/system");
ui_print("unmount /data");
run_program("/sbin/busybox", "unmount", "/data");
ui_print("unmount /cache");
run_program("/sbin/busybox", "unmount", "/cache");
ui_print("Unmounting finished");
ui_print("-----------------");
ui_print("");
ui_print("Installation of MyRom finished");
ui_print("Please Reboot Your Phone");
Click to expand...
Click to collapse
1. way too much ui prints
2 you dont do wipe /system (ref. to other roms for right FORMAT values)
3 make sure boot.img is called boot.img and not kernel or else
4 the /sbin/busybox does problably not exist in stock roms so that doesnt work, enter unmount codes manually from another roms script
5 permissions have to be right
6 ever heard of symlinks? need to be added too..
that said, you do better use a rom as base, add your desired apps to /system/app and flash that without publishing on XDA. much easier

Just use cygwin and dsixda android kitchen... after cooking change mtd format/mount lines to ext4 from other rom ...
Wysyłane z mojego GT-S5660 za pomocą Tapatalk 2

Related

[Q] Can someone tell me what is wrong with this script?

I was trying to make a new script for my Dialer APKs and I modified my WORKING MMS Scripts to the following, editted in notepad, saved as a FILE, yet I get a (Status 6) error in CWM and it wont flash. I have looked through it a couple times and can't see anything wrong with it? any ideas?
Code:
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("------------------------------------------------");
ui_print(" Turbosocks Presents ");
ui_print(" ");
ui_print(" PayPhone Dialer - Pics ");
ui_print(" for Epic Gingerbread ");
ui_print("------------------------------------------------");
ui_print("");
ui_print("------------------------------------------------");
ui_print(" I, Turbosocks, am not responsible for any ");
ui_print("overjoyment, excitement, screaming from the ");
ui_print("sheer awesomeness, damage to your pet dog ");
ui_print("scooter, damage to your phone, loss of your job,");
ui_print("your wife leaving you, etc. when you choose to ");
ui_print("install this application. You are flashing this ");
ui_print("epic piece of software at your own risk!!! ");
ui_print("-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_");
ui_print("------------------------------------------------");
ui_print("");
ui_print("");
ui_print("Preparing System For Update...");
run_program("/sbin/mount", "/dev/block/stl9", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/data");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm(1000, 1000, 0771, "/data/app");
show_progress(0.5, 10);
ui_print("Unmounting /system, /data, /cache...");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
run_program("/sbin/umount", "/cache");
ui_print("Your Samsung Epic 4g has now been broken... ");
ui_print("..... erasing all personal data, wiping SD card");
ui_print("..deleting /system..deleting /app..JUST KIDDING!");
ui_print(" Enjoy your new awesomeness! ");
use the dos2unix script.
Ps, awesome work!
sent from my miui-ified epic

help with uot

i m cooking rom..
i cooked flashable zip in uot .
now how can i integrate that flashable zip in my rom zip?
should i just paste it some where and then in updater-script i should add that code (will search on what code to write) to flash it after instalation of my rom [but will this work cuz its writen on the uot kitchen webpage that do not flash on the first boot]
plz help
i did one thing..
i read the update-script
and it was
Code:
ui_print("Applying UOT framework");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/framework/framework-res.apk");
package_extract_dir("framework", "/system/framework");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/app/SystemUI.apk");
package_extract_dir("app", "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying UOT fonts");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying UOT bootanimation");
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
i removed the framework-res.apk from my rom zip file
and then pasted the one from the zip i got from uot
then i removed systemui.apk
and pasted from the one i got from uot in to my roms zip file..
and then took the zip file and pasted in my cell,
flashed the rom.zip in via cwm recovery ..
unforrtunately i dont have a status bar :O plz some one gimme a hand and guide a lil to integrating uot and my rom .. and making one flashable zip
ny one der to help ? :'(
will someone help me plzzzz??/
sorry, i just replied on your other thread, lol. After you have cooked up your uot theme, download it and copy it to your sd card. then just go into cwm recovery and flash the .zip of the theme u built, any mods you made in the uot kitchen will be applied to your rom. Thats the simplest way to do it.

[Q] CWM Edify? Help please

Right How would I create a updater-binary I know how to for Updater-script.
And many thanks in advance I l give you thanks if you can answer?
You can extract the binary from any update.zip script, you don't need to build your own.
Can you take a look at my Theme Im making If i upload it to mediafire Its Getting installation aborted status 6 but im using notepad++?
edit:
Really need help and Can You Recomend any lockscreens?/
ui_print("-Checking Model ID");
ui_print("-Success!");
ui_print("Please be patient");
ui_print("1st boot may take a few minutes");
ui_print("Welcome to My Xperia S packet ");
ui_print("By Installing this You herby take full");
ui_print("Responsibillity of your device and what");
ui_print("you do with it no one can be held of ");
ui_print("Bricks or Death to your device");
set_progress(0.1)
format("MTD", "cache");
ui_print("Warning this Formats Your data Meaning your Apps are wiped!");
format("yaffs2", "MTD", "system");
format("yaffs2", "MTD", "userdata");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
run_program("/sbin/busybox", "rm", "-rf", "/sd-ext/*");
run_program("/sbin/busybox", "rm", "-rf", "/sdcard/.android_secure/*");
run_program("/sbin/busybox", "umount", "/sd-ext");
run_program("/sbin/e2fsck", "-pv", "/dev/block/mmcblk0p2");
set_progress(0.2)
format("MTD", "userdata");
mount("MTD", "system", "/system");
set_progress(0.9)
ui_print("Cleaning up enjoy This In a few ");
ui_print("~Starting Clean~");
ui_print("Finished Clean");
unmount("/system");
ui_print(";"X");
ui_print(";"~P");
ui_print(";"~~E");
ui_print(";"~~~R");
ui_print(";"~~~~I");
ui_print(";"~~~~~A");
ui_print(";"~~~~~~4");
ui_print(":"~~~~~~~L");
ui_print(";"~~~~~~~~I");
ui_print(";"~~~~~~~~~F");
ui_print(";"~~~~~~~~~~E");
ui_print("Finished Process Reboot & enjoy");
Can you tell me whats wrong? Idk what ive done wrong

[Q] Zip flasheable modify update-script

Hi,i have a question
when i modify the archive "update-script" of a zip flasheable , then proceed to install the "x.zip" but the recovery aborts the installation , i only modified in the archive "update-script" the "ui_print" .Eg
Code:
ui_print("Installing the bootanimation ^^")
mount("MTD", "system", "/system");
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
show_progress(0.200000, 10);
ui_print("Install complete!");
unmount("/system");
i also want to ask , the source i used in update-script is correct for the installation of a bootanimation ?
Thanks for reading i hope your answers
lans_98 said:
Hi,i have a question
when i modify the archive "update-script" of a zip flasheable , then proceed to install the "x.zip" but the recovery aborts the installation , i only modified in the archive "update-script" the "ui_print" .Eg
Code:
ui_print("Installing the bootanimation ^^")
mount("MTD", "system", "/system");
show_progress(0.500000, 40);
package_extract_dir("system", "/system");
show_progress(0.200000, 10);
ui_print("Install complete!");
unmount("/system");
i also want to ask , the source i used in update-script is correct for the installation of a bootanimation ?
Thanks for reading i hope your answers
Click to expand...
Click to collapse
in the mount function you must tell the system the file system too! You must say it before the partition type (e.g. MTD). It should be yaffs2 or ext4. So, if it's yaffs2, it should be mount("yaffs2", "MTD", "system", "/system")
Other things are ok. Be sure the boot animation is in /system/media and that you created that zip with store compression type.
---------- Post added at 05:53 PM ---------- Previous post was at 05:28 PM ----------
Ah yes I remembered now... P350 (as well as many low legacy lg & non devices) has yaffs2 file system, so you shall want to definitely add this to your updater-script.

[Q] how to get mount points ?

Hello guys !!
I want build my own rom for sm-t210 , I learnt dxdia kitchen , apktool etc .., but I really need good way to get mount points
أرسلت من SM-T210R بإستخدام تاباتلك
aliquzwini said:
Hello guys !!
I want build my own rom for sm-t210 , I learnt dxdia kitchen , apktool etc .., but I really need good way to get mount points
أرسلت من SM-T210R بإستخدام تاباتلك
Click to expand...
Click to collapse
The way I get the mounting points is downloading a custom rom... look at the updater script... I used benny..
this is sm-217S.. just noticed u were looking for t210... probably the same... not sure..
format("ext4", "EMMC", "/dev/block/mmcblk0p21", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/data");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p13"),
delete("/tmp/boot.img"));
mdiaz33685 said:
The way I get the mounting points is downloading a custom rom... look at the updater script... I used benny..
this is sm-217S.. just noticed u were looking for t210... probably the same... not sure..
format("ext4", "EMMC", "/dev/block/mmcblk0p21", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/data");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p13"),
delete("/tmp/boot.img"));
Click to expand...
Click to collapse
Good thank you , no not same I noticed different points , anyway it is Awesome way , you can decombile recovery.img, boot.img then look for etc- recovery. Fstb it is included all mounts points , but your way good too and easy
أرسلت من SM-T210R بإستخدام تاباتلك

Categories

Resources