hello,
I purchased the premium version of avast to perform backup/restore application, with regard to the backup I have no problems but when I restore an application continue to have this problem:
“Cannot create directory / storage/emulated/0/ AVAST_Restore”
The app should be stored in the dedicated storage - this issue seems to be something from system - avast can not create new folder on SD card - is it unlocked or mounted as RW?
I have the same problem. The restore does not write to the physical SD card, so being locked or unlocked is not an issue. The directory tree is fully R/W and the device (Motorola G, Android 4.4.1) is fully rooted. I am desperately trying to restore some data to a program after a factory wipe. Can anybody help?
Okay… I want to actually help you guys fix this issue…
Here is the debug logs:
W/AvastBackup(13503): Can’t access external storage: /mnt/shell/emulated
W/AvastBackup(13503): java.io.IOException: open failed: EACCES (Permission denied)
W/AvastBackup(13503): at java.io.File.createNewFile(File.java:941)
W/AvastBackup(13503): at com.avast.android.generic.util.am.b(SdCardFinder.java:251)
W/AvastBackup(13503): at com.avast.android.generic.util.am.b(SdCardFinder.java:77)
W/AvastBackup(13503): at com.avast.android.genericbackup.d.e.a(FileRestoreService.java:344)
W/AvastBackup(13503): at com.avast.android.genericbackup.service.b.p.a(RunRestoreTask.java:595)
W/AvastBackup(13503): at com.avast.android.genericbackup.service.b.p.a(RunRestoreTask.java:484)
W/AvastBackup(13503): at com.avast.android.genericbackup.service.b.p.a(RunRestoreTask.java:315)
W/AvastBackup(13503): at com.avast.android.generic.i.m.run(Task.java:43)
W/AvastBackup(13503): at java.lang.Thread.run(Thread.java:818)
W/AvastBackup(13503): Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
W/AvastBackup(13503): at libcore.io.Posix.open(Native Method)
W/AvastBackup(13503): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
W/AvastBackup(13503): at java.io.File.createNewFile(File.java:934)
W/AvastBackup(13503): … 8 more
Seems you are facing FileNotFoundException coz you are opening and closing the FileOutputStream too frequently.
I found out that while restoring each app individually everything is okay. But while selecting more than one app to be restored the second app will fail with the message shown above.
On further digging around I realized that the directory /storage/emulated/0/Avast_Restore is created temporarily while each App is restored and is destroyed afterwards. I believe you are hitting blunt here. After the first app is restored and before the above mentioned directory is destroyed, you are trying to create the same directory again for the second app in list!!!.. It will not work and will result in the above mentioned error… Seems like you are running a seperate thread for each app restoration???.. hence this conflict?..