[GUIDE] dsixda's Android Kitchen now on P760!! - LG Optimus L9 P760, P765, P768, P769

Hi all guys, finally i've found the way to use this very nice tool on our device!!
I've tested it on my P760 with v20b stock ROM and with some little addon it runs fine
First of all i want to clarify that this guide uses a tool made for the xda comunity by dsixda, so the major credit goes to him.
Dont ask me if it works on other variants, i have the P760 only, so try by yourself and let us know.
What you need:
dsixda's Android Kitchen
dsixda Android Kitchen P760 addon
KDZ file or CWM backup of your stock ROM
...a bit of knowledge on what you are doing
_______
Download and install dsixda Android Kitchen from original thread
Download dsixda_Android_Kitchen_P760_addon and extract the contents somewhere to your pc.
You can see two folder "dsixda_edify_defs" and "brocken_sys_files", copy dsixda_edify_defs content to "\Cygwin\home\YourUserName\Kitchen\tools\edify_defs" folder.
Now we need system and boot from our rom. If you have a CWM backup just copy system.ext4.tar.a and boot.img to "original_update" folder of dsixda kitchen and rename "system.ext4.tar.a" to "system.ext4.tar"
If you want to use KDZ stock ROM please refer to this guide provided by kuma82 on how to extract system.img and boot.img
Now run dsixda Android Kitchen and setup your working folder (detailed info on hawto in the original thread).
When setup completed than copy the "brocken_sys_files" contents located in dsixda_Android_Kitchen_P760_addon.zip to the locations specified in the included readme file. I dont know why but dsixda kitchen doesnt process these files correctly so we have to add them manually. They are taken from V20b but should work on other version too.
Ok,now we are ready to apply our mods and cook!!
I've cooked my own ROM from KDZ file and tested some feature, root, deodex, zipalign, init.d, /data/app, all works fine. I've found only one issue releted to deodexing LG keyboard, just replace it with another one and all should be fine.
NOT tested with CM rom.
I'm NOT responsable of any kind of demage caused by using this method, so use it at your own risk.
@moderators
I dont know if this is the right section where to post this guide, if no than feel free to move it to the right one.
Credits:
dsixda (for Android kitchen)
kuma82 and cmahendra (for KDZ extraction)
___

Thanks for sharing the info, Android kitchen was already working but I had to change the updater-script and update-binary manually.
Lol, I didn't think about changing the CWM backup system .tar.a file to .tar I just used the dd command to extract (my current) system.img to my sdcard
Code:
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
Note: my internal and external or swapped, so change accordingly
Another thing, thanks for giving me credit for my guide

@- shifu - thanks man! you have two pm!
@kuma82 how you change it?
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
....
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
Click to expand...
Click to collapse
with:
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
...
package_extract_file("boot.img", "/dev/block/platform/omap/omap_hsmmc.1/by-name/boot");

Yup, to tell you the truth I haven't tried it yet, been to busy, to actually flash it, but if I'm not mistaken @Kid_Ding used it (android kitchen) to port pac rom to the P769
Sent from my LGMS769 using xda app-developers app

kuma82 said:
Thanks for sharing the info, Android kitchen was already working but I had to change the updater-script and update-binary manually.
Click to expand...
Click to collapse
for me it never worked, even changing updater-script.. but i've tried with stock ROM only, maybe with CM just made the changhes you've mentioned.
Anyway with my addon it works out of the box, no need to modify updater-script
Lol, I didn't think about changing the CWM backup system .tar.a file to .tar I just used the dd command to extract (my current) system.img to my sdcard
Code:
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
Note: my internal and external or swapped, so change accordingly
Click to expand...
Click to collapse
yep, i've tried and it worked
Another thing, thanks for giving me credit for my guide
Click to expand...
Click to collapse
of nothing colleague

Very Useful.
Very useful Thread. Saved lot of time. Thanks

Related

[Q] create Update.zip

Hi
i want to create an update.zip i can install via the recovery console.
i have the framework-res.apk and some of apk ...such as : SystemUI.apk , Settings.apk ... etc .
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to replace the app
See if any of these could help: http://forum.xda-developers.com/showthread.php?t=1248486 and: http://forum.xda-developers.com/showthread.php?t=917922.
I get the following error
Installation aborted.
can you help me plz
mraboude12 said:
I get the following error
Installation aborted.
can you help me plz
Click to expand...
Click to collapse
Have you tried again (following all instructions)?
mraboude12 said:
Hi
i want to create an update.zip i can install via the recovery console.
i have the framework-res.apk and some of apk ...such as : SystemUI.apk , Settings.apk ... etc .
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to replace the app
Click to expand...
Click to collapse
Are you rooted ?
The simplest way is to root and get and advanced recovery like CWM.
Theonew said:
Have you tried again (following all instructions)?
Click to expand...
Click to collapse
I followed the instructions but I get the same error
gnx_androidoman said:
Are you rooted ?
The simplest way is to root and get and advanced recovery like CWM.
Click to expand...
Click to collapse
yes i`m rooted
Note: my mobile is : HTC Desire hd
recovery : from rom manger
in the attachment , update.zip which I get the error
u can extract custom rom and then change things u want and then create .zip again
droider95 said:
u can extract custom rom and then change things u want and then create .zip again
Click to expand...
Click to collapse
I try to delete files from the Rom.zip and stay only the files that I want ..
But when I install the zip file did not run mobile again .. Htc logo appears so I did the installation of a new Rom ..
plz help to create zip file
I don't know diddly about the desire hd, but you are using an amend format, I think you need an edify format.
You can keep your system folder, but I suggest you download a newer rom and grab some files from there. You will need META-INF/com/google/android/update-binary and META-INF/com/google/android/updater-script Note the big, red "r".
Copy the binary and put it in the appropriate folder.
Your updater-script will look something like this:
Code:
ui_print("Unpacking new files...");
package_extract_dir("system", "/system");
ui_print("Symlinks and permissions...");
set_perm(0, 0, 0644, "/system/app/contacts.apk");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
It might be different for your phone, so download some roms and have a look to see if there are any material changes.
gee one said:
I don't know diddly about the desire hd, but you are using an amend format, I think you need an edify format.
You can keep your system folder, but I suggest you download a newer rom and grab some files from there. You will need META-INF/com/google/android/update-binary and META-INF/com/google/android/updater-script Note the big, red "r".
Copy the binary and put it in the appropriate folder.
Your updater-script will look something like this:
Code:
ui_print("Unpacking new files...");
package_extract_dir("system", "/system");
ui_print("Symlinks and permissions...");
set_perm(0, 0, 0644, "/system/app/contacts.apk");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
It might be different for your phone, so download some roms and have a look to see if there are any material changes.
Click to expand...
Click to collapse
thank you,,

[Q] Automatic installation of Apps LWW

I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
zcedar said:
I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
Click to expand...
Click to collapse
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
MoonBlade said:
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
Click to expand...
Click to collapse
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
zcedar said:
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
u said u wanted to include the apks inside the ROM before flashing it Right???
zcedar said:
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
MoonBlade said:
u said u wanted to include the apks inside the ROM before flashing it Right???
Click to expand...
Click to collapse
Yes, but while the flashing it will be installed in my sd card
pcpepik said:
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
Click to expand...
Click to collapse
where should i put this code?
In the zip go to
Code:
META-INF > com > google > android
here you will find the updater-script file, which you need to edit

[Q] New cooked ROM from android kitchen gets status 7 error when flashing

Okay so uh...I'm trying to make my own custom ROM from a stock Galaxy S3 sgh-i747, using dsixda's Kitchen.
My problem is that I am getting a status 7 error when trying to flash it.
Now I know, since I read the FAQ, that it has something to do with the updater-script. The only info I could gather is that you need to go in and change the format/mount code.
I have this:
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p14");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
So I suppose my real question is...what am I supposed to change (it to) so I can make it work? (and what else might I need to change?)
Any help greatly appreciated!
Edit: Oh and um...I'm also wondering.... If I put any new apks in the rom (such as note2 camera, etc.), do I have to put specific code in the script for them? (I'm a bit new to all this--everyone starts somewhere I guess)
same issue with me also .. Any one there to help?
Figure out your mount points if this is your error, also depending on your update-binary youay need to change the format of the arguments
As for the question about adding .apks, yes you need to modify updater-script to reflect this, and it depends on what folder they are in for ROM.zip and what partition you want them stored in.
Can't answer any further without more info but Google is your friend
Sent from my Nexus 4 using Tapatalk 2
Thats why i don't use kitchen, you wont LEARN anything.
and then you have this kind of problems, and you cant fix them.
And the last reply it usefull, check your mount points.
may be the updater-binary making the cause, try updater binary of working rom.
TroubleShooterâ„¢ said:
may be the updater-binary making the cause, try updater binary of working rom.
Click to expand...
Click to collapse
Try from the stock rom first (if the stock is running the same Android os version)

[Q] CWM recovery doesnt work

Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
LetisXXX said:
Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
Click to expand...
Click to collapse
what are you trying to do? Install an app?

[Q] Creating a CWM flashable zip

Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
i think it's already exist now
PlutoDelic said:
Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
Click to expand...
Click to collapse
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
mohamed_fattoh said:
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
Click to expand...
Click to collapse
Oh, you probably misunderstood me. I needed to know how to create a ZIP so i can flash it through CWM. I already have it, exactly what you've pasted , thnx for trying to help btw.
Check this this out. http://pan.baidu.com/s/1qWyNG8O
Might be a flashable i8558 rom. Muamk1
It semms that download links for i8558 custom roms are removed from their sites.
Got that link fromb http://m.romjd.com/Rom/Detail/35720
Another rom here. http://m.romjd.com/Rom/Detail/27609

Categories

Resources