How do I get rid of 2nd master key

Operating system

Android

Joplin version

3.0.12

Desktop version info

3.0.12

Sync target

OneDrive

What issue do you have?

I have Joplin synchronized to Onedrive with encryption on the desktop. In the process of setting up Android, I seem to have created two master keys. And have (maybe) encrypted a few unimportant items with those keys. But when I try to synchronized the android, it can't load the original key, and stops.

I want to start over, but now the system knows about two keys and it won't forget the new, useless one. And the Android app isn't smart enough apparently to use both keys.

None of the controls on the desktop or on the Android seem to do anything.

All I want to do is get rid of the bad key and start over. Deleting the Android instance doesn't help because the change (of the 2nd key) has been written to the main onedrive repository.

It looks like I might be stuck exporting everything, undoing my original set up, reloading, re-encrypting ... all just because I can't fix one bad key.

Please help!

I may have been able to find the solution.

I used Onedrive to restore info.json to the way it was before I installed the Android app.

Uninstalled/reinstalled Joplin for Android and then synchronized properly.

Hopefully everything on the desktop will still work too.

Thanks!

I'm linking a pull request that should allow disabling master keys on mobile, which should simplify fixing similar issues in the future:

(Thank you for reporting this!)