Hello everybody. I am tweaking Android and making some modifications on the Phone package. I added some lines which request the SmsManager service and send a text. Though I added android.permission.SEND_SMS, a SecurityException occured : "java.lang.SecurityException: Sending SMS message: User 1001 does not have android.permission.SEND_SMS"
After following the error, I noticed that the permission denied event occurs because we have "Binder.getCallingPid() == Process.MyPid()" in checkCallingPermission() method (frameworks/base/core/java/android/app/ ContextImpl.java) So, does that mean that it's allowed to other processes to request a service but the owner of the service isn't ? Please, if you think that it's just a bug, let me send my first patch to the Android community. Best regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en