Related
*********
*********
What is the best way and tools to use to edit initflashfiles.dat
This file is very important and we need step by step clear guide with example
Attached one sample edited by TofClock ... let use this as an example
*********
*********
Just change the extention of it to .txt
edit it and after finish editing
change the extension back to dat
Is this answe ur question?
Thanks for quick response. I appreciate it.
Are you sure i do not have to convert from unicode to text and then edit and then back to unicode??
Is it normal text file ... it does not look to me that way!
Did you check the attached file?
I did this several times
Attached your file in .txt after rename it and it will tel u that the file may be damaged, do not care
You must rename the file again to be .dat after making ur changes
But be curfull any mistake in this file will create a big problem do it but be curful
llbasha said:
*********
*********
What is the best way and tools to use to edit initflashfiles.dat
This file is very important and we need step by step clear guide with example
Attached one sample edited by TofClock ... let use this as an example
*********
*********
Click to expand...
Click to collapse
You can right click on the file - open with - and it should open with notepad. Yes you need to save it as unicode but even then you will find it will not work. You need to use a hexeditor and delete the first ff and fe as these are added when saving with notepad.
Would u please explain more, how to find this FF & FE?
I know how to nba files only
Thanks
The_hesham said:
Would u please explain more, how to find this FF & FE?
I know how to nba files only
Thanks
Click to expand...
Click to collapse
When you open the file with a hex editor the first 2 values seen are FF and FE just delete these and save.
Thanks man
this is quite helpfull
but .. r u sure if i edit the file with notpad it will fail to run
i think one of my friends edited it with notpad and all gone well
thx for the nice wotk guys .. this is very appritiated
Sincerly
Adam
solomhamada said:
this is quite helpfull
but .. r u sure if i edit the file with notpad it will fail to run
i think one of my friends edited it with notpad and all gone well
thx for the nice wotk guys .. this is very appritiated
Sincerly
Adam
Click to expand...
Click to collapse
I tried it without removing those 2 values and it always hangs the device. If in doubt check the file (before and after editing with notepad) with a hex editor and you will see ff and fe are added.
meschle said:
I tried it without removing those 2 values and it always hangs the device. If in doubt check the file (before and after editing with notepad) with a hex editor and you will see ff and fe are added.
Click to expand...
Click to collapse
i dunno
i'll ask him
cheers!
ADAM
I'm sure I did change the file without doing the removing of FF & FE and it works normaly
But no prob., next time I will try meschle advise
I discovered that the best way to edit any unicode file is by using an old program called editpad (free version copy attached here: ( http://forum.xda-developers.com/showthread.php?p=1130485#post1130485 ) that allows to do, among many other things, to convert unicode to ansi and back to unicode without destroying the file structure. I feel sure many will find this very useful. Also it can be used as direct replacement for notepad by just rename it notepad.exe and over write your window one (or rename it before copying).
initflashfiles Editor
Hi every body been working on a rom kitchen when i got to the initflashfiles File Editing I put this Tool Together thought i'd share it so here it is
Thanks to every body how share's there work and tools on this site I would like to here what you think of this tool please as your comments will help to improve the tool this is virsion 0.1.0, I think it's completed but let me know your thourght's
Swampy395
The_hesham said:
I did this several times
Attached your file in .txt after rename it and it will tel u that the file may be damaged, do not care
You must rename the file again to be .dat after making ur changes
But be curfull any mistake in this file will create a big problem do it but be curful
Click to expand...
Click to collapse
OK, when I cut the new initflashfile und paste it in the windows folder what will happen with the existing initflashfile.dat? Will the newer one replace the older one or will be two files in the folder after doing this? Thanks for help.
I have a Acer Tempo DX900 if it is neccesary to know that.
With the help of red_menace over at the apple support forum, I present Mac users with an application that will sign their .apk and .zip files.
It is a droplet application, meaning you just have to drag the file you want signed onto the application itself. A new file will be created with -signed at the end of the file name.
For this to work you need to have testsign.jar in your root directory. The root directory is the first place you come to when you click on the mac hard drive.
If anyone wants to use or edit the script that's fine with me, I really didn't do much, just asked the right people for help.
Android-sign.zip Download
Android-sign.zip has both the testsign.jar and android-sign application.
EDIT: Sorry about the mixup. Testsign.jar is now linked above.
thank you sir! will try tonight
Exception in thread "main"
java.lang.NoClassDefFoundError: testsign
I cant find the testsign.jar its not in the tool directory of my SDK that I downloaded from Androids website
Where can I get this testsign.jar?
*EDIT*
I found the testsign.jar in the forums. You can get it here: http://forum.xda-developers.com/showthread.php?t=538020
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
wow i need this bad...now lets c if i know how to get it 2 work....
MurderDeathKill said:
But I still get the same error I've placed the program and the testsign.jar file in the same directory.
I have some cool skins in the making! I just need to know how to sign these files! I'm on a mac.
Why am I getting the error?
Click to expand...
Click to collapse
are you putting the testsign.jar in your ROOT dir? aka where adb is
same error
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
jaaronmoody said:
are you putting the testsign.jar in your ROOT dir? aka where adb is
Click to expand...
Click to collapse
What file is the adb? I understand what adb means and what it does, but I don't know how to identify it.
Ok so since im new to this can someone can make a really dumb guide for me from dowloading the app to putting the test.jar file please.
im getting the same error, this is a huge step though when u figure out whats going on with the rest of our Auto-sign, repost thanks nd thumbs up
nice...thx for sharing this. will come in handy
oops, still getting used to all this. haha
ffff00 said:
Okay, so I'm getting the same error. And yes, my testsign.jar/Android-sign.app are both in my sdk/tools dir.
Not sure what the problem is.
Hope I can get this to work
Click to expand...
Click to collapse
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
jessetbenton said:
the testsign.jar needs to be in the root directory of your computer. The app can be placed anywhere you would like. Where ever you put the app, the new signed file will be also.
Click to expand...
Click to collapse
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
no i said that, and it is where adb is.... at least for me... in the root dir, if you move the adb file there you don't have to enter the path every time you enter adb commands in the terminal
ffff00 said:
Oh okay, thanks.
You said to put it in the same folder as adb is why I was confused.
I'll try this out in a few.
Click to expand...
Click to collapse
i think what jaaronmoody was talking about is just putting your adb file into the root directory instead of adding to the bin. but im pretty new to the whole terminal and coding stuff, so i just know what i've picked up since having my g1.
guys does anybody know about signing folders again to make them flashable?
G1_Lucky said:
guys so lets say i put meltus audio hack in cyanogen 4.9999 and i want to sign the whole build back up how would i do that.
thank you
Click to expand...
Click to collapse
well if the file is good. you just have to drag the cm 4.9999.zip file onto the app and it will spit out the new signed version.
What I think is more complicated is actually modifying those files. I use virtualbox to run windows and do everything with 7zip.
Anyone know of a zip program similar to 7zip to edit the apk and zip files?
Dude! Thanks! Alright guys get ready now that I have everything in place ADB, and signing my .zip files expect Luck's turn at android development lol. Im hecka grateful for everybody but now im ready haha thanks guys
Thanks for the help.
Works like a charm.
Awesome droplet.
Rhobuntu -- Ubuntu like Linux
Download: http://technetic.net/rhobuntu/downloads/HTC ELF/
(right click --> save target as)
1. Download latest build
2. Unzip to sdcard (7zip)
3. run haret.exe
Changlog:
new init-script (thanks AmiPro)
new startup.txt
I'll have a play on lunch - but I don't know if I have enough time, but thank you very much for linking this in!
If I do't have time on my lunch - I'll give it a go on my lunch!
Hello, Walter, and thank you for sharing this.
I´m fighting with my Elfin but I think Rhobuntu needs at least 1,6 GB of free space in the SD card.
So, with my 1GB card, I think I´m sold .
Greetings.
I am using HTC TOUCH GSM.
I have installed the Rhobuntu.
It opens up till the main screen and hangs..
no pointer movement and the screen resolution is too small..
I am not even able to scroll and see the full screen.
It hangs ..
need help..
i tried it but its mere of a beta stage
Let´s try
Thanks!!!
Hi Walter, wheather it will work with HTC TOUCH GSM???
jonnigin said:
I am using HTC TOUCH GSM.
I have installed the Rhobuntu.
It opens up till the main screen and hangs..
no pointer movement and the screen resolution is too small..
I am not even able to scroll and see the full screen.
It hangs ..
need help..
Click to expand...
Click to collapse
I have the same problem after starting the desktop and the icons bar on the botton, the device show the keyboard but I'm not able to move the cursor with the stylus.
please note that the device shows me only part of the keyboard, seem like that the resolution is wrong.
During the startup the font changes size. can be related to the wrong resolution??
No actions can be done with the sistem.
thanks and let me know if more information is need
This thread made me come up with a new prefix for these threads.
[LNX]
So put [LNX] in threads for Non Android Linux builds. So users can easily identify or search for specific threads.
Spread the word mate
With /dev/input/event3 it works well.
AmiPro wrote a new detection script for touchscreen.
Now Rhobuntu works on HTC ELF.
yo.. you know what is Elfin device code? i got to edit the startup.txt to make this LXDE runs on it. thanks!
Could you post your startup.txt?
Download for new init-script: http://rhobuntu.googlecode.com/files/init
Hello excuse, you could tell me how to replace the init file? I tried to follow the explanation at the beginning of the post, but I could not mount the file ubuntu.img, in any way. I tried with a live ubuntu, but it did not work. I tried to mount the. IMG file with magic disc but can not mount it. I guess not enough to replace the init file in the destination folder? I tried but during boot change the resolution, and the screen remains fixed on a keyboard in the middle where you can not interact. As was the case before ... Could you explain in detail how to replace the init file, or at least to run on the touch rhobuntu elf?If you want to write me a pm. Thanks
P.s. sorry for my bad English
nightly_shadow said:
yo.. you know what is Elfin device code? i got to edit the startup.txt to make this LXDE runs on it. thanks!
Click to expand...
Click to collapse
MTYPE 2372
http://forum.xda-developers.com/showpost.php?p=4440575&postcount=7
ste81x said:
Hello excuse, you could tell me how to replace the init file? I tried to follow the explanation at the beginning of the post, but I could not mount the file ubuntu.img, in any way. I tried with a live ubuntu, but it did not work. I tried to mount the. IMG file with magic disc but can not mount it. I guess not enough to replace the init file in the destination folder? I tried but during boot change the resolution, and the screen remains fixed on a keyboard in the middle where you can not interact. As was the case before ... Could you explain in detail how to replace the init file, or at least to run on the touch rhobuntu elf?If you want to write me a pm. Thanks
P.s. sorry for my bad English
Click to expand...
Click to collapse
Download Ubuntu LiveCD
http://www.ubuntu.com/
Run liveCD
- copy Ubuntu.img to the root of your harddisk (c:\ for example)
- open terminal
- open folder of Ubuntu.img (cd /media )
- mount Ubuntu.img ( sudo mount -o loop Ubuntu.img /mnt )
- run: sudo nautilus (FileManager)
- select "show hidden files"
- copy new init to /mnt
- close nautilus
- maybe you have to end the nautilus task in terminal with CTRL+C
- umount Ubuntu.img ( sudo umount /mnt )
- copy new init to /mnt
Thank you soo much!!!! Now Rhobuntu run well on my elf!!!!
Failed to find Ubuntu.img on SD Card
Hi,
Thanks for a good initiative. I've HTC Touch GSM (HTC ELF) (P3450) in India. I always keep changing OS on my mobile. I was waiting for Linux on it. I downloaded Rhobuntu and replaced the init in img file also replaced STARTUP.TXT and zimage file with the given one. Now when I start herat I get
1osetup: /dev/block/loop2: No such file or directory
Failed
Failed to find Ubuntu.img on SD Card.
/bin/sh: can't access tty: job control turned off
/#_
After the hash (#) the cursor keeps blinking.
Can you please help me what I have done wrong.
Gourav
gouravjoshi said:
Hi,
Thanks for a good initiative. I've HTC Touch GSM (HTC ELF) (P3450) in India. I always keep changing OS on my mobile. I was waiting for Linux on it. I downloaded Rhobuntu and replaced the init in img file also replaced STARTUP.TXT and zimage file with the given one. Now when I start herat I get
1osetup: /dev/block/loop2: No such file or directory
Failed
Failed to find Ubuntu.img on SD Card.
/bin/sh: can't access tty: job control turned off
/#_
After the hash (#) the cursor keeps blinking.
Can you please help me what I have done wrong.
Gourav
Click to expand...
Click to collapse
http://forum.xda-developers.com/wiki/index.php?title=Ubuntu_on_the_Rhodium#Installation
did you replaced the init file?
Thanks buddy, I managed to get it installed. Mistake was mine, I copied Ubuntu.img file in ubuntu directory. as i moved it out on storage card root, it got installed.
But after installation there was a big key board on screen which i managed to drage down with stylus. but what I feel is the resolution need to be changes as it is showing everything so big.
Also, I tried to make a call to this device, we get ring at device from which I was calling, but there was nothing on the device on which I install rhobuntu. also I could not make a call from here. Can you help me in these cases.
Found something while starting rhobuntu, you may be interested to know.
While starting rhobuntu from haret.exe at one point it shows starting ophono daemon something, where it says can't create signal descriptor file. is it helpful to resolve this issue?
Gourav
Hi,
Got installed the Rhobuntu can access it. Facing two issues on it as follows;
1. Phone function not working as ofono daemon says - can not create signal filedescriptor: Function not implemented
2. Resolution are not as per device.
Please anybody help me to get all this working.
Gourav
for those who do not know how to do this yet, follow directions given here.
Just took this info from the web. None of this except for the guide is written by me.
I am not responsible for anything please do not contact me if a green sludge starts attacking your neighborhood eating one person at a time.
************************************************************
************************************************************
************************************************************
http://code.google.com/p/unyaffs/downloads/list
made for linux, but if you know a bit of c, you can probably change it to work with windows, maybe I will do that if I have some time this week.
********OR********
http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip
or http://www.4shared.com/get/fgryPnPx/unyaffs-windows.html
for windows..... instructions below apply for both
if not included in the zips above, cygwin1.dll and unyaffs.exe are included as an attachment of this reply.
open up a command line, in windows vista/7 just press start and then type cmd press enter and change the directory to the folder with the unyaffs and the img in it. in xp press start>run>cmd... then the same
the usage is: unyaffs /path/to/img
example:
(if unyaffs.exe and system.img are both in c:\temp)
"c:\temp> unyaffs /temp/system.img"
note: the '/' is the way linux determines the pathname of a file and since it is built using cygwin(a file allowing for windows) it is preferrable that the path to the actual file is in unix POSIX format ie: / instead of \ between folders and files.
*********WARNING************
this will extract to directory that unyaffs binary is in.
That's so weird -- I was gonna post the same thing tonight. Thx for writing this up. It's odd that more people don't talk or ask about this tool!
I remember reading this stuff back when I got my G1, and tonight I was trolling the themes and apps section cause I couldnt sleep. (which I rarely look at)
I was baffled that this wasnt common knowledge. I figured if there was no threads about it that people just knew how and didnt have any problems with it. My mistake lol...
enjoy.
can you please explain what is it? what it does? thanks
ericizzy1 said:
can you please explain what is it? what it does? thanks
Click to expand...
Click to collapse
Umm, it expands nandroid img files not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them
Sent from my SPH-D700 using XDA App
When you create a backup in Clockwork recovery, it leaves you with a folder like this:
2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am
Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).
In the orig post, he's explaining how to extract the files from these large .img files.
To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.
decalex said:
When you create a backup in Clockwork recovery, it leaves you with a folder like this:
2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am
Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).
In the orig post, he's explaining how to extract the files from these large .img files.
To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.
Click to expand...
Click to collapse
thx
Sent from my SPH-D700 using XDA App
smeyerhuky said:
Umm, it expands nandroid img files not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Right, like if you wanted a file or a few files from clockworkmod img backup, then this process would give you an extended file system, other than what you would normally use to extract the img files. Just trying to understand this so, please correct me if im wrong.... I've been trying to get more knowledge of this, so im still learning.
I prolly sound like a complete idiot, lol...
Sweet! Thanks for this man. I'd been looking for how to do this for some time and kept ending up learning about emulation or some other tangential topic. This is the basic functionality I was looking for. Thanks for posting!
Np. I'm working on writing some stuff on top of the source code that should allow you to browse and pull just one our more file
Its been a but since I looked theory source code so it might take a while... Maybe in between semesters?
Sent from my SPH-D700 using XDA App
Dode you saved my as** thx big thx
Great, now how can I re-compress back to .img after I've made the changes that I want?
EDIT: Nevermind. I just made a zip of the new system folder and flashed it in CWM.
This worked great for me.
Thanks,
Bud
Man, I do not know how to thank you. I was able to recover some important stuff off of my cwm recovery backup. THANKS!!
Hi guys, don't know if I'm posting in the right section or not, if not move it please, I'm still fairly new here.
Thought I would share a tool of mine that I created for my own use.
It'd a DOS batch file that I use to reboot my phone into bootloader, reboot it into recovery, or to create and flash various splash images.
As of 22/05/2011 code was added to flash RADIO.IMG files to your phone.
I did some work extending it so its a bit more user friendly, and contains various explanations, options etc.
Like i say, its just a tool I created for my own use, but I figure you might get some use out of it, or you can use it to build your own custom boot loady thing.
included in the zip is adb.exe, nbimg.exe, fastboot.exe and the adb dll files, so that everything you need is contained in the same folder. There is a read me file that also points out a few features.
Enjoy
Downloaded,thanks mate....
SENT FROM HONEYSENSE
Boskoel03 said:
Downloaded,thanks mate....
SENT FROM HONEYSENSE
Click to expand...
Click to collapse
Apologies, going over the code and realized I forgot to remove the lines linking to my default Android directory (which it doesn't need, since its all self-contained now).
Have re-uploaded the ZIP but if you edit the batch file just remove the lines "cd c:\android" and your good to go.