[Dev] How can I gain access to file system on WP8 - Windows Phone 8 Q&A, Help & Troubleshooting

Hi,
I know this may be a hard question but I want to ask if we can gain the access to the file system on WP8 without any unlocking/jailbreaking? Basically I need this for my app. Currently, some explorer app on Store can also do that (Pocket File Explorer).
Thanks,

minhanhhere said:
Hi,
I know this may be a hard question but I want to ask if we can gain the access to the file system on WP8 without any unlocking/jailbreaking? Basically I need this for my app. Currently, some explorer app on Store can also do that (Pocket File Explorer).
Thanks,
Click to expand...
Click to collapse
What do you mean by access to the file system?
You can have access to the SD card and to picture, video and music library without interop unlock ?
But you won't get access to the full file system...

gipfelgoas said:
What do you mean by access to the file system?
You can have access to the SD card and to picture, video and music library without interop unlock ?
But you won't get access to the full file system...
Click to expand...
Click to collapse
I need to gain access to Pictures/Video/Music public folder.
With "folder", I mean not using the MediaLibrary.
For example, if we using Pocket File Explorer, we can see that in folder Pictures/Camera Roll of Lumia 1020 or Lumia 1520, threre are PureView photos (named as *******_hi_res.jpg), but the MediaLibrary does not give me these files. Pocket File Explorer can create subfolder in the Public folder too. We cannot do that with MediaLibrary.
And I need this ability on WP8.0, not WP8.1

minhanhhere said:
I need to gain access to Pictures/Video/Music public folder.
With "folder", I mean not using the MediaLibrary.
For example, if we using Pocket File Explorer, we can see that in folder Pictures/Camera Roll of Lumia 1020 or Lumia 1520, threre are PureView photos (named as *******_hi_res.jpg), but the MediaLibrary does not give me these files. Pocket File Explorer can create subfolder in the Public folder too. We cannot do that with MediaLibrary.
And I need this ability on WP8.0, not WP8.1
Click to expand...
Click to collapse
You need a special ability, ID_CAP_MEDIALIB_PHOTO_FULL, which is normally forbidden. Apps like Moliplayer or Pocket File Manager are partnering with Nokia, that's why they got the capability.

Related

[Q] Where does file created by fopen() resides ?

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

How can i edit files in the wpsystem directory on sd card??

Using pocket file manager 4.3.6.0 i have gained access to the WPSystem folder on my sd card. I would like to edit some of these files like deleting/copying. But all the file managers are unable to do so. Why is this?
not after Update1 I am afraid
djtonka said:
not after Update1 I am afraid
Click to expand...
Click to collapse
acc
Thank you for your reply. So the problem is an update has blocked permission capabilities but dosent block ability to view the folder. That update would be from the app itself and not from the OS side. Makes sense.

[Q&A] [XAP/SOURCE][TUT/WP8.1] Registry Tool and little CAPABILITIY Hack.

Q&A for [XAP/SOURCE][TUT/WP8.1] Registry Tool and little CAPABILITIY Hack.
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [XAP/SOURCE][TUT/WP8.1] Registry Tool and little CAPABILITIY Hack.. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Did anyone manage to get This hack work on a Phone without a sd Card for example a Lumia 920?
---------- Post added at 09:00 AM ---------- Previous post was at 08:52 AM ----------
Did anyone manage to get This hack work on a Phone without a sd Card for example a Lumia 920?
Tried all possible way's but SDK is not building up "NrsRuntime.winmd" to binaries "NrsRuntime.dll", WHY ???
@GoodDayToDie at least can you provide me at external resources which you have used for your "Native Access" Project?
Most of it is on Codeplex. The only other things I used are the official Win32 headers (but with modified #defines to let me use the "desktop" API family) and the LIB files for the linker. I cut the lib files out of the system DLLs (extracted the DLLs with my web server and/or with MTP access to C:\) using Dll2Lib, which is a neat little tool you can find links to online.
Not working on Lumia 820
Hi, I've got a Lumia 820 and i tried this procedure with Aerize Explorer but I get a continue "is Loading" message... I also cannot see the new Glance Background icon
pupax said:
Hi, I've got a Lumia 820 and i tried this procedure with Aerize Explorer but I get a continue "is Loading" message... I also cannot see the new Glance Background icon
Click to expand...
Click to collapse
Try my way
winphoneuser said:
Try my way
Click to expand...
Click to collapse
How can i get Pocket File Manager v 4.3.6.0, bacause I have latest version and i can't edit attributes.
pupax said:
How can i get Pocket File Manager v 4.3.6.0, bacause I have latest version and i can't edit attributes.
Click to expand...
Click to collapse
Uninstall it because newer versions can`t handle those folders and install v 4.3.6.0. Probably, version 4.3.2.0 can do this too, it`s better ask @djamol about that. Also, check your PM.
winphoneuser said:
Uninstall it because newer versions can`t handle those folders and install v 4.3.6.0. Probably, version 4.3.2.0 can do this too, it`s better ask @djamol about that. Also, check your PM.
Click to expand...
Click to collapse
I can't copy in glance folder without renamong apps to appsz. It gives me cant copy folder.... And if I rename the apps for copy glance background give "is loading" message
pupax said:
I can't copy in glance folder without renamong apps to appsz. It gives me cant copy folder.... And if I rename the apps for copy glance background give "is loading" message
Click to expand...
Click to collapse
When you`re trying to copy (with Aerize?) to marketplace Glance folder ({7C3378FF...), is that folder empty? You should previously erase its content with Pocket File Manager.
winphoneuser said:
When you`re trying to copy (with Aerize?) to marketplace Glance folder ({7C3378FF...), is that folder empty? You should previously erase its content with Pocket File Manager.
Click to expand...
Click to collapse
Yes, I first rename the "Apps" directory to "Appszzz", then i erased the "{7C3378....}" folder, i rerenamed from "Apsszzz" to "Apps" and I close Pocket File Manager. I opened Aerize and i tried to copy inside the "{7C..."} the contents of the modified "Glance Background" app, and i receive a few notification saing "Can't copy folder"
Video Tutorial
can you please post a video tutorial about this technique.
pupax said:
Yes, I first rename the "Apps" directory to "Appszzz", then i erased the "{7C3378....}" folder, i rerenamed from "Apsszzz" to "Apps" and I close Pocket File Manager. I opened Aerize and i tried to copy inside the "{7C..."} the contents of the modified "Glance Background" app, and i receive a few notification saing "Can't copy folder"
Click to expand...
Click to collapse
I am having the same issue. After renaming "appssz" to "apps" i then cannot copy the files to the "{7C3378....}" folder. I too get multiple notifications that state "cannot copy folder". Have you found out a way to fix this? Does anyone know whats wrong?
Update: After renaming back to "apps" use Folders Free from the app store to do the copying and pasting. It works now. It must just be a problem with aerize explorer.
i have the latest pocketfilemanager but i dont have option for changing attributes on wpsystem
Sent from my HTC Flyer P510e using xda app-developers app
htcflyerhc said:
i have the latest pocketfilemanager but i dont have option for changing attributes on wpsystem
Sent from my HTC Flyer P510e using xda app-developers app
Click to expand...
Click to collapse
There is new ".xap" file available in the thread. (WPSystem Folder Unlock)
Unable to copy after rename Appszzz back to Apps !Please help me...
Unable to copy after rename Appszzz back to Apps..
1 step From pocket file manager uncheck hidden and system on sd card
2 I have rename Apps folder to Appszzz
3 I have delete contest from Preview for Developers folder {178AC....
3 I have renabe back Apszzz folder to Apps
4 Copy file from DevProgramUI and paste to Preview for Developers folder {178AC.... ERROR ...UNABLE TO COPY
Please help
I've tried to patch the DevUIProgram xap to Preview For Developers app, but the app crashes on startup...
I've tried manually with a file manager and with my tool...
I've developed an a registry editor too (I will post that soon) and an empty app but I'm getting the same result (crash at startup)
Glance Background based registry editor and a custom lockscreen gives no problem...
Any advice?

anyway to insert speech language on system directory?

hi, I have an interop unlocked Lumia 830, and i've installed windows 10 mobile preview on this, but I can't download speech languages, is there anyway to put this on the C: folder on phone with full file system access and interop unlock?
This can only be doned before you upgrade to WM10.
I used to make a copy of DUShared directory on my PC. Every time i install wm10 interopunlock, full acces System , copy, update phone...install
EDIT: create those directories inside DUShared. Extract and copy inside DUShared the updateimput.xml file.
extract and copy inside PackagesToInstall directoy the speeech files from my ondrive account.
https://onedrive.live.com/redir?resid=BB765A062F52FF66!3749&authkey=!AL5PlqTVqoco8WM&ithint=folder,
augustinionut said:
I used to make a copy of DUShared directory on my PC. Every time i install wm10 interopunlock, full acces System , copy, update phone...install
EDIT: create those directories inside DUShared. Extract and copy inside DUShared the updateimput.xml file.
extract and copy inside PackagesToInstall directoy the speeech files from my ondrive account.
https://onedrive.live.com/redir?resid=BB765A062F52FF66!3749&authkey=!AL5PlqTVqoco8WM&ithint=folder,
Click to expand...
Click to collapse
when I click to search updates it tell that the phone was updated, what is the process?
I think:
1)copy those files in phone folders.
2)speech, ad language-download,
3)settings, update.
Or only 1 and 3.
I think i have only one part of packagestoinstall. Only cortana in spanish is talking

Any way to write to android/data

I restore data to alot of my apps and games by transferring them between my devices "/android/data" and "/android/obb" folders.
With the pixel 5, it seems I can only read what's in these folders, not write. I've tried stock tile explorer as well as root file explorers and neither can write to these folders.
I even tried to move them from my PC over to the pixel 5, and as soon as a write is attempted to the folders the device "quits responding" until you quit the operation.
Any other way to drop files and or modify files in these folders? I have root.
I have modified some files by first copying them to storage, modify then copy back, using root explorer. You may have to change the attributes
AFAIK the only way to transfer data to android/data is through a computer. I just moved save file data for Soccer Manager 2021 there. Not rooted. Edit, just read your whole post (yeah I'm stupid lol) no idea why you couldn't do it, maybe try playing around with folder permissions?
You can't access files there from an explorer app on your own phone, but you can through windows. Weird.

Categories

Resources