Android Question Oppo F1S auto delete app folder


Well-Known Member
Licensed User
Longtime User
Hi guys,

I have old application that still runs OK in all smart phone with android version from 4.0, but this application behave strangely Oppo F1S.
The app min sdk version = 4, targeted sdk = 14;

On start, the application, if necessary, created an external folder with codes something like these
Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
            If File.Exists(File.DirRootExternal & "/MyApp", "mydata.dat") = False Then
                File.Copy(File.DirAssets, "mydata.dat", File.DirRootExternal & "/MyApp", "mydata.dat")
            End If
            Utility.Error("Unable to create file.")
        End Try
   End If
End Sub

On Oppo F1S, app runs OK, but after users quit the app, sometime later, something in that phone deleted the folder /MyApp, so that when users login again to that app, all data reset to the initial stage again.
This never happen with other phones.

I suspect that the app in Oppo called security center responsible for this deletion, but
unfortunately, I don't have Oppo phone so could not investigated further.

Any hints how to prevent this ?


Well-Known Member
Licensed User
Longtime User
Why not use File.DirInternal instead?
Sometimes user needs to access the files on that folder.

As I know if it is stored in the internal directory, user can access it.

If no solution found, I am thinking to try using internal directory and make small utility to copy from and to that directory in case user need it.
Upvote 0