Hello! There is a need to perform an action for which you need the system permission MODIFY_PHONE_STATE. in the manifesto it is spelled out. but on an attempt to perform this action, the android stubbornly replies that the application has no such right !! what am I doing wrong? in the emulator works, but on the real device - no: (

UPDATE due to the circumstances described below in the commentary :(

I specify the question. The task is to remove the notification of missed calls from the notification panel. calls from the call list are killed programmatically. those. If you enter the system call list, the notification from the panel disappears automatically, because there are no more calls. Those. automatic synchronization is performed with one another. How to pervert so that, after programmatically deleting calls from the system, to make the notification panel clear up and realize that the missed ones should be removed, for there are no missed ones?

  • What is the version on the real device? - gadfil pm
  • 2.3.3. on the other 2.3.6. everywhere the same thing is argued that there are no rights to manage the system. although they are registered in the manifesto. But yesterday I tried it on the tablet. The Chinese with, perhaps, the Chinese with android 4.1. It all works. Apparently, the root-rights are not killed by the application by default during installation. I read in the evening that the android-pacemakers, who make the type of the official versions of the android, special, closed the assignment of system rights for third-party applications starting somewhere from version 2.3. like they were afraid that someone would start writing viruses for their bad guy. and now honest people tormented - Demon051

1 answer 1

Permishen MODIFY_PHONE_STATE can only get an application signed by the key of the device manufacturer - well, or on another system application. Simple mortals have no such opportunity.

  • but it works on the tablet! does it mean either everyone is allowed to receive this right, or ??? .... - Demon051
  • 2
    Ketai - that says it all)) - Barmaley
  • My Chinese firmly believes that he is a phone .... and by the number of pixels I can not argue with him _))) - gadfil
  • those. The Chinese put on everyone and their versions of the androd do as they want? :) Well done, what can I say. and here ahead of the rest! And as for the second part of the question - about clearing the notification panel from missed calls after they are deleted - are there any ideas? - Demon051