[Q] Android Linux files......what do they do?? - Touch Pro2, Tilt 2 Android Development

Can somebody explain to me what every file in ANDBOOT does......like:
initrd.gz
rootfs.img
system.ext2
zImage
data.img
modules......tar.jz
what is the function of every one of these files??
and where is the place of software and data related to accounts, messages, emails and contacts.
thanks a lot

aalim said:
Can somebody explain to me what every file in ANDBOOT does......like:
initrd.gz
rootfs.img
system.ext2
zImage
data.img
modules......tar.jz
what is the function of every one of these files??
and where is the place of software and data related to accounts, messages, emails and contacts.
thanks a lot
Click to expand...
Click to collapse
There's been a few posts on it, but I guess it is hard to find all the information in one place.
Oh wait... that wasn't hard...
No sense in restating what's already been stated there.

Related

[Q] Odd Problem with startup.txt - it gets deleted!

I just started doing the xdandroid (since it was 'finalized' on 9/16), by downloading the cab, and installing the reference version of the package.
Everything installs and runs fine. The first time. After a graceful shut-down, and re-starting, I learn that the startup.txt file is 0 bytes -- empty! So, Android won't boot.
Why is my startup.txt continually being modified and cleared?
Any info appreciated.
Thx.
Jon
I have the same Problem...
Did you guys search? If I search in the android thread on "0 bytes" I get 20 results. It's a bug of the startup utility. Don't use it or rename startup.txt to default.txt. Maybe putting the startup.txt to read only should work to.
Best option: DON'T USE MGJDROIDUTIL!!!
Also, for you cab peoples - it uses this by default - use haret.exe!!!
i had the same prob. it goes to haret and if u click run it will say it cant find default text. uninstall android. delete all files in andboot folder. reinstall. copy and paste the "startup.txt" file to the same folder. rename it "default.txt" or just "default."
the same thing will happen to the startup.txt but the default.txt will always work. you just have to hit run when it gets to haret.
I had the same issue, the problem only seems to occur when you check/uncheck the Hardware 3D Box.
starmena said:
I had the same issue, the problem only seems to occur when you check/uncheck the Hardware 3D Box.
Click to expand...
Click to collapse
Dude... it's MGJDroidUtil that's causing the issue. I hear there's an update coming, but for the time being
DON'T USE IT!!!!!!!!!
Sorry I had to get forceful with the text, but it seems some aren't getting the point...
Lol relax, I've learned that the hard way. I just wanted to explain to these guys my side of the symptom and what I notice that seems to have caused the problem. I agree with you though.
I do not even know MGJDroidUtil, but I have the same issue. It happens along side with SD card corruption (file000.chk)
sukru said:
I do not even know MGJDroidUtil, but I have the same issue. It happens along side with SD card corruption (file000.chk)
Click to expand...
Click to collapse
Are you using the cab install & using that shortcut it put in your start menu? Then you are using MGJDroidUtil.
uncleswoop said:
i had the same prob. it goes to haret and if u click run it will say it cant find default text. uninstall android. delete all files in andboot folder. reinstall. copy and paste the "startup.txt" file to the same folder. rename it "default.txt" or just "default."
the same thing will happen to the startup.txt but the default.txt will always work. you just have to hit run when it gets to haret.
Click to expand...
Click to collapse
this will fix the problem. lol THE ANSWER IS HERE!!!
uncleswoop said:
this will fix the problem. lol THE ANSWER IS HERE!!!
Click to expand...
Click to collapse
Jesus why can't you just not use the MGJDroidUtil?!? I'm not sure why that's so difficult. If you don't use it, it won't screw up your startup.
I had the same issues. What I did is after installing it go into file explorer and long press haret.exe and add it to programs and set it on your home screen as the link. )
There is a new startup tool, use that. Delete the old one.
arrrghhh said:
Are you using the cab install & using that shortcut it put in your start menu? Then you are using MGJDroidUtil.
Click to expand...
Click to collapse
Interesting. I've always used the CAB install. Shall I remove the CAB and go with the RAR?
sukru said:
Interesting. I've always used the CAB install. Shall I remove the CAB and go with the RAR?
Click to expand...
Click to collapse
I would, just because then you get a better feel of what's really happening. I installed the cab for the first time last night... that thing is an atrocity.
At any rate, MGJDroidUtil was also updated, so you should be safe using it again - assuming you're using the newly updated version that is.
hi there i got the new build 28-9 and i got the problem when i want to boot it...its says storagecard/andboot directory does not exist...while its exist... someone told me to:
Startup.txt, in the cmdline section. Don't use the startup utility (MGJDroidUtil) if you edit the startup manually tho. It'll blast out whatever you put in there.
but i dont know where the Startup.txt is..in my sd card i been searching but no results and i got a gsm touch pro 2... well maybe i should delete everything again...are these FSCK0000.REC files also from this builds?cuase i didnt delete that..i only deleted the andboot and 100android(dcim) files
peruwan said:
hi there i got the new build 28-9 and i got the problem when i want to boot it...its says storagecard/andboot directory does not exist...while its exist... someone told me to:
Startup.txt, in the cmdline section. Don't use the startup utility (MGJDroidUtil) if you edit the startup manually tho. It'll blast out whatever you put in there.
but i dont know where the Startup.txt is..in my sd card i been searching but no results and i got a gsm touch pro 2... well maybe i should delete everything again...are these FSCK0000.REC files also from this builds?cuase i didnt delete that..i only deleted the andboot and 100android(dcim) files
Click to expand...
Click to collapse
Yes, the .rec files are from the build. You can put an entry in your froyo.user.conf that deletes them for you.
Also, you can't find your startup.txt...? How are you running Android, it should be where haret.exe is!
its after you install and load android. after exiting android and returning to winmo, somewhere along the lines startup text gets deleted. for what reason? i know not..
hey atleast it teaches us workarounds lol
ye i know but i could find that file thats why i think it didnt work this time for me
is com.handcent.nextsms-2.9.29 a android file? and EncFiltLog to?
tnx cheers..btw im just gonna install it all over again

Change SD root for android?

Is is possible to change the root folder of the sd card used by android? I don't like having it create so many files/folders in the root of my card...
HDR said:
Is is possible to change the root folder of the sd card used by android? I don't like having it create so many files/folders in the root of my card...
Click to expand...
Click to collapse
Of course, you can place Android where ever you wish... just adjust the rel_path statement on your startup.txt.
For example, my installs are in /sdcard/Androids/TP2Ref - from Android's perspective. So in my startup.txt, I have
Code:
relpath=Androids/TP2Ref
- Just make sure that goes in the cmdline section.
Pretty sure this is in the FAQ... Try searching before you post
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
HDR said:
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
Click to expand...
Click to collapse
Only way to do that is to modify the source. I could easily make the changes in init for you, but the next time rootfs is updated (which will probably be soon since stinebd has to prep it for GB), you will lose those settings.
I'm working on some NAND stuff at the moment, so if you feel adventurous, all you have to do is modify init in rootfs and "compile" it. I have a little guide on compiling stuff (see bottom of post #1 for rootfs): http://forum.ppcgeeks.com/tp2-andro...modules-tinboot-nand-boot-more-beginners.html
I'll have a look at that, thanks.
HDR said:
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
Click to expand...
Click to collapse
I can at least give you a easy solution for the FSCK files (no offense Nate ). Put this in the "CustomCommands" section of your froyo.user.conf:
Code:
rm -f /sdcard/*.rec
im totally agree; i dont see the point of having the possibility of choosing android to start in whatever location we want....if anyways android will keep creating files/folders in the root of our sd card.
if i recall correctly the very first releases didn't have this problem it would be great if u devs can change this behaviour by default
elamodelmerol said:
im totally agree; i dont see the point of having the possibility of choosing android to start in whatever location we want....if anyways android will keep creating files/folders in the root of our sd card.
if i recall correctly the very first releases didn't have this problem it would be great if u devs can change this behaviour for default
Click to expand...
Click to collapse
This is what Android needs by default, and where they would normally be created by the system. It's nice to stick as close to AOSP as we can, because then there's this small group of devs that work for this company 'Google' that then become our system image maintainers. Thanks.

What is the data in the .mail folder

What are all the files in the /mnt/sdcard/.mail folder. There are alot of files with a bunch of #'s as the name. Does anyone know what these files are and can i delete them every once in a while.
thanks,
daddyscooltv said:
What are all the files in the /mnt/sdcard/.mail folder. There are alot of files with a bunch of #'s as the name. Does anyone know what these files are and can i delete them every once in a while.
thanks,
Click to expand...
Click to collapse
Not sure, I use GMail and TouchDown for Exchange, so nothing is in mine right now. You can always make a SD card backup to your computer (which is always good to have on hand in case...), delete it, and see what happens.

Extract SMS on WP7

Hello there,
just for your info - maybe it helps somebody:
after some days of trying i found the shortmessages (with tel-number etc.) and some other stuff in a file:
1. Explore your phone with Windows Phone Device Manager
2. goto \Application Data\
3. Add "\Microsoft" to the path (under the file-explorer logo)
4. goto Outlook\Stores\DeviceStore
5. Rename "store.vol" to something like "store.vol.txt" (it is mandatory to rename this file - without this step the file is in use by outlook)
6. extract it (drag n drop)
7. run perl script (#perl test.pl store.vol.txt)
8. See output
Maybe one of you could build a backup application or something like that!
Link to perl script:
http://uploaded.to/file/he26q0d2
Original source of script:
http://www.pocketpcjunkies.com/Uwe/Forum.aspx/pocketpc-dev/21040/Reading-pim-vol-EDB-File-on-a-PC
Edit:
Don't know if you've seen it:
\Application Data\Microsoft\Outlook\Stores\DeviceStore\data
ALL emails and other messages + contact-pictures + signature (three sizes) (just edit the file extension to .html or .jpeg - hex edit helps to find what is right )
\Application Data\Microsoft\Internet Explorer
-> TabsStorage.bin: Opened tabs from internet explorer (where are the cookies?! )
\Applications\Data\82A23635-5BD9-DF11-A844-00237DE2DB9E\Data\IsolatedStore
ALL Facebook-Information (if app is installed), including messages, pictures, notifications etc. etc.
\Application Data\Location\Cache
Wifi & GSM Data when features is enabled in WP7-preferences (encrypted?! don't know..)
Much more to come...
greets
endeffekt
Thanks! Looks interesting, I might try that!
Hey just wondering but does syncing with outlook have the option to sync texts? Only reason I wonder is because you said that file was in use by outlook....
WP7SuperFan said:
Thanks! Looks interesting, I might try that!
Hey just wondering but does syncing with outlook have the option to sync texts? Only reason I wonder is because you said that file was in use by outlook....
Click to expand...
Click to collapse
Hey,
i just THINK it's in use
If you look at this file without renaming it's at 0,00 KB and you can't extract it. Maybe the contacts-tile or something else is using it
Hi Endeffekt,
thank you for this great hint!
But one more question before I try. Is it possible, to rename the file after the procedure back to "store.vol" without losing the messages on the phone?
schluff1 said:
Hi Endeffekt,
thank you for this great hint!
But one more question before I try. Is it possible, to rename the file after the procedure back to "store.vol" without losing the messages on the phone?
Click to expand...
Click to collapse
WP7 creates a copy of this file (automatic), so no problemo sir
Great! Alle messages are there. But the script doesnt work for me.
Now we need a smart developer who can make a viewer for it.
Is there a way to copy the vol file back to the phone? Or is the file always locked? For restore reasons...
I think this is very interesting (possibility to backup/restore SMS), so probably we should keep it on the front page so the devs could notice it.
Has anybody tried to restore that store.vol into the device after a reset? I mean rename the current store.vol to any filename, then copy the backed up store.vol to the phone and restart.
I'd like to try but i need to get hold all my current sms!
Pixa1 said:
I think this is very interesting (possibility to backup/restore SMS), so probably we should keep it on the front page so the devs could notice it.
Click to expand...
Click to collapse
i agree
thanks a lot Endeffekt for sharing such important information
i sent the file to my pc but still couldn't edit it,
if anyone know other way than perl script please share,
i'm trying to edit the file and insert old sms from my old phone
thanks
Gray.Fox said:
i agree
thanks a lot Endeffekt for sharing such important information
i sent the file to my pc but still couldn't edit it,
if anyone know other way than perl script please share,
i'm trying to edit the file and insert old sms from my old phone
thanks
Click to expand...
Click to collapse
Hint: it's an EBD database (like other files too)
Don't know if you've seen it:
\Application Data\Microsoft\Outlook\Stores\DeviceStore\data
ALL emails and other messages + contact-pictures + signature (three sizes) (just edit the file extension to .html or .jpeg - hex edit helps to find what is right )
\Application Data\Microsoft\Internet Explorer
-> TabsStorage.bin: Opened tabs from internet explorer (where are the cookies?! )
\Applications\Data\82A23635-5BD9-DF11-A844-00237DE2DB9E\Data\IsolatedStore
ALL Facebook-Information (if app is installed), including messages, pictures, notifications etc. etc.
\Application Data\Location\Cache
Wifi & GSM Data when features is enabled in WP7-preferences (encrypted?! don't know..)
da_mayhem said:
Has anybody tried to restore that store.vol into the device after a reset? I mean rename the current store.vol to any filename, then copy the backed up store.vol to the phone and restart.
I'd like to try but i need to get hold all my current sms!
Click to expand...
Click to collapse
I will try this today
endeffekt said:
I will try this today
Click to expand...
Click to collapse
How was it?
endeffekt said:
Hint: it's an EBD database (like other files too)
Click to expand...
Click to collapse
thanks endeffekt for the hint i'll look into it thanks alot
endeffekt said:
I will try this today
Click to expand...
Click to collapse
i hope you or anyone can try and confirm i have only one device i can't risk it
also couldn't try it on my emulator i think i misconfigured something
if i find anything i will post here
SMS retreival on Windows phone 7 using device manager
Hey all.
I have an Samsung Omnia phone 7. Dev unlocked. Running 7.0.7004.0
Anyone any idea how to view the file in question? I need to download this file, and save the SMS entries to my PC.
When I use device manager, I cant see a folder called
\Application Data\Microsoft\Outlook\Stores\DeviceStore
I mean, when I copy and paste the above text into the path, its just beeps and doesnt show anything.
On the root under file explorer, I have
My Documents (which is empty)
Windows (lots of files in it)
-ActiveSync
-Application Data
--KeyStorage
-AppMgr
-ColdInit
-eventlog
and a few others
When I open the Application Data folder, I only have a 'Key Storage' (certainly no Microsoft folder, and I tried typing it incase it was hidden or something , but just a ping sound and no refresh of the file list)
and when I open Key Storage, I have no files.
Any help working out why I cant see these folders / store.vol file would be very much appreciated
Does Windows Phone Device Manager not support this functionality on the Omnia?
Thanks
this should be a sticky, and testers needed
Using the diagnosis code 5**6244*3
I was able to open the Apps Launcher and Shortcuts Menu and can confirm that the path \Application Data\Microsoft\Outlook\Stores\DeviceStore exists on my Focus.
In that folder, I have:
temp
0
4
6
3
19
8
Each of these folders has a list of single alpha named folders (a, b, c, d, e, etc...)
Each of these alpha folders has a single .dat file
I haven't tried to extract those files to try to play with them. I don't know how I would with the Focus... But just confirming the path exists on my Focus and has the .dat files
thank you munkeyphyst, still waiting for endeffekt
endeffekt said:
Hint: it's an EBD database (like other files too)
Click to expand...
Click to collapse
Thanx for your hard work... Any success???? i'm intrested in the extraction of sms in the form which can b read on computer. i tried as you said renamed and copied to computer but i can not read that in computer... is it encrypted ?? Any help in that is appreciated.......
I've checked out all the EDB recovery/readers on teh net and cannot open one of these "edb" files from the phone.
if anyone knows the architecture of the file, I can parse it and have a program ready quickly.
some talk about EDB

Compress files

Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
cansado2930 said:
Hello,
I have an idea to make an App, and I have one problem, I have to upload one folder that its content have a lot of files and folders in order to upload to skydrive. I think that it is more easy if I compress the main folder and then upload this compressed file. How Can I compress this folder?
Thanks you
Click to expand...
Click to collapse
have you tried zip...
dazza9075 said:
have you tried zip...
Click to expand...
Click to collapse
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
cansado2930 said:
Hi dazza9075,
Thanks by your answer, but I thought the same, but I don't know how to use this, Can you explain about use of zip? Or, Where can I find information about this?
Thank you again
Click to expand...
Click to collapse
+1 for the idea... I also want a program like winrar which also available in symbian phones.plz any dev note this and develop an app for compressing and decompressing files...
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
dazza9075 said:
WP will unzip zip files, make the sip, copy to sky drive, open via IE, it will then give you the contents of the zip,, it can't compress files to zip though. Technically there would be little point since docs auto sync to sky drive, and WP doesnt support anything else or file system access, but its doable for unlocked devices I suppose
Sent from my SGH-i937 using XDA Windows Phone 7 App
Click to expand...
Click to collapse
Hi dazza9075,
Thank you by answer, I had thought that it isn't possible, because I want to compress a folder of other app that her content are a lot of files and folders. So, Do some api exist in order to compress this? Or, Have I upload files and folders one by one?
Thank you again
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Leo_zodiac said:
I think it's completely possible
sombody names Ego zheng,wrote an application. It is program manager.
u can repack your apps,and save apps data in a single .zip file.
i think he can do this
contact him for this idea.
Click to expand...
Click to collapse
its doable so long as you have interop unlock and WP tools installed and setup
if the Windows Phone SDK is missing Zip functionality (it may be called "DEFLATE" which is the name of the compression algorithm; ZIP is the file format) then there are surely libraries for various compression methods which you could download. Alternatively, if you don't mind using native code homebrew, there are compression libraries (zlib, etc.) that can be compiled to a native DLL, and you could then access them via COM.
i add this to new version of my file manager and now you can compress and decompress file and folders
Hi!
Thanks you by your answer, they have been very useful.
Thanks you
Hi again,
I'm using the lib "SharpZipLib" and I have problems with it. Can you explain how use it? or what is the problema? I probe in a program of pc and it working correctly but in app for my mobile say it crashed when it go to create the file, this is code:
FileStream fsOut = File.Create("Copia.zip"); //here is the problema at this moment
ZipOutputStream zipStream = new ZipOutputStream(fsOut);
zipStream.SetLevel(3);
zipStream.Password = null;
........
It can't create the file.
Thank you again
Generally speaking, Silverlight (which WP7 uses for apps) doesn't even allow normal file access, so you might just be getting a MethodAccessException on File.Create. If not, that still won't work without elevated privileges. The default working directory for a program is it's install directory. For a WP7 app, that's going to be either its install location (\Applications\Install\<GUID>\Install) or the Windows directory where the taskhost.exe file lives (\Windows\). Trying to create a file without specifying full path will crete it relative to the working directory, which in this case means creating it in the working directory directly (no path specified). Since the app can't write to the working directory, you'll get an error from that too.
To get around the permissions error, use the IsolatedStore folder (\Applications\Data\<GUID>\Data\IsolatedStore\) or run the app with full permissions ("Trusted" or root unlocked).

Categories

Resources