public void cleanTemp ( ) { CommandLine dumpcommand = adbCommand ( "shell" , "rm" , "-r" , "/data/local/tmp/local/tmp/dump.xml" ) ; executeCommandQuietly ( dumpcommand ) ; try { // give it a second to recover from the activity start Thread . sleep ( 1000 ) ; } catch ( InterruptedException ie ) { throw new RuntimeException ( ie ) ; } CommandLine qiancommand = adbCommand ( "shell" , "rm" , "-r" , "/data/local/tmp/local/tmp/qian.xml" ) ; String output = executeCommandQuietly ( qiancommand ) ; log . debug ( "Delete file qian.xml: {}" , output ) ; try { // give it a second to recover from the activity start Thread . sleep ( 1000 ) ; } catch ( InterruptedException ie ) { throw new RuntimeException ( ie ) ; } CommandLine command = adbCommand ( "shell" , "rm" , "-r" , "/data/local/tmp/uidump.xml" ) ; executeCommandQuietly ( command ) ; try { // give it a second to recover from the activity start Thread . sleep ( 1000 ) ; } catch ( InterruptedException ie ) { throw new RuntimeException ( ie ) ; } }
clean file dump . xml qian . xml uidump . xml in tmp folder