SQLiteOpenHelper#getReadableDatabase(String password);
When this method is executed, it does not return. (Do not go to the next step)
This is only when you connect the display to HDMI with YOGA Book for Android (Android 7.1.1).
The probability of occurrence is about 90%.
It will not happen if the display is not connected to HDMI.
This problem does not occur on other models.
For example
YOGA Book for Android (Android 6.0.1)
Nexus 5X (Android 7.1.1)
Nexus 7 (Android 6.0.1)
Do you know why?
Here is the code snippet
public class MySQLiteOpenHelper extends SQLiteOpenHelper {
private static final String PASSWORD = "password";
private static final String DATABASE_FILE_NAME = "sample.db";
private static final int DATABASE_VERSION = 1;
public MySQLiteOpenHelper(Context context) {
super(context, DATABASE_FILE_NAME, null, DATABASE_VERSION);
SQLiteDatabase.loadLibs(context);
}
@Override
public void onCreate(SQLiteDatabase sqLiteDatabase) {
sqLiteDatabase.execSQL(
"create table sample_table ("
+ "_id integer primary key autoincrement not null, "
+ "text_column text not null, "
+ "num_column integer not null)" );
}
public void read(){
SQLiteDatabase db = getReadableDatabase(PASSWORD); //<-- stop here
db.close();
}
I ran the SQLCipher for Android test suite on the YOGA Book for Android, but I could not open the DB.
There is no response in executing SQLiteDatabase.openOrCreateDatabase().
When I ran the test suite on the Nexus7, it was all ok.
Does the test suite application launch on the YOGA Book for Android? If so, when you run the application, does it crash? If there is a crash, would you please provide the complete stack trace? I’m trying to find out additional information regarding the instruction set architecture of the YOGA Book for Android. It appears it may be x86_64, but I am not certain. Can you confirm?
The test suite application launch.
It stops at the execution of SQLiteDatabase.openOrCreateDatabase() of the first test.
It freezes rather than crashing. As if deadlocked.
It seems to be a problem peculiar to YOGA Book for Android(Android 7.1.1).
I have two YOGA Book for Android(Android 7.1.1), but both are freezing the same way.