com.wjholden.nmap
Class verifyInstallation
java.lang.Object
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)
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private Context context
filenames
private String[] filenames
installationResults
private String installationResults
requiredResources
private int[] requiredResources
resources
private Resources resources
verifyInstallation
public verifyInstallation()
createNewFileAndDeleteExisting
private void createNewFileAndDeleteExisting(String path)
doInBackground
protected Void doInBackground(Context... params)
onPostExecute
protected void onPostExecute(Void v)