Repository navigation
feat: Reset in the menu, menu in two columns (#171, #173) - #172
Conversation
Reset (above Exit) asks first; Cancel has the focus, so a stray OK on a remote changes nothing. Reset deletes the stored settings, the Keystore key of the encrypted camera URLs and WebUI's cookies, then starts the app in a new process.
6ba93c6 to
c6b5600
Compare
|
/review |
Code Review by Qodo
1.
|
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | ||
| try { | ||
| KeystoreCipher.deleteKey(); | ||
| } catch (Exception e) { | ||
| Log.w(TAG, "Start over: cannot delete the URL key: " + e.getMessage()); | ||
| } |
There was a problem hiding this comment.
2. Reset can retain the url encryption key 📎 Requirement gap ⛨ Security
onStartOver() catches every exception from KeystoreCipher.deleteKey() and continues with the restart. If the keystore operation fails, the camera URL encryption key remains while the app still proceeds as though the reset completed.
Agent Prompt
## Issue description
The reset path logs a failed camera URL key deletion and continues, so the required encryption key can remain after the app restarts.
## Fix Focus Areas
- android/app/src/main/java/com/openipc/decoder/Decoder.java[495-500]
## Recommended Fix
Treat key deletion failure as a failed reset: report the error to the user, do not launch or terminate the replacement process, and allow the user to retry after the keystore operation succeeds.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
c6b5600 to
2236afe
Compare
…m a helper process, so the new launch is not ended with the old process (Qodo on #172)
2236afe to
2d96037
Compare
…m a helper process, so the new launch is not ended with the old process (Qodo on #172)
Reset clears all settings after a confirmation (#171). The menu now has two items per row (#173):
Reset opens:
Cancel has the focus, so a stray OK on a remote changes nothing (checked on AG-216 with the D-pad).
Clear settings:
settingspreferences withcommit(); if that fails, it stops there with a message and changes nothing else;Qodo on c6b5600:
README (EN/RU/ZH): Reset in the menu table. Version 2.05.
Closes #171
Closes #173