Open menasheh opened 8 years ago
Do you have OI Safe installed? If yes, does it matter which order you installed it.
I saw this in the Google Play console but it is not reproducible for me.
Full disclosure: Menasheh is my son.
Both were already installed and got upgraded. We did try uninstalling and reinstalling OI Safe but it didn't help. To do the same for OI Notepad we would want to back up the data first, but can't get to Convert CSV because of the crash. Which seems a bit odd considering that on my phone it doesn't seem to decrypt any notes until I click on them.
I guess we should try adb backup.
Probably we should try to catch this exception and show a dialog explaining what to do.
This worked:
adb backup -f notepad.ab org.openintents.notepad (uninstall, reinstall OI Notepad) adb restore notepad.ab
Probably we should still try to catch the exception and give instructions.
Could this be considered an android bug? Why is that necessary?
I tried different things, but not sure what is going on. My assumption is that OI Notepad still uses its own permission handle/hash for the ACCESS_INTENTS permission, while OI Safe provides a different handle/hash that does not match. I have pushed a release that shows a dialog if the permission is not granted.
I could reproduce this. At least once. Didn't try the whole thing again...:
Now I would get a little popup saying "decryption changed due to changes in the operating system". I could also see that the extra permission "encrypt and decrypt data" is available in the Android settings, but I could only turn it on for OiSafe. The setting for OiNotepad would just not stick. Even though OiNotepad would give me lots of the above popups, it still worked. Except for encrypted notes. When opening those notes, I got the above exception.
I then did a new backup and restore, so I could restore straight to version 1.5.3: adb backup -f oinotes.ab -apk org.openintents.notepad adb restore oinotes.ab
And then it worked. I guess there is really something wrong if you upgrade from an old version. Still can't enable the extra permission for OiNotepad, but that seems not to be a problem. Decryption works fine now.
Just FYI: I just experienced a similar issue when starting Notepad from within Shoppinglist in Android Studio emulator. It seems that one has to install ShoppingList first and then Notepad. When I do it the other way around, I get the the security exception below. I think the problem also occurs when you change code and recompile Shoppinglist; it seems that during re-installation the identities of the ShoppingList permissions change and Notepad cannot launch due to lack of permission. I would have guessed some of you folks must have seen that problem before....
java.lang.SecurityException: Permission Denial: opening provider org.openintents.shopping.provider.ShoppingProvider from ProcessRecord{d673cf5 3363:org.openintents.notepad/u0a62} (pid=3363, uid=10062) requires org.openintents.shopping.READ_PERMISSION or org.openintents.shopping.WRITE_PERMISSION
Cyanogen 12.1 based ROM on LG G2 OI Safe version 1.4.2