Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import my key or full backup on Android #2870

Open
ActionJaxonH opened this issue Jan 1, 2024 · 3 comments
Open

Unable to import my key or full backup on Android #2870

ActionJaxonH opened this issue Jan 1, 2024 · 3 comments

Comments

@ActionJaxonH
Copy link

Expected Behavior

After entering Backup Code and pressing proceed, it should restore key(s)

Current Behavior

The code screen quickly flashes and refreshes blank again, as if the code was not accepted and is expecting you to re-enter the code again. I've tried it 5 times back to back. It won't work.

Possible Solution

Allow backups which optionally do not require a code, prompting a warning for users explaining the danger, only advising to proceed if you're absolutely sure.

Steps to Reproduce (for bugs)

  1. Export full Backup of keys, and separate Backup of your own key, recording backu0 password codes provided
  2. Delete your own key
  3. Select import keys from file and select file
  4. Enter password you reordered earlier
  5. Watch password screen quickly refresh blank, refusing to import the keys despite the password code being correct.

Context

Tried deleting my key after backing up so my key would not be accessible, but wanted to test the import quickly to ensure I could get it back.... which, I can't.

Your Environment

  • Android Version: 14
  • Device Model: Galaxy S21
  • OpenKeychain Version: 5.8.2
  • From Google Play or F-Droid?: Google Play
@onelazyuser
Copy link

I can basically confirm the error "importing a backup".

However, I can't get to the point where I can enter the backup code. After loading the backup file, nothing happens.

My Environment:

Android Version: 13
Device Model: Galaxy TAB Tab S7+ (SMT 970)
OpenKeychain Version: 6.0
From Google Play or F-Droid?: F-Droid

@ynakao
Copy link

ynakao commented Feb 19, 2024

I have the same issue. I made a backup in OpenKeychain v6.0.0 on Android 7.1.2, and tried restoring it on the same device but it was upgraded Android 13. Restoring stalled at Decrypt process and reading data... message continued forever. No Backup Code prompt appeared.

I created a test key, and made a full backup, and restored it on the same Android version as a test, but restoration failed as well.

Step to reproduce

  1. Make a Full Backup, and write down Backup Key.
  2. Uninstall OpenKeychain, and reinstall it.
  3. Restore keys from a full backup file.

Environment

  • Android Version: 13 (LineageOS)
  • Device Model: Nexus 5
  • OpenKeychain Version: 6.0
  • From Google Play or F-Droid?: F-Droid

Additional info

I took a logcat log during the restoring process.

$ adb logcat --pid=$(adb shell pidof -s org.sufficientlysecure.keychain)
--------- beginning of main
02-19 22:08:11.515 16390 16390 W main    : type=1400 audit(0.0:8092): avc: denied { write } for name="cg2_bpf" dev="tmpfs" ino=6216 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0
02-19 22:08:11.516 16390 16390 E libprocessgroup: Failed to make and chown /dev/cg2_bpf/uid_10153: Permission denied
02-19 22:08:11.517 16390 16390 E Zygote  : createProcessGroup(10153, 0) failed: Permission denied
02-19 22:08:11.548 16390 16390 E secure.keychain: Not starting debugger since process cannot load the jdwp agent.
02-19 22:08:11.651 16390 16390 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10153; state: ENABLED
02-19 22:08:11.684 16390 16390 V GraphicsEnvironment: ANGLE Developer option for 'org.sufficientlysecure.keychain' set to: 'default'
02-19 22:08:11.684 16390 16390 V GraphicsEnvironment: ANGLE GameManagerService for org.sufficientlysecure.keychain: false
02-19 22:08:11.685 16390 16390 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
02-19 22:08:11.687 16390 16390 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-19 22:08:11.688 16390 16390 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-19 22:08:11.703 16390 16390 D WM-WrkMgrInitializer: Initializing WorkManager with default configuration.
02-19 22:08:11.723 16390 16390 D WM-PackageManagerHelper: Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
02-19 22:08:11.723 16390 16390 D WM-Schedulers: Created SystemJobScheduler and enabled SystemJobService
02-19 22:08:11.771 16390 16410 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10153; state: ENABLED
02-19 22:08:11.801 16390 16410 D CompatibilityChangeReporter: Compat change id reported: 194532703; UID 10153; state: ENABLED
02-19 22:08:12.002 16390 16390 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
02-19 22:08:12.057 16390 16390 D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10153; state: ENABLED
02-19 22:08:12.277 16390 16390 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10153; state: DISABLED
02-19 22:08:12.281 16390 16415 W Parcel  : Expecting binder but got null!
02-19 22:08:12.288 16390 16390 I Choreographer: Skipped 34 frames!  The application may be doing too much work on its main thread.
02-19 22:08:12.308 16390 16415 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I741a3d36ca)
02-19 22:08:12.308 16390 16415 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.29.00.00
02-19 22:08:12.308 16390 16415 I Adreno-EGL: Build Date: 04/04/16 Mon
02-19 22:08:12.308 16390 16415 I Adreno-EGL: Local Branch: mybranch19053788
02-19 22:08:12.308 16390 16415 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.3_rb1.12
02-19 22:08:12.308 16390 16415 I Adreno-EGL: Local Patches: NONE
02-19 22:08:12.308 16390 16415 I Adreno-EGL: Reconstruct Branch: NOTHING
02-19 22:08:12.320 16390 16415 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-19 22:08:12.332 16390 16415 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-19 22:08:12.342 16390 16423 I Gralloc4: mapper 4.x is not supported
02-19 22:08:12.343 16390 16423 W Gralloc3: mapper 3.x is not supported
02-19 22:08:12.345 16390 16423 W Gralloc4: allocator 4.x is not supported
02-19 22:08:12.346 16390 16423 W Gralloc3: allocator 3.x is not supported
02-19 22:08:12.347 16390 16423 I Gralloc2: Adding additional valid usage bits: 0x2002000
02-19 22:08:12.597 16390 16410 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=964b0b56-684a-4732-abf7-8838cae53fbe, tags={ org.sufficientlysecure.keychain.provider.TemporaryFileProvider$CleanupWorker } ]
02-19 22:08:17.345 16390 16440 D ProfileInstaller: Skipping profile installation for org.sufficientlysecure.keychain
02-19 22:08:21.970 16390 16390 W OnBackInvokedCallback: OnBackInvokedCallback is not enabled for the application.
02-19 22:08:21.970 16390 16390 W OnBackInvokedCallback: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
02-19 22:08:21.986 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.986 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.986 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.987 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.987 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.987 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.988 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:21.991 16390 16390 E FastAdapter: The bindView method of this item should set the `Tag` on its itemView (https://github.com/mikepenz/FastAdapter/blob/develop/library-core/src/main/java/com/mikepenz/fastadapter/items/AbstractItem.java#L189)
02-19 22:08:27.137 16390 16390 D CompatibilityChangeReporter: Compat change id reported: 78294732; UID 10153; state: ENABLED
02-19 22:08:27.221 16390 16415 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-19 22:08:27.446 16390 16415 W Parcel  : Expecting binder but got null!
02-19 22:08:27.467 16390 16415 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-19 22:08:28.060 16390 16415 W Parcel  : Expecting binder but got null!
02-19 22:08:28.079 16390 16415 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-19 22:08:47.086 16390 16401 I secure.keychain: Background concurrent copying GC freed 98240(5373KB) AllocSpace objects, 4(144KB) LOS objects, 49% free, 5824KB/11MB, paused 183us,320us total 296.870ms
02-19 22:08:47.100 16390 16403 W System  : A resource failed to call close.
02-19 22:08:47.101 16390 16403 W System  : A resource failed to call close.

@ynakao
Copy link

ynakao commented Feb 20, 2024

It seems my issue is related to #2880. It looks the bugs are already fixed(?) in v6.0.x releases, but there's no installable apk builds so far. So, I installed v5.8.2 from F-Droid for the moment, and it works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants