jakev / dtfmods-core

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

Process "SharedUserId" and "sharedUserLabel" #20

Closed jakev closed 9 years ago

jakev commented 9 years ago

Affected Module(s): sysappdb, sharedid Affected Libraries: AppDb

In order to properly implement https://github.com/jakev/dtfmods-core/issues/7, I'll need to have the Shared user IDs in a database. From here, I can expand AppDb to lookup applications by shared Id, and potentially enumerate shared ID. I will parse this when pulling applications with sysappdb process.

This would also mean converting sharedid to use the new python methods.

jakev commented 9 years ago

Initial DB schema changes here: https://github.com/jakev/dtfmods-core/commit/c4d6f57c0604de44185f46bbcfa55e4a3eac0f17

jakev commented 9 years ago

New sharedid module should support:

# Listing all shared ID applications
$ dtf sharedid 
# List all apps with a given shared ID
$ dtf sharedid android.uid.system
jakev commented 9 years ago

AppDb additions: getAppsBySharedUserId( shared_user_id )

Added new sharedid written in python: https://github.com/jakev/dtfmods-core/commit/fde73e8c4f641b58584b82b09a076b1881d5220e