How to open Img Files - Android Software Development

Hi guys please some one can tell me how to open IMG files coz im trying but cant.
Thanx to everyone

what are you trying to do with it? if you are trying to flash a RECOVERY.IMG then you dont open it, you put it on your sd card and flash it through terminal...
(yes i know how to do it via adb but terminal is much easier for noobs)

google unyaff.exe

Related

[Q] how to unpack squashed.sqsh in NAND android builds ??

hi ..
the title says it all ,,
i want to make some changes on the squashed.sqsh file but i can't cause it is read only !!
so is there a way to unsquash it or unpack it and then resquash the file ??
i did some search and found out that this could only be done on linux so i went and downloaded the latest Ubuntu build
and tried this command
"sudo squashfs /home/'user'/desktop/extract /home/'user'/desktop/squashed.sqsh"
the file is on my desktop
but i get command not found ..
i searched and found that i need to download "squashfs-tools" and i did download version 4.1
but now how do i install it ??
the read me says that i have to use "make" command but i don't know how to use it !!
i also searched and it is all complicated and i couldn't figure out the way to install it !!
this is my first time using linux !!
please help cause as for now Android on NAND is pretty much useless for me !!
i'll be sure to make a guide after this .. for people who want to modify the squashed.sqsh file ..

help with Fastboot on mac plz

Hey I'm hoping that you guys can help me. So I picked up a streak from a buddy a few days ago its running 2.2 build 10688 and bb 305 I would like to go to dj steves 1.6.1 because I hear that's the best one to run and from what I have looked up it gets highest scores in bench mark. Anyways I dont have pc I have a mac, so I have 1.5.1 cause streakdroid says you have to do 1.5.1 then 1.6.1 next I have amss.mbn 1.5.1+ or whatever and the recovery.img. So my question is i open terminal and put the phone in fast boot and plug it in blah blah it says fast boot mode on the bottom left so I know it is connected but what do I put in the command as the path so I can access it to flash everything over because I have no clue what the path is and no clue how to figure it out because there is no how tos for a mac.. Thanks for whoever will help me id love to get this streak going fast and smooth! Thanks everyone!!! One other question I also need to know where to put the amss and recivery.img iv already put 1.5.1.zip and 1.6.1.zip on the root of my sd!! Thanks again!!!!!!!
Sorry im a noob to fastboot
I use mac for fastboot.
There is a good guide somewhere around here . I lost the link
However he command for fastboot is
./fastboot -i 0x413c flash recovery recovery.alt.img
the part in red is the name of the recovery file u want to flash
for flashing amss it should be
./fastboot -i 0x413c flash amss amss.mbn
Also make sure that the terminal is open from the folder that has all the fastboot files
put your recovery and amss files in the same folder
Thanks tons for the reply man, I actually knew about the commands that you type but when you open terminal and then hit shell and then new command, once that pops up dont you have to type the path of the phone to flash the stuff to it or am I totally confused lol. Also where do I put my two files ( amss.mbn and recovery.img) is there any other things I need? If you can find that link also let me know! Thanks so much for the help!!
put the files in the folder Android/android-sdk-mac_86/tools
I only use these 2 files ( amss - was only for a one time use )
You have to open the terminal from the tools folder.
( you have to direct the terminal to that folder )( i use the app called terminal here - It resides in the side bar of my finder and i can open terminal from any folder)
U dont have to type anything to locate the phone.
when u type the commands and click enter , it should go through.
This is one good thing about mac.
Alright man ill give it a shot!! Lol ill let you know if anything comes up thanks tons!!
So got this is where my android-sdk-mac_x86/tools is located here: /Users/Nave/Desktop/android-sdk-mac_x86/tools do i need to move this somewhere else? yours says android/android-sdk-mac_x86/tools wheres android located? And then i go into terminal and hit new command and then put the path in and I should be good right? thanks
So either im stupid or just missing something, ill tell you my set up and what iv downloaded and you tell me what I need.
I have downloaded the following:
android-sdk-mac_x86
amss.mbn
recovery.img
along with 1.5.1.zip and 1.6.1.zip on my sd card on my streak.
Now what do i do this folder (android-sdk-mac_x86) is sitting on my desktop along with amss.mbn and recovery.img in the tools folder inside android-sdk-mac_x86/tools. Now what do I do im so lost and iv tried launching android in this folder which gets me to a program. IDK what to do from here and iv searched all over the place like I said i am a huge noob and I have no clue what I am doing I just wanna get the BB flashed to what it needs to be for dj steve 1.6.1 and get that on there. If you can write me up a step by step from where im at that would be awesome.
Idk what to put as the directory when I open terminal, shell, then new command what do I put there to access the android-sdk-mac_x86 that is sitting on my desktop.
Sorry im really stupid at this im a huge noob to this and so confused. Thanks again!
Any idea man?
See ur PM. See the second one.

[Q] How to make a system folder into a system.img

Hello XDA, I'm kind of new to ROMs etc. and would appreciate some help. I am trying to install mikegapinski's 2.3.7 ROM (v5) through fastboot and whereas in the past I have seen a boot.img and a system.img, there is a boot.img and a system folder. Is there a way to make the folder into a system.img file that I could flash onto my GT540?
In short, how do you make a system.img file out of a folder with system files in them?
hey there !
(system.img + boot.img) is for fastboot
fastboot flash boot boot.img
fastboot flash system system.img
and the (system folder + boot.img) is for recovery
use any recovery
select zip from sdcard
select the zip
i dont think you can convert the folder to a .img(or the other way around) . and if the rom you are talking about mike's aosp v5 then i wont recommend it as for now there are problems with the ram and so it becomes very laggy. i would recommend mur4iks swiftdroid asis but the choice is yours
I know you can 'extract' images using 'unyaffs' but I never made an image from a folder (except when dumping partitions). I think there is a way though.
If you have Linux on your PC, then you can use the 'yaffs' tool. Search it on Google.
This is how even AOSP compiles system folder into system.img
Sent from my LG GT540 Swift using XDA App
I list found this. Should work!
http://db.tt/ROQSWTW6
Sent from my LG GT540 Swift using Tapatalk
can someone please help me to make system.img from system extraxted folder.
my phone its dead and i can find right rom for it
allway hang on boot logo
Please
link for download
https://www.dropbox.com/s/c99ashouw0fb4hp/system.rar
PS
will if neeed no problem
I got it. If you use Linux, you can create an iso file of the system folder, and then convert it to .img. Just follow it:
In a terminal(CTRL+ALT+T):
Code:
mkisofs -o /path/to/the/system/folder ~/system.iso
dd if=~/system.iso of=~/system.img
rm ~/system.iso
Your system.img will be on your home directory.
and it work's too ? (when you flash it from fastboot)
y2yu said:
can someone please help me to make system.img from system extraxted folder.
my phone its dead and i can find right rom for it
allway hang on boot logo
Please
link for download
https://www.dropbox.com/s/c99ashouw0fb4hp/system.rar
PS
will if neeed no problem
Click to expand...
Click to collapse
pls if you find a solutuon please pm me. And do you think flashing the system.img will solve booting probz?
suggestion
take a look at this url, and examine the zip file contained.
you could boot into cwm and install the zip (not suggesting, its what i did)
if u make a zip file in the same layout you could install your zip and it will update the system partition.
as you have a desire, heres whats required
on phone: place phone into fastboot mode
on computer: unzip to a folder , place the img file in such folder,
open a command prompt, (navigate to folder using the cd command)
and type: fastboot boot bravo-cwm.img
mount sd card, toggle usb storage, place your zip in root of sdcard.
then untoggle, go back, select option to install zip from sdcard.
choose select zip file.
find your zip.
tap on the file, and it will install...
you SHOULD by this point have an updated phone as you desired (lol)
if it does not work as you expected, have a look for a standard system.img for your phone, and put that into a zip
name the zip (i put it in caps, weather needed i dont know) PM99IMG.zip
place it into root of sdcard, and put phone into the first screen of recovery menu, the white screen.
it will analyze your zip and ask you to install, press up to flash and then the required option to reboot when its done to revert your phone back to normal.
hope this helps there buddy,
ill most likley forget to check back, so if u need any help pm me and ill see what i can do,
Is this working
Edu_Renesto said:
I got it. If you use Linux, you can create an iso file of the system folder, and then convert it to .img. Just follow it:
In a terminal(CTRL+ALT+T):
Code:
mkisofs -o /path/to/the/system/folder ~/system.iso
dd if=~/system.iso of=~/system.img
rm ~/system.iso
Your system.img will be on your home directory.
Click to expand...
Click to collapse
HI Bro,
Is the output file system.img after flash into the rom?
phone stuck in usb logo... i have zenfone 4
Yaffey for Windows Might Help
tejasjadhav said:
If you have Linux on your PC, then you can use the 'yaffs' tool. Search it on Google.
This is how even AOSP compiles system folder into system.img
Sent from my LG GT540 Swift using XDA App
Click to expand...
Click to collapse
And if you have Windows on your PC, try Yaffey! http://www.xda-developers.com/yaffey-for-all-your-yaffs2-needs/

[Q] CWM update brain fart - need help

Hi All,
I wanted to update my ideos s7-104 (best buy US) to the Joenilan froyo fusion rom and made one mistake along the way. I copied the .zip file to the external sd card not the internal sd card. So zip file is not available to CWM (2.5.1.8). I tried manually pushing the file to the tablet with ADB (from computer) but the tablet is not visible to the system (windows 7 64bit with drivers installed, I could not get HiSuite to install with upgrade.cmd). This is strange becasue the Upgrade utility which uses adb flashes the rom just fine. Of course I wiped the system and reformatted the device per the instructions. Now when the unit boots it goes the fastboot and then stops with option to reboot with back/home which works. I don't think the unit is bricked just yet since I can still get into the CWM recovery.
Does anyone have any bright ideas to move the Ideos S7 Froyo v1.3-EXT4 Stable.zip to the internal sdcard?
Thanks for all the useful information previously posted!
Bruce
St. Louis MO
Hi, let see if i can help you, if you have a backup restore, if you dont that implies some work, i dont use windows i prefer linux, you can try to create a virtual machine, with windows xp or linux ubuntu and then with fastboot commands push the file to sd card.
Another way, get the oficial rom for your tablet copy the file to ext-sdcard and follow the install instrutions of the rom, you must create the dload directory in ext-sdcard.
it look like you lost the system files and the kernel of the device, so it boot in to fastboot, fastboot does not acept adb, but fastboot has some commands to copy kernel and system file to the device, it cant copy a zip file, must be a img file.
Version 6.0.1 of cwm reads update files from ext-sdcard so you can also try to install that recovery version with fastboot.
Remember: it always a good idea to have a backup before doing anything.
Hope that helps.
Fixed
hal_2000 said:
Hi, let see if i can help you, if you have a backup restore, if you dont that implies some work, i dont use windows i prefer linux, you can try to create a virtual machine, with windows xp or linux ubuntu and then with fastboot commands push the file to sd card.
Another way, get the oficial rom for your tablet copy the file to ext-sdcard and follow the install instrutions of the rom, you must create the dload directory in ext-sdcard.
it look like you lost the system files and the kernel of the device, so it boot in to fastboot, fastboot does not acept adb, but fastboot has some commands to copy kernel and system file to the device, it cant copy a zip file, must be a img file.
Version 6.0.1 of cwm reads update files from ext-sdcard so you can also try to install that recovery version with fastboot.
Remember: it always a good idea to have a backup before doing anything.
Hope that helps.
Click to expand...
Click to collapse
Thanks so much for the tips. I was able to flash the trzmod-v3 image and now I have a working tablet again. Pretty slick I must say.
Hi, well done, i'm working with cm9 for s7 maybe in some few days you can try cm9
hal_2000
does anyone know the combination to get into recovery and cwm.
thank's
sorry my bad english
BANOUNDROID said:
does anyone know the combination to get into recovery and cwm.
thank's
sorry my bad english
Click to expand...
Click to collapse
Hi, with s7 power off press, menu + call(green key) + power, wait a few seconds and you get cwm screen if it is install
Hal_2000

back to stock nougat

hello all you ph1 users [emoji2]. i just mine about a week ago (from ebay) and it is on android 9 despite the description saying it was on nougat.
so ; i would like to revert back to stock nougat. cant fond anything here on xda and have traversed www till my feet hurt and am more confused.
can anyone help out with directions , maybe even links if not too much trouble , and anything else that i need to know/be aware of?
it would be greatly appreciated [emoji8] ,
dave
mrrocketdog said:
hello all you ph1 users [emoji2]. i just mine about a week ago (from ebay) and it is on android 9 despite the description saying it was on nougat.
so ; i would like to revert back to stock nougat. cant fond anything here on xda and have traversed www till my feet hurt and am more confused.
can anyone help out with directions , maybe even links if not too much trouble , and anything else that i need to know/be aware of?
it would be greatly appreciated [emoji8] ,
dave
Click to expand...
Click to collapse
You can get Nougat 7.1 from here....
https://forum.xda-developers.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681
In struction is simple, just boot phone to boot loader and from unzip folder, issue command flashall.
mrrocketdog said:
hello all you ph1 users [emoji2]. i just mine about a week ago (from ebay) and it is on android 9 despite the description saying it was on nougat.
so ; i would like to revert back to stock nougat. cant fond anything here on xda and have traversed www till my feet hurt and am more confused.
can anyone help out with directions , maybe even links if not too much trouble , and anything else that i need to know/be aware of?
it would be greatly appreciated [emoji8] ,
dave
Click to expand...
Click to collapse
that would be good if i had a pc.
i do have a extra rooted phone that i use to run adb and fastboot commands. but the windows/linux command of "flash.all" or whatever wont work from my phone.
so i should of said , does any know of a .zip/file that i can adb sidwload , fastboot flash or flash with twrp that will revert me to android 7?
thanks for any ideas ,
dave
The flashall.sh script is just a shell script that executes the fastboot flash commands. You should be able to open the flashall.sh file in a text editor, and essentially copy and paste the commands to run them.
TDP95 said:
The flashall.sh script is just a shell script that executes the fastboot flash commands. You should be able to open the flashall.sh file in a text editor, and essentially copy and paste the commands to run them.
Click to expand...
Click to collapse
like with fastboot ;
fastboot flash /sdcard/copy/pasted flashall.sh?
The flashall.sh file will contain a list of fastboot commands. You need to open that file in a text editor, then in a terminal change to the directory all the files are extracted into and copy and paste the commands in the terminal. This will flash the various images to the PH-1.
well all the files will be on /sdcard/ in a folder with the .zip's name. so i'll give it a shot and report back.
thank you for your time and knowledgr.
i'm kinda behind on "new" devices coming from a galaxy s4. lol [emoji4]
You're welcome! The newer devices are certainly a change. What you'll do with the fastboot type zip is you'll extract it. As within that zip are the images and flashall.sh file. You'll just open that flashall.sh in a text editor as it will have a list of the fastboot commands. For example commands such as "fastboot flash boot_a name-of-file", "fastboot flash boot_b name-of-file", etc. You'll just run those commands from a terminal while in the extracted directory. That should flash the images to the device.
mrrocketdog said:
well all the files will be on /sdcard/ in a folder with the .zip's name. so i'll give it a shot and report back.
thank you for your time and knowledgr.
i'm kinda behind on "new" devices coming from a galaxy s4. lol [emoji4]
Click to expand...
Click to collapse
I remember you! ?
just make sure you understand how the A/B partions work using this method (I don't) so assuming it would be same as when using fastboot from PC
and i remember you also
thanks for chyming in. no , A/B is brand new to me but i will try everything i can think of in both slots.

Resources