# sqlcipher-android-tests **Repository Path**: mirrors_sqlcipher/sqlcipher-android-tests ## Basic Information - **Project Name**: sqlcipher-android-tests - **Description**: A collection of tests that can be run on an emulator or device to verify SQLCipher for Android. - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Deprecated This project exists in support of the `android-database-sqlcipher` project which has been [officially deprecated](https://www.zetetic.net/blog/2023/08/31/sqlcipher-4.5.5-release#sqlcipher-android-455). The long-term replacement is [`sqlcipher-android`](https://github.com/sqlcipher/sqlcipher-android). Instructions for migrating from `android-database-sqlcipher` to `sqlcipher-android`may be found [here](https://www.zetetic.net/sqlcipher/sqlcipher-for-android-migration/). To run: clone this repo and open with a recent version of Android Studio, or [build from the command line](https://developer.android.com/studio/build/building-cmdline). It is possible to run on an emulator or device, as documented in the [SQLCipher for Android compatibility section](https://github.com/sqlcipher/android-database-sqlcipher#compatibility). More information can be found in [SQLCipher for Android](https://zetetic.net/sqlcipher/sqlcipher-for-android/). ### Creating A New Test 1. Open this repository within Android Studio 2. Add a new class within `net.zetetic.tests` package that extends `SQLCipherTest`: ```Java 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"; } } ``` 3. Add `AwesomeTest` to the [`TestSuiteRunner`](https://github.com/sqlcipher/sqlcipher-android-tests/blob/master/src/main/java/net/zetetic/tests/TestSuiteRunner.java): ```Java tests.add(new AwesomeTest()); ``` 4. Build and run the application on an Android device or emulator