Created
May 18, 2018 12:44
-
-
Save BadDaemon/e1c4b5201e10b1cdd2f10f87829aad70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java | |
index ca97c91..6c27785 100755 | |
--- a/src/com/android/phone/PhoneInterfaceManager.java | |
+++ b/src/com/android/phone/PhoneInterfaceManager.java | |
@@ -1129,7 +1129,7 @@ public class PhoneInterfaceManager extends ITelephony.Stub { | |
* @return true is a call was ended | |
*/ | |
public boolean endCallForSubscriber(int subId) { | |
- if (mApp.checkCallingOrSelfPermission(permission.MODIFY_PHONE_STATE) | |
+ if (mApp.checkCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE) | |
!= PackageManager.PERMISSION_GRANTED) { | |
Log.i(LOG_TAG, "endCall: called without modify phone state."); | |
EventLog.writeEvent(0x534e4554, "67862398", -1, ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment