1
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:
William Vu 2015-07-24 11:22:40 -05:00
commit e38d6c7acb
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743

View File

@ -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;