Reputation: 7739
I want to get access to databases
folder on my device, because it contains DB File, which I want to encrypt using AES algorithm (and decrypt before calling SQLiteOpenHelper
class). Is there any way to get access to databases
folder in /data/data/com.myname.mypackage
and do some file-system operations?
Google, unfortunately, didn't help me in such case...
Upvotes: 0
Views: 39
Reputation: 1881
getFilesDir gives you your /data/data/ - and you can then just access the databases/my_sql.db
file directly.
Be weary about hardcoding paths.
Upvotes: 2