Closed Bug 1340175 Opened 7 years ago Closed 7 years ago

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

Categories

(Firefox for Android Graveyard :: Testing, defect)

defect
Not set
normal

Tracking

(firefox53 fixed, firefox54 fixed)

RESOLVED FIXED
Firefox 54
Tracking Status
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

+++ 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.
Attachment #8838097 - Flags: review?(s.kaspari)
Attachment #8838097 - Flags: review?(s.kaspari) → review+
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/84757ceb6dec
Remove WRITE_CONTACTS permission from Android mozrunner; r=sebastian
https://hg.mozilla.org/mozilla-central/rev/84757ceb6dec
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: