[Q] Stock rom ? - Nexus 4 Q&A, Help & Troubleshooting

Hi,
i would like to know how i could get my stock rom from my N4, like a .zip file. Because i tried nandroid, but i would like to modify the rom with the kitchen, and i don't know how to do if i don't have a zip file... Thanks !

AutruiP said:
Hi,
i would like to know how i could get my stock rom from my N4, like a .zip file. Because i tried nandroid, but i would like to modify the rom with the kitchen, and i don't know how to do if i don't have a zip file... Thanks !
Click to expand...
Click to collapse
You should be able to extract the boot and system images from Google's factory image.
https://developers.google.com/android/nexus/images#occam
I wasn't aware that the kitchen worked with the Nexus 4 as its still listed as one of the unsupported devices but the thread hasn't been updated since October of last year so maybe that changed.
this is copied from dsixda's kitchen thread (http://forum.xda-developers.com/showthread.php?t=633246 post #3):
How do I import a ROM into the kitchen to use as my base?
(The instructions below are for HTC devices in general. For other devices, please visit the appropriate thread.)
From a shipped ROM:
First, find the shipped ROM for your device, usually from htc.com or from searching xda-developers (check the Wiki or sticky posts under your device's sub-forum).
This link may help: Various devices
Please don't ask me for links, as I don't know everything or own all devices.
The shipped ROM can be found in three different formats. Identify the type you have downloaded:
If the shipped ROM is in a .ZIP format, then simply copy it to the kitchen's original_update folder.
OR if the shipped ROM consists of system.img and boot.img files, then copy those two files to the kitchen's original_update folder. If the ROM also includes a lib.img (found in some newer HTC ROMs), then copy that as well!
OR if the shipped ROM is in an .EXE format, then do the following:
In Windows, run the shipped ROM's .EXE file till it gets to the first dialog. Stop there but don't close the window yet.
Go to Start->Run and type: %TEMP%
When the folder opens, search for Rom.zip (use the "magnifying glass" Search button)
Copy Rom.zip to your kitchen's original_update folder
OR from a cooked/custom ROM:
Copy the update.zip (or equivalent ZIP file) to your kitchen's original_update folder
OR from a Nandroid backup (under /sdcard/nandroid) [NOT RECOMMENDED FOR NON-STOCK ROM BACKUPS]:
Copy the system.img and boot.img files from the backup folder to your kitchen's original_update folder

Hm, i see. But the problem with the dev links for Google is that it's 4.2.2 and not 4.2.1... I would like to stay to an older version for the moment, with those problems with bootloaders, kernels etc... I will try with system and boot img, thanks !
Sent from my Blade S using xda app-developers app

Well, i tried to use the tutorial about shipped rom, but my system.img and boot.img files aren't recognized by the kitchen... So i don't know how to do Halp ?

In this thread you have posted link to factory image with android 4.2.1 http://forum.xda-developers.com/showthread.php?t=2145848

Great !! Thanks a lot eskeyy !

Related

status on rooting cliq

I found this on http://cliq-development.com/forums/viewtopic.php?f=5&t=13
hopefully this can help anyone who is trying to develop a way for root on the cliq.
To get where we are at in development you must learn about a few things
.SHX = A re-flashing file similar to a .nbh on the HTC brand. It is a full re-flash of everything on the phone, full stock. When extracted it creates three files the main one is the CG2
CG2 = A file extracted from the shx that hold the main partitions that will be flashed to the phone.
-----------------------------------------------------------------------------------------------------------------------
How to extract a shx
(http://modmymoto.com/forums/showthread.php?t=525344)
A developer by the name of Meiner Einer created a program named SbfRecalc. With this program we can extract three files and as i stated above the most important one is the CG2
How to extract a CG2
(http://modmymoto.com/forums/showthread.php?t=525477)
A developer by the name of Skrilax_CZ created a program named CG2 Parser. With this program we can extract all of the files within the CG2.
-----------------------------------------------------------------------------------------------------------------------
After you extract all of the files from the CG2 you will find that some of the names were similer to the partitions of the cliq. With a little file manipulation i recreated a boot.img and a recovery.img from some of the files. The guys over at modmymoto dumped a full system partition.
(http://android-dls.com/wiki/index.php?t ... oot_Images)
To recreate both the boot.img and the recovery.img just do these simple steps
1. Create a directory and put either bootsec.mbn or recoverysec.mbn from the CG2 dump inside it
2. Download the split_bootimg.pl from the link above and run it with the file in the directory to get both a kernel and a ramdisk file.
3. Using the mkbootimg from the android source code you can recombine the kernel and the ramdisk files to create your boot.img/recovery.img strait from the re-flash file
------------------------------------------------------------------------------------------------------------------------
With the system dump from modmymoto and my boot.img(+a little root) I created an update.zip file with root ready to be flashed when the keys are ready.
This is where we are at any help would be greatly appreciated.
Wow, nice work!
This could really so with a sticky...
Thanks for the update! The cliq goes hard. Once rooted its ova, best android phone on tmo!
Nice! It would be really great if you could repost this at android-devs.org over in the cliq development section of the forum
Since XDA is only for HTC phones and most people here most likely don't have the cliq and there really isn't a correct forum to have this posted in..
I'd reccomend using android-devs.org forums

Putting Custom Kernel into a rom

Hello, I am a developer for the Evo and i was curious how i would install a custom kernel (Netarchy-Toastmod) into my rom (Tha Boss Rom. So far i copied all the files into the appropriate folder but what do i do with the boot image. I tried flashing with the files in place but it did not take. Any advice?
KyleCole90 said:
Hello, I am a developer for the Evo and i was curious how i would install a custom kernel (Netarchy-Toastmod) into my rom (Tha Boss Rom. So far i copied all the files into the appropriate folder but what do i do with the boot image. I tried flashing with the files in place but it did not take. Any advice?
Click to expand...
Click to collapse
You probably should ask this in the EVO Android Development forum. However, since I'm here, I'll do my best.
The boot.img should be at the root of the folder structure.
../NewFolder/system
../NewFolder/META-INF
../NewFolder/boot.img
You then have to zip the CONTENTS of ../NewFolder and sign the resulting zip with something like EasySign (http://android.grdlock.net/index.php?&direction=0&order=&directory=Extras).
Or you can just load the original ROM into dsixda's kitchen in the original_update folder (http://forum.xda-developers.com/showthread.php?t=633246), select '1' to create a work folder, copy the files into the correct locations, and then select '99' to zip and sign the ROM. It will then be in the OUTPUT_ZIP folder. The kitchen walks you through these steps really well, if you read the prompts.
Then flash the ROM.

CUSTOM ROM (deodexed)

Hey guys,
you probably don't know me, but I have created a custom rom for our Galaxy 3 based on Froyo.
It comes with both, the TW Launcher and the stock launcher, Launcher2.
So YOU are able to choose one of them.
It has modiefied framework-res.apk and twframework-res.apk too (Gingerbread look).
And last but not least, I rebuild the zImage kernel for speed and this is probably the first DEODEXED rom avaiable for Galaxy 3.
The only PROBLEM is, that my rom comes an an update.zip package which i cannot sign with the samsung key since I don't have it.
So if you guys could manage to create a custom recovery that lets us apply update.zip packages like in times of ECLAIR, we could use my rom.
So I need you guys to to this.
Then we can use my deodexed, optimized froyo rom.
rayman33 said:
Hey guys,
you probably don't know me, but I have created a custom rom for our Galaxy 3 based on Froyo.
It comes with both, the TW Launcher and the stock launcher, Launcher2.
So YOU are able to choose one of them.
It has modiefied framework-res.apk and twframework-res.apk too (Gingerbread look).
And last but not least, I rebuild the zImage kernel for speed and this is probably the first DEODEXED rom avaiable for Galaxy 3.
The only PROBLEM is, that my rom comes an an update.zip package which i cannot sign with the samsung key since I don't have it.
So if you guys could manage to create a custom recovery that lets us apply update.zip packages like in times of ECLAIR, we could use my rom.
So I need you guys to to this.
Then we can use my deodexed, optimized froyo rom.
Click to expand...
Click to collapse
question: what deodexed means??? i never heard that word before...
why this isnt in dev forum?
Thats good buddy.... Plz upload the zImage kernel with Deodexed
ready to try
Need some more information
Ok buddy,
I'll upload it...let's see..
maybe tomorrow after school.
But can you tell me : For theming and so on,
what needs to be deodexed ?! I only deodexed /system/app .
Does /system/framework also need to be deodexed ?!
AND : GOOD NEWS :
I succesfully created a flashable ODIN package based on XXJPA, which is deodexed in /system/app !
So please tell me if I should deodex /system/framework !
I'll add the Kernel and all the other stuff in my 2nd release
STAY TUNED BUT HELP ME .
rayman33 said:
Ok buddy,
I'll upload it...let's see..
maybe tomorrow after school.
But can you tell me : For theming and so on,
what needs to be deodexed ?! I only deodexed /system/app .
Does /system/framework also need to be deodexed ?!
AND : GOOD NEWS :
I succesfully created a flashable ODIN package based on XXJPA, which is deodexed in /system/app !
So please tell me if I should deodex /system/framework !
I'll add the Kernel and all the other stuff in my 2nd release
STAY TUNED BUT HELP ME .
Click to expand...
Click to collapse
If possible, could you PM the instructions on how to deodex a ROM?
Sent from my Samsung Galaxy 3 FROYO
great now we can modify the indivisual apps in the samsung...crap.......
and yes i thinkthe framework folder also needs to be deodexed...
right now we can only modify /hack the framework-res.apk and twframework-res.apk as they do not have odex files with them i.e deodexed....
while others are odexed...
this is the first great step to galaxy 3 custom roms and from that i mean great roms....
Instructions
So for you guys, here is the instruction for deodexing .
First, go to youtube and follow the video instructions of nokia7vista's tutorial for creating a custom rom for Samsung Galaxy S.
(Download a base rom that you want to customize (i.e. XXJPF) and download and install magiciso to open the factoryfs.rfs from XXJPF (in magic iso, go to open and then select all files, then you can open factoryfs.rfs). When you have done this, extract the content of factoryfs.rfs to your desktop and put it into a folder called "System". Put the folder "System" into a new folder called "CFW". Now you have to download the rombasics.zip based on JPA FROYO, which are found in another post in the xda - Forum in the development section. (Sorry I'm a new user so i'm not allowed to post links. When I am, I'll do !
Then, put the content of rombasics.zip into the folder "CFW".
After that, follow nokia7vista's tutorial part 4 to install cygwin correctly and install the HTC Android kitchen.
When you followed the tutorial, you should know how to start the kitchen (open cygwin, cd to folder where you placed the kitchen and type "./menu" (without quotes ).
And in the kitchen, you must first do nr. 1 (building working folder from the folder "CFW"). Then, you can type 0 to access the advanced options and type 11 to deodex. Easily select if you only want to deodex either only /system/app or only /system/framework or both.
AFTER you have followed all these steps, you have to select 99 in the kitchen. This will set up "CFW.zip" in the /kitchen/output folder.
When this is finished, you have to extract the "CFW.zip" and copy the factoryfs.rfs to any Froyo based ROM for Galaxy 3 you like.
THEN you're done
rayman33 said:
So for you guys, here is the instruction for deodexing .
First, go to youtube and follow the video instructions of nokia7vista's tutorial for creating a custom rom for Samsung Galaxy S.
(Download a base rom that you want to customize (i.e. XXJPF) and download and install magiciso to open the factoryfs.rfs from XXJPF (in magic iso, go to open and then select all files, then you can open factoryfs.rfs). When you have done this, extract the content of factoryfs.rfs to your desktop and put it into a folder called "System". Put the folder "System" into a new folder called "CFW". Now you have to download the rombasics.zip based on JPA FROYO, which are found in another post in the xda - Forum in the development section. (Sorry I'm a new user so i'm not allowed to post links. When I am, I'll do !
Then, put the content of rombasics.zip into the folder "CFW".
After that, follow nokia7vista's tutorial part 4 to install cygwin correctly and install the HTC Android kitchen.
When you followed the tutorial, you should know how to start the kitchen (open cygwin, cd to folder where you placed the kitchen and type "./menu" (without quotes ).
And in the kitchen, you must first do nr. 1 (building working folder from the folder "CFW"). Then, you can type 0 to access the advanced options and type 11 to deodex. Easily select if you only want to deodex either only /system/app or only /system/framework or both.
AFTER you have followed all these steps, you have to select 99 in the kitchen. This will set up "CFW.zip" in the /kitchen/output folder.
When this is finished, you have to extract the "CFW.zip" and copy the factoryfs.rfs to any Froyo based ROM for Galaxy 3 you like.
THEN you're done
Click to expand...
Click to collapse
oh ... can you make deotexed (system app & framework) rom based on jpf ?
rayman33 said:
So for you guys, here is the instruction for deodexing .
First, go to youtube and follow the video instructions of nokia7vista's tutorial for creating a custom rom for Samsung Galaxy S.
(Download a base rom that you want to customize (i.e. XXJPF) and download and install magiciso to open the factoryfs.rfs from XXJPF (in magic iso, go to open and then select all files, then you can open factoryfs.rfs). When you have done this, extract the content of factoryfs.rfs to your desktop and put it into a folder called "System". Put the folder "System" into a new folder called "CFW". Now you have to download the rombasics.zip based on JPA FROYO, which are found in another post in the xda - Forum in the development section. (Sorry I'm a new user so i'm not allowed to post links. When I am, I'll do !
Then, put the content of rombasics.zip into the folder "CFW".
After that, follow nokia7vista's tutorial part 4 to install cygwin correctly and install the HTC Android kitchen.
When you followed the tutorial, you should know how to start the kitchen (open cygwin, cd to folder where you placed the kitchen and type "./menu" (without quotes ).
And in the kitchen, you must first do nr. 1 (building working folder from the folder "CFW"). Then, you can type 0 to access the advanced options and type 11 to deodex. Easily select if you only want to deodex either only /system/app or only /system/framework or both.
AFTER you have followed all these steps, you have to select 99 in the kitchen. This will set up "CFW.zip" in the /kitchen/output folder.
When this is finished, you have to extract the "CFW.zip" and copy the factoryfs.rfs to any Froyo based ROM for Galaxy 3 you like.
THEN you're done
Click to expand...
Click to collapse
please post your deodexed rom, atleast we can get to know if it works for g3 or not
is it working for you??
after deodexing what advantages have you taken of that???
So my deodexed base ROM so far has not booted.
Any reason why?
Custom Rom (XXJPA)
@DarkLestat :
My custom rom (deodexed) is working, yes. But I think it's way to slow to use it every day because it's based on JPA.
When you gyus want me to release a super fast and super stable deodexed rom, which I'm actually able to build, you have to share the rombasics.zip based on XXJPF.
If anyone could do that, that would be great.
rayman33 said:
@DarkLestat :
My custom rom (deodexed) is working, yes. But I think it's way to slow to use it every day because it's based on JPA.
When you gyus want me to release a super fast and super stable deodexed rom, which I'm actually able to build, you have to share the rombasics.zip based on XXJPF.
If anyone could do that, that would be great.
Click to expand...
Click to collapse
I'm using Gsam101's JPA Clean ROM with the ronbasics for JPA.
is that a reason?
How exactly did you get the factoryfs.rfs from the CFW.zip? All my .zip has are the folders I zipped into it, and its supposedly the finished ROM?
Sent from my Samsung Galaxy 3 FROYO
How would i go about creating a factoryfs.rfs?
EDIT: Anyone?
CFW.zip ?!
Ehhhhm...DarkLestat... If I#m understanding right, you wanna build a custom rom with an update.zip package..
If you are doing so, let me say that it don't works since samsung has implemented a new recovery in Froyo builds which don't allows us to flash the update.zip packages anymore.
You actually have to create a flashable odin package.
(including cache.rfs, datafs.rfs, factoryfs.rfs, modem.bin and zImage)
After you have done that, repack these files to a odin .tar package with the following commands in cygwin : (after you cd'd to your rom's folder)
Code:
tar -H ustar -c cache.rfs datafs.rfs factoryfs.rfs modem.bin zImage > output.tar
@The Dark Lestat: What's the source? JPF or older?
i have deodexed the jpf system/app all contents except settings .
deodexing settings causes loopback boot and phone does not boot.....
though i am verifying but deodexing is great....
i have tried changing the icons of apps, now they work, in odexed they were'nt...
though the gallery app, music player seems to be slower
spl. gallery is a tonn times slower. dont know the reason....
boot is fast.....
lets see..
Szaby59 said:
@The Dark Lestat: What's the source? JPF or older?
Click to expand...
Click to collapse
JPA
Sent from my Samsung Galaxy 3 FROYO
So we cant install this rom throw recovery menu, because samsung changed something in froyo update? Am i right? Its posible to flash back into enclair and flash it throw enclair recovery menu?
Meybe this is very newbie question.... i dont understand to these things (but i want to)
Sent from my GT-I5800 using XDA App
How do you create a factoryfs.rfs?
Terminal?
froyo is not released by samsung yet right??? i mean officially then how the hell can samsung change something in **** **** **** so the **** update cannot be done....i dont get this
is froyo out?

how to extract ruu

How do you get the system folder out of an ruu?
Mainly /system/app
Uhh Ohhh!
Whislt trying to see if the ruu Would extract any files to my comp. I didnt realise my wildfire was plugged in! Will it be ok?
P.s it was a Wildfire S RUU!
It didnt change or edit anything!?
CM7 still!
Lol just imagine using a WF S ruu and ending up with Sense 2.1
Ontopic: Try using one of the "safe" RUUs found in this thread: http://forum.xda-developers.com/showthread.php?t=1029318
They are flashable files so you can see if you can find anything useful in there.
Hi. Sorry for my english, but if U want extract rom files from RUU exe you must do this.
1. Start RUU exe to first screen, and leave it. Don't close.
2. Go to %TEMP folder (strat->run->%TEMP or samething like that %TEMP%???)
3. Search for file ROM.zip (iT schould be in one of those strange name folders, you can use search tool)
ROM.zip contains ale files to flash wf. Radio, hboot etc
george1234567890 said:
It didnt change or edit anything!?
CM7 still!
Click to expand...
Click to collapse
It won't change anything. Even flashing an ruu of different region ends up with error. How can a different device ruu make changes to the wildfire.
And I think you are attempting to extract wildfire s apps and install it in wildfire . But it will not work. Those apps will be HTC only and device specific AFAIK. Otherwise I think we would have had great features.
Sent from my HTC Wildfire using XDA App
Coming to the process of extracting system/apps from an ruu.
Donot connect the phone to pc. First click on the windows pc start and type "%temp%" without quotes and enter. This opens the user temporary folder. Now open the ruu and wait for a couple of minutes. Do not go with the process. Just keep the ruu window aside. Now if you see the temporary folder, there will be a couple of folders created which will have a lengthier name within the { } brackets. If you search in these folders you will find a Rom.zip file. Copy this Rom.zip file to a safe location.
The rom.zip contains the system.img and other img files. Now you should extract the contents of img files with a seperate tool called unyaffs. There is also an Android application in particular for doing that (yaffs expert). This is the thread to go for that process.
http://forum.xda-developers.com/showthread.php?t=961164.
Sent from my HTC Wildfire using XDA App

[Q] CWM backup-->flashable rom?

I'm a new developer and have applied all my tweaks and edits via root explorer so far. is there a way to change a CWM backup into a flashable rom file for other users to flash? I searched around a bit, but couldn't seem to find anything about it.
Goto this thread here
follow all the setup to install cygwin & kitchen
once it's all setup you can plug your phone in and create a rom
follow the guide (second method) for creating the rom system files by extracting the system folders from your phone (rom you are using)
you can then turn it into a flashable rom zip
I think you just basically extract the CWM backup, then repackage them in 1 zip file (except for the androidsecure backup).
9steele9 said:
I'm a new developer and have applied all my tweaks and edits via root explorer so far. is there a way to change a CWM backup into a flashable rom file for other users to flash? I searched around a bit, but couldn't seem to find anything about it.
Click to expand...
Click to collapse
YOU CAN USE THE CWM BACKUP IN KITCHEN YO MAKE A CUSTOM ROM.BUT YOU CAN'T ABLE TO USE THE BACKUP FILE DIRECTLY AS A CUSTOM ROM.
OTHER HAND YOU CAN MAKE ALSO THIS BACKUP AS A DEODEXED STOCK ROM BY DEODEXING THIS BACKUP FILES.
YOU CAN FIND KICHEN GUIDE HERE-http://forum.xda-developers.com/showthread.php?t=1801690
YOU CAN FIND DEODEXING GUIDE HERE-http://forum.xda-developers.com/showthread.php?t=2230337
PRESS THANKS IF I HAVE A BIT SUCCESS TO HELPING YOU.....:thumbsup:
Hmm thats how i make roms that i dont post here though....
In tthe cwm backup u have system.rfs.tar
Extract it using 7zip
U get system.img or u might get a system folder....
Extract the img file using Magic Iso
Open magic iso
In menu..
File>open
Select ur system.img
On the left side pane right click on the disk icon and click extract.select ur destination
Once the files are all extracted copy all of them in a folder named "system"
Now get a meta-inf folder from a custom rom and zip
Meta-Inf and system folder together
U have ur rom...
Ill create a video tutorial for this tomorrow as many people ask this question in different threads of devices....
Sent from my GT-S5360 using xda app-developers app

Categories

Resources