[Q] Tool that will install roms using a pc? - Android Q&A, Help & Troubleshooting

Does anybody know of a tool that will install roms using a computer? I just want to be able to use a computer program to install roms without messing around with the phone.
I haven't had much luck with "adb shell recovery --update_package=/sdcard/rom.zip".
Or does anybody know of a way to convert the updater-script files in flashable zips into Windows batch files?

To convert zips into a flashable zip.. You will have to make some edit in "Meta-inf" folder

Brady_4love said:
To convert zips into a flashable zip.. You will have to make some edit in "Meta-inf" folder
Click to expand...
Click to collapse
I'm not looking for flashable zips though. I want to be able to install roms without scrolling around with the volume buttons in recovery. Such as a tool that could take a flashable zip, look at the update-script and then push all the files directly to /system and the other correct partitions via adb.

Well That Would Be Great But Recovery Flashing Isn't Hard And Why Can't You Flash A ROM Using Recovery?
Sent from my SAMSUNG-SGH-T769 using xda premium

Related

Question regardibg CWM recovery mod

I have a basic question about the CWM recovery mod using fastboot. I just loaded the updated .img file with no problems. All works great! My question is do I have to delete the first .img file? Can we just keep loading updated. Img files using fastboot without ever deleting the old files? Won't it take up more space?
Sent from my MB860 using XDA App
Everytime you flash a new img file to the phone, it overwrites the "img file" on the phone. So no, you don't need to delete the older one. Hope that explains it.

Creating .zip files in Android command line

Hi guys,
Couldn't find the answer to this anywhere but I noticed in the newer releases of busybox there's no 'zip' command anymore. I'm running busybox 1.19 on my Incredible.
I have been using this command to create different bootanimation.zip files from my phone but am wondering if there is an alternative command I can use from within Android. I've tried tar -cvzf but I believe tar archives/compresses the files differently and renaming the extensions to .zip does not work.
Any ideas besides using an actual PC to do what I want to do?
Thanks,
Zebdor
Sent from my Incredible using XDA App
There are apps out there such as AndroZip, that essentially creates zip files.
If you are doing this for an app, there are built in zip classes in Java.
java.util.zip.*;
Edit: Just realized you asked for it to be command line. I will keep looking!
Yeah, I used to use 'zip -0r ...' to zip up a folder but for some reason the busyboxes I've tried downloading don't come with the zip command anymore...
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
travmanx said:
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
Click to expand...
Click to collapse
I was thinking of using tar and gz but every tutorial I've read says Android requires the bootanimation to be in .zip format uncompressed. I even tried tarballing it as bootanimation.tar but it didn't work...
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
iXNyNe said:
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
Click to expand...
Click to collapse
This seems to work fine: https://code.google.com/p/zip-for-android/people/[email protected]
I thought I was crazy...
I have surely been missing the zip command too... I just got done downloading and about to reboot into recovery to install...
Zarchiver is a free app in the market that i use to.make boot animation zips and any other kind of zip on my Android device.

[Q] Is flashing an update.zip the same as installing a zip?

I have a couple questions about CWM and backups:
Is there a difference between flashing update.zip and installing a zip from the sdcard in CWM?
Also, let's say I make a change to boot.img and system.img and something goes wrong. Instead of flashing the backups of those two images from my computer to my phone using fastboot, can I just place them both in a zip file and install it from CWM? Would I need to include any other files?
How come a nandroid backup makes a system.ext4.tar and not a system.img? How do I turn that into a system.img?
How come I need unyaffs to read cache, data, and system.img files? I thought the filesystem was ext4 and not YAFFS?
Flashing an update.zip looks for a file on the root of your sd called that and flashes it. Installing a zip let's you choose.
You need to put a few more files into the zip. An update script and binary
Update to romracers recovery and you can do an advanced restore just using certain parts of a nandroid.
That recovery also makes.. Img files rather than tars
sent from my Atrix via XDA premium
marko! said:
Flashing an update.zip looks for a file on the root of your sd called that and flashes it. Installing a zip let's you choose.
You need to put a few more files into the zip. An update script and binary
Update to romracers recovery and you can do an advanced restore just using certain parts of a nandroid.
That recovery also makes.. Img files rather than tars
sent from my Atrix via XDA premium
Click to expand...
Click to collapse
So I found some links about the update-script and I'll be reading those shortly, but after skimming them I didn't see any mention of the binary. Is the binary an executable version of the same script or something else? Any links?
So what your saying is I could just skip the update.zip stuff, extract the images from the zip, and use advanced restore to flash each image? Obviously more work but it's good to know if these two processes are equivalent.
Actually, I just made a recovery using romracer's CWM and boot and recovery are .img files while cache, data, and system are ext4.tar files. pds is .ext3.tar and .android_secure is .vfat.tar. So do you really get system files as .img files? And if so, what's wrong with my CWM? If not, the original question holds: why doesn't CWM make an image of each partition, and instead use a tar? For compression? How would I make this a flashable .img file?
And also the last question about ext4 and YAFFS is still there. Thanks.
Most of those I'm really not sure. The update binary is the same for every zip. Just grab it from a rom or theme
I would go with the cwm zips. Way easier once you get them working.
sent from my Atrix via XDA premium
gsingh2011 said:
Actually, I just made a recovery using romracer's CWM and boot and recovery are .img files while cache, data, and system are ext4.tar files. pds is .ext3.tar and .android_secure is .vfat.tar. So do you really get system files as .img files? And if so, what's wrong with my CWM? If not, the original question holds: why doesn't CWM make an image of each partition, and instead use a tar? For compression? How would I make this a flashable .img file?
Click to expand...
Click to collapse
I was just looking at this too. My old recoveries from before atrix4.1 was released were all .img files and the post atrix4.1 backups are .ext3.tar (except for boot.img and recovery.img). I'm on a stock deodexed GB ROM, so I don't have any ext4 partitions. I think he changed this with the newest update so CWM can recognize the ext type and mount them appropriately.
This post should hopefully clarify a bit more than I can. I'm relatively new to all this so I'm still learning different aspects of modding. I'm guessing you have some ext4's because you're running one of the newer custom ROM's?

[Q] Converting a .zip ROM into .tar to flash with Odin

I was asking if there's any way to convert a .zip ROM into a .tar ROM to flash with Odin..
The reason why I'm asking this is because I'm unable to flash any ROM via CWM recovery. I can only flash ROMs via Odin. Please see this for further information to my problem.
I'm particularly fond of the MIUI ROM, but there's no Odin version of that.. and CWM doesn't work for me
Have you got usb debugging enabled on your phone?
Thaw.Bytes said:
Have you got usb debugging enabled on your phone?
Click to expand...
Click to collapse
Yeah, always ._.
This is the installation instructions from adys miui rom which i usually use...not sure if you do this already but this usually works for me (wipe cache n devlik aswell)
1. Copy Zip to SDCard.k
2. Reboot to Recovery.
3. Wipe data/factory Reset.
4. Wipe /system from Mounts and Storage.
5. Install *your Rom* zip from SDCard.
6. Reboot (First boot may take time due to alot of init.d scripting)
Convert ZIP to TAR
Thaw.Bytes said:
This is the installation instructions from adys miui rom which i usually use...not sure if you do this already but this usually works for me (wipe cache n devlik aswell)
1. Copy Zip to SDCard.k
2. Reboot to Recovery.
3. Wipe data/factory Reset.
4. Wipe /system from Mounts and Storage.
5. Install *your Rom* zip from SDCard.
6. Reboot (First boot may take time due to alot of init.d scripting)
Click to expand...
Click to collapse
ArcConvert is a free portable tool for Windows that allows you to convert many different types of archives to known formats.
tuesmonhero said:
ArcConvert is a free portable tool for Windows that allows you to convert many different types of archives to known formats.
Click to expand...
Click to collapse
Tried it, converted a kernel .zip file to.tar for Note 2 and it blue-screened Win7 during .tar installation. No damage to PC or phone, but DAYUM!
Justin Demoude said:
Tried it, converted a kernel .zip file to.tar for Note 2 and it blue-screened Win7 during .tar installation. No damage to PC or phone, but DAYUM!
Click to expand...
Click to collapse
I don't think direct conversion like that will ever work, just ask the related developer to generate a tar file for you, ask one of the most helpful devs like salesale(NeatRom creator) or the dev of RevoltRom.
Sent from my GT-P6200 using xda app-developers app
I want to convert .tar rom to .zip flashable file
tariq2kn said:
I want to convert .tar rom to .zip flashable file
Click to expand...
Click to collapse
Why?
You'd need to write a script that specifies what files get flashed to where & create your own flashable zip. Or you could swap the files from the tar into an existing CWM flashable I guess; not sure if this will work tho, the script may be specific to those particular files & might not work with different ones (I'm not au fait with these scripts, hence not being sure). I personally wouldn't try this tho, just flash the tar in Odin already.
The last sentence says it all
MistahBungle said:
You'd need to write a script that specifies what files get flashed to where & create your own flashable zip. Or you could swap the files from the tar into an existing CWM flashable I guess; not sure if this will work tho, the script may be specific to those particular files & might not work with different ones (I'm not au fait with these scripts, hence not being sure). I personally wouldn't try this tho, just flash the tar in Odin already.
Click to expand...
Click to collapse
Could you make a .zip(without rom) for xwlss .tar rom file so that I can flash through recovery without the pc odin.
tariq2kn said:
I want to convert .tar rom to .zip flashable file
Click to expand...
Click to collapse
That's easy (well can cause catastrophe if handled without proper knowledge) just use android kitchen.
Edit :Seriously though must be very careful, I used it to deodex JB firmware for my tab 7 plus (it doesn't have any proper developer support so had to do it manually) and I had a plethora of minor bug's popping up, insignificant but annoying nonetheless, quite frankly must be ready to spend hours for proper tweaking and understanding framework to build a good flashable zip, I didn't have the patience nor the time.
Sent from my GT-P6200 using xda app-developers app
Could I make one for you ? Absolutely not.
I don't sit around all day doing nothing just waiting for n00bs to give me stuff to do for them. If you really want to make one, you'll work out how to do it for yourself. Or you won't *shrugs*
tariq2kn said:
Could you make a .zip(without rom) for xwlss .tar rom file so that I can flash through recovery without the pc odin.
Click to expand...
Click to collapse
how to convert rom files from .zip to odin flashable .tar.md5
I am really in need of help to save a bootlogo stuck bricked Galaxy S5 SM G900F ...i need to flash a new rom ... I need to convert ".zip" Rom to "Odin" usable ".tar.md5" ....faaaaaast...
H E L P !!! :confused :silly:
I need that piece of info as well got to convert a zip Rom to tar to flash via Odin. Not too comfortable with flashing through zip files.
I also need to convert a flashable zip file tar file
oqaab said:
I need that piece of info as well got to convert a zip Rom to tar to flash via Odin. Not too comfortable with flashing through zip files.
Click to expand...
Click to collapse
Brothers. i also need a program that converts a flashable zip file into a tar file, so that it could be installed via odin.
thanks
add me to the list that need to convert the zip to tar
Donnie Sins said:
Why?
Click to expand...
Click to collapse
To build his custom stock rom ?

[GUIDE]How to extract Stock firmwares from Samsung?

And,comes another guide from me.... I was actually extracting a stock firmware and this came into my mind
Ok,I made this guide since the process of extracting firmware is a bit confusing sometimes.So,lets start with it​
What you would need:
1.7zip or any other zip utility
2.Stock Firmware
3.MagicISO
4.Nothing else
Tutorial:
1.Start off by downloading a stock firmware,for this guide,we assume its DDKQ8
2.You will get 2 files, S5830DDKQ8_<bla bla>.tar.md5 and SS_DL.dll
3.Ignore the second file,we only need the first file which has an extension of .md5
4.Now its not possible to extract the file with the current extension.
5.So,rename the file S5830DDKQ8_<bla bla>.tar.md5 to S5830DDKQ8_<bla bla>.tar
6.Now,the file is extractable,so extract it.
7.You will get approx. 9 files: arm11 boot,amss,csc.rfs and various others.
8.Delete all the files except boot.img and system.rfs.These are the only files we need.
9.Now,using MagicISO,open up system.rfs and extract it.
10.Make a new folder named Rom_working
11.Now,move the boot.img there
12.Make a folder called system
13.Move all contents of system.rfs to this this folder.
14.Now all you need is a META-INF folder to complete the rom.(Unless you messed up)
Thats it! Pretty easy huh,this is something really basic,but a few people get confused on extracting it anyway.Its just meant to be a basic guides for those people.If you want to get more info on making a rom,refer this guide which i wrote a few months ago.Hope this helped you guys out.
NOTE: I am not responsible if you mess up your phone or w/e happens to it.Btw,<bla bla> stands for the rest of the filename ​
thanks for that,, i was woundering how it was done,, i ended up using a nandroid backup with kitchen to make my own lol
How can I root the rom??
Sent from my GT-S5830 using xda premium
Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?
lypang said:
Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?
Click to expand...
Click to collapse
You can get a META-INF folder by creating one yourself
I don't understand your 2nd question though
dredremon said:
How can I root the rom??
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Take su bin file from a rooted rom and insert it in your rom.Done.
lypang said:
Where do we get a META-INF folder?
Do we use CWM recovery to restore with the new folder?
Click to expand...
Click to collapse
Make one yourself,refer other stock roms for the path,then get the update binaries and script from BlackHawk (if stock ONLY).
okay, this is to flash via CWM is not it? how to change the kernel?
Sent from my GT-S5830 using xda premium
modolheula said:
okay, this is to flash via CWM is not it? how to change the kernel?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Kernel is in boot.img. If u want to change kernel, you should change the boot.img
Sent from my fingers to your face,take it or leave it.
okay, I'm trying to find out about the boot.img .... thanks for sharing knowledge
Sent from my GT-S5830 using xda premium
Well, on Linux I usually do this: http://forum.xda-developers.com/showpost.php?p=28933492&postcount=3
Hmm is it possible to extract a stock ROM from the phone itself? Or not extract but get the stock ROM as zip (with those md5 files, etc) so that it can be flashed via Odin on another phone?
It's because i can't find anywhere to download the stock ROM i had...
Sent from my GT-S5830 I think...
Millenium3 said:
Hmm is it possible to extract a stock ROM from the phone itself? Or not extract but get the stock ROM as zip (with those md5 files, etc) so that it can be flashed via Odin on another phone?
It's because i can't find anywhere to download the stock ROM i had...
Sent from my GT-S5830 I think...
Click to expand...
Click to collapse
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
Y U No like cwm backups ?
Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
Thanks i will try and post if i have any problems
madman said:
Y U No like cwm backups ?
Click to expand...
Click to collapse
I want to flash the rom in another phone... or maybe it works by copying the backup files cwm made into the another phone? But anyways i tried to restore the stock rom once but it failed.. but thanx
PS: i actually thought the thread was the guide for my question
Sent from my GT-S5830 I think...
Don't forget to press thanks button..!!
Prawesome said:
Many ways:
1.Adb pull /system
2.Manual copy and paste with file xplorer
3.Use Qtadb and copy /system
Sent from the year 3000 using a SGA where sheep's are not present.
Click to expand...
Click to collapse
ok sorry for late reply
after pull /system how can i make the stock ROM flashable through ODIN on another phone?
or at least another way to flash the rom? adb push?
Millenium3 said:
ok sorry for late reply
after pull /system how can i make the stock ROM flashable through ODIN on another phone?
or at least another way to flash the rom? adb push?
Click to expand...
Click to collapse
For Odin flash,refer freeyourandroid.com.
For CWM flash,take updater script and binary from Blackhawk and put it in your rom
Sent from the year 3000 using a SGA where sheep's are not present.
dredremon said:
How can I root the rom??
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Download root file with su and extract it you will find the files you need there.
Sent from my GT-S5830 using xda app-developers app
can some1 tell me what i did wrong? I made a flashable zip, and after installation phone is not booting.
TechNoJerky said:
can some1 tell me what i did wrong? I made a flashable zip, and after installation phone is not booting.
Click to expand...
Click to collapse
Logcat or it didn't happen
Insert witty sentence here

Categories

Resources