zero byte files in / - Xperia Z3 Q&A, Help & Troubleshooting

hi guys,
something is very strange:
i flashed LP slim 5.0 from @Wajk (great rom so far) clean and fresh.
Now i discovered in the root directory a folder called d (and it refers to /sys/kernel/debug) with dozens of folders and hundreds/thousends of 0byte files.
Does anybody know what they are /where they came from and can i delete this d folder with all this folders/files???
Thx

The folder "/sys" contains information about the hardware and the linux system itself much like "/proc", which contains information about processes.
Those files you are seeing are part of the system, they are not really files i.e. they don't really exist on the phone, they are "virtual" and provide a way to read/write the mentioned information.
For more information just search for "procfs" and "sysfs" on the web.
Hope I could bring some clarification,
Sigi

Related

How to... copy/move files stored in a Smartphone ROM?

I can't copy or move files stored in device ROM.
I've tried with Resco Explorer and Total Commander, but without success.
I didn't understand if there's a registry hack that allows these operations.
I've notice (or so it seemed to me) that I was able to substitute/copy/move some files having the ROM attribute, but many others not (eg: I've tried to copy the nleddrvr_sec.dll, obviously without success, otherwise I'd post this here!).
Surfing in many forums, I read many others asking for the same thing, unfortunately I haven't seen answers to their question about this.
Hope someone explains to me how to do or why is impossible to do.
Mersì bo q.
Gubbài.
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
levenum said:
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
Click to expand...
Click to collapse
As you said here and here (Changing Files in Windows Dir )
it's impossible to move/copy ROM files, just overwrite 'em.
Doing so the system looking for these overwritten copies.
So now the question are:
- there's a registry entry that points to this substitute ROM files?
- to modify an existent file resident in ROM I MUST dump my ROM or another one same or similar?
Mersì bo q, anyway.
Gubbài.

Clear Storage?

I have been working on a ROM for the past few days, and I just recently realized that I deleted the files required for Clear Storage. I have been extracting other ROMS that I know have ClearStorage, but I cannot seem to find the files required in OEMDrivers. Could anyone provide me a copy of the ClearStorage files?
I know Alex includes a version of ClearStorage in his package collection, but it is not the one from the shipped ROM, and therefore not what I am looking for.
Hi you can find this file in ROM Folders(Rar file which you are download). So go to OEM\OEMDrivers and you will find it and then extract it to your OEM\OEMDrivers folder.
I figured out my problem, I had show hidden system files disabled.

[Q] File Management and Locations

I've searched the forum on this, and unless I'm using the wrong key terms (very possible) I havent found any info contributing to this.
When downloading an app from the Android Market/Amazon Market, where exactly does the *.apk file get saved to? I like to have all my apk's in one area when flashing a new ROM, so I can just install them one after another (apps, widgets, live wallpaper, etc...)
Also, can anyone provide me with any info (preferably some link) in regards to Android's file management system, ie discussing in detail what folders hold what information and what that information pertains to?
One other question, what exactly is the difference between a filepath like:
mnt/sdcard & /sdcard in regards to opening/saving a file to/from those locations??
Apologize for the multiple questions, just thought Id save posts in doing so, and sorry if the information this is readily somewhere in the forum.
Thanks for any info on this!
EDIT: So I stumbled on the Android Developer's Site (feeling like a dumba$$)
http://developer.android.com/index.html
But I'm still unable to find an area pertaining to what I'm exactly looking for (the Directory Structure with explanation for GTablet Froyo) Am I missing something??
Dueces99,
Here is a start:
http://forum.xda-developers.com/showthread.php?p=12439780&highlight=Memory#post12439780
If you are rooted, use ES File Manager or Root Explorer or the like
to open up the file system.
Go to /sdcard and you will see the file system. Most of the file managers
will let you toggle to / and you can see the file system from the root side.
Literally, that's the basis and if you're a lot more knowledgeable than me
you can work down from there to the various sub-folders relating to the
OS functions.
Hope this helps get you started to where you want to go.
IMO, I don't ever get into the file system like I have done with Unix or Linux
in the past. Most of what I have needed to do under Android I just do using
one of the file managers like free Root Explorer.
Rev
P. S. -- When you hook the tablet to your PC and look at the "G:"
drive or however else it shows up in Explorer -- you are looking at /sdcard.
I understand what you are saying, and I am already familiar (atleast Id like to think so) with the main directories (sdcard, sdcard2, etc..) of the file structure, and what info. they hold. My tab is already rooted, and I have Root Explorer, ES FileExplorer, and Wifi File Explorer installed.
What I am looking for is a detailed description of what each folder (default Android structure) is for, and what information is stored in them.
For Example:
/acct: This folder holds...
/data: ...
/data/data: ...
/sdcard: ...
/mnt/sdcard: ...
Guess you could call it a Definition/Guide for the entire Android Directory Structure/Format?
Like in my initial post, where is the default location that downloaded apk's from the market go?
Sorry if my post was misleading, I'm just trying to gain a better understanding of the Directory structure just so I can better navigate through the various file managers and more efficiently find what I am looking for.
I would think the Android Developer's Site would have exactly what I'm looking for, but I haven't been able to find it. Thanks for your input though!
Dueces99,
I hope you find it.
I have made the statement before and I'll stand behind it, "The hallmark of Android as an operating system is its bad documentation."
Good luck!
Rev

Issue with redundant file system: sdcard/0/

Hi everybody,
Quite awhile ago while playing around with custom Roms and going from one version of android to another, something went wrong with my file system. I had a regular file system but upon one of the installs it ended up making sdcard/0/ then the rest of my file structure. What I mean to say is I have 2 sets of folders, one where the files were stored for app data and files from before (sdcard/Downloads) and now a new set of files where they are now saved (sdcard/0/downloads). This creates problems for apps that have specific file structures where it looks for files and doesn't specify the location like backup utilities.. Because now I can't find the old backup file because the /0/ version of it is empty and it doesn't mention where specifically its looking.
Anyways I'm planning on upgrading to 6.0 (currently on 4.4.3 or something very close). I want to rectify this situation even it means a 100% reset of my phone. Any tips?
Thanks
flash latest factory image will solve your issue. it is a common issue when you jump from LL to KK and viceversa.

Android File paths

Hello all,
I have a Galaxy S10 and i'm browsing the file system a bit and i've come across a couple file paths which all contain the same information. The file paths are the following:
/data/data
/data_mirror/data_ce/null/0/
/data/user/0
From what I can tell these all share the same files and I dont understand why the data needs to be duplicated that many times. Surely it would make sense to just have the /data/data aspect only unless these files are more like placeholders?
If i'm wrong can someone explain the difference between them and why Android OS acts like this?
Thanks

Categories

Resources