[Q] Is it spossible to chnge the system.ext2 file? - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi,
I really like all the Android builds that use the Desire ROM as I really like the HTC Sense. However, my language isn't really supported there (The fonts exist but the formatting is bad).
I have some files that should fix the formatting, but they are meant for the original HTC Desire and are installed by going to the ROM Manager/Recovery Mode and then choosing an option called: "Install Zip from SD Card".
Since I can't go to this ROM Manager nor get into Recovery mode with the HD2 Builds I am looking for an alternate way to change the system files on the Android build I am using.
The thing is that I am having difficulties doing so.
At first I tried using EStrongs File Explorer to get root access and copy over the new files I want to change but it gave me an error that it failed.
After I couldn't make it work I started looking for ways to open and edit the system.ext2 file in Windows.
I couldn't find any program or driver that would let me change the files, but only view them so I decided to install Linux and do it from there.
I used VMware workstation to install Ubuntu on my system.
On Ubuntu I mounted the system.ext2 following the mentioned instructions here: http://forum.xda-developers.com/showpost.php?p=8001443&postcount=8
It mounted okay but it said there was 0 bytes free when I tried to overwrite the files I wanted to change.
In addition it gave me permission errors, the error was that I did not have permission to copy the files.
I am not that familiar with Linux and I tired googling for answers but couldn't find anything useful.
I would appreciate if anyone can explain how to do it, or direct me to somewhere with more details as I'm kinda stuck at the moment.
The files I wanna change are:
/framework/framework.jar
/app/.DS_Store
/app/Gallery3D.apk
/app/Mms.apk
And a few font files to /fonts
Thanks a lot!

It is best to mount the ext2 file as you suggest but instead of trying to modify the file, copy the contents into a new folder and use the genext2fs command to recreate the system.ext2 file!

Hey man, it worked perfectly.
Thanks a lot!!
By the way, is there a recommended file size for the system.ext2? Or should I just keep the original size?
Is it worth setting it bigger? Will it benefit somehow?

Related

Please help cannot get Android system.sqsh to run from SD card

I ran everything listed below that I got from another post, but I cannot get android to run when I use the system.sqsh file. I can get it to work from the system.img file but I want to run 1.6 and I cannot find one in the .img format. What am I doing wrong?
Instructions for booting android.
Files to download:
basefiles-xxxx.zip
default.txt
haret.exe
system-xxxx.img or system-xxxx.sqsh
resources.zip
updated zImage-xxxx
updated rootfs-xxxx.img
If you are updating clear the root of your sdcard of any old android related files by moving them to a seperate folder or deleting them. If you are changing system images make sure you rename or backup your old data.img it might not be compatible with new or different builds.
Copy all files to the root of your sdcard.
Extract the basefiles.zip and resources.zip (resources.zip is not needed for donut) to the root of your sdcard.
Rename any updated files to there short names. For example if you downloaded zImage-24-10-09 rename it zImage etc...
Edit your default.txt for your panel type and resolution. There are comments in the file that will guide you.
Correct resolutions for different builds:
Donut/Tattoo: mddi.width=240 mddi.height=320 lcd.density=120
Ion/Cupcake: mddi.width=320 mddi.height=427 lcd.density=160 (this is the most common and can be adjusted)
Hero/Rogers: mddi.width=320 mddi.height=480 lcd.density=160
Rename the system image that you downloaded to system.img or system.sqsh depending on what file extension is already there. For example if you downloaded system-08-08-09.img rename it system.img. If you downloaded system-tmo-ota-drc92.sqsh rename it to system.sqsh.
After everything is setup execute haret.exe and tap run.
Any other questions post them in the correct xda thread for the build you are running.
Which build are you trying? Ion/cupcake should be 240x320 also.
I am using system-tmo-ota-drc92.sqsh, and I get this error when trying. The error I get is Failed to find system.img on SD Card /bin/sh: can't access tty; job control t/ #
tomp8588 said:
I am using system-tmo-ota-drc92.sqsh, and I get this error when trying. The error I get is Failed to find system.img on SD Card /bin/sh: can't access tty; job control t/ #
Click to expand...
Click to collapse
put everything into a folder called android on your sdcard make sure your rename system-tmo-ota-drc92.sqsh to system.sqsh
Thanks it worked great. I have been trying to figure this out for a couple of days.
I had the same problem...thanks jamezelle

How can I extract contacts from Android files ?

If I saved all my Android files on my computer from a previous build, can I somehow get the contacts out of them files ? perhaps there's a file that contains all contacts ?
log into your gmail and extract them that way
That's the weird part, for some reason the number I'm looking for wasn't logged by Gmail, and that's why with the current build I didn't have his number imported as the rest.
The contacts are stored in a SQLite3 database file so the file format is ".db"
The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR
ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well
(Rooting is NOT for beginners though)
The contacts.db file is stored in the protected system memory, the file path is:
data/data/com.android.providers.contacts/databases/contacts.db
itsme_4ucz said:
The contacts are stored in a SQLite3 database file so the file format is ".db"
The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR
ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well
(Rooting is NOT for beginners though)
The contacts.db file is stored in the protected system memory, the file path is:
data/data/com.android.providers.contacts/databases/contacts.db
Click to expand...
Click to collapse
If I understood correctly this file should be in the SD card, but I cannot find one, nor the directory /com.android.providers.contacts/ .
Your phone doesnt think its on the sdcard. It thinks its on the phone itself.
For my adb uses I use a program called android commander. It will allow you to navigate to that file.
Try using root explorer app, it will get you there...
My issue is not with the contacts on my working phone system, but on the files I copied before I've change to a new build. I thought there may be a chance it's on one of those files, but it sound much complicated then that.
If you don't want to try itsme_4ucz's solution, why not copy the files back to your phone and sync again with Gmail?
Because for some reason the build didn't load, that was the reason why I switched builds in the first place.
I don't want to root my phone for that, I'm pretty noob
I could be wrong, but...
Wouldn't that file be in the data.img file system image? If so, you can mount that file in Linux, or most likely Windows, then browse to the location mentioned above.
That'll at least get you there, but you still have to get the data out. Perhaps copy that one to the phone's current file system. If not, I'm sure someone will come up with something if the above posts don't work.

How to install dsp manager?

hi, does anyone know how to install dsp manager to hd2 android? people with native android phones install it via recovery mode, but I don't know how to do this with hd2. here's one thread about it: http://forum.xda-developers.com/showthread.php?t=773449
thanks
You put the apk in the root/system/app folder and you put the libaudioflinger.so in the root/system/lib folder and full reboot android and it should work
*if non of the folders exist then create them and if libaudioflinger.so allready exists then overwrite it
I've tried replacing it.. but it does not allow me to replace the file
Use ES File Explorer to mount system data as writable. its free from the market.
open es file explorer, go to settings and pick root options.
I'm currently using ES file explorer.. but i cant check the Mount File System
TheiPhoneKiller said:
You put the apk in the root/system/app folder and you put the libaudioflinger.so in the root/system/lib folder and full reboot android and it should work
*if non of the folders exist then create them and if libaudioflinger.so allready exists then overwrite it
Click to expand...
Click to collapse
Hey TheiPhoneKiller!
Where can I find these files? I´ve downloaded this zip file, but I can´t find a libaudioflinger.so in there...
here we go,ive uploaded it for you
thank you, man
Thanks... its working on normal builds, i think this doesn't work with ram edition builds.
ok, i finally tried installing this as instructed and after reboot the phone just stalls at htc logo. i rebooted once more and still the same. so i did a fresh install
edit: apparently my build (jdms) already has dsp manager built in.

[Q] How can I modify files with SD Rom? The Rom is AmeriCanAndroid.

I have flash the AmeriCanAndroid, and I try to modify file "/etc/gps.conf", it is failed.
When I reboot my HD2, the file restore to the original one. Like I have not modify it.
I try to creat file in /etc or other path, it will be removed after reboot the device.
Please help.
Thank you!
sytzz said:
I have flash the AmeriCanAndroid, and I try to modify file "/etc/gps.conf", it is failed.
When I reboot my HD2, the file restore to the original one. Like I have not modify it.
I try to creat file in /etc or other path, it will be removed after reboot the device.
Please help.
Thank you!
Click to expand...
Click to collapse
Are you using a root file browser ? if not thats why . I would recommend using ADB . however if you are on a linux machine . you can insert your micro SD into an adapter and mount your *.img files .

convert tar to zip?

I've been scouring the interweb looking for a way to take a stock tar file and convert it to a zip file that will flash with twrp. I know it can be done, but thus far I'm not happy with the processes I've found... how do you guys do it?
The stock TAR files contain partitions in IMG format - an all in one file system, and in this case using EXT4 formatting.
In order to create a ZIP, you need to access the files on the partition, which means finding a way to mount those IMG partitions to copy their contents, or find a piece of software to extract from them w/o mounting. Since they are EXT4, you can probably assume a Windows solution isn't available (EXT4 is Linux). Some utilities may exist to handle EXT4 on Windows, but finding one that knows EXT4 and can extract/mount an IMG file is pretty specific.
EDIT : found a utility for you - http://forum.xda-developers.com/showthread.php?t=2285831
If you can somehow get the files out of the archive, you'll need to find a tutorial on the structure of a flashable ZIP. Generally, its just folders and files but there is also a META-INF folder, scripts to install and set permissions, etc. There are likely threads here on XDA that can detail these steps.
Spitzaf, thanks so much! I was hoping for just such a tool

Categories

Resources