Cannot grant location permission to cast app even using adb


kazisama

Members
Sep 29, 2024
1
3
I have rooted my miui 14 and have usb debugging on. I also use LADB.

While removing bloatware from my miui 14, I accidentally removed "com.milink.service" which is used for cast.
I used adb command "pm uninstall -k --user 0 com.milink.service" for this.

After realising my mistake, I reinstalled it using command "cmd package install-existing com.milink.service"

I got the app back after reboot. Now when starting app, it asks for location permission. But when I go permissions, it says permission are restricted. As I think it's a system app.

I searched online and used command
"pm grant com.milink.service android.permission.ACCESS_BACKGROUND_LOCATION"
but no avail.
Help me solve this issue.
 

Attachments

  • Screenshot_2024-09-29-08-29-30-286_com.milink.service.jpg
    Screenshot_2024-09-29-08-29-30-286_com.milink.service.jpg
    691.8 KB · Views: 10
  • Screenshot_2024-09-29-08-29-41-386_com.miui.securitycenter.jpg
    Screenshot_2024-09-29-08-29-41-386_com.miui.securitycenter.jpg
    405.5 KB · Views: 11