Commit Graph

4713 Commits

Author SHA1 Message Date
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
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
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
The Android Automerger
f287780643 Manually merge commit 'b0b6afc' into nyc-dev-plus-aosp 2016-08-30 00:26:21 +00:00
Etan Cohen
b0214c4cd5 [NAN] Udpate NAN API documentation, clean-up visibility
Change-Id: I951340eebab35c10efe98dab86b58fe8efada169
(cherry picked from commit 2e37b06dde)
2016-08-29 11:26:55 -07:00
TreeHugger Robot
357773aa62 Merge "Add KeyAttestationApplicationIdProviderService to SystemServer" 2016-08-29 16:18:51 +00:00
Fyodor Kupolov
0f149f412b Update services info before returning authenticators am: 814464894c am: 7540b79fee am: 69192b00e6
am: 44811aba74

Change-Id: Ie65a1d569c78860b4f5212ddf257408328267398
2016-08-26 21:13:50 +00:00
Todd Kennedy
3b0859d6bb Implement new ephemeral resolver design am: fea1b776e9
am: 6485f6eddf

Change-Id: I2bca8e38da973a0a1e7d5d11b5d094dc0188cc40
2016-08-26 20:43:26 +00:00
Todd Kennedy
6485f6eddf Implement new ephemeral resolver design
am: fea1b776e9

Change-Id: Ied8a583de6247a5d826805dfbb5e8edbecdcdb27
2016-08-26 20:32:45 +00:00
TreeHugger Robot
80855e154e Merge "Implement new ephemeral resolver design" into nyc-mr1-dev 2016-08-26 20:28:04 +00:00
Paul Stewart
163a135246 Document correct context for obtaining WifiManager am: 0e164b199e
am: b09557b3cf

Change-Id: I792d164a20e2e98fc58b54bab4f1f43e1eb2fe59
2016-08-26 18:01:53 +00:00
Paul Stewart
0e164b199e Document correct context for obtaining WifiManager
Added comments to both WifiManager WIFI_SERVICE.

Bug: 25015174
Change-Id: Ibd1e21d860ef2b7cc432b3da76671d22c02ef7cb
2016-08-26 09:27:04 -07:00
Mark Lu
2721e7db4a docs: fix link in Loader reference page am: 9f52b7a4a8
am: c6612637bb

Change-Id: I0472093b0019a421319c2acf29a4e36b87e75cd6
2016-08-26 01:15:49 +00:00
Mark Lu
e16c82d224 docs: fix link in Loader reference page am: 9f52b7a4a8
am: f496b9a981

Change-Id: I7a7ee695fadb2e0774ef84724a4320fc73b45a88
2016-08-26 01:03:56 +00:00
Mark Lu
c6612637bb docs: fix link in Loader reference page
am: 9f52b7a4a8

Change-Id: I98f4ca957005ffc795e41be321b6b4995c6242f0
2016-08-26 01:02:36 +00:00
Mark Lu
f496b9a981 docs: fix link in Loader reference page
am: 9f52b7a4a8

Change-Id: I32164f55f9b42dc50f13756c942644350a7d643e
2016-08-26 00:53:53 +00:00
Fyodor Kupolov
44811aba74 Update services info before returning authenticators am: 814464894c am: 7540b79fee
am: 69192b00e6

Change-Id: I4615e7480647b1d15d6e083f11e21acb4dbfefc6
2016-08-25 00:21:11 +00:00
Fyodor Kupolov
7540b79fee Update services info before returning authenticators
am: 814464894c

Change-Id: I3d7eb42ef73ad77cb44c251a493ae967bcc0f651
2016-08-25 00:08:38 +00:00
Fyodor Kupolov
814464894c Update services info before returning authenticators
Added RegisteredServicesCache.updateServices method which allows callers
to request an update to services for which package has been updated.

Added a call to updateServices in getAuthenticatorTypesInternal

Test: Manually tested update flow on test authenticator with an artificial
      delay in broadcast handling
Bug: 30979262
Change-Id: I499b2ee0be53fed01201c56068d929b6d621a78e
2016-08-24 22:47:38 +00:00
Svet Ganov
890a210e41 resolve merge conflicts of eeeebd3 to master
Change-Id: I3aa0d1b9228be408837f7dd93a9b8268e564fc65
2016-08-24 00:13:36 -07:00
Svetoslav Ganov
eeeebd346a Only sync adapters with access can see an account - framework am: 5cb2973495
am: 721402e75a

Change-Id: I361b009afa6c6e658157e6e04bf88096e8331fd0
2016-08-24 02:08:19 +00:00
Svetoslav Ganov
5cb2973495 Only sync adapters with access can see an account - framework
It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
 - it is signed as the authenticator for this account
 - has the GET_ACCOUNTS permission
 - has an auth token for the account
 - it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
2016-08-23 21:43:27 +00:00
Todd Kennedy
d64d0f9e83 No need to check package name am: afb5269ad6 am: b9de7e33a3
am: 8860c34b32

Change-Id: If42958ce2661e7516a245954daa6da4a6897c2a2
2016-08-23 18:16:08 +00:00