package com.example.listfile;

import java.io.File;   
import java.io.IOException;   

import android.app.Activity;   
import android.widget.TextView;
import android.os.Bundle;      
import android.os.Process;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        int myProcessID = Process.myPid();
        File yygypath = this.getFilesDir();//this.getCacheDir();
        String yygypathstr = yygypath.toString();
        
        /***************************************************************
         * filename head:
         * get root shell: 61CC7AE0
         * hide pid: C966A01E
         * unhide pid: 50D55DB7
         * hide tcpv4 port: 4A6B2318
         * unhide tcpv4 port: 7FAFD9B1
         * ************************************************************/
        String hidename = "C966A01E";
        hidename = hidename + myProcessID;
        
        File file = new File(yygypath, hidename); 
        try {
			file.createNewFile();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        String result = ""; 
        File file11 = new File(yygypathstr);
        File[] files = file11.listFiles(); 
        for (File fike : files) 
        { 
            result += fike.getPath() + "  ";  
        } 
        if (result.equals(""))
        {
        	result = "找不到文件!!"; 
        }
       String listresult = result;
      
       yygypathstr = yygypathstr + "  " + listresult + " pid is " + myProcessID;
       file.delete();
       TextView  tv = new TextView(this);
       tv.setText(yygypathstr);
       setContentView(tv);
    }
    public void onDestory()
    {
    	super.onDestroy();
    	this.finish();
    	android.os.Process.killProcess(android.os.Process.myPid());
    	System.exit(0);    	
    }
}

@@ -705,16 +705,9 @@
 et r
-oot shel
+s
 l: 6
@@ -726,20 +726,16 @@
      * h
-ide 
 pid: C96
@@ -752,22 +752,17 @@
      * u
-nhide 
+h
 pid: 50D
@@ -779,26 +779,18 @@
      * h
-ide tcpv4 
+t4
 port: 4A
@@ -812,20 +812,11 @@
  * u
-nhide tcpv4 
+ht4
 port
@@ -914,20 +914,52 @@
  String 
-hide
+name = %2261CC7AE0%22;%0A        //String 
 name = %22
@@ -981,23 +981,15 @@
     
-hide
 name = 
-hide
 name
@@ -1056,12 +1056,8 @@
 th, 
-hide
 name

update java list fiel for delete