Pickles
Pickles

Reputation: 591

Is it possible to modify notifications using the NotificationListenerService?

Is this strictly a read-only thing or would I be able to actually modify the title/text/image of any of the current notifications on the device? If so how would I do this? I went through the documentation and couldn't find an answer. Thanks.

Upvotes: 0

Views: 159

Answers (1)

Jim
Jim

Reputation: 10278

The only notifications you can modify are ones that your apps create. The NLS is for monitoring events only. Even with reflection you will get Permission errors, etc.

The only "work around" is a modded AOSP install or signing your app as "system" (which is a custom install solution also, unless you intend to have your apps ship with the device from the manufacturer / carrier).

Upvotes: 1

Related Questions