|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wjholden.nmap.NmapUtilities
public final class NmapUtilities
Field Summary | |
---|---|
private static NmapUtilities |
FINAL_INSTANCE
Not used, but makes sure that only one instance of this class runs at once. |
Fields inherited from interface com.wjholden.nmap.NmapConstants |
---|
BUFFER_SIZE, FORCE_RESTART, INSTALL_ERROR, INSTALL_FILENAMES, INSTALL_GOOD, INSTALL_NO_ROOT, INSTALL_RESOURCES, MG_DEBUG, MG_DEFAULT, MI_DEBUG_EMAIL, MI_DEBUG_ENABLE, MI_EXIT, MI_MORE_HELP, MI_REINSTALL, MI_SURVEY, RUN_COMPLETE, RUN_ERROR, RUN_LINE, SCANTYPE_NCAT, SCANTYPE_NDIFF, SCANTYPE_NMAP, SCANTYPE_NPING, TAG, THREAD_ERROR |
Constructor Summary | |
---|---|
private |
NmapUtilities()
Private constructor can only be called in the above FINAL_INSTANCE. |
Method Summary | |
---|---|
static boolean |
checkRootPermissions()
Mimics 'which' function to find 'su' command. |
static java.lang.String |
findBinDir(java.lang.String myDataDir)
Based on whether 'su' is available or not this method sets the location to write compiled binaries for later execution. |
static java.lang.String |
getDataDirectory(Context context)
Find the data directory to store applications in. |
static java.lang.String |
verifyTemporaryFolder(Context context)
Removed from verifyInstallation for version 21. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final NmapUtilities FINAL_INSTANCE
Constructor Detail |
---|
private NmapUtilities()
Method Detail |
---|
public static boolean checkRootPermissions()
public static java.lang.String findBinDir(java.lang.String myDataDir)
myDataDir
- - directory set by (above) getDataDirectory(Context)
public static java.lang.String getDataDirectory(Context context)
c
-
public static java.lang.String verifyTemporaryFolder(Context context) throws java.io.IOException, NameNotFoundException
c
- Context the application is executing in.
java.io.IOException
NameNotFoundException
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |