Not possible to restore backup if no SD Card
In version 0.15.16, when trying to import an encrypted backup, it fails with error "No encrypted backup found!"
Looking in the source code, the linked error (ImportFragment_no_encrypted_backup_found
) is thrown in the following bit of code:
- src/org/smssecure/smssecure/ImportExportFragment.java:336
Where we can see:
332 ...
333 switch (result) {
334 case NO_SD_CARD:
335 Toast.makeText(context,
336 context.getString(R.string.ImportFragment_no_encrypted_backup_found),
337 Toast.LENGTH_LONG).show();
338 break;
339 case ERROR_IO:
340 Toast.makeText(context,
341 context.getString(R.string.ImportFragment_error_importing_backup),
342 Toast.LENGTH_LONG).show();
343 break;
344 case SUCCESS:
345 ExitActivity.exitAndRemoveFromRecentApps(getActivity());
346 ...
Shouldn't it ask to select a file from the filesystem in this case?
It seems the same would be done for plaintext backup as well (same file, line 212)