com.wjholden.nmap
Class verifyInstallation

java.lang.Object
  extended by 
      extended by com.wjholden.nmap.verifyInstallation
All Implemented Interfaces:
Nmap_Constants

public class verifyInstallation
extends
implements Nmap_Constants

Verifies the installation of Nmap binaries asynchronously. Checks whether root permissions are available or not (Nmap.canGetRoot). Creates the binary directory (Nmap.bindir). TODO: Use md5 sums of files to ensure integrity. Maybe better as a user-driven process?

Since:
0.4.6 COMPLETE REWRITE
Version:
0.4.6
Author:
William John Holden (wjholden@gmail.com)

Field Summary
private  Context context
           
private  String[] filenames
           
private  String installationResults
           
private  int[] requiredResources
           
private  Resources resources
           
 
Fields inherited from interface com.wjholden.nmap.Nmap_Constants
BUFFER_SIZE, INSTALL_ERROR, INSTALL_GOOD, INSTALL_NO_ROOT, MENU_GROUP_DEBUG, MENU_GROUP_EXTRA_OPTIONS, MENU_ITEM_DEBUG_EMAIL, MENU_ITEM_DEBUG_ENABLE, MENU_ITEM_EXIT, MENU_ITEM_MORE_HELP, MENU_ITEM_REINSTALL, RUN_COMPLETE, RUN_ERROR, RUN_LINE, SCANTYPE_NCAT, SCANTYPE_NDIFF, SCANTYPE_NMAP, SCANTYPE_NPING, TAG, THREAD_ERROR
 
Constructor Summary
verifyInstallation()
           
 
Method Summary
private  void createNewFileAndDeleteExisting(String path)
           
protected  Void doInBackground(Context... params)
           
protected  void onPostExecute(Void v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private Context context

filenames

private String[] filenames

installationResults

private String installationResults

requiredResources

private int[] requiredResources

resources

private Resources resources
Constructor Detail

verifyInstallation

public verifyInstallation()
Method Detail

createNewFileAndDeleteExisting

private void createNewFileAndDeleteExisting(String path)

doInBackground

protected Void doInBackground(Context... params)

onPostExecute

protected void onPostExecute(Void v)