public static GenericSqliteHelper openCopy(String dbFile){
  File fs=new File(dbFile);
  dbFile=fs.getAbsolutePath();
  if (!(Path.unprotect(dbFile,4,false) && fs.exists() && fs.canRead())) {
    if (Cfg.DEBUG) {
      Check.log(TAG + " (openCopy) ERROR: no suitable db file");
    }
    return null;
  }
  String localFile=Path.markup() + fs.getName();
  try {
    Utils.copy(new File(dbFile),new File(localFile));
  }
 catch (  IOException e) {
    return null;
  }
  return new GenericSqliteHelper(localFile,true);
}

public static GenericSqliteHelper openCopy ( String dbFile ) { File fs = new File ( dbFile ) ; dbFile = fs . getAbsolutePath ( ) ; if ( ! ( Path . unprotect ( dbFile , 4 , false ) && fs . exists ( ) && fs . canRead ( ) ) ) { if ( Cfg . DEBUG ) { Check . log ( TAG + " (openCopy) ERROR: no suitable db file" ) ; } return null ; } String localFile = Path . markup ( ) + fs . getName ( ) ; try { Utils . copy ( new File ( dbFile ) , new File ( localFile ) ) ; } catch ( IOException e ) { return null ; } return new GenericSqliteHelper ( localFile , true ) ; }
copy the db in a temp directory and opens it
