public void reopenReadWrite(){
synchronized (mLock) {
    throwIfNotOpenLocked();
    if (!isReadOnlyLocked()) {
      return;
    }
    final int oldOpenFlags=mConfigurationLocked.openFlags;
    mConfigurationLocked.openFlags=(mConfigurationLocked.openFlags & ~OPEN_READ_MASK) | OPEN_READWRITE;
    try {
      mConnectionPoolLocked.reconfigure(mConfigurationLocked);
    }
 catch (    RuntimeException ex) {
      mConfigurationLocked.openFlags=oldOpenFlags;
      throw ex;
    }
  }
}

public void reopenReadWrite ( ) { synchronized ( mLock ) { throwIfNotOpenLocked ( ) ; if ( ! isReadOnlyLocked ( ) ) { return ; } final int oldOpenFlags = mConfigurationLocked . openFlags ; mConfigurationLocked . openFlags = ( mConfigurationLocked . openFlags & ~ OPEN_READ_MASK ) | OPEN_READWRITE ; try { mConnectionPoolLocked . reconfigure ( mConfigurationLocked ) ; } catch ( RuntimeException ex ) { mConfigurationLocked . openFlags = oldOpenFlags ; throw ex ; } } }
reopens the database in read - write mode . if the database is already read - write , does nothing .
