Run a service with Root privileges or adding permissions with root

后端 未结 7 984
Happy的楠姐
Happy的楠姐 2021-02-05 16:12

I am currently developing an app that reads out SMS/Emails while driving. Many users wished support for WhatsApp / KakaoTalk.

However, as there is no \"official\" way to

7条回答
  •  心在旅途
    2021-02-05 16:49

    It is not possible to run a Service (or any other application component for that matter) as root, if you are targeting unaltered, non-rooted devices. Allowing that would make all security mechanisms in Android pointless.

    It is not possible to alter the permissions of an APK at runtime either. Permissions are always granted or rejected at APK install-time. Please refer to http://developer.android.com/guide/topics/security/security.html for some more info on the subject.

提交回复
热议问题