WARNING: Unable to grant runtime permissions to org.mozilla.fennec

RESOLVED FIXED in Firefox 53

Status

()

defect
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: gbrown, Assigned: gbrown)

Tracking

(Blocks 1 bug)

Trunk
Firefox 54
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(firefox53 fixed, firefox54 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

2 years ago
+++ This bug was initially created as a clone of Bug #1340001 +++

In bug 1340001, it was noted that test harnesses warn "Unable to grant runtime permissions" when run against Android 6+.

I reproduced 'WARNING: Unable to grant runtime permissions to org.mozilla.fennec' on a 6.0 emulator. I debugged and found that most of the pm grant calls are okay, but not WRITE_CONTACTS:

$ adb shell pm grant org.mozilla.fennec_gbrown android.permission.WRITE_CONTACTS
Operation not allowed: java.lang.SecurityException: Package org.mozilla.fennec_gbrown has not requested permission android.permission.WRITE_CONTACTS


Indeed, a dxr search shows WRITE_CONTACTS is no longer used by Fennec.
Assignee

Comment 1

2 years ago
Attachment #8838097 - Flags: review?(s.kaspari)
Attachment #8838097 - Flags: review?(s.kaspari) → review+

Comment 2

2 years ago
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/84757ceb6dec
Remove WRITE_CONTACTS permission from Android mozrunner; r=sebastian

Comment 3

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/84757ceb6dec
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
You need to log in before you can comment on or make changes to this bug.