@@ -121,7 +121,7 @@ public void changePassword(char[] password) throws SQLiteException {
121
121
if (!isOpen ()) {
122
122
throw new SQLiteException ("database not open" );
123
123
}
124
- native_rekey (password );
124
+ native_rekey (String . valueOf ( password ) );
125
125
}
126
126
127
127
private static void loadICUData (Context context , File workingDir ) {
@@ -170,17 +170,19 @@ public static synchronized void loadLibs (Context context) {
170
170
}
171
171
172
172
public static synchronized void loadLibs (Context context , File workingDir ) {
173
- System .loadLibrary ("stlport_shared" );
174
- System .loadLibrary ("sqlcipher_android" );
175
- System .loadLibrary ("database_sqlcipher" );
173
+ System .loadLibrary ("sqlcipher" );
174
+
175
+ // System.loadLibrary("stlport_shared");
176
+ // System.loadLibrary("sqlcipher_android");
177
+ // System.loadLibrary("database_sqlcipher");
176
178
177
- boolean systemICUFileExists = new File ("/system/usr/icu/icudt46l.dat" ).exists ();
179
+ // boolean systemICUFileExists = new File("/system/usr/icu/icudt46l.dat").exists();
178
180
179
- String icuRootPath = systemICUFileExists ? "/system/usr" : workingDir .getAbsolutePath ();
180
- setICURoot (icuRootPath );
181
- if (!systemICUFileExists ){
182
- loadICUData (context , workingDir );
183
- }
181
+ // String icuRootPath = systemICUFileExists ? "/system/usr" : workingDir.getAbsolutePath();
182
+ // setICURoot(icuRootPath);
183
+ // if(!systemICUFileExists){
184
+ // loadICUData(context, workingDir);
185
+ // }
184
186
}
185
187
186
188
/**
@@ -2325,7 +2327,7 @@ private void openDatabaseInternal(char[] password, SQLiteDatabaseHook databaseHo
2325
2327
databaseHook .preKey (this );
2326
2328
}
2327
2329
2328
- native_key (password );
2330
+ native_key (String . valueOf ( password ) );
2329
2331
2330
2332
if (databaseHook != null ){
2331
2333
databaseHook .postKey (this );
@@ -2335,7 +2337,7 @@ private void openDatabaseInternal(char[] password, SQLiteDatabaseHook databaseHo
2335
2337
mTimeOpened = getTime ();
2336
2338
}
2337
2339
try {
2338
- setLocale (Locale .getDefault ());
2340
+ // setLocale(Locale.getDefault());
2339
2341
} catch (RuntimeException e ) {
2340
2342
Log .e (TAG , "Failed to setLocale() when constructing, closing the database" , e );
2341
2343
dbclose ();
@@ -2811,9 +2813,9 @@ private static ArrayList<Pair<String, String>> getAttachedDbs(SQLiteDatabase dbO
2811
2813
2812
2814
private native int native_status (int operation , boolean reset );
2813
2815
2814
- private native void native_key (char [] key ) throws SQLException ;
2816
+ // private native void native_key(char[] key) throws SQLException;
2815
2817
private native void native_key (String key ) throws SQLException ;
2816
2818
2817
2819
private native void native_rekey (String key ) throws SQLException ;
2818
- private native void native_rekey (char [] key ) throws SQLException ;
2820
+ // private native void native_rekey(char[] key) throws SQLException;
2819
2821
}
0 commit comments