Related Information:
https://github.com/securityfirst/Umbrella_android
Project Name:Umbrella_android
The submitted issue is here:https://github.com/securityfirst/Umbrella_android/issues/223
Expected behavior:
I expected that the application should not be crash when i click on export data option.
Actual behavior:
After configure the application when i click on export data option,the application is you can see in bug vieo proprealy.
How to reproduce:
1.Download the app from playstore and open the app.
2.Then click on team conditions accept.
3.naw click on account man icon and setting option.
4.Then click on export your data.
5.naw backuo database file name and click OK.
5.Note the Bug.
information
- App version:v1.0.12
- os:Android 6.0.1
- Device:samsung J7
Recording of the bug
My GitHub Account: https://github.com/44asad
Logcat:
05-01 20:29:33.657 26688 26688 E AndroidRuntime: FATAL EXCEPTION: main
05-01 20:29:33.657 26688 26688 E AndroidRuntime: Process: org.secfirst.umbrella, PID: 26688
05-01 20:29:33.657 26688 26688 E AndroidRuntime: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: ... 1 more
05-01 20:29:33.657 26688 26688 E AndroidRuntime: Caused by: java.io.FileNotFoundException: /storage/0000-0000/asads.db: open failed: EACCES (Permission denied)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at libcore.io.IoBridge.open(IoBridge.java:452)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at java.io.FileOutputStream.(FileOutputStream.java:87)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at java.io.FileOutputStream.(FileOutputStream.java:72)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at kotlin.io.FilesKt__UtilsKt.copyTo(Utils.kt:205)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at kotlin.io.FilesKt__UtilsKt.copyTo$default(Utils.kt:181)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at org.secfirst.umbrella.feature.account.presenter.AccountPresenterImp.submitExportDatabase(AccountPresenterImp.kt:68)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at org.secfirst.umbrella.feature.account.view.SettingsController$chooseFolderDialog$1.onSelect(SettingsController.kt:365)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at com.codekidlabs.storagechooser.fragments.SecondaryChooserFragment$1.onClick(SecondaryChooserFragment.java:110)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.view.View.performClick(View.java:5698)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.widget.TextView.performClick(TextView.java:10908)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22565)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7231)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: ... 3 more
05-01 20:29:33.657 26688 26688 E AndroidRuntime: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at libcore.io.Posix.open(Native Method)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: at libcore.io.IoBridge.open(IoBridge.java:438)
05-01 20:29:33.657 26688 26688 E AndroidRuntime: ... 17 more