Closed
Bug 1385738
Opened 8 years ago
Closed 7 years ago
Crash in java.lang.SecurityException: uid 10132 does not have android.permission.UPDATE_APP_OPS_STATS. at android.os.Parcel.readException(Parcel.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: n.nethercote, Unassigned)
Details
(Keywords: crash)
Crash Data
This bug was filed from the Socorro interface and is
report bp-3d8224e1-eacc-4ce5-b1d6-04a750170729.
=============================================================
Stack trace:
> Java.lang.SecurityException: uid 10132 does not have android.permission.UPDATE_APP_OPS_STATS.
> at android.os.Parcel.readException(Parcel.java:1684)
> at android.os.Parcel.readException(Parcel.java:1637)
> at android.media.session.ISessionController$Stub$Proxy.getVolumeAttributes(ISessionController.java:703)
> at android.media.session.MediaController.getPlaybackInfo(MediaController.java:261)
> at org.mozilla.gecko.media.MediaControlService.initMediaSession(MediaControlService.java:299)
> at org.mozilla.gecko.media.MediaControlService.initialize(MediaControlService.java:170)
> at org.mozilla.gecko.media.MediaControlService.onCreate(MediaControlService.java:86)
> at android.app.ActivityThread.handleCreateService(ActivityThread.java:3236)
> at android.app.ActivityThread.-wrap5(ActivityThread.java)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1610)
> at android.os.Handler.dispatchMessage(Handler.java:102)
> at android.os.Looper.loop(Looper.java:160)
> at android.app.ActivityThread.main(ActivityThread.java:6270)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:788)
It's showing up under multiple signatures because the uid changes.
jchen, any ideas?
Flags: needinfo?(nchen)
Updated•8 years ago
|
Flags: needinfo?(nchen) → needinfo?(alwu)
Comment 1•8 years ago
|
||
I guess it might be caused when user disable fennec's notification, and only system app can modify the APP_OPS.
NotificationManagerCompat::areNotificationsEnabled() [1] can be used to check the status, but it's only available after support library 24.
For this issue,
Should we (1) just catch this exception and return false, or (2) update our support library and use areNotificationsEnabled() to do more appropriate checking?
Thanks!
[1] https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat.html#areNotificationsEnabled()
Assignee: nobody → alwu
Flags: needinfo?(alwu) → needinfo?(s.kaspari)
Comment 2•8 years ago
|
||
> NotificationManagerCompat::areNotificationsEnabled() [1] can be used to check the status, but it's only available after support library 24.
We should be able to update to the new support library very soon! :)
For future patches/questions, please flag :nechen
Flags: needinfo?(s.kaspari)
Updated•7 years ago
|
Assignee: alastor0325 → nobody
No crashes since October.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•