PhilippC / PhilippC/keepass2android

[BUG] OneDrive not working, blank screen or "authenticating not successful" shown

Open
#3,161 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
6.2k
Forks
478
Avg merge
1h 4m
Merged PRs (30d)
2

Description

Checks
  • I have read the FAQ section, searched the open issues, and still think this is a new bug.
Describe the bug you encountered:

A few days ago my already working OneDrive-stored file stopped opening/unlocking. Initial symptom was when I attempted to unlock, the keepass2android dialog would slide over halfway and pause (usually) before disappeared and going to a blank\black screen. If I waited at this black screen for a short period of time, a spinner would most times show up for a 4-5 more seconds, before silently just returning to the open\unlock dialog.

I thought perhaps this was an issue with my phone, tried restarting. Tried opening my OneDrive app to ensure I could still navigate to the location where the password file is stored - and that still worked. Trying to open another database and selecting any of the 3 OneDrive options results in an error (see attached screenshot). I tried resetting the app's data, and on launch, when again trying to select OneDrive and any of the 3 options, same error.

Image

I don't see anything here, but debug logs:

1/21/2026 7:24:53 PM:508 -- AppSettingsActivity.OnPause 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:24:54 PM:294 -- Going to background (Thread ID: 1) (Main Looper)
1/21/2026 7:24:54 PM:295 -- AppSettingsActivity.OnStop 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:53 PM:573 -- AppSettingsActivity.OnStart 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:53 PM:576 -- Going to foreground (Thread ID: 1) (Main Looper)
1/21/2026 7:28:53 PM:586 -- AppSettingsActivity.OnResume 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:53 PM:586 --  DB null 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:58 PM:426 -- AppSettingsActivity.OnPause 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:58 PM:440 -- FileSelect.OnStart (Thread ID: 1) (Main Looper)
1/21/2026 7:28:58 PM:442 -- FileSelect.OnResume (Thread ID: 1) (Main Looper)
1/21/2026 7:28:58 PM:893 -- AppSettingsActivity.OnStop 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:28:58 PM:896 -- AppSettingsActivity.OnDestroy True 2 (Thread ID: 1) (Main Looper)
1/21/2026 7:29:00 PM:66 -- FileSelect.OnPause (Thread ID: 1) (Main Looper)
1/21/2026 7:29:00 PM:80 -- SelectStorageLocationActivity.OnCreate (Thread ID: 1) (Main Looper)
1/21/2026 7:29:00 PM:654 -- FileSelect.OnStop (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:749 -- onAR (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:749 -- base.onAR (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:757 -- FSSIA: StartSelectFileProcess  (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:793 -- FSSA.OnCreate (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:903 -- onAR (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:903 -- base.onAR (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:912 -- FileSelect.OnStart (Thread ID: 1) (Main Looper)
1/21/2026 7:29:07 PM:914 -- FileSelect.OnResume (Thread ID: 1) (Main Looper)
1/21/2026 7:29:14 PM:34 -- FileSelect.OnPause (Thread ID: 1) (Main Looper)
1/21/2026 7:29:27 PM:168 -- FileSelect.OnResume (Thread ID: 1) (Main Looper)
1/21/2026 7:29:28 PM:696 -- FileSelect.OnPause (Thread ID: 1) (Main Looper)
1/21/2026 7:29:29 PM:510 -- Going to background (Thread ID: 1) (Main Looper)
1/21/2026 7:29:29 PM:511 -- FileSelect.OnStop (Thread ID: 1) (Main Looper)
1/21/2026 7:29:30 PM:657 -- FileSelect.OnStart (Thread ID: 1) (Main Looper)
1/21/2026 7:29:30 PM:659 -- Going to foreground (Thread ID: 1) (Main Looper)
1/21/2026 7:29:30 PM:664 -- FileSelect.OnResume (Thread ID: 1) (Main Looper)
1/21/2026 7:29:32 PM:996 -- FileSelect.OnPause (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:25 -- AppSettingsActivity.OnCreate 3 (instance=3) (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:25 -- AppSettingsActivity:apptask= 3 (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:35 -- AppSettingsActivity.OnStart 3 (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:35 -- AppSettingsActivity.OnResume 3 (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:36 --  DB null 3 (Thread ID: 1) (Main Looper)
1/21/2026 7:29:33 PM:531 -- FileSelect.OnStop (Thread ID: 1) (Main Looper)
Describe what you expected to happen:

No response

What version of Keepass2Android are you using?

1.15-r1

Which version of Android are you on?

16

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the OneDrive selection and unlock flow described in the issue, using the FileSelect, SelectStorageLocationActivity, and AppSettingsActivity log entries as entry points. Investigate the failure on Android 16 with version 1.15-r1; done means OneDrive databases can be selected and opened without a blank screen or authentication error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
cloud, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.