jakev / dtfmods-core

Core content for Android device testing
Apache License 2.0
6 stars 2 forks source link

Parse <protected-broadcasts> to Database #4

Closed jakev closed 9 years ago

jakev commented 9 years ago

Affected module(s): sysappdb Affected libraries: AppDb

Knowing which protected broadcasts have been added by the OEMs will be useful in determining if receivers are actually exposed.

jakev commented 9 years ago

Added support to AppDb and processing to sysappdb: https://github.com/jakev/dtfmods-core/commit/6ec3a2dd479818702ab207c1afce2f27fb129e50

jakev commented 9 years ago

Added and used in sysappdb: https://github.com/jakev/dtfmods-core/commit/596529e21bbf54bb73eb50ad026412439854e71e. It now prints if the action is protected.

$ dtf sysappdb exposed --filter receivers com.android.systemui [Mon Mar 30 15:26:54 EDT 2015] sysappdb/I - Using AOSP DB '/mydev/.dbs/sysapps.db' [Mon Mar 30 15:26:54 EDT 2015] sysappdb/I - app_name : com.android.systemui [+] Printing exposed receivers... [EXP] Implicit export by intent-filter! .BootReceiver Permission: None Enabled: None Exported: None Intent Filter Data: Filter #0: Action=android.intent.action.BOOT_COMPLETED [PROTECTED]

jakev commented 9 years ago

Reopening to add a way to show all protected broadcasts.

jakev commented 9 years ago

Added: https://github.com/jakev/dtfmods-core/commit/c4d6f57c0604de44185f46bbcfa55e4a3eac0f17