Password Protect Api for Folder in Android - android

I want to put password for a folder on SD-Card in my Android phone. I am looking Android API for password protect to a folder but i didn't get any solution, so if any one have an idea could you please share with me. Any idea is appreciated.
Thanks,
Mohan.

This is not possible, except perhaps via your own custom build of the Android OS.
An app has no means of preventing other apps from accessing specific portions of external storage, and an app has no means of preventing the user from accessing specific portions of external storage when mounted as a drive or volume on a host computer.

Related

Hidden area for secret files in Android phone

When I download a pdf file from the Android app, I do not want the user to be able to find it on the phone. Is there such a hidden space on Android phones? I have tried putting a dot in the folder or trying other solutions from the internet but they can reach the windows computers when the phone is connected to the computer via cable. Is there anyone who can suggest a solution?
You should avoid having that file on the external storage completely.
Simply use getFilesDir() for that.
Use the device's internal storage as described in the android docs.
Files stored on the internal storage are only visible to your app and removed when your app is uninstalled.
Source: https://developer.android.com/training/basics/data-storage/files.html

Android app permission

I was wondering, when we download an app which is very cool but before you install it ask to give permission for almost everything you have on the phone. Even that app can make call without your permission to your contacts. Given this scenario, how do we say an unrooted device where app data is secured from other app access? if I have an app which stores data on the device memory then would that be accessed by one of those app which takes all permission before installed?
Thanks in advance for your response.
Apps are still sandboxed, they can't access each others internal storage even with requested permissions.
I'm not sure this is the correct forum for your question though as it's not related to developing. This isn't the right site for IT support.
Edit
As mentioned in the comments - anything put somewhere insecure location such as the SD card would be readable, but the default file storage is a bit more secure.
From the android docs (http://developer.android.com/training/basics/data-storage/files.html)
Note: Your app's internal storage directory is specified by your app's
package name in a special location of the Android file system.
Technically, another app can read your internal files if you set the
file mode to be readable. However, the other app would also need to
know your app package name and file names. Other apps cannot browse your internal directories and do not have read or write access unless you explicitly set the files to be readable or writable.

I want to password protect my local phone directory folder in android

I want to password protect my local phone directory folder
This folder (directory) has been created by my application at run time with password protection.
My application can open this folder and used for self.
Any one can't open this folder manually. It is possible in android.
Thanks in advance.
This is not possible on Android.
You could create your folder on the internal memory, so that only your app can access it on normal devices. However, anyone with a rooted device will be able to browse your folder using a file manager, and other apps will also be able to read its contents if given root access.
A folder on the external storage is accessible to all apps with the READ_EXTERNAL_STORAGE permission, so you'll want to avoid using that.
At any rate, there is no 100% effective way to secure your folder such that only your app can access it.
However, you could try encrypting your data. This is what many apps like whatsapp do. Even when Whatsapp backs up the chats to the external storage, it is AES encrypted so that while others can access the data, they can't read it without decrypting it first. I would recommend that your try encryption

Android: Gaining access to other app files through app on non rooted phone

Does anyone know if it is possible to access the data files from another app on your app? Really just copying a directory plus contents. This is for a backup system. I am trying to create a backup system that works decently on non rooted phones. I currently can only copy data from my own app. I can't navigate further up the file system. Getting a permission denied.
No. AFAIK, Not possible on non-rooted phones. Android restricts access to only your app specific content.

Folder and File Security on Android

I am newbie to the platform of android. I am intending to make an application that will protected your desired folders and files through password to keep it access limited to your application. You cant access the content through file explorers on android and via SD card reader. I also want to know how to make a background service that cant be killed by task killers.
Looking forward for your comments and reply
Best Regards,
I am intending to make an application that will protected your desired folders and files through password to keep it access limited to your application. You cant access the content through file explorers on android and via SD card reader.
What you want is impossible, except perhaps via firmware modifications, since it is a massive security violation.

Categories

Resources