mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-02-16 00:24:29 +01:00
Land #11, fileInstalled() s/packageName/fileName/
This commit is contained in:
commit
e38d6c7acb
@ -38,10 +38,10 @@ public class check_root_android implements Command {
|
||||
|| canExecuteCommand("which su");
|
||||
}
|
||||
|
||||
private static boolean fileInstalled(String packageName) {
|
||||
private static boolean fileInstalled(String fileName) {
|
||||
boolean installed;
|
||||
try {
|
||||
File file = new File("/system/app/" + packageName);
|
||||
File file = new File(fileName);
|
||||
installed = file.exists();
|
||||
} catch (Exception e1){
|
||||
installed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user