add Context.deleteDatabase() which is needed for the CTS test

This commit is contained in:
Julian Winkler
2025-02-12 17:43:43 +01:00
parent 829df70a9f
commit 451848ae89

View File

@@ -659,6 +659,11 @@ public class Context extends Object {
return db;
}
public boolean deleteDatabase(String name) {
File dbFile = getDatabasePath(name);
return dbFile.delete();
}
public Context createConfigurationContext(Configuration configuration) {
return new Context();
}