OSDN Git Service

Allows to launch only authenticator owned activities
authorSunny Shao <sunnyshao@google.com>
Mon, 11 May 2020 14:55:05 +0000 (22:55 +0800)
committerSunny Shao <sunnyshao@google.com>
Wed, 13 May 2020 02:55:49 +0000 (10:55 +0800)
commitd6d8f988449617d757a5d7439314198d10d6ee78
tree3c06cc53b9220cb6bc5bbf7071911a9bb23ccc3b
parent60920beb86b55cf76fec236bcd4f6b09131b4d85
Allows to launch only authenticator owned activities

- 3rd party developers can define himself-authenticator
  and use the accountPreferences attribute to load the
  predefined preference UI.
- If a developer defines an action intent to launch the
  other activity in xml and it would return true due
  to the true exported attribute and no permission.
- To avoid launching arbitrary activity. Here allows
  to launch only authenticator owned activities.

Bug: 150946634
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
Test: PoC app
Change-Id: I5ce1a0b3838db7b3fbe48c6ea23d5f093d625cdb
src/com/android/settings/accounts/AccountTypePreferenceLoader.java