Deprecated
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-androidmay 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.
Creating A New Test
- Open this repository within Android Studio
- Add a new class within
net.zetetic.testspackage 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
AwesomeTestto theTestSuiteRunner:
tests.add(new AwesomeTest());
- Build and run the application on an Android device or emulator