diff --git a/framework/src/org/apache/cordova/CordovaPlugin.java b/framework/src/org/apache/cordova/CordovaPlugin.java index 9f211ff9..4627ebbe 100644 --- a/framework/src/org/apache/cordova/CordovaPlugin.java +++ b/framework/src/org/apache/cordova/CordovaPlugin.java @@ -42,7 +42,6 @@ public class CordovaPlugin { public CordovaInterface cordova; protected CordovaPreferences preferences; private String serviceName; - protected String [] permissions; /** * Call this after constructing to initialize the plugin. @@ -372,7 +371,6 @@ public class CordovaPlugin { */ public void requestPermissions(int requestCode) { - cordova.requestPermissions(this, requestCode, permissions); } /* @@ -383,18 +381,6 @@ public class CordovaPlugin { */ public boolean hasPermisssion() { - if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M) - { - return true; - } - for(String p : permissions) - { - if(PackageManager.PERMISSION_DENIED == cordova.getActivity().checkSelfPermission(p)) - { - return false; - } - } - return true; }