Android Tablets Forum banner
1 - 15 of 15 Posts

·
Registered
Joined
·
82 Posts
http://pan.baidu.com/share/link?shareid=128616&uk=4029273141

I'm trying to extract the contents of this img file under ubuntu with afptool. (the version of afptool for rk3066 devices)

When I try to do so, I get the following error:
Code:
invalid header magic
I can't find an explanation as to what this error code means.

Actually, I've tried a whole bunch of methods to attempt to get to the contents of the image but nothing seems to work.

Anyone able to even so much as manage it at all?

Thanks,
Mark.

Edit - similar issue on Windows with the same afptool app:
Code:
Check file... Failed<br />
Unpack failed
Sort of making me wary of using this ROM at all! (even just for a straight up flash)
 

·
Registered
Joined
·
199 Posts
Use wendals tool:

rename to wendal.img
run runme.bat to extract imgs to temp dir

move system.img to linux box

sudo mkdir system

sudo mount -o loop system.img system
 

·
Registered
Joined
·
82 Posts
Discussion Starter · #3 ·
Use wendals tool:

rename to wendal.img
run runme.bat to extract imgs to temp dir

move system.img to linux box

sudo mkdir system

sudo mount -o loop system.img system
I've seen wendals tool referenced a lot here but no download links, would you care to share please?
 

·
Registered
Joined
·
82 Posts
first link on google.
It seems to have extracted on the whole but I received this error, think it's anything to worry about?

Code:
cramfsck: superblock magic not found<br />
Enable root permission<br />
The system cannot find the path specified.<br />
The system cannot find the path specified.<br />
chmod: cannot access `system/*': No such file or directory<br />
chmod: cannot access `system/bin/su': No such file or directory<br />
chmod: cannot access `system/app/Superuser.apk': No such file or directory<br />
Unpack -- All Done<br />
Pls input: 1-Unpack 2-Pack 3-Exit
I can see most of it is because it's trying to enable root access on a different tablet, but what of the cramfsck superblock magic part?
 

·
Registered
Joined
·
35 Posts
The software winimage is working for opening system.img, guess it can be used for rooting by adding su binary and supersu.apk
Hello guys!

It's possible to extract the firmware content (apks from an IMG file) under Windows? Tried this "Winimage" but it gives me an error. Tried other options too, without success...

Thanks!
 

·
Registered
Joined
·
57 Posts
Hello guys!

It's possible to extract the firmware content (apks from an IMG file) under Windows? Tried this "Winimage" but it gives me an error. Tried other options too, without success...

Thanks!
Yes possible. Don't use the firmware image directly, extract it, you will get many img files. From the system.img extracted using Wendal's tools, it has all the apks.

Get this driver for ext2 images:
http://www.fs-driver.org/download.html

After that install the below Gizmo drive:
http://arainia.com/software/gizmo/download.html

Then right click system.img and mount it. This is how I mod the image.
 

·
Registered
Joined
·
82 Posts
Discussion Starter · #10 ·
Yes possible. Don't use the firmware image directly, extract it, you will get many img files. From the system.img extracted using Wendal's tools, it has all the apks.

Get this driver for ext2 images:
http://www.fs-driver.org/download.html

After that install the below Gizmo drive:
http://arainia.com/software/gizmo/download.html

Then right click system.img and mount it. This is how I mod the image.
Thanks, I managed it in the end with a Linux VM but this is more handy. Aren't they usually mounted as ext4 though?

Also, any ideas on how to mount the cramfs images for the kernel and boot images?
 

·
Registered
Joined
·
35 Posts
Yes possible. Don't use the firmware image directly, extract it, you will get many img files. From the system.img extracted using Wendal's tools, it has all the apks.

Get this driver for ext2 images:
http://www.fs-driver.org/download.html

After that install the below Gizmo drive:
http://arainia.com/software/gizmo/download.html

Then right click system.img and mount it. This is how I mod the image.
Ok, thanks. Got the "system.img" file (among others). But after that, Wendal's tools doesn't extract system.img, and I can't get the desired apk inside it.

Do I need to mount system.img just to get the apk file?
 

·
Registered
Joined
·
57 Posts
Ok, thanks. Got the "system.img" file (among others). But after that, Wendal's tools doesn't extract system.img, and I can't get the desired apk inside it.

Do I need to mount system.img just to get the apk file?
Yes right click system.img and mount it to any drive letter, you can see the apk inside app folder (you need both above software installed)
 

·
Registered
Joined
·
82 Posts
Yes right click system.img and mount it to any drive letter, you can see the apk inside app folder (you need both above software installed)
When trying to copy everything out of system.img, I found that there were several files that I was unable to extract. I think they were to do with rooting (busybox stuff maybe) and that it was linked to a permissions problem. Do these mounted images obey the original permissions?

If I want to get a full extract, how can I also extract that stuff?

I also got a BSOD every time I tried to delete a file inside the img. Maybe a windows 8 incompatibility? What OS are you using?
 

·
Registered
Joined
·
35 Posts
Yes right click system.img and mount it to any drive letter, you can see the apk inside app folder (you need both above software installed)
YES! Thanks, dude! After rebooted my PC, everything was ok!
 
1 - 15 of 15 Posts
Top