Commit Graph

253881 Commits

Author SHA1 Message Date
Bert McMeen
70c6411a10 Docs: Wear preview 3 - tweaks to gradle snippet
Bug: 31910705
Change-Id: Ia58ac7bec8e748a797c6213bbd31a05f876e2424
2016-10-03 13:50:14 -07:00
Phil Weaver
8051c9222e Merge "Make magnification ignore invisible wallpaper." into nyc-mr1-dev 2016-10-03 20:31:23 +00:00
Dianne Hackborn
c26c98cd4a Merge "Fix issue #31403654: Elevation of privilege vulnerability in deviceidle service" into nyc-mr1-dev 2016-10-03 20:21:51 +00:00
songjinshi
5754b41c20 Fix thread race caused double free issue.
The SharedZip's Asset is not thread-safety,the getResourceTableAsset()
and setResourceTableAsset(Asset* asset) function of the SharedZip is
not sync with a same lock.

Consider the following sequence of events:
Thread A calls setResourceTableAsset(Asset* asset),it will set
mResourceTableAsset = asset; then to calls getBuffer() of the asset.
Thread B calls getResourceTableAsset(),which return mResourceTableAsset,
then to calls getBuffer() of the mResourceTableAsset,the asset and
mResourceTableAsset is same one object.
Thread A to delete mZipInflater in getBuffer().
Thread B to delete mZipInflater in getBuffer().

It will cause crash becuase double delete mZipInflater in getBuffer().

https://code.google.com/p/android/issues/detail?id=211941

Bug:31734545
Change-Id: I5a7d67fdf64c4aa03f505b37a2fa840f4443d158
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
2016-10-03 20:13:12 +00:00
TreeHugger Robot
bf79852ae4 Merge "Add metrics logging for critical fingerprintd errors" into nyc-mr1-dev 2016-10-03 18:49:40 +00:00
Adarsh Fernando
bce10d350d Docs: Redirect for Android Studio IR Flight Recorder am: 1face37061
am: 5fe735fe2c

Change-Id: I1acf26e382b8bbcc505e03873d9be6f1c8306bf7
2016-10-03 15:57:55 +00:00
Adarsh Fernando
5fe735fe2c Docs: Redirect for Android Studio IR Flight Recorder
am: 1face37061

Change-Id: Ic7d2eebff72e8118993606e5758ced4f4e9f5e64
2016-10-03 15:53:55 +00:00
Jorim Jaggi
dadafd4109 Reload state when user unlocks
Test: Unlock freshly booted non-FBE device, make sure the transition
is fast as well as the icons have the correct state

Change-Id: I6427427d16edeceb0f410be0b88de601a3dffdb4
Fixes: 31203310
2016-10-03 05:56:47 -07:00
Adarsh Fernando
1face37061 Docs: Redirect for Android Studio IR Flight Recorder
Bug:31631770
Change-Id: Id3c4b8d141242521bef6364af2bbd47b950258c2
2016-10-01 12:23:49 -07:00
TreeHugger Robot
b8e046a8a2 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-01 08:55:17 +00:00
TreeHugger Robot
a381e699e0 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-01 08:51:46 +00:00
TreeHugger Robot
8990b8c29c Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-01 08:51:07 +00:00
Bill Yi
d2671e488d Import translations. DO NOT MERGE
Change-Id: Ie8517dd138d533fdfc983725187ffe9f10b4dc2c
Auto-generated-cl: translation import
2016-10-01 00:19:43 -07:00
Bill Yi
453f915f94 Import translations. DO NOT MERGE
Change-Id: I8dfdc1a55bbaa0b8f2104959871f9f9f342cdc99
Auto-generated-cl: translation import
2016-10-01 00:06:44 -07:00
Hemal Patel
d7ef4228e2 Merge "Docs: Fixed the Service link" into nyc-dev am: b4be5089f3
am: 14557acbfc

Change-Id: I8595ac0c4e9e14b6c655c0fb2ad88e2801d59abe
2016-10-01 01:55:48 +00:00
Hemal Patel
63b5e3ddd1 Docs: Fixed the Service link am: 1918214589
am: eb21088b67

Change-Id: Ia687d1ba27eee87abe412e8a8dd11e49e5f02100
2016-10-01 01:54:45 +00:00
Hemal Patel
14557acbfc Merge "Docs: Fixed the Service link" into nyc-dev
am: b4be5089f3

Change-Id: Ied25211be5b868b7792d31a89feebf54ee5ad9dd
2016-10-01 01:46:01 +00:00
Hemal Patel
eb21088b67 Docs: Fixed the Service link
am: 1918214589

Change-Id: Icfd4e033b7ef9bd915f106abc789f11fb4ede301
2016-10-01 01:45:58 +00:00
TreeHugger Robot
b4be5089f3 Merge "Docs: Fixed the Service link" into nyc-dev 2016-10-01 01:36:15 +00:00
TreeHugger Robot
fee635cc28 Merge "Implement untetherAll as calls to stopTethering" into nyc-mr1-dev 2016-10-01 01:21:38 +00:00
TreeHugger Robot
a6afc56f94 Merge "Notify NetworkPolicyManagerService on tethering changes" into nyc-mr1-dev 2016-10-01 01:21:12 +00:00
Dirk Dougherty
559013e711 Update preview-community redirect to point at +AD.
Change-Id: Ibea78523ffb3128597c562b03e8ae6b42a5e93fa
2016-09-30 18:18:20 -07:00
Phil Weaver
473af05b82 Make magnification ignore invisible wallpaper.
Magnification was assuming that all windows for which
isOnScreen() returned true were visible, but that is not
true for at least wallpapers that have been made invisible.
Adding a check for visibility in addition to on screen.

Bug: 7215285
Change-Id: Iadea37c9eec981f1d68c5a42959debb58cbab264
2016-09-30 18:11:39 -07:00
Christopher Tate
91bb0e5cca Explicitly close FD binder parameters in backup/restore API calls
CloseGuard is grateful.

Bug 30893100

Change-Id: Ia6bd4d88204839add59d9d245aad673d67b11bea
2016-09-30 17:52:19 -07:00
Bill Yi
53edc8f204 Import translations. DO NOT MERGE
Change-Id: I7fdd11e47d67879376ace9d33de1a7add58ae133
Auto-generated-cl: translation import
2016-09-30 17:38:43 -07:00
Jim Miller
c57c8d934c Add metrics logging for critical fingerprintd errors
This adds logging when fingerprintd dies or invoked functions
fail so we can track driver breakage:

- failure to start fingerprintd (fingerprintd_openhal_error)
- fingerprintd dies (fingerprintd_died)
- call to authenticate/enroll/enumerate/remove fails

Fixes bug 30896409

Change-Id: Ic53fcd551ba909ef141893796b33b52cd5e56395
2016-09-30 17:26:23 -07:00
Philip P. Moltmann
a40092d6d2 Merge "Do not access MTP devices when disabled." into nyc-mr1-dev 2016-10-01 00:16:12 +00:00
Shreyas Basarge
ba1f790369 Add a delay before scheduling local syncs
Pre-N devices display this delay. This should help
in batching syncs (saving battery and bandwidth).
Also, certain apps (Gmail) rely on this delay
to allow users to undo deletes.

Bug: 28057410
Change-Id: I17178c87e2f8315237321bdda1e146e8da492ffa
2016-10-01 01:11:38 +01:00
Dianne Hackborn
531c0237fc Merge "Work on issue #29422027: APR: Runtime restarts in system_server" into nyc-mr1-dev 2016-09-30 23:27:37 +00:00
Hemal Patel
c29dac71c0 Docs: Fixed the menu navigation instructions
Fixed the menu navigation instructions for importing samples.

Bug: 30881736
Change-Id: I438ac2137caec0f4809a6c5f37d939a397866bc9
2016-09-30 16:19:51 -07:00
Tao Bao
473b048cf7 Merge "Handle the race condition when calling uncrypt services." into nyc-mr1-dev 2016-09-30 23:07:38 +00:00
TreeHugger Robot
00515f8eab Merge "SurfaceView only call forceDisconnect if isValid" into nyc-mr1-dev 2016-09-30 23:05:50 +00:00
Hemal Patel
ab262da7df Merge "Docs: Fixed the code sample" into nyc-dev am: 91690d0c68
am: 3b097c9980

Change-Id: I0b7923ca2f6bd6b4dffe3e535d89d3a42697b8ee
2016-09-30 22:49:43 +00:00
Hemal Patel
d44d34d329 Docs: Fixed the code sample am: a80822a98b
am: 313b1d7310

Change-Id: I225d1eafeacf85a19c86c28b413e550c824a8282
2016-09-30 22:48:41 +00:00
Hemal Patel
3b097c9980 Merge "Docs: Fixed the code sample" into nyc-dev
am: 91690d0c68

Change-Id: I3f6874ac6b77782f49f566641ad9c3cc4df3979c
2016-09-30 22:42:15 +00:00
Hemal Patel
313b1d7310 Docs: Fixed the code sample
am: a80822a98b

Change-Id: Ib8146f5e2817e13caf9cc8f91e47423356423d8e
2016-09-30 22:42:12 +00:00
Hemal Patel
91690d0c68 Merge "Docs: Fixed the code sample" into nyc-dev 2016-09-30 22:27:57 +00:00
Philip P. Moltmann
5201f1e61c Do not access MTP devices when disabled.
The USB data transfer is disabled we should not allow access MTP devices
(e.g.
usb sticks). We have two ways of accessing them: Either by mounting them
or by creating a MTPDevice in an app.

Of course an app could implement implement their own MTPDevice
implementation. In this case we cannot enforce the policy without
completely suppressing all MTP USB devices which would be too
restrictive.

Note: When the policy is set we do _not_ disconnect already connected
MTP devices

Fixes: 31472955
Change-Id: I6080c48c49657102774b2b3b4d89ff030245a266
2016-09-30 22:24:23 +00:00
TreeHugger Robot
971c42180b Merge "Increase char limit for string." into nyc-mr1-dev 2016-09-30 22:23:22 +00:00
Hemal Patel
1918214589 Docs: Fixed the Service link
Bug: 29086415
Change-Id: Id9505ade39c19eb817f556d72f689568148e1782
2016-09-30 14:59:23 -07:00
Mark Lu
e3be77810d Merge "Docs: Updates to backup documentation" into nyc-dev am: d93a31bbe0
am: 6bd0c689e9

Change-Id: I7b3e73ff2664388e585e59b96d09f184b73c2ba6
2016-09-30 21:57:15 +00:00
Mark Lu
49798d8b15 Docs: Updates to backup documentation am: f0968050f6
am: 0109b0f83a

Change-Id: Ib966eb7e733064344d10c2c70ee97e995edb7a5d
2016-09-30 21:56:06 +00:00
Mark Lu
6bd0c689e9 Merge "Docs: Updates to backup documentation" into nyc-dev
am: d93a31bbe0

Change-Id: I852b6a74f0be30a063c30bdb82553ba80f2717fe
2016-09-30 21:49:28 +00:00
Mark Lu
0109b0f83a Docs: Updates to backup documentation
am: f0968050f6

Change-Id: I6364318aca4e56dc72a049d20b5cab99190d7ed4
2016-09-30 21:49:23 +00:00
David Friedman
f7b37fa056 Docs: Minor TOC and link fixes for newly released iteration of Perf docs. am: a9c3a0b529
am: b25c08fa32

Change-Id: I4c8f976ab1f679179f2b3221d8889088309bfdc0
2016-09-30 21:45:35 +00:00
Mark Lu
d93a31bbe0 Merge "Docs: Updates to backup documentation" into nyc-dev 2016-09-30 21:40:32 +00:00
David Friedman
b25c08fa32 Docs: Minor TOC and link fixes for newly released iteration of Perf docs.
am: a9c3a0b529

Change-Id: I60cd53d9a3a70c7f16a52bb7358b90f01833c118
2016-09-30 21:39:35 +00:00
John Reck
6ba466ff3e SurfaceView only call forceDisconnect if isValid
Change-Id: I683c2f937f44d8b3d912839a3e91cbd5b5c7f437
Fixes: 31778946
Test: Manual, launch Cookie Jam then tap recents
2016-09-30 21:33:34 +00:00
David Friedman
a9c3a0b529 Docs: Minor TOC and link fixes for newly released iteration of Perf docs.
Change-Id: I61a9477ae129138932d4da29253bc2e6ece8357d
2016-09-30 14:28:56 -07:00
Mark Lu
f0968050f6 Docs: Updates to backup documentation
Change-Id: I9349e5f8585687b1159f13029b6c13b89dafd8c9
2016-09-30 13:36:50 -07:00