Android Question RESOLVED: Upgrade of Android cleans up databases in File.DirInternal

b4auser1

Well-Known Member
Licensed User
Longtime User
Nexus 5, Sony Experia Z2: LL 5.x -> MM 6.0
After upgrade app starts as just after installation. It doesn't find databases in File.DirInternal.

Small patches: F.e. MM 6.0 -> MM 6.01
there are no problems.

What shoud I do to prevent it ?
 

b4auser1

Well-Known Member
Licensed User
Longtime User
File.DirInternal is supposed to be kept during OS upgrades.
Yes. And after small patches (6.0 -> 6.0.1) there is no a problem.
After major upgrade there is the process of optimization of apps. I suppose that this process affects apps.
 
Upvote 0

b4auser1

Well-Known Member
Licensed User
Longtime User
Have you "hard coded" the path to the internal folder
Thank you for the idea ! I use File.DirInternal, but I store the value of File.DirInternal in the settings file in order to know where my db are located in File.DirInternal or in File.DirDefaultExternal.
I checked:
KK, LL: File.DirInternal = "/data/data/testapp/files"
MM: File.DirInternal = "/data/user/0/testapp/files"
Google changed path to support multiply users on the device.

I did additional check to resolve this issue.
 
Upvote 0
Top