OSDN Git Service

Adding "Install Other Apps" in App Info page
authorSuprabh Shukla <suprabh@google.com>
Wed, 1 Mar 2017 01:08:10 +0000 (17:08 -0800)
committerSuprabh Shukla <suprabh@google.com>
Fri, 3 Mar 2017 22:46:16 +0000 (14:46 -0800)
commit86d52db588c598cd8277182db56e8eafc4cfdae1
tree427c8f4b41439eec7399fcafd7defeac9473a688
parentd030d7b58fe2a1850a7a8e087a99e2343b31de4e
Adding "Install Other Apps" in App Info page

Added a preference link to manage external sources in the app info
screen just like other special access permissions.

Test: Manually checked that the link appears on apps once their app op
is set to allow or deny.
Also, added some basic robolectric unit tests:
make -j32 RunSettingsRoboTests

Bug: 35481942
Change-Id: If687778b7a64fb7d278508b78d06272253a98e3e
src/com/android/settings/applications/AppStateInstallAppsBridge.java
src/com/android/settings/applications/ExternalSourcesDetails.java
src/com/android/settings/applications/InstalledAppDetails.java
src/com/android/settings/applications/ManageApplications.java
tests/robotests/src/com/android/settings/applications/AppStateInstallAppsBridgeTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/applications/ExternalSourcesDetailsTest.java [new file with mode: 0644]