Noob ROM cook needs help in the Kitchen - Verizon HTC One (M7)

I've been trying to create my own ROM in the Android Kitchen, but I haven't had much luck yet. I took the system.img and insecure-boot.img from this thread: http://forum.xda-developers.com/showthread.php?t=2416038, and have been trying to modify it (debloat, a few system tweaks).
When I go into TWRP, I wipe the caches, data, and system, then try to flash my ROM. This is the output in the console on the phone:
Updating partition details
Installing /sdcard/path-to-ROM
Checking for Md5 file
Skipping Md5 check
And then the phone reboots.
I'm thinking it has something to do with the updater-script that the Kitchen generates, because I see no evidence of it trying to even flash my ROM. I'm not real familiar with they syntax of the script yet, but it all looks ok to me (commands, partitions, etc.).
Here's the updater-script the Kitchen generated if it helps: http://pastebin.com/7xxHJp1c
Thank you for any advice you can provide!

Any insight into what I'm doing wrong? I've been working on this on and off all weekend and still haven't figured it out.

I figured out one part of the problem: My updater-script and update-binary weren't world executable. As soon as I made them world executable, I made a little more progress.
Now when I try to flash the update.zip, the installer halts and says failed. I pulled the recovery.log, but I don't see any helpful information in it. I've attached the recovery.log if anyone would like to take a look.

Related

[q] i need help with my kitchen in linux

Alright I have post several times else where regarding this issue and nobody wants or can help me with an answer.
I am trying to start how to create,modify roms with Kitchen Version 0.87 in my Linux not in Virtual Box Though I've tried both still dont work.
Ok first I have done everything accordingly including Installing Java in the Terminal to Run Kitchen.
Here are my Errors Reports;
Note: (This Happens On any Rom I put in my Update Folder)
Make sure the ROM is under the original_update folder. The format
may be one of the following:
– A ZIP file for a cooked ROM (e.g. update.zip)
– A ZIP file containing *.img (e.g. rom.zip from shipped ROM)
– boot.img + system.img (e.g. from shipped ROM or Nandroid)
Press Enter to continue
[: 75: 0: unexpected operator
[: 34: DamageControl-3.5-final.zip: unexpected operator
scripts/choose_rom: 73: file_array[1]=DamageControl-3.5-final.zip: not found
[: 73: DamageControl-3.5-final.zip: unexpected operator
Available ROMs:
(1) DamageControl-3.5-final.zip
Enter file number (0 = cancel)[/COLOR]:
Nvm. Missed that line.
fr4nk1yn said:
Nvm. Missed that line.
Click to expand...
Click to collapse
So you don't know either?
Wrong forum.
have you tried a different rom zip, that one could be corrupted or just not work well in the kitchen. I would first try a completely different rom. If it works try to download DC again.
Also look at the scripts folder. The scripts are pretty easy to follow. Try doing the steps out by hand and you will probably get better error messages.
Sent from my PC36100 using Tapatalk
laydros said:
have you tried a different rom zip, that one could be corrupted or just not work well in the kitchen. I would first try a completely different rom. If it works try to download DC again.
Also look at the scripts folder. The scripts are pretty easy to follow. Try doing the steps out by hand and you will probably get better error messages.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Like I said in paragraph I've tried every rom I have witch is about 21 rom's
Post the question here... http://forum.xda-developers.com/showthread.php?t=633246

[Q] questions on creating a ROM from nandroid

Hello XDA-D!
This is my first post, so fingers crossed:
Got a question regarding a little learning and development activity I am undertaking.
I'm trying to develop my understanding of creating ROM files. One task I really would like to complete to close some ideas I have, is to restore nandroid backup images (.img) through a ROM install. Yes, I know, there is easier/other ways, but I am just doing this to expand my knowledge so please help...
So, I've got Java SDK and Cygwin installed under windows7. I've got a script that extracts system.img, boot.img, data.img, sd-ext.img and cache.img from the clockwork/backup folder from a connected (rooted) HTC Desire with clockwork mod recovery installed. The boot image is copied into my working area, other images are extracted into their own folders, i.e. ./system ./data and so on, under the working area.
I then add all the other stuff and zip up the working area and create a ROM.
The ROM installs fine but the phone doesnt start up. adb logcat reveals a permission problem with busybox.
I'm thinking I need lots of set_perm and set_perm_recursive in update-script, but what on earth do I set the gids and uids to for all the folders ?
thanks.
Moved to Q&A as not development
ah, apologies and thanks awfully old chap.
Heres hoping I get an answer in that particular forum then.

[Q] Create flashable .zip?

Hi im working on creating some boot animations. Ive got the files ready, but i cant figure out how to put them into a flashable .zip.
I flashed this file thunderbolt boot animation and it worked so i figured if i just replaced my animation and audio it would work but i get an error saying "e:update script not found" or something along those lines.
Id like to know if there is an easy way to create a "template" were i just copy my animation into a folder and zip it, or if there is a program that will package it for me including the script/etc.
Any input or guide on how to make these boot animations flashable .zip's would be great, thanks.
Eat it iPhone said:
Hi im working on creating some boot animations. Ive got the files ready, but i cant figure out how to put them into a flashable .zip.
I flashed this file thunderbolt boot animation and it worked so i figured if i just replaced my animation and audio it would work but i get an error saying "e:update script not found" or something along those lines.
Id like to know if there is an easy way to create a "template" were i just copy my animation into a folder and zip it, or if there is a program that will package it for me including the script/etc.
Any input or guide on how to make these boot animations flashable .zip's would be great, thanks.
Click to expand...
Click to collapse
Thats weird it didn't work. Should. Maybe it wasn't re-packaged correctly.
Try the one attached.
CCallahan said:
Thats weird it didn't work. Should. Maybe it wasn't re-packaged correctly.
Try the one attached.
Click to expand...
Click to collapse
Thanks ill try it out, just dont have the time right now.
If you cant figure it out i'll give you a guide tomorrow when i'm off my iPad .
did you rezip it correctly?
I ran into this trouble, I forget what it is, but you have to zip the files a certain way or they will not work. I don't remember the settings anymore, but just creating a regular zip file won't work.
There is a good guide to making your own update script on xda somewhere. Just search the entire site. If i'm just flashing something simple like a theme or boot animation sometimes I just use someone else's flashable zip and replace the necessary files. I can't remember off the top of my head, but iirc there are two folders you want to keep from someone else's zip. Meta-inf which is basically the signature files and something else which contains the script. If you dissect someone's zip it should be obvious what the other folder you want to keep is. You will find the update script in one of the sub folders, and if you want you can open it with a text editor and get an idea of how the script works.
If you need more info I can help you more when I get to my computer.
Sent from my PC36100 using XDA App
dkdude36 said:
If you cant figure it out i'll give you a guide tomorrow when i'm off my iPad .
Click to expand...
Click to collapse
Id appreciate a guide either way, id rather learn to do it myself than use someone else's. No rush as i cant really approach this til the weekend.
Eat it iPhone said:
Id appreciate a guide either way, id rather learn to do it myself than use someone else's. No rush as i cant really approach this til the weekend.
Click to expand...
Click to collapse
ok, here it goes.
first, figure out where you want to push your file. i'd reccomend pushing manually in recovery to make sure the file itself works. then, using a tool like 7zip (pc) or betterzip (mac) create a file structure that matches the one on the phone. for example, if you wanted a boot animation to be put in system/customize/resource, make a folder system, customize in that, resource in that, and the bootanimation.zip inside that. now you have the main part. next, make a folder in the root of the zip called META-INF (caps counts) inside that, com, inside that, google, and inside that, android. thats /META-INF/com/google/android/. inside android, you need to place in an update-script. i'd reccomend taking one from another zip and just editing it becasue i still have not figured out a way to make that type of file (unix exec) from scratch. open it up in a .txt editor like notepad++ (pc) or coda (mac) and write your script. here is the baisic script for copying the directory system on the zip to system on the phone (like flashing a boot animation).
copy_dir PACKAGE:system SYSTEM:
CAPS COUNT AND MAKE SURE YOU HAVE AN ENTER AT THE END. IF YOU DO NOT HAVE AN ENTER AT THE END (TO MAKE IT TWO LINES INSTEAD OF ONE, LIKE ISSUEING A COMMAND) THEN IT WILL NOT WORK AT ALL ( E:SYNTAX ERROR IN UPDATE-SCRIPT IS THE ERROR YOU WILL GET)
so put this file into the folder android, and zip it. make sure it is in store only, compatibility mode, if you have such options. then, use an auto signer (or just say zip is not signed and make sure to put sig verification off) to sign the zip. flash, and watch your work magically appear.
the update-script i showed is written in amend. i have no idea how to write in edify bcuz it is much more complicated with the binary and stuff. so dont flash with cwm 3.0+.
good luck. ask if you have any questions.
hello will this methed work on like adding some personal apps you want to be on your rom?

How to create CWM Zip

I'd like to start learning how to create .zip CWM compatible files so I can start creating some scripts I'd like to test out. Are there any resources on how to do this from scratch, I don't want to use a tool that does most of the work for you, as I wont learn anything about the workings of CWM. I have unzipped a couple of the zip files I have, and I get the relationship between the manifest and update scripts, however I'm unsure on the update binary script, and the signatures for the files in the manifest file. Is there a tool that generates the update binary and these hash codes( if they are hash codes ) in the manifest?
EDIT: Would also like to know where I can find a list of 'acceptable' commands that can be run from an update script in the zip, or are these just any exec bin in your android path?

Question on modifying a combination file?

Good day all,
I am hoping someone can help me out and explain what I am not doing correct or point me in the right direction.
I have been reading the forums for quiet some time and have learned alot and want to thank everyone for their posts.
My question is I have taken apart the combination file and have been able re create the tar ball and successfully push it back onto the phone. ( I know some of these eng boot and combination files are digitally signed and I have not figured out how to confirm this). The issue is when I push this file with odin it wipes the user data which is the issue.
I then began digging deeper into the img files and located within the cache.img/recovery/command:
--carry_out=csc_factory
--wipe_data
Which will wipe the data. I have tried removing this along with changing the csc_home which would not wipe the user data if I understand this correctly. Once I modify the file I change the permissions back to read only and convert the cache.img to an android sparse file and create the tar-ball. I am now going through the system.img and boot.img to see if I can possibly modify these to bypass mounting the cache.img.
I am not sure if any of this will work and not sure why its not working so any advice would be very helpful.
Thanks,
San

Categories

Resources