Is it somehow possible to make virtual dirs that refers to an actual dir, sorta like junction links on windows etc?
The reason why I am asking is that I am trying to run an app that explicitly implies that my internal sd is called sdcard, while it is called sdcard0. Is there some way where I can fool the app into seeing a sdcard/some folder, which is in fact just a virtual path or something for sdcard0/something?
Thanks for the help in advance.
Related
In the meanwhile there are a lot of program links in my program folder. But i realized that some of them are not movable. Some of them are located in \windows\startmenue and I can resort them to new folders etc. but a lot of them are not accessible. When I take my explorer from my PC with showing hidden files I can see all .lnk files but there is no way to move them because the access is denied.
Is there any way to move them to get order in this folder?
The hidden files are most probably in ROM, so they can't be moved, obviously...
hi,
is there some way to make applications use a user defined folder for their (temporary) files?
I'm using cynanogen mod 7 and in my sdcard folder i have a lot folders created by applications i've installed. but since i never need these folders it would be great if they'd be in a subdirectory (like sdcard/appFiles/dropbox)
right now i have directories called gameloft, dropbox, ezPDFReader, tapatalkxda_download, etc.
they clutter my sdcard folder and make it less nice to look at.
In Windows Phone 8 Runtime component (C++/CX) we can use fopen or CreateFile2 to create/open a file. For example
Code:
fopen("hello.txt", "w");
You see, I don't explicitly specify any path. And I can't figure out where this hello.txt resides? It can't be in Installed Location, and it isn't in Local Folder. Where is it?
Well, you could try the following:
_fileno() to get the integer file descriptor from the FILE*
_get_osfhandle() to get the Win32 HANDLE from the fd
GetFileInformationByHandleEx() to get the file name from the HANDLE.
I *think* those are even all supported on WP8, though I haven't checked except for the last one.
APIs like GetFullPathName() would make it easy, but may not be supported. CreateFile2 would let you skip the first two APIs in that list, if it works.
I inspected the WP8 .vhd file, and saw that my file was created in the Install folder. It looks like native code does not conform to the rule (Install folder is read-only location)
Whaaaaaat?!? That's... um. Serious. I'll look into it.
onmyway133 said:
I inspected the WP8 .vhd file, and saw that my file was created in the Install folder. It looks like native code does not conform to the rule (Install folder is read-only location)
Click to expand...
Click to collapse
Are you sure it does not create it on the root of the isolated storage space? That's rather unexpected to have the file in a read-only folder...
The install location is read/write to the app.
What
the
hell?
I can send test code if anybody wants, but it's easy enough to check yourself. You don't even need native code to do it, the .NET APIs work well enough.
I am somewhat confused.
mcosmin222 said:
Are you sure it does not create it on the root of the isolated storage space? That's rather unexpected to have the file in a read-only folder...
Click to expand...
Click to collapse
You can create a simple project to test this. In the C++ WP Runtime Component project, just use fopen or CreateFile2
Then use Hyper-V manager and Disk Management to easily inspect the WP .vhd file (I'm using Emulator)
You can use some things like IsoStoreSpy to see that the newly created file does not reside in the Local Folder (in WP8, they rename Isolated Storage to Local Folder)
I wrote a small app to test it; I can share the source if you want. It's really simple. I used the native APIs to create the file and write to it, then used the managed APIs to confirm it was there and read it, then used the native APIs to delete it, and the managed ones to confirm it was gone. Very simple. I then used the managed APIs to create the file myself (await Package.Current.InstalledLocation.CreateFileAsync("hello.txt")) and it worked.
Have you tried to create a xap file in the Install folder and reboot?
My 8X is freezing after creating a xap...
@spikedviper: No, I haven't tried anything like that. I don't seem to have write access from my app to the folder where pre-installed / OEM XAPs reside.
I did try editing the manifest; I was able to edit it with no problems but changing the capabilities didn't *do* anything, so I'm pretty sure it's still only parsed at install time.
hm...so what is the default path if no path specified?
looks like it stores it here: ms-appdata:///Local/ anyway check out "Data for Windows Phone" at msdn
Being new to Android, but not to computers, can someone explain the Hierarchy structure of the S3 Mini? I really only need to know what the root directory is. On a computer it's C:\. So if I'm at the root of the S3 Mini what should the path be? Device?
Seems "Device" and "sdcard0" are not the same. So is "sdcard0" a Directory off Device or treated as it's own partition?
Now that I'm writing this, lemmie guess....."Device" is ROM and "sdcard0" is internal flash memory?
Also does Android use inherit permissions from it parent folders by default?
Since I have your attention, what is the path where user contacts and bookmarks are stored?
Thanks
BrrrinAlaska said:
Being new to Android, but not to computers, can someone explain the Hierarchy structure of the S3 Mini? I really only need to know what the root directory is. On a computer it's C:\. So if I'm at the root of the S3 Mini what should the path be? Device?
Seems "Device" and "sdcard0" are not the same. So is "sdcard0" a Directory off Device or treated as it's own partition?
Now that I'm writing this, lemmie guess....."Device" is ROM and "sdcard0" is internal flash memory?
Also does Android use inherit permissions from it parent folders by default?
Since I have your attention, what is the path where user contacts and bookmarks are stored?
Thanks
Click to expand...
Click to collapse
Hi bud, welcome
Since Android OS is the same on all devices, you can search on XDA or google for your questions. Don't take me wrong, but that way you learn more I found other things that you had not expected Have fun.
terrejealcohol
mauam said:
Hi bud, welcome
Since Android OS is the same on all devices, you can search on XDA or google for your questions. Don't take me wrong, but that way you learn more I found other things that you had not expected Have fun.
Click to expand...
Click to collapse
Yeah, did a search already in S3 Mini and Basic Stickys, since I didn't know if they were all the same. I'm only looking for specific info right now. I don't really want to be led in 14 different directions to get an answer if ya know what I mean. But I now know the structure is the same for all Android phones. Could still use an answer to my original question. FYI I have severe arthritis and the less typing/clicking I do the better for my wrist. So don't assume it's laziness. Bad enough I have to type at hen peck speed when I used to type really fast.
BrrrinAlaska said:
Being new to Android, but not to computers, can someone explain the Hierarchy structure of the S3 Mini? I really only need to know what the root directory is. On a computer it's C:\. So if I'm at the root of the S3 Mini what should the path be? Device?
Click to expand...
Click to collapse
Android is Linux based system, so there is no c:\, d:\ or other drive letters, there are so called mount points
All hierarchy starts from root, named as /
BrrrinAlaska said:
Seems "Device" and "sdcard0" are not the same. So is "sdcard0" a Directory off Device or treated as it's own partition?
Now that I'm writing this, lemmie guess....."Device" is ROM and "sdcard0" is internal flash memory?
Click to expand...
Click to collapse
Device is root mount point = /
sdcard0 = /sdcard - its an one of mount points and it is internal flash memory (mount point from CM11)
external sdcard = /starage/sdcard1
/data is a place where user data are stored. All your apps and they data can be found here
/system is a place for your ROM files
If you want to learn other locations, just read about Linux
BrrrinAlaska said:
Also does Android use inherit permissions from it parent folders by default?
Click to expand...
Click to collapse
Yes, it does, as it is linux based system
BrrrinAlaska said:
Since I have your attention, what is the path where user contacts and bookmarks are stored?
Thanks
Click to expand...
Click to collapse
user contacts and bookmarks are apps specific data, so they are stored somewhere in /data/data/
So I need the location of some small things
1.default location of the startup and shutdown boot images of my phone
2.default location of the big NOKIA screen pic of my phone
3.places where junk files are stored in my phone memory..... cause the storage cleaner app is not working on lumias
4.default location of storage of downloaded update files
5.registry key which enables the custom startup and shutdown boot pics
6.Appdata folder of phone memory apps where the savegames of games are located
Additionally if anyone with a interop unlock device have the whatsapp beta can he share it
If anyone knows the location of this things plz share it
Most of that is quite easy to find on your own...
1) I'm not sure, but I'd start by looking in the partitions used for booting, or possibly in the Windows folder somewhere.
2) See #1
3) Storage cleaner is open source. You can see all the paths used in the source code.
4) Pretty sure that's actually in Storage Cleaner. If not, look under "DU" (Device Update) folders and similar; the file system isn't that big.
5) Don't know, but there's whole threads devoted to registry edits and there's a search tool...
6) ... really? Make a trivial app that open the IsolatedStorage StorageFolder and then get the folder's full name. Or just find it using file system access; not hard.