This project exists in support of the android-database-sqlcipher
project which has been officially deprecated. The long-term replacement is sqlcipher-android
. Instructions for migrating from android-database-sqlcipher
to sqlcipher-android
may be found here.
To run: clone this repo and open with a recent version of Android Studio, or build from the command line.
It is possible to run on an emulator or device, as documented in the SQLCipher for Android compatibility section.
More information can be found in SQLCipher for Android.
- Open this repository within Android Studio
- Add a new class within
net.zetetic.tests
package that extendsSQLCipherTest
:
package net.zetetic.tests;
import net.sqlcipher.database.SQLiteDatabase;
public class AwesomeTest extends SQLCipherTest {
@Override
public boolean execute(SQLiteDatabase database) {
try {
// Add your scenario here
return true;
} catch (Exception e) {
return false;
}
}
@Override
public String getName() {
return "Awesome Test";
}
}
- Add
AwesomeTest
to theTestSuiteRunner
:
tests.add(new AwesomeTest());
- Build and run the application on an Android device or emulator