Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpecialFolder.Personal location

I am saving a file to System.Environment.SpecialFolder.Personal in Xamarin. It appears to succeed, because I can immediately pull data from the file. However, I cannot browse and find this file on my phone. Where exactly is this exclusive Personal folder?

like image 381
RealityDysfunction Avatar asked Oct 16 '14 04:10

RealityDysfunction


People also ask

Where is Environment SpecialFolder personal?

Environment. SpecialFolder. Personal type maps to the path /data/data/[your.package.name]/files . This is a private directory to your application so you won't be able to see these files using a file browser unless it has root privileges.

What is Environment SpecialFolder?

Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows. The Environment. GetFolderPath method returns the locations associated with this enumeration.

What is environment SpecialFolder Commonapplicationdata?

Environment. SpecialFolder. ApplicationData is the most common one. This folder holds per-user, non-temporary application-specific data, other than user documents. A common example would be a settings or configuration file.

What are special folders in Windows?

On Microsoft Windows, a special folder is a folder that is presented to the user through an interface as an abstract concept instead of an absolute folder path. (The synonymous term shell folder is sometimes used instead.)


1 Answers

The System.Environment.SpecialFolder.Personal type maps to the path /data/data/[your.package.name]/files. This is a private directory to your application so you won't be able to see these files using a file browser unless it has root privileges.

You can inspect these files through adb through the following commands:

adb shell
run-as your.package.name
cd files
like image 72
matthewrdev Avatar answered Oct 26 '22 01:10

matthewrdev