OSDN Git Service

Added dropbox broadcast notification
authorHakan Still <hakan.still@sonyericsson.com>
Tue, 7 Dec 2010 13:05:55 +0000 (14:05 +0100)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Wed, 8 Dec 2010 12:19:33 +0000 (13:19 +0100)
commitb247536aa3d458750edbc6b45b2348a994d83426
treee8e0a14fd8ae0b5a8dab3c4f7b1e33af71238209
parent2b858caecb3c293c47b48eed12a55a49e3039874
Added dropbox broadcast notification

To monitor the dropbox an application have to either poll the dropbox
and keep track of all entries or observ the /data/system/dropbox
directory. The later requires that the application runs as system-user.
This commit adds that a broadcast intent is sent when something is written
to the dropbox and an application can just listen on this intent and
then reads the entry with help of the DropboxManager class.
The application have to hold the permission android.permission.READ_LOGS
to get the intent.

Change-Id: I1f77f206a243df69f4ed5306078c47f7bf6181ec
api/current.xml
core/java/android/os/DropBoxManager.java
services/java/com/android/server/DropBoxManagerService.java