You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i see there is error with dynamic link in old phone and some 6.1 device
there is applyWorkaroundToOpenSqlite3OnOldAndroidVersions for sqlite3_flutter_libs but not for sqlcipher_flutter_libs
also when we override like this as describe in moor docs will break old device because we need to use full path with id on old device
2- provide openCipherOnAndroid function that do this
DynamicLibraryopenCipherOnAndroid() {
try {
returnDynamicLibrary.open('libsqlcipher.so');
} catch (_) {
// On some (especially old) Android devices, we somehow can't dlopen// libraries shipped with the apk. We need to find the full path of the// library (/data/data/<id>/lib/libsqlcipher.so) and open that one.// For details, see https://github.com/simolus3/moor/issues/420final appIdAsBytes =File('/proc/self/cmdline').readAsBytesSync();
// app id ends with the first \0 character in here.final endOfAppId =max(appIdAsBytes.indexOf(0), 0);
final appId =String.fromCharCodes(appIdAsBytes.sublist(0, endOfAppId));
returnDynamicLibrary.open('/data/data/$appId/lib/libsqlcipher.so');
}
}
i see there is error with dynamic link in old phone and some 6.1 device
there is
applyWorkaroundToOpenSqlite3OnOldAndroidVersions
for sqlite3_flutter_libs but not for sqlcipher_flutter_libsalso when we override like this as describe in moor docs will break old device because we need to use full path with id on old device
i suggest to add this to sqlcipher_flutter_libs :
1- applyWorkaroundToOpenSqlite3OnOldAndroidVersions
2- provide openCipherOnAndroid function that do this
then programmer could do
i am happy to make pull request if this way ok .
The text was updated successfully, but these errors were encountered: