mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-27 04:15:45 +00:00
android: database encryption support with a passphrase (#1021)
* Ability to encrypt credentials and to store them securelly * Don't regenerate key if it exists * Made code shorter * Refactoring * Initial support of encryped database * Changes in UI and notifications about database problems * Small changes to how we use chatController instance * Show unlock view in console automatically * Fixed wrong place of saving a key * Fixed a crash * update icons * Changing controller correctly * Enable migration * fix JNI * Fixed startup * Show database error view when password is wrong while enabling a chat * Chat controller re-init in one more place - also added one more alert * Scrollable columns and restarted service and worker * translations * database passphrase * update translations * translations Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * update translations * update translations * update icon colors, show empty passphrase as not stored * update translation * update translations * shared section footer, bigger font, layout, change entropy bounds * correction Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * update translations Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
17f806e7a2
commit
78f854e2c5
@@ -36,7 +36,7 @@ JNIEXPORT jstring JNICALL
|
||||
Java_chat_simplex_app_SimplexAppKt_chatMigrateDB(JNIEnv *env, __unused jclass clazz, jstring dbPath, jstring dbKey) {
|
||||
const char *_dbPath = (*env)->GetStringUTFChars(env, dbPath, JNI_FALSE);
|
||||
const char *_dbKey = (*env)->GetStringUTFChars(env, dbKey, JNI_FALSE);
|
||||
jstring res = (jlong)chat_migrate_db(_dbPath, _dbKey);
|
||||
jstring res = (*env)->NewStringUTF(env, chat_migrate_db(_dbPath, _dbKey));
|
||||
(*env)->ReleaseStringUTFChars(env, dbPath, _dbPath);
|
||||
(*env)->ReleaseStringUTFChars(env, dbKey, _dbKey);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user