docs: public void onCorruption(SQLiteDatabase dbObj) {
          Log.e(TAG, "Corruption reported by sqlite on database: " + dbObj.getPath());
  
  	// If this is a SEE build, do not delete any database files.
          // It may be that the user has specified an incorrect password.
  	if( SQLiteDatabase.hasCodec() ) return;
  
          // is the corruption detected even before database could be 'opened'?
          if (!dbObj.isOpen()) {
              // database files are not even openable. delete this database file.
              // NOTE if the database has attached databases, then any of them could be corrupt.
              // and not deleting all of them could cause corrupted database file to remain and 
              // make the application crash on database open operation. To avoid this problem,
              // the application should provide its own {@link DatabaseErrorHandler} impl class
              // to delete ALL files of the database (including the attached databases).
              deleteDatabaseFile(dbObj.getPath());
              return;
          }
  
          List<Pair<String, String>> attachedDbs = null;
          try {
              // Close the database, which will cause subsequent operations to fail.
              // before that, get the attached database list first.
              try {
                  attachedDbs = dbObj.getAttachedDbs();
              } catch (SQLiteException e) {
                  /* ignore */
              }
              try {
                  dbObj.close();
              } catch (SQLiteException e) {
                  /* ignore */
              }
          } finally {
              // Delete all files of this corrupt database and/or attached databases
              if (attachedDbs != null) {
                  for (Pair<String, String> p : attachedDbs) {
                      deleteDatabaseFile(p.second);
                  }
              } else {
                  // attachedDbs = null is possible when the database is so corrupt that even
                  // "PRAGMA database_list;" also fails. delete the main database file
                  deleteDatabaseFile(dbObj.getPath());
              }
          }
      }