Hello.
Big part of Android users of our game uses cleaner apps (like this one https://play.google.com/store/apps/details?id=com.cleanmaster.mguard) for phone storage. After we’ve introduced asset bundles into game users had start to complaining that their cleaner app keeps deleting asset bundles from storage. We don’t use built in cache for asset bundles and saves asset bundles this way
string path = Path.Combine(Application.persistentDataPath, assetBundleDirectory, assetBundleUID, fileName);
FileInfo assetBundleFileInfo = new FileInfo(path);
using (FileStream fs = assetBundleFileInfo.Open(FileMode.Create, FileAccess.Write)) {
if (assetBundledata != null && assetBundledata > 0) {
fs.Write(assetBundledata, 0, assetBundledata.Length);
fs.Flush();
}
}
I’ve also tried save asset bundles via UnityWebRequest.GetAssetBundle, but cleaner app anyway detects asset bundles as cache to be deleted.
Does any one have a solution for hide asset bundles from that type of apps?