Commit Graph

4734 Commits

Author SHA1 Message Date
John Reck
32995223a8 Convert utils fastjni -> @FastNative
Test: builds & boots, refactor no behavior change
Change-Id: Ieb569a70fd05b88a8d2bd7b285099c1fc1888a75
2016-10-10 07:59:25 -07:00
Nicolas Prévot
4fc56e2c10 Merge "Don't allow the shell to change admin-locked app permissions." 2016-10-06 13:36:11 +00:00
Robin Lee
f1ac71dbe2 Merge "Redact work notifications separately from personal" 2016-10-05 14:59:31 +00:00
Nicolas Prevot
700e1e7ee8 Don't allow the shell to change admin-locked app permissions.
BUG:27432532
Change-Id: I67f8794ea923edb5024033bb2a4474a1fb6d5fd9
2016-10-03 16:17:04 +01:00
Kevin Hufnagle
9c3cbe634c docs: Added note in getCacheDir() that developers can use directory obtained from getExternalCacheDir() to store app caches larger than 1 MB. am: e9681e192a am: ba65a92855
am: cf7a2e1efd

Change-Id: Ica7b4c4a6544a4b7f71ddb26dbc979b11abab81c
2016-09-27 06:50:25 +00:00
Kevin Hufnagle
e49b2ac9ee docs: Removed all instances of "i.e." in IntentFilter parameter descriptions. am: e20b3d78e3 am: e0360165d3
am: ffafee82cd

Change-Id: I5a367c279f88f6046df67fd19312067984bb1edc
2016-09-27 06:46:02 +00:00
Kevin Hufnagle
5b4664b2de docs: Fixed example of ACTION_VIEW intent am: aedfd75b1b am: 108623004f
am: 978be65ce7

Change-Id: Ib487f0b406faf94d32a67444a4068840301f03bd
2016-09-27 01:18:42 +00:00
Kevin Hufnagle
9dc7f07f26 docs: Adjusted return value desc. for getApplicationEnabledSetting am: 5add769f59 am: 1fb3dec4be
am: 5ca3c61069

Change-Id: I4bc998a8b1848068d030b3c826189836de3c7375
2016-09-27 01:04:33 +00:00
Kevin Hufnagle
cf7a2e1efd docs: Added note in getCacheDir() that developers can use directory obtained from getExternalCacheDir() to store app caches larger than 1 MB. am: e9681e192a
am: ba65a92855

Change-Id: Ia3fc2e6cfc85269a04a721d7c6fe14e04555a121
2016-09-27 00:03:58 +00:00
Kevin Hufnagle
ffafee82cd docs: Removed all instances of "i.e." in IntentFilter parameter descriptions. am: e20b3d78e3
am: e0360165d3

Change-Id: I02e413c1dbf2cfe684a0b73aafd7075b4db4c090
2016-09-27 00:02:16 +00:00
Kevin Hufnagle
ba65a92855 docs: Added note in getCacheDir() that developers can use directory obtained from getExternalCacheDir() to store app caches larger than 1 MB.
am: e9681e192a

Change-Id: I4d84c62b039746cd70c74a0bc9edbffc6df3a44c
2016-09-26 23:35:11 +00:00
Kevin Hufnagle
e0360165d3 docs: Removed all instances of "i.e." in IntentFilter parameter descriptions.
am: e20b3d78e3

Change-Id: I37821ca96243491cf642a58475dd96e5e7b52962
2016-09-26 23:33:43 +00:00
Kevin Hufnagle
978be65ce7 docs: Fixed example of ACTION_VIEW intent am: aedfd75b1b
am: 108623004f

Change-Id: I7efbc417f5cd7ebfa8a6e19d110a742a22bdd465
2016-09-26 23:17:11 +00:00
Kevin Hufnagle
108623004f docs: Fixed example of ACTION_VIEW intent
am: aedfd75b1b

Change-Id: I2ac1bd94b7cacc2b1aaed6caf2f7044db5a892c6
2016-09-26 22:59:37 +00:00
Kevin Hufnagle
5ca3c61069 docs: Adjusted return value desc. for getApplicationEnabledSetting am: 5add769f59
am: 1fb3dec4be

Change-Id: I0137a54c007b590891486fbb5a4c167b2fd52961
2016-09-26 22:56:36 +00:00
Kevin Hufnagle
1fb3dec4be docs: Adjusted return value desc. for getApplicationEnabledSetting
am: 5add769f59

Change-Id: Ibffca6373a01e74bc25a4f44afbc7c4463810124
2016-09-26 22:46:08 +00:00
Kevin Hufnagle
e9681e192a docs: Added note in getCacheDir() that developers can use directory
obtained from getExternalCacheDir() to store app caches larger than
1 MB.

Bug: 22505268
Change-Id: I9972ba5ef7b43a135c00ac48a2e5ccb1fcc5b103
2016-09-23 16:44:03 -07:00
Kevin Hufnagle
e20b3d78e3 docs: Removed all instances of "i.e." in IntentFilter parameter
descriptions.

Bug: 5877117
Change-Id: Iccb16589a72d3180330f13ec224578a0c5ad81c6
2016-09-22 18:33:57 -07:00
Svet Ganov
973edd19db Don't show account access request UI until app launched.
Sync adapters that don't have account access cannot run until
the user explicitly approves in the UI. This is spammy given
the user may not use the app right away. This change doesn't
show the notificaiton until the app has run.

bug:31162498

Change-Id: I1f4f2d2e9426f78763590e8aa542b94d6e93e488
2016-09-21 13:55:02 +00:00
TreeHugger Robot
2a9b220608 Merge "While-list apps to access account if already saw it" 2016-09-21 07:03:05 +00:00
Svet Ganov
f6d424f133 While-list apps to access account if already saw it
Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). However, if the
sync adapter package already got the account from another
app which means it already saw the account we white-list
the sync adapter app to access the account as it already
saw it - the bird is out of the cage.

bug:31162498

Change-Id: I2b72f3b0d6307561ed68db2f2e9c900b15e8d098
2016-09-20 22:21:07 -07:00
Svetoslav Ganov
8b6456bc88 Merge "Move device serial behing a permission" 2016-09-21 03:32:47 +00:00
Andrii Kulian
b10330d519 Use Configuration#unset() instead of #setToDefaults() for clearing
Now Configuration.EMPTY has fontScale set to 0 instead of default 1.
To get config equal to empty unset() method should be used.
Because of incorrect usage of setToDefaults() there was a black flash
when exiting split-screen because override config was no completely
empty. Fixing that also allows us to simplify things a bit when checking
if override config changed.

Bug: 31533188
Test: manual - long-press overview to enter split-screen, repeat to exit.
Change-Id: I6bf7994ff88ebb42db2e2357b762857710432a58
2016-09-19 11:34:22 -07:00
TreeHugger Robot
944b003747 Merge "Support for specifying orientation in WindowContainer" 2016-09-14 21:21:21 +00:00
liulvping
83a219be68 Merge "fix NullPointerException in RegisteredServicesCache" am: 4b1a8f46d6 am: 506bf0741a am: 5f4f8d2441
am: 9eadea585c

Change-Id: I928d9cccf7c99f36540dcde1cf31c4e35b3d79ff
2016-09-14 20:11:40 +00:00
Wale Ogunwale
5136249a71 Support for specifying orientation in WindowContainer
Also,
- Fixed failing tests when they are ran as a package vs.
individual classes due to multiple window manager instance.
- Correct some isVisible logic to so a window container that
is invisible is not said to be visible, because one of its
children is visible.

Bug: 30060889
Change-Id: I1bb8730361be2a9f5ce88cd59b7d57d5a459bde6
2016-09-14 08:43:12 -07:00
Todd Kennedy
f3a88c353d Add filter ordering am: c2e96d45d2 am: cdda4eed12
am: 792cac6fd6

Change-Id: I94c998b9b32c4e6d3e7162cda4ff8bc7723dd2d9
2016-09-13 23:26:22 +00:00
liulvping
9eadea585c Merge "fix NullPointerException in RegisteredServicesCache" am: 4b1a8f46d6 am: 506bf0741a
am: 5f4f8d2441

Change-Id: Iedcf57ee7856fb9abac459230e686a351370543d
2016-09-13 21:15:51 +00:00
liulvping
5f4f8d2441 Merge "fix NullPointerException in RegisteredServicesCache" am: 4b1a8f46d6
am: 506bf0741a

Change-Id: I0ec538fc78a512441517d1205ac3d34232ce992e
2016-09-13 21:10:22 +00:00
Svet Ganov
37e43275ee Move device serial behing a permission
Build serial is non-user resettable freely available deivice
identifier. It can be used by ad-netowrks to track the user
across apps which violates the user's privacy.

This change deprecates Build.SERIAL and adds a new Build.getSerial()
API which requires holding the read_phone_state permission.
The Build.SERIAL value is set to "undefined" for apps targeting
high enough SDK and for legacy app the value is still available.

bug:31402365

Change-Id: Iddd13430b2bd1d9ab4966e31038ecabdbdcec06d
2016-09-11 18:44:38 +00:00
Svet Ganov
c78be8772a [DO NOT MERGE] Don't show account access request UI until app launched. am: d63cde7ba4
am: 99d29ddf42

Change-Id: I1e6977d2478bf695d9840a72cba6e0e1b600b1e6
2016-09-10 01:01:50 +00:00
Svet Ganov
99d29ddf42 [DO NOT MERGE] Don't show account access request UI until app launched.
am: d63cde7ba4

Change-Id: I06a6b98c9c4a1cd67ed155d42cf4fe5149015675
2016-09-10 00:54:43 +00:00
Svet Ganov
d63cde7ba4 [DO NOT MERGE] Don't show account access request UI until app launched.
Sync adapters that don't have account access cannot run until
the user explicitly approves in the UI. This is spammy given
the user may not use the app right away. This change doesn't
show the notificaiton until the app has run.

bug:31162498

Change-Id: I1f4f2d2e9426f78763590e8aa542b94d6e93e488
2016-09-09 15:13:07 -07:00
Todd Kennedy
792cac6fd6 Add filter ordering am: c2e96d45d2
am: cdda4eed12

Change-Id: I6c4782393a5f694cba8238a05e60939169bd464f
2016-09-09 20:08:58 +00:00
Todd Kennedy
cdda4eed12 Add filter ordering
am: c2e96d45d2

Change-Id: I9bc8994293a45684238c7d1377d30ef8c049ce81
2016-09-09 20:04:30 +00:00
Kevin Hufnagle
aedfd75b1b docs: Fixed example of ACTION_VIEW intent
The ACTION_VIEW intent contained a content path that was inconsistent
with each of the other examples on the Intent reference page. Added
the "people" directory to the content path to remedy this issue.

Bug: 26405268
Change-Id: Ieb4f67e072338a108b9775d3bafad3d0773533d2
2016-09-08 21:56:25 -07:00
Svet Ganov
7580351e9e [DO NOT MERGE] While-list apps to access account if already saw it am: 91d37f43c7
am: f56f70365d

Change-Id: I3a553a7efe34feb9fbfa5d5c504874a2780bf132
2016-09-09 02:42:23 +00:00
Svet Ganov
91d37f43c7 [DO NOT MERGE] While-list apps to access account if already saw it
Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). However, if the
sync adapter package already got the account from another
app which means it already saw the account we white-list
the sync adapter app to access the account as it already
saw it - the bird is out of the cage.

bug:31162498

Change-Id: I2b72f3b0d6307561ed68db2f2e9c900b15e8d098
2016-09-08 16:46:46 -07:00
Todd Kennedy
c2e96d45d2 Add filter ordering
Filter ordering allows automatic disambiguation between multiple filters
that matching a pattern. Ordering currently only works for EphemeralResolveInfo
objects.

Bug: 30837021
Change-Id: Ia217218c7c7d159dbd75d7733c45556e690d06d2
2016-09-08 15:34:03 -07:00
Robin Lee
92b83c6495 Redact work notifications separately from personal
This will strictly decrease the set of cases where work notifications
can be shown.

They will continue to honour the parent profile's settings, but will
also get redacted/hidden if the work profile has stricter settings
than the parent or when the parent is unlocked but the profile is still
locked.

Bug: 31001762
Change-Id: I2152631dbb8beb7a9899d6406b05f4447d757010
2016-09-08 13:41:48 +01:00
liulvping
bf76ee74c7 fix NullPointerException in RegisteredServicesCache
https://code.google.com/p/android/issues/detail?id=221932

Change-Id: I67c0b799d10f4b9c8fa0779069d23cc49916b395
Signed-off-by: liulvping <liulvping@xiaomi.com>
2016-09-08 01:20:34 +00:00
Andreas Gampe
2a04b0876f Frameworks/base: Add new flow to OtaDexoptService am: d15300cf38
am: 32a092adf3

Change-Id: I7a49f0732cf24c2a86f798c6725a664e93092d7b
2016-09-06 21:25:36 +00:00
Andreas Gampe
82f8ebc2b7 Otadexopt: Expose progress percentage am: ff8ab4c9fa
am: 630a372a1d

Change-Id: I25937bf6a90076b37c5c322ccc8335fef3a9e6ee
2016-09-06 21:25:32 +00:00
Andreas Gampe
d15300cf38 Frameworks/base: Add new flow to OtaDexoptService
Add functionality to capture/intercept installd communication, and
use this to return the full communication for dexopt. These parameters
can be used to drive otapreopt_chroot directly.

Keep the old direct invocation alive until devices have transitioned
to a service that exposes this API.

In preparation for renaming of A/B OTA artifacts to include target
slot names.

Bug: 25612095
Bug: 28069686
Change-Id: I14728ee1266f3882cada8f08dd21891ed5f7a0cb
(cherry picked from commit cc241a580c)
2016-09-06 10:39:56 -07:00
Andreas Gampe
ff8ab4c9fa Otadexopt: Expose progress percentage
To be able to report progress of an A/B OTA dexopt, expose a
progress function that the script can query.

Bug: 25612095
Bug: 29223204
Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd
(cherry picked from commit bf06232f4d)
2016-09-06 10:39:20 -07:00
Tor Norbye
366a3f14f5 Merge "Add SYSTEM_HEALTH_SERVICE to the ServiceName typedef" 2016-08-31 19:23:41 +00:00
Tor Norbye
5afebff407 Add SYSTEM_HEALTH_SERVICE to the ServiceName typedef
Change-Id: I65c78a079152b2c4d82f8228ca14714ffff282c5
2016-08-30 17:12:53 -07:00
Paul Stewart
c4ec49b7b9 Document correct context for obtaining WifiManager am: 0e164b199e am: b09557b3cf
am: 163a135246

Change-Id: I943a2d60461633b9432bdf83c3b25086bba22b94
2016-08-30 17:20:02 +00:00
Mitchell Wills
722de5f9d0 DO NOT MERGE Manually merge commit 'f28778064383821ccf48c9570191f34a24aa513f' into nyc-mr1-dev-plus-aosp
Change-Id: I7cb1f97a5b931c2057a811d7947f47ad7320ef1c
2016-08-29 17:46:44 -07:00
Mark Lu
8e701d18fa docs: fix link in Loader reference page am: 9f52b7a4a8 am: c6612637bb
am: 2721e7db4a

Change-Id: Ic5976080ef14387a59914d05be38ecbabf86e332
2016-08-30 00:43:26 +00:00