History log of /frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f36d53cbfc34dcadfe156f3037bf40b4908142a8 24-May-2017 Svet Ganov <svetoslavganov@google.com> Prune unused static libs and instant apps if space needed

We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.

Test: manual

bug:62045000

Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
64c8b79afddd1f59976e46d06740ee031e66389e 28-Apr-2017 Chad Brubaker <cbrubaker@google.com> Create Instant App cookie dir if it doesn't exist

Bug: 37778533
Test: run instant app in b/37778533
Change-Id: I54ef62f6e5a290f3ccfa49ebde2a9d64a38de6a6
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
fb4fb03cc3aa273c763df97f99eae1ba11594997 20-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Address API council comments" into oc-dev
0d277a7b189c8807d142b69dd8d00b17978a49a5 13-Apr-2017 Chad Brubaker <cbrubaker@google.com> Change ANDROID_ID for Instant Apps

ANDROID_ID for Instant Apps now has the following properties:
1) per-app scoped
2) reset if the user clears the Instant App
3) remains the same if the Instant App gets upgraded to an installed
app.

Note that if the user goes instant -> installed_1 -> uninstall ->
installed_2 the ANDROID_ID at installed_1 will not be the same as
installed_2. This was deemed better than the id changing on the upgrade
step.

Test: manual
Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
345ffa5421f4158b9c30439b9f18aed7b61aaea9 19-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Address API council comments

Test: cookie CTS tests pass

bug:37327624
bug:37325276
bug:37323696

Change-Id: I52b10470759e471629ec6772e115df94482eb341
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
8aa379e0eb2aa87129e8d95751eb5cdd5a435d38 05-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Make sure pending cookie persistence canceled

When a full app is uninstalled we delete its instant app
cookie but were not canceling a pending write which ended
up having the written cookie file after the app is uninstalled.

Test: InstantCookieHostTest#testCookieResetOnNonInstantReinstall

bug:36455310

Change-Id: Iec6d1f95f8ff731885241913808daf12ce3a5587
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
03f336b1fa8ac79f94d27e9bc8f9b3a312eab18c 01-Mar-2017 Todd Kennedy <toddke@google.com> set bounds

temporary workaround to prevent ephemeral app uninstallation from
crashing the system server.

Bug: 35673160
Test: manually uninstall ephemeral app and see the framework doesn't crash
Change-Id: I6542206b51a00ca4321de4310a59620569b1516a
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
5653fd68f9af064e38dcbdff4b58f58e8949b027 19-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix a race in persisting instant cookie"
312c6cc6a6d53719cc7cfbf5e113bf077fb24313 18-Feb-2017 Svet Ganov <svetoslavganov@google.com> Fix a race in persisting instant cookie

Test: CTS passes and manual too

Change-Id: I8beb7edb84e5f7e2a181a9c237d6f0f761805d70
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
8ab1a6abc2af233da63edc7bbe48ff5a9913a6cb 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix a race when persisting cookie data"
ee2028c31fc564b01b4acf652fadb39514d968cc 18-Feb-2017 Svet Ganov <svetoslavganov@google.com> Fix a race when persisting cookie data

bug:34983226

Test: CTS passes

Change-Id: I457154fecdc15c057e276358e443d3c941128ab2
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
be0b8896d1bc385d4c8fb54c21929745935dcbea 15-Feb-2017 Todd Kennedy <toddke@google.com> Revert "Revert "Per user setting for instant app""

This reverts commit be9ffa15af9e1906e9ffb505768328d62d4a3793.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ib21321cf157a79890de487060a093840f7182047
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
be9ffa15af9e1906e9ffb505768328d62d4a3793 15-Feb-2017 Guang Zhu <guangzhu@google.com> Revert "Per user setting for instant app"

Bug: 35390781

This reverts commit 2f5811dcfd840e149851a9333e27ef3cdddf7a46.

Change-Id: Ibb1c8dacbdc6908fc7fa2bc5dca664f2455162bf
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
2f5811dcfd840e149851a9333e27ef3cdddf7a46 30-Jan-2017 Todd Kennedy <toddke@google.com> Per user setting for instant app

The same application can run as either an instant app or an installed
app. Store this setting per-user instead of based upon the install
location.

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Iff565bb1ac10d631499f0bd0f69b401cb073c10e
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
7a12f9fa20fe21b586f13d24a5ffc32e7557da21 31-Jan-2017 Todd Kennedy <toddke@google.com> fix array index out of bounds

we can't be removing items from the list while we're iterating
through them!

Test: Manual
Change-Id: I18c70aced01269e196adbf4aa538c42345d74a95
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java
096d304ae3d85c1bfcda1a1d9cd4eb13d0815500 31-Jan-2017 Svetoslav Ganov <svetoslavganov@google.com> Add instant cookie APIs

This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and across the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of uninstalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around. If we have cookie data stored and the
signing cert of the app changes when it gets re-intalled
we wipe the cookie.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5
/frameworks/base/services/core/java/com/android/server/pm/InstantAppRegistry.java