[Help] Proper way to unpack and repack Android Img files in windows? - Android Q&A, Help & Troubleshooting

I'm looking for a tool, or set of tools that is capable of unpacking and repacking Android IMG files on Windows. Ideally I'd prefer a cmd tool (or set of tools), but at this point any way to properly do it works for me.
I know I will get some heat for "not searching" so I'll say I have searched both XDA and Google and found several tools and guides on how to do this. Most of them are Linux based, and any of the ones I found for Windows were either incomplete or only on how to unpack the images. A link to a post would be very helpful.
Thank you in advanced.

Look inside here.

Awesome. I'll check it out when I'm home from work today, but this looks like what I was searching for. Thank you.

Related

Linux in Himalaya (GPE, OpenMoko, ......)

I read very "HowTo" for run GNU/Linux in this PDA, but I don't found one file (broken link):
Familiar/GPE snapshot
gpe-image-h3900-20051222183619.rootfs.tar.bz2
Where is the good link???????
Thanks.
The howTo:
http://wiki.xda-developers.com/index.php?pagename=HimalayaLinuxBooting
http://wiki.xda-developers.com/index.php?pagename=HimalayaStandaloneGPEWithoutSD
I had the exact same problem, and I didn't get the right file anywhere... Tried the angstrom H3900 file, didn't boot, tried to partition my SD and load GPE from that (kernel booted), but it couldn't mount my SD partition (/dev/mmc/blk0/part1 or something, just couldn't get it and I did try a lot)... If someone knows where the right file is it'd be really nice...
I'm also trying around a little with Linux in my Himalaya.
I got a running kernel and initrd from http://wiki.xda-developers.com/index.php?pagename=HimalayaLinuxBooting
I can boot the kernel and ssh to my Himalaya via usbnet module. The problem is that my MMC-card is not recognized:
mmc0: card has unknown MMCA version 4
(/dev/mmc/ is empty)
I also got an GPE-filesystem from somewhere. I will try to put the necessary files into the initrd image. If anyone is ineterested, I can post it here.
I will also try to cross-compile a more recent kernel (I extracted the config from the running system) to see if my card works there.
Any comments and useful links to this topic are welcome!
kabelgleichung said:
Any comments and useful links to this topic are welcome!
Click to expand...
Click to collapse
You should adapt the recent kernel for Blueangel to be used on Himalaya.
I wanted to try this, however I was never able to find anywhere online if the Phone part of the PDA still works under Linux, can you make calls, can you go threw contacts, can you SMS/MMS, or does it make your device completely useless and just look cool lol.

Compiling AOSP from source

Hiya I am interested in compiling my own version of the android project from the latest sources for Hero but I am having a little bit of trouble, I have been attempting to follow this guide android.modaco.com/index.php?showtopic=301857&view=findpost&p=1179830 but it does not seem to make a lot of sense to me. For instance there is no .repo/local_manifest.xml file only a .repo/manifest.xml file and editing this as outlined gives me an error. Could somebody point me in the direction of a fairly noob friendly guide for this kind of stuff, thanks a lot.
Conb123
P.S Sorry about the dodgy link, newbie restrictions prevented me from formatting it properly
this should be in Q&A Section not development really. But im looking for this too! installed ubuntu using Wubi set up JDK,SDK testsign etc and repo but god knows how to do it all! I only want to port cyanogenROM
follow this: http://source.android.com/download
when you got everything synced you can basically type "make" and watch it compile for a while. i managed to do it with just above zero knowledge about compiling.
if you want the cyanogen sources try it with the according repo. i have zero idea about vendor overlays, as i needed to compile only the recovery (watched two hours of eclair compiling, then was told i need cupcake sources and can compile the recovery only...)
Yes I am aware of how to get sources and how to compile them, I am fairly well versed in linux. But I do not know how I can compile it into a usable rom for hero.
the result of the compiling are image files that can be flashed to the phone: system.img etc. you can extract them using unyaffs.
I ran the make command, but i really have no idea what to do from there. What is the end result of doing the first make command? Im fairly sure that it is not a single .img file you can flash onto your phone. You need to make a kernal if i am correct(anyone know how to do this?)
the result of the compiling is at least a system.img. if you compiled it correctly you can flash that to /system partition. further you need a boot.img, which also contains the kernel. the the rom-cooking howto in dev section how to create one, or just get one from a working rom.
fwiw, the .img files are in out/target/product/generic/ (although there probably is a device specific directory in there if you handled the vendor overlay correctly. <- this is just a guess, i have actually no idea).
Wanna link us to that how to thread? I cant seem to find a complete one with working links.
http://forum.xda-developers.com/showthread.php?t=551711

[Q] Setting up the Android SDK in Ubuntu...

Ok, I'm sure this is been asked before and I'm sure there's references somewhere...I've looked for a couple of days and found what should be answers, but nothing is working like the instructions I've seen...
Here's the simple question; How do I get the Android SDK and Java JDK setup in Ubuntu? I've tried the sudo commands to get the JDK to install, not working for me (as Ubuntu tells me it can't find the files I'm looking for). I've tried moving the SDK into the Root Folder (in the File System area itself), don't have permissions even though I'm logged in as the administrator. I've tried getting the SDK Manager to run through Terminal (home/android-sdk-xxxxx_xxxx/tools/android), can't find the file in terminal, but it's there in the file system exactly where I'm pointing it to.
I'm very new to Linux, but if I'm going to do things that I want to do, I'm going to have to learn. For the most part, I'm prepared to read whatever I need to in order to learn from this, but I also know when I need to ask for some help here. It seems like every command shown to get this started is just not working in the partition I have setup for this. If anyone can help get me started, I'm sure I can pick the rest up along the way!
Thanks in advance!
Macrodroid said:
Ok, I'm sure this is been asked before and I'm sure there's references somewhere...I've looked for a couple of days and found what should be answers, but nothing is working like the instructions I've seen...
Here's the simple question; How do I get the Android SDK and Java JDK setup in Ubuntu? I've tried the sudo commands to get the JDK to install, not working for me (as Ubuntu tells me it can't find the files I'm looking for). I've tried moving the SDK into the Root Folder (in the File System area itself), don't have permissions even though I'm logged in as the administrator. I've tried getting the SDK Manager to run through Terminal (home/android-sdk-xxxxx_xxxx/tools/android), can't find the file in terminal, but it's there in the file system exactly where I'm pointing it to.
I'm very new to Linux, but if I'm going to do things that I want to do, I'm going to have to learn. For the most part, I'm prepared to read whatever I need to in order to learn from this, but I also know when I need to ask for some help here. It seems like every command shown to get this started is just not working in the partition I have setup for this. If anyone can help get me started, I'm sure I can pick the rest up along the way!
Thanks in advance!
Click to expand...
Click to collapse
I think you could possibly use part of the EasyDev-v6 script in the Development and just cut out everything after installing prerequesites. It probably installs the JDK and the SDK among everything else, and it probably wouldn't hurt with the other things that installs, too. Just cut out everything after the prerequesites (it's just a regular text file but it'll be easier to edit in Ubuntu with OpenOffice).
Also check out http://maketecheasier.com/install-android-sdk-in-ubuntu-karmic/2010/01/11. As far as I know it worked when I tried it.
roirraW "edor" ehT said:
I think you could possibly use part of the EasyDev-v6 script in the Development and just cut out everything after installing prerequesites. It probably installs the JDK and the SDK among everything else, and it probably wouldn't hurt with the other things that installs, too. Just cut out everything after the prerequesites (it's just a regular text file but it'll be easier to edit in Ubuntu with OpenOffice).
Also check out http://maketecheasier.com/install-android-sdk-in-ubuntu-karmic/2010/01/11. As far as I know it worked when I tried it.
Click to expand...
Click to collapse
Dude, thanks so much! That worked perfectly. Thanks!
Sent from my Froyo Tazz using XDA App
You're welcome!

[TOOL][LINUX]DNA Splash Flasher for Linux

This is a simple tool/script used to:
1. convert .png files into the format used for the splash screen on your device.
2. Make a full backup/restore of your device.
3. Flash the new image to your device.
I have only tested this on the HTC Droid DNA, if anyone wants to test it for another device and post results that would be great.
This script is based on the work done by TrueBlue_Drew, but since I am on a Mac, I got tired of booting a virtual machine every time that I wanted to make a new splash screen. So I decided to "convert" his script to a bash script to make my life easier. After testing several boot screens and all of the functions myself to make sure they all work, I decided to share the script with everyone here on XDA. I have been using this site since I got my first Android phone just a few years ago (and it was a Motorola Citrus...one of the worst "smart" phones ever created!), and have learned a ton - I figured it is time that I start giving back to the community.
Since the creation of my script for the Mac, I decided to port it to Linux as well since they both use the bash shell. The only difference was having to find the compiled adb, fastboot, and ffmpeg tools for Linux.
If you like my work, don't be afraid to click the "Thanks" button. If you see any way to improve the script or have suggestions for other functions, leave a comment. If you have a question about bash scripting or using adb, leave a comment (I may or may not be able to help, but I will try...and there are many others here that can help).
Thanks again to TrueBlue_Drew for writing a nice little batch file that got me started on the path to creating this tool for myself.
The flash/backup splash option should work for any HTC devices that use a 1080x1920 splash screen but has ONLY been confirmed working with the HTC Droid DNA (I will add others to the list if anyone else confirms they work. I am already thinking about a way to select an option for the boot screen size you want to convert in order for this to work on more devices. :fingers-crossed:
REQUIREMENTS
1. Written on Linux Mint 16, but should work on any version of Linux with a bash shell
2. Rooted HTC device with S=OFF and Eng Hboot
3. 1080x1920 png image
INSTRUCTIONS
1. Download the attached zip and unzip it somewhere on your computer.
2. Create or find the 1080x1920 image you want for your splash screen.
3. Go into the "Splash Flasher Mac" folder you unzipped and place your image
in the "place-image-here" folder.
4. Run the file "splash_flasher.sh" file in the terminal and follow the on screen instructions.
I am currently having trouble uploading the file, I will try again tomorrow. In the mean time, the script can be downloaded from my dropbox.
RESERVED
Do you by any chance know how to extract the splash screen from another device's firmware update?
Sent from my Droid DNA using Tapatalk
jamiethemorris said:
Do you by any chance know how to extract the splash screen from another device's firmware update?
Sent from my Droid DNA using Tapatalk
Click to expand...
Click to collapse
Not sure if this works with the DNA or not, but try the tools in CNexus' post. I am not on my Linux machine right now, so I can't test. If the tools work, I will see if I can incorporate them into my tool. I am also working on converting the script to use easybashgui to give a graphical interface.

Flashing on Mac/Linux

Hi all, feeling somewhat frustrated, as all the posts I can find for P9000 require Windows to flash updated ROMs, Im looking to install 0315 (Ive got 0304 but need the Native FP API installed) but I run Mac and Linux so trying to figure out how to install the zip file? Anyone got any help?
Have a look here:
http://forum.xda-developers.com/general/rooting-roms/tutorial-how-to-setup-spflashtoollinux-t3160802
I did have a go on my laptop running arch linux but got an error with the scatter file so ended up doing it on a windows machine. However I have since seen this post on the Elephone forums:
Open the scatter in a editor and check the first bytes.
Ift there is anything before the "###" just delete and try again.
Click to expand...
Click to collapse
here is the thread:
http://bbs.elephone.hk/thread-9967-1-1.html#.VwaEa6QrKUk
Good luck

Categories

Resources