Passward or hide

SoyEli

Active Member
Licensed User
Longtime User
Hello:

Is it possible to hide or passward a folder ?
"Not incrypt"

Thank you:
 

mc73

Well-Known Member
Licensed User
Longtime User
If you create the folder in:

/data/data/myappname/files

it will be hidden. The only way to access it is with your app. This is the same as creating a folder under:

File.DirInternal

Even when the phone is rooted? I'm asking this, cause it would be very nice if I could have a db really hidden there.
 
Upvote 0

SoyEli

Active Member
Licensed User
Longtime User
Thank you for the advise:

"/data/data/myappname/files"

Did not work, I can still see it with "file manager"
Maybe its possible to change the attributes ?, if so how ?
and no, my phone is not rooted.

Droid 2.2

Thank you again:
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Thank you for the advise:

"/data/data/myappname/files"

Did not work, I can still see it with "file manager"
Maybe its possible to change the attributes ?, if so how ?
and no, my phone is not rooted.

Droid 2.2

Thank you again:

Tried the file.dirInternal as margret suggested?
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
The file is to big, 5+ mB
I don't know the size limitation of such folders. Perhaps, then, you might want to try to encrypt the file, thus making opening from an external application, useless?
 
Upvote 0

SoyEli

Active Member
Licensed User
Longtime User
Thank you for the reply:

I did that but, after 20 min of waiting for incryption of 5 MB I gave up.
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
I would still try what I suggested and see if it works. You can always change it later. 5mb is not to big for the internal folder.

B4X:
File.MakeDir(File.DirInternal, "mydata")

File.Copy(File.DirAssets, "myfile.txt", "", File.DirInternal & "/mydata/myfile.txt")

If your phone is not rooted this should be hidden. Replace the folder and file names with yours.
 
Upvote 0
Top