[Q] Unpacking ROM img files - Android Software/Hacking General [Developers Only]

Dear all,
I have recently adquired an Android Tablet PC Bmorn v11 from China. I have also obtainded the original ROM from the manufacturer, that is a unique file with .img extension.
I'm trying to unpack this file to modify and customize the firmware for this tablet. The problem is that I have tryed everything with no results and I am without ideas right now. I'm goint to detail what I have tryed to see if any of you have some idea to try.
- When I execute the file comman I just get file_name.img: data (I waited to get a filesystem to mount the image).
- I have tryed to mount the image anyway, trying filesystems ext2, ext4 and even others like cramfs with no results.
- I have tryed unyaffs. (Invalid magic result).
- I have tryed ext4_utilities. No results.
- I have opened the file with hex editor trying to find some logic, file extructure or a known magic number. Nothing useful.
- I have tryed to dump the file to an sd card, as if it was a disk image, but again, no results.
I will be grateful if any of you can can contribute with some suggestion.

Have you tried a program like Android Kitchen, or Android Utility

Yep! I've tryed. Unfortunately these programs often are device specific.

Related

[REQ] Telstra Froyo RUU Decompile

Hey guys, I'm trying to tinker with the recently-released Telstra-Branded Froyo ROM so I can check on some of the data inside and modify T-Mod to suit, but I've come across two very strange problems:
1: Extracting the update form the RUU gives me naught but a .img file which I have no clue how to open (I know it's a filesystem image, but I haven't been able to find tools to open it)
2: The OTA version of the update, while easily viewable, seems to use a .p file based patching system that I have never seen before.
If anyone can help me with these two problems by providing me with either the tools to decompile the RUU into something I can actually look at, such as tools for android's .img filesystem format, or a decrypted version of this ROM, it would be greatly appreciated.
EDIT: Nevermind, I found a copy of unYAFFS, figured it all out. just had to figure out what the filesystem on the RUU was.
Edit: I see you found it..
I know you're sorted now Muskie, but using dsixda's kitchen is also a useful tool.
http://forum.xda-developers.com/showthread.php?t=633246
Run the ruu until the menu comes up, go to your temp folder and copy the rom.zip and whack it in the kitchen.
Ben

[Q] task rpcrouter:15 blocked (CDMA)

Same as posted here "I have an HTC [differing: Touch Pro (Alltel CDMA)]. I followed the instruction on forum.xda-developers.com for [FRX*] but it [enters an endless loop] at "task rpcrouter:15 blocked for more than 120 sec". The solution that worked in that link does not solve the same problem with a CDMA RAPH800.
The solution given there (paraphrased from that thread):
Link to the fix. The issue is caused by not having a data plan; the install gets stuck in a loop looking for a signal.
The solution that worked for a GSM phone
download RIL file from http://forum.xda-developers.com/atta...9&d=1302817139 and place in the root of microsd.
download rootfs file from http://www.megaupload.com/?d=1NGCVCTT and place in the root of microso.
add to the end of /conf/froyo.user.conf file "/sdcard/libhtcgeneric-ril.so /lib/froyo/libhtcgeneric-ril.so" before the last "}"
Please help me find a solution for a CDMA phone - next month I'd like to take a dozen of these phones and use them as learning aids in a construction course for laborers, but I cannot start testing construction applications since I cannot get the OS to work.
I'm curious as to what happens when you format your microSD and run FRX7.1MR without anything additional. Could I get you to try this method without the additional stuff?
To be explicit, I'd like you to format your microSD with something other than the Windows method and I'd like you to download THIS (if you haven't already) and THIS. Extract the contents of both files to the root of your microSD. You should see a folder called "FRX07.1" and under that folder, you should see 3 folders and 7 files. Move the contents of that folder up to the root of the microSD. Look under the folder called "STARTUPS" and locate your device type (ie RAPH800) and copy over to the root of your microSD. Once done, run Haret on your phone and let me know what happens.
do you have an application you suggest for "format your microSD with something other than the Windows method"; sourceforge did not turn up anything.
forest.peterson said:
do you have an application you suggest for "format your microSD with something other than the Windows method"; sourceforge did not turn up anything.
Click to expand...
Click to collapse
use SDFormatter
wow that SDformatter link has a lot of popups - this link feels less like I just found a date at the bus-stop sdcard.org/downloads/formatter_3 ; but it will not install on either Server2008R2 x64 or Server2003 R2 SP2 x32.
I reformatted the microSd with the format tool in Server2008R2 as FAT format. Installed the files, and boom - I see little green guys swirling around the screen. After awhile a dialog appeared "Sorry! The process com.android.phone has stopped unexpectedly. Please try again"; the dialog closed and it seems like it works! Thank you. I will try again with the HPtool and as FAT32.
Now I just need to learn how to use Android - and the screen calibration seems off? Deleting ts-calibration and rebooting to calibrate.
Glad to hear using the latest bundle works for you! Yeah, that might be a slight issue with an outdated kernel. The main thing I wanted to do is get you booted up first!
Before we continue, make sure you make a backup of your current configuration by copying the contents of the microSD and either moving it to your computer or some other storage device. This way you know you have a "working" bundle.
Next we update the kernel package from HERE; might I suggest using THIS kernel package. Be sure to delete the old files (should be located under root of the microSD and called modules-xxx and zImage) first! Extract till you see two files then rename zImage-xxx to just zImage and feel free to delete the files you extracted from. I've always created my own ts-calibration file but just wanted you to have it, "just in case".
Additionally, you may also need to update the rootfs by deleting the file called rootfs and downloading THIS file. Extract the file and rename to just rootfs and be sure to place it where the file called Haret is (default location is root of the microSD).
files are downloaded and installed - everything seems to work

[Q] Problem with flashtool extracting firmware?

Hello! Before posting, i search this forum but not found nothing understandable. I wont to modify .ftf file of sony xperia e single sim, edit some apps and repack in fleshable ftf again, but i have some problems. Ok i'm doo next:
1. Extract flashtool via winrar.
2. Copy system.sin to flashtool directory and extract with sin editor, and get 2 files system.ext4 and system.partinfo, but with flashtool only possible to extract yaffs2 files. 3. Here is big problem, i tryed menny softwares for opening ext4 images in windows, but only ext2 exploer can modify this files, but totaly inaccesible with screen readers like as jaws.
4. I found some tutoryals for mounting in linux but i can not understand linux commands as well, for example did i must know exactly syze of system partition to mount ext4 image, maby exist some gui program for linux from wich can mount end edit ext4 images?
Finally, does possible making flashable img or ftf file for sonny phones for custom roms? For example, easyer to me is flashing custom roms via fastboot, because in some situations for cm recovery i need sited assistance.
Thanks, and best regards.
iksi said:
Hello! Before posting, i search this forum but not found nothing understandable. I wont to modify .ftf file of sony xperia e single sim, edit some apps and repack in fleshable ftf again, but i have some problems. Ok i'm doo next:
1. Extract flashtool via winrar.
2. Copy system.sin to flashtool directory and extract with sin editor, and get 2 files system.ext4 and system.partinfo, but with flashtool only possible to extract yaffs2 files. 3. Here is big problem, i tryed menny softwares for opening ext4 images in windows, but only ext2 exploer can modify this files, but totaly inaccesible with screen readers like as jaws.
4. I found some tutoryals for mounting in linux but i can not understand linux commands as well, for example did i must know exactly syze of system partition to mount ext4 image, maby exist some gui program for linux from wich can mount end edit ext4 images?
Finally, does possible making flashable img or ftf file for sonny phones for custom roms? For example, easyer to me is flashing custom roms via fastboot, because in some situations for cm recovery i need sited assistance.
Thanks, and best regards.
Click to expand...
Click to collapse
I have looked around to repack an extacted system.sin but never found how to do it. To dump the ext4 img just use ext2 explorer after it has finished extracting & loading click save in the toolbar and choose the folder where you want to save it.
gavster26 said:
I have looked around to repack an extacted system.sin but never found how to do it. To dump the ext4 img just use ext2 explorer after it has finished extracting & loading click save in the toolbar and choose the folder where you want to save it.
Click to expand...
Click to collapse
hello! I can't found ext2 explorer, i only found ext2explore, but this software is totaly unusable for me, don't works with screen readers.
P. s. whats your problem when you try making system.sin?
iksi said:
hello! I can't found ext2 explorer, i only found ext2explore, but this software is totaly unusable for me, don't works with screen readers.
P. s. whats your problem when you try making system.sin?
Click to expand...
Click to collapse
There's no tutorial on how to build one or a tool. Not for windows anyway.

BLU bricked, SPFlash Read yields encrypted contacts2.db, what next

I have a BLU phone that was my only source of contacts with no Google or backup (yes, I know). It was dropped a significant distance. It won't show any indication of charging or powering up, no lights or sounds. However when I plugged in the USB port I noticed the toggling of the USB driver install, typical for a MTK device so I decided to try to read from it with SPFlash tool.
To try to get at the contacts I downloaded a factory restore ROM and loaded the scatter file to see what location I needed to seek to find the user data for download. I first found userdata.img location from the factory scatter file and set up SPF under the ReadBack tab and used the Add button to specify a range beginning with and including the same numbers where the scatter file indicated the user data was, plus with SPF tool I stated I wanted the user data area read and saved as userdata.img. Now clicking on the read and then plugging the phone in with the read button pre-pushed, the SPF tool took off reading as soon as the dead phone USB was plugged in, operating just like I was flashing or writing to the phone. (Excitement was mounting.)
From here on my Windows machine I installed DiskInternals Linux Reader and mounted the userdata.img with that software and was able to navigate to the db file containing the contacts and the android call list located at
/data/data/com.android.providers.contacts/databases/contacts2.db.
Now the DiskInternals software allowed me to save the contacts2.db as a Windows file anywhere on the laptop but when I tried to open it with SQLite, it said the file is encrypted. I viewed the file using a Linux friendly editor (Context) and saw some names and numbers in readable text, but they were surrounded by tons of formatting and unprintable characters. (Looked something like a MS Word docx file.) I also tried the FireFox plugin for SQLite in addition to the SQLiteManager and the SQLite browser software. All of them said the file had a password that was needed to open it. (Exit excitement.)
Now it looks like my options are to either try to find someone or thing that can hack the password of the contacts2.db, locate the password perhaps hidden somewhere in a system.img that I can attempt to extract via the same method as I did the userdata, or I can try to assemble a working group of restore "parts" which include this userdata.img, adding it to some mix of the restore file and other IMG files I can possibly extract from the "bricked all but for flash tool" mostly dead phone. Theoretically, with such a reassembled package of IMG files I would then go look for an exact same model of this bricked phone and then try to load the new assembly of IMG files onto that good used phone.
I am open for suggestions of how to solve the puzzle. The objective is to get a list of readable contacts from the crashed phone and ideally get them exported into a format that can be input into another phone.
Thanks in advance.
P.S. Android 5.0 on the phone

Downloaded Chinese firmware but can't extract Call Recorder - IMG file not EXT4 !

Please anyone senior to comment of what I do and what's the right way ?
- I decompressed Chinese firmware for P40Pro. Finally extracted bunch of partitions as IMG files and I am lost now:
Linux says
>file system.img
> DATA
while I expected EXT4. Maybe extraction went wrong ? How do I now open IMG partition and get my Call recorder from it ? What other API I would need to extract to allow access to mic and speakers... Anyone can put some light on all this topic ?
Where did you get the firmware, If I could give it a try, I might be able to retrieve the apk (not sure, but there's always a chance if the apk exists).
Huawei switched away from the EXT4 file system to EROFS
Works like charm :
https://forum.xda-developers.com/sho....php?t=1441643
Thanks to: Tonycid
mega.nz/file/4U5WRL4T#BbIBIV5CSOpKC326z3S-ocWCt63NuTfSVBKMnOmUWr4
arturo.mg said:
Where did you get the firmware, If I could give it a try, I might be able to retrieve the apk (not sure, but there's always a chance if the apk exists).
Click to expand...
Click to collapse
I found it here at easy firmwares. I also have found a script on XDA which should extract content of IMG file which is not EXT3 indeed.
Here is a thread about mounting EROFS
Maybe this helps someone ?
I get an error when I updated. it looks so error 412 #23234sQwerRddgg? Who can help me?

Categories

Resources