what's the difference between an NBH file and a rom in a ZIP file? - myTouch 3G, Magic Android Development

from what i understand... you can apply an image file with an NBH extension through fastboot... and you can also apply an image file with a ZIP extension through a flashed recovery mode.
what's the difference between these two kinds of files and two methods of flashing?
also... the instructions that i followed on the cyanogenmod website had me perform these steps.... 1) flash NBH in fastboot, 2) flash recovery using app installer, 3) flash cyanogenmod through recovery mode. my question is... why was the first step (flash NBH in fastboot) necessary? why couldn't i have just gone straight to flashing the recovery mode and then flashing cyanogenmod using recovery mode?
thanks for the help everybody!

anybody? somebody must know the answer to this.

i think nbh file contains all of the rom function such as spl, radio, system,image while zip file contains onyl apps, boot image and system folder

asterix005 said:
i think nbh file contains all of the rom function such as spl, radio, system,image while zip file contains onyl apps, boot image and system folder
Click to expand...
Click to collapse
yep and nbh is uploaded using fastboot, while a zip is done through the recovery image

tazz9690 said:
yep and nbh is uploaded using fastboot, while a zip is done through the recovery image
Click to expand...
Click to collapse
how do you fastboot :-(

Related

[Q] installing 4ext touch recovery without root

My question is simple: how can I flash 4ext recovery touch before I have root?
I have s-off but still on the stock ROM. I know I can just follow the s-off guide and in step 2 install CWM recovery, but I need 4ext touch instead.
How can I do this?
Thanks
Yes is should be fine!
GhostXSeries said:
Yes is should be fine!
Click to expand...
Click to collapse
Sorry.. not sure u answered my question there? lol
anyone who can help?
fredcorp6 said:
My question is simple: how can I flash 4ext recovery touch before I have root?
I have s-off but still on the stock ROM. I know I can just follow the s-off guide and in step 2 install CWM recovery, but I need 4ext touch instead.
How can I do this?
Thanks
Click to expand...
Click to collapse
Just interested why do you "need" 4EXT ?
Anyway, as you're still on the stock ROM and I assume the Stock HBOOT, you have two options:
i) Use Fastboot flash to flash the recovery img to the phone. You'll need to install adb etc. onto your PC/Linux system.
ii) Load the appropriate PG58IMG.zip file onto the root of your SD-card, complete power off (pull battery) reboot (Power & Vol -)
As I don't use 4EXT I'm not certain what downloads exist for it.
The bottom line is that it's the same process for either CWM or 4EXT.
gol_n_dal said:
Just interested why do you "need" 4EXT ?
Anyway, as you're still on the stock ROM and I assume the Stock HBOOT, you have two options:
i) Use Fastboot flash to flash the recovery img to the phone. You'll need to install adb etc. onto your PC/Linux system.
ii) Load the appropriate PG58IMG.zip file onto the root of your SD-card, complete power off (pull battery) reboot (Power & Vol -)
As I don't use 4EXT I'm not certain what downloads exist for it.
The bottom line is that it's the same process for either CWM or 4EXT.
Click to expand...
Click to collapse
The reason I need it is because I want to install ARHD, and with 4EXT you are able to pick what kernel, addons etc you install with the ROM. As far as I know CWM does not let you do this?
I think option 1 is my best bet... do you mind giving me a few more details on how to do this?
I have adb set up and I am capable of using it. I also have the 4ext recovery zip file - it contains an image file called "recovery" and a text document containing an md5 sum.
Thanks a lot for your help so far
fredcorp6 said:
The reason I need it is because I want to install ARHD, and with 4EXT you are able to pick what kernel, addons etc you install with the ROM. As far as I know CWM does not let you do this?
I think option 1 is my best bet... do you mind giving me a few more details on how to do this?
I have adb set up and I am capable of using it. I also have the 4ext recovery zip file - it contains an image file called "recovery" and a text document containing an md5 sum.
Thanks a lot for your help so far
Click to expand...
Click to collapse
CHECK AND RECHECK the MD5 for the IMG file..
The ADB and FASTBOOT commands might or might not be in the same folder, depends where you got it and what version.
Connect the phone via USB and debugging enabled.
i) make sure "adb devices" can see your phone.
ii) Get the phone into Fastboot (usual Bootloader then Fastboot, it should say "Fastboot USB")
iii) fastboot flash recovery "recovery.img"
where "recovery.img" is the name of the 4EXT.img file
iv) fastboot reboot-bootloader
v) Go into Recovery and osh bosh done.
fredcorp6 said:
The reason I need it is because I want to install ARHD, and with 4EXT you are able to pick what kernel, addons etc you install with the ROM. As far as I know CWM does not let you do this?
I think option 1 is my best bet... do you mind giving me a few more details on how to do this?
I have adb set up and I am capable of using it. I also have the 4ext recovery zip file - it contains an image file called "recovery" and a text document containing an md5 sum.
Thanks a lot for your help so far
Click to expand...
Click to collapse
It is very much possible to install 4ext recovery without root. But your phone must be S-OFF. To install 4ext touch do the following.
1. Download an appropriate PG58IMG.zip file from this thread. By the word appropriate I mean that the PG58IMG.zip is having your CID and MID. Hope you know your CID and MID. The PG58IMG.zip can be of any version. I would suggest V1.17 as it has less files.
2. Download latest 4EXT recovery touch from the development forum. It will be in img format. Rename it to "recovery.img"
3. Open the PG58IMG.zip by winrar on your pc.
4. Delete all the files except the android-info.txt.
5. Add "recovery.img" into the PG58IMG.zip .
6. Now your PG58IMG.zip contains only two files i.e "recovery.img" and "android-info.txt"
5. Save the PG58IMG.zip.
6. Copy the PG58IMG.zip on the root of your sdcard.
7. Boot your phone into bootloader.
8.Your phone will prompt for update.
9. Say "yes" by pressing volume up key.
10. Once it is finish your phone will reboot and you will have 4ext touch recovery on your phone.
musarraf172 said:
It is very much possible to install 4ext recovery without root. But your phone must be S-OFF. To install 4ext touch do the following.
1. Download an appropriate PG58IMG.zip file from this thread. By the word appropriate I mean that the PG58IMG.zip is having your CID and MID. Hope you know your CID and MID. The PG58IMG.zip can be of any version. I would suggest V1.17 as it has less files.
2. Download latest 4EXT recovery touch from the development forum. It will be in img format. Rename it to "recovery.img"
3. Open the PG58IMG.zip by winrar on your pc.
4. Delete all the files except the android-info.txt.
5. Add "recovery.img" into the PG58IMG.zip .
6. Now your PG58IMG.zip contains only two files i.e "recovery.img" and "android-info.txt"
5. Save the PG58IMG.zip.
6. Copy the PG58IMG.zip on the root of your sdcard.
7. Boot your phone into bootloader.
8.Your phone will prompt for update.
9. Say "yes" by pressing volume up key.
10. One it is finish your phone will reboot and you will have 4ext touch recovery on your phone.
Click to expand...
Click to collapse
Sounds like the option 2 gon a dal was talking about...
Thanks a lot guys
BTW... I already have the PC58IMG file from downloading CWM - could I just paste the recovery.img into this file? Deleting the CWM one first ofcourse
fredcorp6 said:
Sounds like the option 2 gon a dal was talking about...
Thanks a lot guys
BTW... I already have the PC58IMG file from downloading CWM - could I just paste the recovery.img into this file? Deleting the CWM one first ofcourse
Click to expand...
Click to collapse
Sure, as I said either way works. If you have the IMG and are happy using commands at a prompt, the fastboot is probably faster. If you don't have the ready made PG58IMG.zip file the instructions above also work.
Either way, check and recheck the MD5.................
EDIT: If you flash via the PG58IMG.zip method, pop the SD-card after it's finished for a clean boot. Then remove/rename the PG58IMG.zip file on the card, or remove/rename via a PC before the boot.
gol_n_dal said:
Sure, as I said either way works. If you have the IMG and are happy using commands at a prompt, the fastboot is probably faster. If you don't have the ready made PG58IMG.zip file the instructions above also work.
Either way, check and recheck the MD5.................
EDIT: If you flash via the PG58IMG.zip method, pop the SD-card after it's finished for a clean boot. Then remove/rename the PG58IMG.zip file on the card, or remove/rename via a PC before the boot.
Click to expand...
Click to collapse
Thanks for poiting out. I forgot to mention these.
Can you give me a link to 4ext?
thx
bibihtc said:
Can you give me a link to 4ext?
thx
Click to expand...
Click to collapse
Look herehttp://forum.xda-developers.com/showthread.php?p=20015407
Sent from my HTC Sensation 4G using Tapatalk 2

Difference between zip and img?

Hi
What is the difference between a flashable zip and a .img file for installing twrp?
I found an unofficial twrp and they listed a .img file and a flashable zip.
The img one is no longer available but inside the flashable zip there's a .img file. Can I take out the img file and flash that?
I don't need a detailed response all I need is a yes or no.
Thanks
(link to the twrp if you're wondering)
https://forum.xda-developers.com/android/development/recovery-twrp-3-1-1-0-alcatel-pixi-45-t3657927
Yeah go ahead and flash the recovery.img file thats your twrp recovery

how make a custom recovery file flashable for sp flash tool

can someone teach me how make flashable custom recovery file for sp flash tool?.. I already know how to port custom recovery, the problem is how to make it flashble to lsp flash tool ,, the img file.. thank you
Heremias said:
can someone teach me how make flashable custom recovery file for sp flash tool?.. I already know how to port custom recovery, the problem is how to make it flashble to lsp flash tool ,, the img file.. thank you
Click to expand...
Click to collapse
It isn't specific to your device but, try going to this thread and download ONLY the TWRP 3.0.0.3 for SPflashtool file.
https://forum.xda-developers.com/k3-note/general/sp-flash-tool-tutorial-to-install-twrp-t3346041
Then extract the file, then replace the scatter file and the recovery.img in that file with your scatter file and your recovery.img(make sure to rename your recovery .img to "recovery.img")
Then just follow the flashing instructions listed under the "Now, the flashing part" in that thread.
Sent from my LGL84VL using Tapatalk
Droidriven said:
It isn't specific to your device but, try going to this thread and download ONLY the TWRP 3.0.0.3 for SPflashtool file.
https://forum.xda-developers.com/k3-note/general/sp-flash-tool-tutorial-to-install-twrp-t3346041
Then extract the file, then replace the scatter file and the recovery.img in that file with your scatter file and your recovery.img(make sure to rename your recovery .img to "recovery.img")
Then just follow the flashing instructions listed under the "Now, the flashing part" in that thread.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
thanks droid. will that version of twrp 3.0.0.3 fit on my device huawei cun-u29?
Heremias said:
thanks droid. will that version of twrp 3.0.0.3 fit on my device huawei cun-u29?
Click to expand...
Click to collapse
You didn't understand anything about what I said
I did not tell you to use the recovery in the link that I posted.
I told you to download the file that is linked in the thread that I gave you.
Then extract the file that you download, open the folder that extracts from it then delete the scatter file that it contains and delete the recovery file that it contains.
Then you need to place a copy of the scatter file for your device and the recovery.img for your device in the extracted folder. Make sure that you change the name of your device's recovery file to "recovery.img", otherwise, the program will not recognize your recovery file. After placing YOUR files in that folder, you are ready to flash the device.
If you didn't understand that clearly then I can't help you.
Sent from my LGL84VL using Tapatalk
Heremias said:
thanks droid. will that version of twrp 3.0.0.3 fit on my device huawei cun-u29?
Click to expand...
Click to collapse
im sorry, okay ill try this

[REQUEST] Build system.img

Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
jwoegerbauer said:
Why not extract the system folder of the ZIP linked to, then pack it into a ZIP what you then convert to IMG using an online-convertor that does the job?
Click to expand...
Click to collapse
"Why not" indeed; that sounds like it would more than suffice. Can you please recommend one?
Anyone? I have been unable to find this "online-converter" despite days of searching; still at square one.
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
jwoegerbauer said:
Only as example ( found via Google search !!! )
Archive Converter - Convert your a7z, rar, zip, gzip, bzip2, tar archives to another format online
Free Archive Converter. Convert your archive files to a7z, rar, zip, gzip, bzip2, tar format online for free using OnlineConvertFree.
onlineconvertfree.com
Click to expand...
Click to collapse
Thank you, but I've tried this one and all the others on Google, and none will handle the filesize (~650 MB). It must be purpose-made for Android .img files it seems, which I've been unable to find.
Kehkou said:
Hello,
I have an ASUS K01A tablet with a blank system partition and unusable recovery. I can flash img files to their respective partitions just fine (boot.img, droidboot.img) in fastboot, but 'system' in the stock firmware zip is a directory instead of a flashable image. Of course, this (and other reasons) means I can't just flash the stock firmware in fastboot, nor flash over the entire 'system' directory.
I need a system.img to recover my tablet from softbrick, but I can't for the life of me compile one. I've exhausted every method and tool I could find in both Windows and Ubuntu.
I beseech the community; if there is anyone reading this who could build such a file for me, I would be eternally grateful. I believe I only need the system.img to recover the tablet.
The stock firmware is at the ASUS website. Here is the download link: UL-K01A-WW-12.8.1.41-user.zip.
Thanks in advance!
Click to expand...
Click to collapse
maybe that video helps you...
good luck
solong
speedson
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Kehkou said:
I built it finally using IMGBurn to create the raw img and Sparse Converter to convert it to sparse img fragments.
But now the tab has formatting error, and with -u option, flashing errors (all partitions and imgs now). Ah, well.
Thank you to everyone! Hopefully someone else reading this will have better luck than me.
Click to expand...
Click to collapse
Download the attached file from the link at the bottom of this post and unzip it somewhere on your PC. It is a temporary recovery launcher. We'll come back to it in a moment. Based on your original post I'm assuming you already have your stock firmware downloaded as well as ADB and Fastboot setup. From your stock firmware unpack the following files: fastboot.img, splashscreen.img, and boot.img and place them in your ADB/Fastboot folder. Copy the stock firmware to your sd card (in its original, unzipped form...the way it was when you first downloaded it). Put the tablet in fastboot mode. Run the following fastboot commands from a command prompt.
- fastboot flash fastboot fastboot.img
- fastboot flash boot boot.img
- fastboot flash splashscreen splashscreen.img
Reboot back to fastboot mode. Go to wherever you unzipped the temp recovery that you downloaded earlier. Double click on launcher.bat. Type accept in the window, then type T2 and your device should boot into CWM recovery. Now choose install zip>install from se card>and choose the stock firmware.zip that you previously copied to your sd card then let it do its thing. Once its finished go back to the first page of the CWM recovery that you're in and select reboot system now>no>no. You should be golden now. Post back if you have any issues.
Download Disposable Recovery

Question I need to go back to stock kernel

Anyone have vendor_boot, dtbo and boot.img from 11.2.9.9 le25aa ?. Install a custom kernel and I need to go back to stock
Just use oxygen updtaer to download full zip and do a local install. Flash magisk to alternate partition and reboot.
gorilla p said:
Just use oxygen updtaer to download full zip and do a local install. Flash magisk to alternate partition and reboot.
Click to expand...
Click to collapse
Install the Arter kernel. And now I get an error when I want to update that way. So I need to go back to stock rom.
Do you know any way to do that?
Partigiano0105 said:
Install the Arter kernel. And now I get an error when I want to update that way. So I need to go back to stock rom.
Do you know any way to do that?
Click to expand...
Click to collapse
Shouldn't be flashing a kernel without proper backups first. You need stock untouched boot.img and vendor_boot
mattie_49 said:
Shouldn't be flashing a kernel without proper backups first. You need stock untouched boot.img and vendor_boot
Click to expand...
Click to collapse
how can I do that?
You can download the zip file containing th full update of your version in a thread here, them using the payload dumper tool you extract all img files inside
I don't know how to edit so more details about this process:
1. Go to sticked thread Repo of oos builds
2. Download the zip file of the firmware you are using
3. Download the payload dumper here: https://androidfilehost.com/?fid=818070582850510260
4. Once extracted extract the payload.bin from firmware zip into payload_input directory
5. Launch payload_dumper.exe
6. Process take few minutes depending on your computer, result img files are stored in payload_output directory
7. Have fun with your img file

Categories

Resources