Help flashing radio images under OS x - Desire HD Q&A, Help & Troubleshooting

I have recently bought a Mac and I'm not very good with Terminal.
I'm trying to flash a new radio.img but I really don't know how.
I'd like to add I'm fine with flashing under Windows, but I longer have access to a Widows pc.
If it helps the SDK is in Users/Liam/SDK/
I'm able to move the folder if need be.
Thanks.

Related

Resigning a ROM/flashable zip file

I can't, for the life of me, make this work on Mac OS X. I'm running Snow Leopard, and I tried the Auto-Sign tool as well as ThemePro from another thread. It appears that it signs okay, but when I try to flash nothing happens. Can anyone tell me what I'm doing wrong? What version of Java do I need?

[Q] Mount/UnPack SYSTEM.IMG Files from 1.29.728.12

I cannot find a method in Linux or Windows that will allow me to access the files in the system.img partition image from:
RUU_ENDEAVOR_U_ICS_40_hTC_Asia_SEA_WWE_1.29.728.12_Radio_1.1204.105.14_release_261350_signed.exe
I have never had a problem "unpacking" system.img files from other HTC phones using unyaffs or even in Windows with WinImage for EXT2/3/4 partitions.
Obviously many Devs have had success with the HOX system.img! Could someone please tell me what file system the system partition uses AND/OR reveal the correct approach to accessing the files within the img?
I presume the partition formats are identical in:
RUU_ENDEAVOR_U_ICS_40_hTC_Asia_SEA_WWE_1.28.728.9_Radio_1.1204.103.14_release_256493_signed.exe
...so I suppose there's no point in making an attempt with its system.img either!
Any help will be greatly appreciated!!
Thanks in advance.
BTW: I'm not one who asks for assistance as his 1st move.
I have been searching for resolution to this problem for @least a week!
Using appropriate keywords the best I have come up with is either others in this same predicament or suggested remedies which are not effective.
The overall picture I have got is that those with the solution seem reluctant to share the knowledge, which I find strange in development communities.
if you want just access to files inside the img, in windows use this jar attached to convert it to ext4 and then mount with DiskInternals Linux Reader.
or in linux use this tool to unpack.
http://forum.xda-developers.com/showthread.php?p=28837507#post28837507
don't even try to repack it will not work.
if you know how it posible to repack files to this img format please let me know.
Thanks heaps avicohh!
I solved the problem only a few hours before your post came in.
I used a slightly different approach through linux but basically same process & result.
If you follow this:
http://forum.xda-developers.com/showthread.php?t=1081239
you'll be able to unpack AND repack but it's done in linux.
I used Ubuntu 12.04 LTS (64bit) to compile & use the ext4_utils in the thread above.
Since you were so kind to answer my query please feel free to PM me if i can help you!! My use of the forum is sometimes sporadic though, unfortunately.
EDIT: Sorry, just realised we both had the same thread! So it doesn't work for repacking?? I'll see if I can find something that works.
Obviously something does but there's not as much free sharing of really useful stuff as I would have expected with this kind of thing.
Yap.. is the same thread.
probably the odin (samsung) img and the stock htc img they not exactly the same format.
i seraching after sulution to this thing because i'm trying to make custom rom to be able to flash on device with stock rom/locked bootloader from the stock recovery like the ruu firmwares.

How to install TWRP + FFF + Custom ROM on Mac? No one-click/simple solutions please!

Okay, well the title should be pretty self explanatory I hope, but here's what I'm looking for:
A way to install TWRP and FireFireFire 1.4 on a Kindle Fire using a Mac (OS X 10.7.4 Lion if anyone wants to know).
I know that you should install TWRP only through fastboot then use TWRP to flash FFF and your custom ROM.
I also know there's something about modifying Android SDK drivers to make ADB and fastboot work properly with the Kindle Fire.
I am not looking for any sort of one-click solution. I once jailbroke my iPhone using a simple one-click, it didn't turn out well. Fortunately iPhones are almost always fixed by an iTunes restore. Did it using redsn0w after that, it was better. I manually installed homebrew on my Wii as well, which is more complex than redsn0w and more of an actual manual install. Wii homebrew works beautifully.
Anyways, I'm against one-clicks/simple rooters/jailbreakers because it seems like if even one thing is out of place, they mess things up.
I want to manually do this, and I know there's a way to. I just need to install Android SDK, I can do that. Modify the drivers, this is the thing I need the most assistance with, because I don't know how to do it and I know tools like KFU do it automatically. And of course, I want to manually use pokey9000's fbmode to get into fastboot, then flash TWRP, then get into TWRP, flash FFF and my custom ROM.
Anyone who could help me with this, I'd greatly appreciate it!
Well I see you don't want the easy solution but maybe part of this will help you with the drivers easily http://forum.xda-developers.com/showthread.php?t=1790139 then its just a matter of fastboot flashing twrp.img and fff.bin to your kindle. From that point you enter recovery make a backup. I suggest reboot after this. transfer a ROM zip and gapps zip of your choice to the root of your sdcard. Boot back to recovery- factory reset, -wipe cache, -wipe dalvik,-wipe system,-flash ROM,-flash gapps- select reboot then select system if prompted enjoy
---------- Post added at 03:49 AM ---------- Previous post was at 03:32 AM ----------
Take some time read these to threads since the hard way makes you happy familiarize yourself with what needs to be done and how to do it so you are always in the safe zone http://forum.xda-developers.com/showthread.php?t=1552547 and this http://forum.xda-developers.com/showthread.php?t=1638452 kinfauns took a lot of time to compile these threads to build awareness I believe he as well is on Mac just a guess. Some of this is a little gauged to windows but the concept is relatively the same so I have been told. I'm on windows myself and I understand that on Mac and Linux drivers aren't a problem as they are on windows. Good luck don't be afraid to ask more questions before you leap others out there have more experience with Mac than I
Edit: And note that I said fff.bin is the file you fastboot flash not a zip a zip file will break your bootloader severely unless you flash in recovery then a zip is the desired file type. Research is good prevents mishaps
Thepooch said:
Well I see you don't want the easy solution but maybe part of this will help you with the drivers easily http://forum.xda-developers.com/showthread.php?t=1790139 then its just a matter of fastboot flashing twrp.img and fff.bin to your kindle. From that point you enter recovery make a backup. I suggest reboot after this. transfer a ROM zip and gapps zip of your choice to the root of your sdcard. Boot back to recovery- factory reset, -wipe cache, -wipe dalvik,-wipe system,-flash ROM,-flash gapps- select reboot then select system if prompted enjoy
---------- Post added at 03:49 AM ---------- Previous post was at 03:32 AM ----------
Take some time read these to threads since the hard way makes you happy familiarize yourself with what needs to be done and how to do it so you are always in the safe zone http://forum.xda-developers.com/showthread.php?t=1552547 and this http://forum.xda-developers.com/showthread.php?t=1638452 kinfauns took a lot of time to compile these threads to build awareness I believe he as well is on Mac just a guess. Some of this is a little gauged to windows but the concept is relatively the same so I have been told. I'm on windows myself and I understand that on Mac and Linux drivers aren't a problem as they are on windows. Good luck don't be afraid to ask more questions before you leap others out there have more experience with Mac than I
Edit: And note that I said fff.bin is the file you fastboot flash not a zip a zip file will break your bootloader severely unless you flash in recovery then a zip is the desired file type. Research is good prevents mishaps
Click to expand...
Click to collapse
BreakDroid is one of those "one click" solutions I'm really trying to keep away from. I know that installing a custom bootloader + recovery is just a matter of having your computer properly recognize the Kindle Fire as an ADB interface, which I need to modify drivers for. I need to know how to modify drivers.
After that, it's just that I need to get into fastboot and I've got it from there.
Well, since you want a complex approach, may as well go with Firekit: http://forum.xda-developers.com/showthread.php?t=1430038&highlight=firekit (install_fff_twrp_from_stock)
I simply just said to use breakdroid for the driver install I didn't suggest you use it for anything else but with drivers I'm sure there are plenty of driver setup tutorials for Mac and the kindle fire so Google is your friend. Read the very first sentence of my first post seems you overlooked that
Breakdroid works great though is simple and installs exactly what you need. From there you have twrp and can flash away.
Sent from my MB860 using xda app-developers app
Thepooch said:
I simply just said to use breakdroid for the driver install I didn't suggest you use it for anything else but with drivers I'm sure there are plenty of driver setup tutorials for Mac and the kindle fire so Google is your friend. Read the very first sentence of my first post seems you overlooked that
Click to expand...
Click to collapse
Actually from what I've seen on various tutorials, ones about rooting, they always have instructions for Windows to install drivers but most of them instruct Mac / Linux to skip that step, then Mac / Linux picks back up where you're already issuing ADB and fastboot commands. I feel totally stupid if I've overlooked this, but if it's actually possible to skip this step that'd be so much easier.
Also I did read your first post. But when looking at BreakDroid I saw nothing specific about installing drivers, just that it was supposed to be a simple tool where you go through each step.
blue71 said:
Breakdroid works great though is simple and installs exactly what you need. From there you have twrp and can flash away.
Sent from my MB860 using xda app-developers app
Click to expand...
Click to collapse
All simple tools are meant to work great. Unfortunately, they just don't sometimes.
Is there anyone who has actually rooted a Kindle Fire on Mac or Linux here that can verify you don't need to do anything with drivers? And that just installing the Android SDK is sufficient to proceed?
superriku11 said:
All simple tools are meant to work great. Unfortunately, they just don't sometimes.
Click to expand...
Click to collapse
Very true. The unfortunate part is when users of these tools have no idea how to get themselves out of trouble, but I digress...
superriku11 said:
Is there anyone who has actually rooted a Kindle Fire on Mac or Linux here that can verify you don't need to do anything with drivers? And that just installing the Android SDK is sufficient to proceed?
Click to expand...
Click to collapse
Here's a guide for setting up a Linux environment...
http://forum.xda-developers.com/showthread.php?t=1475740
All you really need for Linux are the binaries (adb/fastboot) and /root/.android/adb_usb.ini with 0x1949 in it. Once you have those, you just need to run the binaries as root. The other things in that guide sets things up so a user without root privileges can access the USB ports and set paths to those binaries. There are no "drivers" in the Windows sense to be installed and you don't need to install the SDK if you can find those binaries elsewhere.
I'm confident the setup will be similar to Mac OS X, but udev is linux specific. I don't know what the Mac OS X equivalents are because I've always used virtual machines with Linux or Windows to interact with the KF. Regardless, you should still be able to use them as root and issue commands to the KF.
Thepooch gave you links to my guides... whichever OS you decide to use, all of the fastboot and adb commands will be the same. You just need to swap out the directory path conventions from Windows to Linux/Mac OS X.
kinfauns said:
Very true. The unfortunate part is when users of these tools have no idea how to get themselves out of trouble, but I digress...
Here's a guide for setting up a Linux environment...
http://forum.xda-developers.com/showthread.php?t=1475740
All you really need for Linux are the binaries (adb/fastboot) and /root/.android/adb_usb.ini with 0x1949 in it. Once you have those, you just need to run the binaries as root. The other things in that guide sets things up so a user without root privileges can access the USB ports and set paths to those binaries. There are no "drivers" in the Windows sense to be installed and you don't need to install the SDK if you can find those binaries elsewhere.
I'm confident the setup will be similar to Mac OS X, but udev is linux specific. I don't know what the Mac OS X equivalents are because I've always used virtual machines with Linux or Windows to interact with the KF. Regardless, you should still be able to use them as root and issue commands to the KF.
Thepooch gave you links to my guides... whichever OS you decide to use, all of the fastboot and adb commands will be the same. You just need to swap out the directory path conventions from Windows to Linux/Mac OS X.
Click to expand...
Click to collapse
Thanks for your help! Thanks for everyone's help actually! You all contributed somehow, and thanks to you I successfully installed FFF 1.4a, TWRP 2.2.0, and Jandycane 7-29 on my Kindle Fire! Awesome so far, thanks guys!
:highfive::good:

[Q] Gnex stuck in fastboot mode

Hi XDA users,
I am in a strange position right now, it is already two years I browse the site, and root and install custom roms on my phones.
Right now, I have a problem with my galaxy nexus, the device is rooted, I can access CWM recovery, but I did accidentally wipe my internal SD , which means no backup to restore from. I know it s silly, but it had to happen. So I can enter fastboot mode, recovery mode, but as there is nothing to use on the recovery , I d rather go for the fastboot way.
But what I am asking help for is , how can I inject the stock image? I feel the phone is not dead, at all, but I don't know how to proceed, I would gladly try the toolkit, but I m on a mac, 10.8, hence I can't run the toolkit. Anyone to help me get out of trouble please?
I can of course reach a PC, if absolutely needed, but I can make proper procedure on my laptop, it would be better.
Thank you in advance for any direction , advice , one could provide me with.
[HOW-TO] [GSM & CDMA] Return to stock for ALL Galaxy Nexus phones (latest JOP40C)
3rdstring said:
[HOW-TO] [GSM & CDMA] Return to stock for ALL Galaxy Nexus phones (latest JOP40C)
Click to expand...
Click to collapse
Hi, many thanks for your reply, however, when I use terminal on my mac, the device is not recognised, there is no response . Still I m looking at my phone with the droid on his back, belly open. The main thing is I don't know how to get it recognised by my mac.... rrrrrr !!!! I m confident it will work out some time, but now, I m still stuck. And I m not really easy with adb, but willing to learn...
When in terminal and I type ./fastboot-mac devices it reads " no such file or directory, so what am I doing wrong? Maybe a question , in terminal, when I want to indicate in which folder is the platform-tools-v6 folder , ijust drop it in the terminal window... Am I right or completely wrong?
Usually I tend to read tens of pages in xda, and it is not like I want to be spoon fed, but since yesterday I m trying to go through all the troubles I have, but so far no luck!!!
Thanks anyways to whoever will help me out.
Aur3L said:
When in terminal and I type ./fastboot-mac devices it reads " no such file or directory, so what am I doing wrong? Maybe a question , in terminal, when I want to indicate in which folder is the platform-tools-v6 folder , ijust drop it in the terminal window... Am I right or completely wrong?
Usually I tend to read tens of pages in xda, and it is not like I want to be spoon fed, but since yesterday I m trying to go through all the troubles I have, but so far no luck!!!
Thanks anyways to whoever will help me out.
Click to expand...
Click to collapse
When your in a terminal window you want to change directories to where you have the platform tools & image files before typing in the commands. I'm not sure how you do that on a Mac. Inversely you could copy the platform-tools files & the image files to where ever the terminal window opens.
Well, yes, but it drives me crazy to not know where the terminal is looking at... However, I managed to connect to my phone in fastboot, there was a script I pasted in the terminal window, which I have executed several times, and which made the phone reboot in fastboot mode.
So there is some kind of progress... :fingers-crossed:
What mistake have I done yesterday.....
I also tried through heimdall 1.3.2, which detected the device, but could not load anything properly, so I gave up that option , back with the fastboot mode.
So I m not sure how I will manage it, but I m not done with it now.
Edit: Finally, I managed to get control of the the phone, thanks to the work of Techfanatic9 and his Gnex toolkit for mac. What a relief, but in the meantime it got me to deal with adb, and I guess I will certainly dig deeper in this way to interact with phones .
So, of course, many thanks to 3rdstring for being so helpful and so fast ! All is well that ends well.
this is the link that got me out of trouble , so if you happen to be a mac user and get a bit out of control with your phone , check it out.
http://forum.xda-developers.com/showthread.php?t=1790399

[Q] anyone setup a virtual xperia play in eclipse AVD?

ok so im getting more into android development in the SDK lately and i ran across a tool called eclipse and by messing around with it i see that it can boot virtual android versions of choice so i see different android versions and i downloaded GB thought SDK and booted easy. But i want to but my own custom image of the xperia play in there. From what i can see eclipse uses everyday .img files (system.img, userdata.img ramdisk.img build.prop) but i see two thats different kernel-qemu file and source.properties. i was wondering if these files are important, i believe so that kernel-qemu could be what we know as kernel.img in a different form. how do i obtain these files to boot my xperia play on eclipse?
i could really use some help in this, im always recklessly making edits to my phone and i would like to test it virtually first before i send it to my phone.

Categories

Resources