Yes i know the fastboot trick, but can anyone guide me towards making the nandroid backup files into a update.zip that would work?
I'd like to know too ^^.
Me too.
I've successfully scripted the automated creation of a file structure into which the contents of BOOT.IMG, SYSTEM.IMG, DATA.IMG, CACHE.IMG and SD-EXT.IMG are extracted. The script also creates a valid update-script file under ./META-DATA/....
The only issue I have is that I'm using windows so the .IMG files extracted as a yaffs file system, looses the original file permissions. I need someway to recreate the permissions in the update.zip.
Thats all.
Having a way of converting a nandroid backup to an update.zip means you can very easily cook custom roms from a nandroid backup, and port ROMs across phones using a portable .ZIP format.
Maybe dsixda can help
http://forum.xda-developers.com/showthread.php?t=633246
"OR [cook a rom] from a Nandroid backup (under /sdcard/nandroid) [NOT RECOMMENDED]:
Copy the system.img and boot.img files from the backup folder to your kitchen's original_update folder
NOTE: The Nandroid-backup method of cooking is not the best way to cook, because the kitchen may not account for various advanced options that were cooked outside of this kitchen (these options are in the update-script file which was in the original ROM but is not in the backup. The kitchen needs to re-create this file and 'guess' those options). However, it will support Nandroid backups that already have basic features like root, busybox and /data/app functionality. "
You get nandroid backup images by backing up a ROM which was flashed from an update.zip package. What is then the point of recreating that update.zip package?
giant is right with the klitchen by dsixda you can make an update.zip form nandroid very easy
Guys, we're missing the point.
To clarify:
The "point of recreating the ZIP ROM file" are numerous. For example, to create a ROM where the original ROM isnt available, i.e. to create a portable ROM based on an existing set of images in a phone where the phone and/or its sdcard cannot be removed or where we do not wish to remove the card. Simple. But more importantly, the process is a learning and development activity that I want to undertake, its a personal decision, for which support would be welcome.
Secondly, dsixda issues many caveats around cooking ROMs from nadroid backups. It simply doesnt work - I've tried it - thus his caveat is correct and should be observed. Furthermore, his kitchen creates windows based ZIP files. The process is inherently flawed for creating ROMs for linux because the ZIP files contain a windows file structure which does not contain the appropriate linux based file permissions (linux being the O/S base system on android. The restore operation does not work - in stock form - because one looses the critical file permissions, UID and GID that are required in order for the ROM to function correctly, and in some instances from my experience, to even boot up! His update-script attempts to reinstate the appropriate permissions, UID and GIDs, however, and as dsixda admits, the process is not foolproof and does not cover all eventualities, combinations and scenarios. Thus, the issue of permissions, GID and UID remains outstanding.
For these reasons, in my humble view, the issue of permissions is critical in ensuring a successful ROM flash from [linux based] .IMG files. Once this is resolved, the rest of the process is trivial. Indeed, if this one issue could be resolved, then dsixda's kitchen would mature from a useful toolset, to a truly wonderous one-stop solution.
well i don't know what people have tried and got to work or not, but it can eb done and have been done before, one of my sliderom build was done froma nandroid
soo i guess it's up to how much effort you put into it and use the kitchen as a tool, but not only use it, cause then you fail, if you don't do some manual work, nothing 100% automated will ever be a big succes
I have a solution.
I am coding this up as we speak.
My solution will extract the file permission, UID and GID from the .IMG , for each contained file. My script then runs as part of the update-script (i.e. RUN_PROGRAM restore-protection) subsequent to a ROM flash. Thus, the resultant file structure after a ROM update is exactly the same as that contained within the .IMG files.
EDIT:
coding complete.
will test tomorrow on existing phone + sdcard.
The purpose of this exercise is to 'clone' an existing phone software load, as ROM file, that can then be flashed. My script takes all partition images (system, data, cache, sd-ext and so on), creates a ROM that includes functionality that will - when flashing - restore the exact permissions, GID and UID as written in the backup files (.IMG), thus cloning the phone.
I plan to update the script in future so that APK files can be added or removed, and additional low level features such as kernel pre-empting, scheduling and other features can be added --- I think they call this "a kitchen" in Android speak.??
From your description of what you're doing it sounds like you could end up with the simplest and closest to a one click kitchen that allows users with less knowledge to fully backup / restore / clone their phone (rom, personal settings, data and all). A lot of noobs might like this tool big time
Any progess made on this? I have been trying to create a rom for a nandroid backup. When I go to flash it, I get symlink errors and the flash fails.
dazxda said:
I have a solution.
I am coding this up as we speak.
My solution will extract the file permission, UID and GID from the .IMG , for each contained file. My script then runs as part of the update-script (i.e. RUN_PROGRAM restore-protection) subsequent to a ROM flash. Thus, the resultant file structure after a ROM update is exactly the same as that contained within the .IMG files.
EDIT:
coding complete.
will test tomorrow on existing phone + sdcard.
The purpose of this exercise is to 'clone' an existing phone software load, as ROM file, that can then be flashed. My script takes all partition images (system, data, cache, sd-ext and so on), creates a ROM that includes functionality that will - when flashing - restore the exact permissions, GID and UID as written in the backup files (.IMG), thus cloning the phone.
I plan to update the script in future so that APK files can be added or removed, and additional low level features such as kernel pre-empting, scheduling and other features can be added --- I think they call this "a kitchen" in Android speak.??
Click to expand...
Click to collapse
Do you have a link?
dazxda said:
I have a solution.
I am coding this up as we speak.
My solution will extract the file permission, UID and GID from the .IMG , for each contained file. My script then runs as part of the update-script (i.e. RUN_PROGRAM restore-protection) subsequent to a ROM flash. Thus, the resultant file structure after a ROM update is exactly the same as that contained within the .IMG files.
EDIT:
coding complete.
will test tomorrow on existing phone + sdcard.
The purpose of this exercise is to 'clone' an existing phone software load, as ROM file, that can then be flashed. My script takes all partition images (system, data, cache, sd-ext and so on), creates a ROM that includes functionality that will - when flashing - restore the exact permissions, GID and UID as written in the backup files (.IMG), thus cloning the phone.
I plan to update the script in future so that APK files can be added or removed, and additional low level features such as kernel pre-empting, scheduling and other features can be added --- I think they call this "a kitchen" in Android speak.??
Click to expand...
Click to collapse
Hi, could yo share your script? I'm also working on something similar, and could use a bit of help
OMG this is exactly what I need.. I read all the way to the end and then ARRGGGGGG.. no more responses in months. Have you made this script yet? If no .. does anyone else have instructions on taking a nandroid backup and creating an IMG or ?
My personal reasons.. I have a Craig CMP741E tablet that is stuck in the android logo screen after attempting the factory update.. the one that crashes EVERY1's tablet. And there is no working way that I have found to fix it. No custom roms or factory roms that can be flashed without FIRST having the tablet ON and turn on USB Debugging or already have CWM installed. So I cannot use ADB or any other method I can find to do this.
I have a buddy with the same tablet that is rooted and has GAPPS and everything on it. He gave me a copy of his nandroid backup but now I cannot find anything I can actually do with it. If I can turn it into an Update.zip or IMG I can simply put on SD Card.. restart and cross my fingers.
lilc420 said:
OMG this is exactly what I need.. I read all the way to the end and then ARRGGGGGG.. no more responses in months. Have you made this script yet? If no .. does anyone else have instructions on taking a nandroid backup and creating an IMG or ?
My personal reasons.. I have a Craig CMP741E tablet that is stuck in the android logo screen after attempting the factory update.. the one that crashes EVERY1's tablet. And there is no working way that I have found to fix it. No custom roms or factory roms that can be flashed without FIRST having the tablet ON and turn on USB Debugging or already have CWM installed. So I cannot use ADB or any other method I can find to do this.
I have a buddy with the same tablet that is rooted and has GAPPS and everything on it. He gave me a copy of his nandroid backup but now I cannot find anything I can actually do with it. If I can turn it into an Update.zip or IMG I can simply put on SD Card.. restart and cross my fingers.
Click to expand...
Click to collapse
Can you access the tablet's fastboot mode? Turn the tablet fully off, then hold the Menu button and the Power button. I don't have your tablet, but it's a standard boot mode.
Make sure you have the tablet connected to the PC. You should see it pop up in the Device Manager, or by doing "fastboot devices" from a command prompt.
If you can get there, you may be able to flash a recovery image.
Hi, does anybody knows if there is a response for this post??, i am looking for a method to convert the images files that are included in a rom stock (for using with sp flash tool) to an update.zip file. I have no way to use sp flash tool because my tablet has a hardware problem with microusb port and the only way is flashing a new rom via microSD card with an update.zip..
Maybe the solution is in another thread, please be kind and give me a link or at least give me some suggestions where to look for.
hi all,
just a thought.
and if its dumb then please say so lol
i understand development has stuck with getting roms onto the phone, we can encrypt and decrypt tsw's i think, but cant load them.
could we just replace the file in the official download and copy over the certificates or tell the certificates to look somewhere else for the relelvant version info?
it would require stripping out the official tsw, not sure how thats going tbh, and replacing it with our bits and bobs. copying over the certificates and modifying there dependacies or something
??? any thoughts ???
another thought
and I have another question, if we have the Bin file why we cant' load it throught the pin shorctcut method ?
gmx333 said:
and I have another question, if we have the Bin file why we cant' load it throught the pin shorctcut method ?
Click to expand...
Click to collapse
the bin file it's not the tsw file. While i really dont know if the bin file may be loaded with the pin method...
im not familiar with the pin shorten method but i assume the boot rom/boot loader looks for a specific file extension (.tsw) not a .bin, you cant rename it .bin as compression and packing is different to each format, so it wouldnt work.
its down to the sddl+ to allow the file to be written and the phone to accept it without questioning where its from (official or not)
people out there can hack into goverment secrets ina blink of an eye, yet no one can beat toshibas back to front programming
just a rant....for now
phillmydiamond said:
im not familiar with the pin shorten method but i assume the boot rom/boot loader looks for a specific file extension (.tsw) not a .bin, you cant rename it .bin as compression and packing is different to each format, so it wouldnt work.
its down to the sddl+ to allow the file to be written and the phone to accept it without questioning where its from (official or not)
people out there can hack into goverment secrets ina blink of an eye, yet no one can beat toshibas back to front programming
just a rant....for now
Click to expand...
Click to collapse
I'm sure, the shortcut method will load not encrypted files with .bin extension as well as excypte with .tsw and .enc. extension.
.bin .tsw .enc all one after another close to
Downloader
Don't Remove the SD Card & the Battery. Downloading ...
just search in .bin
cedesmith said:
.bin .tsw .enc all one after another close to
Downloader
Don't Remove the SD Card & the Battery. Downloading ...
just search in .bin
Click to expand...
Click to collapse
More specific, please... for rookies.
To avoid filling the forum with question i'm just going to create this thread and ask all my questions here.
I finally rooted my nexus 7 on my mac and now am hoping to install a USB ROM, i couldnt post a link but it seems to be most popular for in car installs.
I downloaded the file and compressed it to a .zip file then tossed it onto the android. Next i booted into clockwork recovery the selected install zip from sd card>Choose zip from sd card> 0/>cm-10.zip>yes - install cm-10.zip
After this the tablet says
Finding update package...
opening update package...
installing update...
installation aborted...
Can anyone help me and/or tell me what i'm doing wrong? all help is appreciated. Thankyou
Mperkins92 said:
To avoid filling the forum with question i'm just going to create this thread and ask all my questions here.
Click to expand...
Click to collapse
A more acceptable procedure is to find - via SEARCHING - closely related threads first, and post your questions in those threads. That demonstrates to people that you've actually tried to help yourself by searching. If you actually have something unique to say, in that circumstance you start a new thread.
"Help me install a ROM" is not a new idea here on XDA, whether you have a problem with it or not.
Mperkins92 said:
I downloaded the file and compressed it to a .zip file
Click to expand...
Click to collapse
It's already a .zip file to begin with when you download it. Is your Mac uncompressing it automatically when you download it?
If so, use something other means (not Safari?) to download it. FTP. Wget. Firefox for Mac.
Then, if the ROM developer publishes rom file MD5 signatures, validate that you can compute the same checksum on the file downloaded to your computer.
If you then subsequently copy it to something else (such as the tablet), check the file length and/or the MD5 signature of the copied file as well.
Was there not some additional message on the screen besides "installation aborted"? Details are important.
The most probable guess at the moment (from your narrative) is that you borked the download and/or did something else that made the custom recovery unhappy.
BTW, when you install a new ROM for the first time, you generally:
(a) make a full Nandroid backup first (using the custom recovery)
(b) perform a "factory reset" in the custom recovery,
(c) flash of the ROM file.
Attempting the last step without the first two is just begging for trouble.
good luck
Hey guys, I'm developing a ROM for i9502, sometimes i want to fix some issues with some apps and just want to update them. So I want to know how to make a simple flashable update.zip to use with TWRP. I have followed many guides from this forum but nothing seems to work..maybe I must do something different with Lollipop.
Is there any easy way to create a flashable.zip to update a few apps in system folder?
thank you
Seriously? Nobody cant help me? I wan to make a simple update.zip to update files in system folder...
If you followed the guides, you shouldn't have had any issues, except for possibly one: making sure you use the right updater binary. You'd honestly have an easier time if you pulled someone else's flashable zip and used it as a basis to make yours.
Deleted.
turkkilainenpippuri said:
Hi!
I would like to create a boot animation that uses the basic J5 bootloop.
I would need you to convert the .qmg to .png and send to me. It's very simple with this app created by @xperiacle (Original thread). I would do it myself but the ROM used to convert the file must be either stock or stockish to work and I would lose so many settings, tweaks etc. by flashing stock and then back. As a reward I would of course hit the thanks button, send you the animation (if you please) and honor you as my savior for life! :angel: Also if you have an idea or reasonable preference(s) for the boot animation, I will make it happen.
Anyways here are the instructions stolen from the original thread (don't kill me xperiacle!):
"So just download the app(Qmg2Png), install, and pick an apk(Extract_this.apk) from sdcard and the app will extract the qmg resources and convert them to png format and saving them in the QMg2Png folder in the sdcard. The output folder retains the folder structure of the extracted apk."
Thank you in advance! Peace! :good:
Click to expand...
Click to collapse
If you want the stock boot animation then download the relevant firmware and pull it out of the system.img.
Please don't ask me to guide you how as there are plenty already out there.
ashyx said:
If you want the stock boot animation then download the relevant firmware and pull it out of the system.img.
Please don't ask me to guide you how as there are plenty already out there.
Click to expand...
Click to collapse
It's in the .qmg format. There is no other way to extract it that I know of. Bootanimation.zip? No problem. Qmg? Pain in the ass.
Edit: just to be clear the stock rom uses an encoding/decoding method for qmg files that don't exist in custom roms nor is it used by any other than samsung phones. But anyhow it is not the end of the world for me if I don't get it extracted. Then I just focus on some other ideas for animations.
turkkilainenpippuri said:
It's in the .qmg format. There is no other way to extract it that I know of. Bootanimation.zip? No problem. Qmg? Pain in the ass.
Edit: just to be clear the stock rom uses an encoding/decoding method for qmg files that don't exist in custom roms nor is it used by any other than samsung phones. But anyhow it is not the end of the world for me if I don't get it extracted. Then I just focus on some other ideas for animations.
Click to expand...
Click to collapse
It's in the stock system image. All you need do is extract it.
@ashyx You just don't get it.. I have already extracted it from the system img. I need to convert the qmg to png files to edit it. Read my posts more carefully to understand.
turkkilainenpippuri said:
@ashyx You just don't get it.. I have already extracted it from the system img. I need to convert the qmg to png files to edit it. Read my posts more carefully to understand.
Click to expand...
Click to collapse
OK let me ask you this?
What is preventing yourself from making a backup of your device with twrp which literally takes minutes, install the rom you require, do what you need and then simply restore?
@ashyx You are right but I don't want to flash any rom since when I do, I get this weird issue with my screen; I am unable to turn it off and it seems to be a matter of luck to get it working again. Thank you anyways! https://forum.xda-developers.com/galaxy-j5/help/screen-help-t3585090