OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge changes from topic "am-51363a78-f167-48aa-956c-f9bfd551a3a5" into oc-dev
Wale Ogunwale [Thu, 6 Sep 2018 01:03:00 +0000 (18:03 -0700)]
Merge changes from topic "am-51363a78-f167-48aa-956c-f9bfd551a3a5" into oc-dev
am: 471a4e6076

Change-Id: Ie51140203150cd9ef361e713700dfef128651f4e

5 years agoMerge "RESTRICT AUTOMERGE: Check both self and shared user id package for requested...
akirilov [Thu, 6 Sep 2018 00:32:07 +0000 (17:32 -0700)]
Merge "RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions." into oc-dev
am: 08d2780e1e

Change-Id: I3d963182b12d33718157576105d10c7da56ec228

5 years agoMerge changes from topic "am-51363a78-f167-48aa-956c-f9bfd551a3a5" into oc-dev
TreeHugger Robot [Wed, 5 Sep 2018 23:39:21 +0000 (23:39 +0000)]
Merge changes from topic "am-51363a78-f167-48aa-956c-f9bfd551a3a5" into oc-dev

* changes:
  [automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a skipped: defeb8c596 skipped: 6619efdd68
  [automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a skipped: defeb8c596
  [automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a
  [automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9
  [automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd
  Hide overlay windows when requesting media projection permission.

5 years agoMerge "RESTRICT AUTOMERGE: Check both self and shared user id package for requested...
TreeHugger Robot [Wed, 5 Sep 2018 23:19:12 +0000 (23:19 +0000)]
Merge "RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions." into oc-dev

5 years agoMerge changes from topic "am-bada3a56-09dc-47f9-ba2e-42434cf270e2" into oc-dev
Wale Ogunwale [Wed, 5 Sep 2018 22:57:16 +0000 (15:57 -0700)]
Merge changes from topic "am-bada3a56-09dc-47f9-ba2e-42434cf270e2" into oc-dev
am: 59113c7a51

Change-Id: I8111a46aaff0d20c4f1cc51292eb9567b196a5fa

5 years agoMerge changes from topic "am-bada3a56-09dc-47f9-ba2e-42434cf270e2" into oc-dev
TreeHugger Robot [Wed, 5 Sep 2018 22:24:16 +0000 (22:24 +0000)]
Merge changes from topic "am-bada3a56-09dc-47f9-ba2e-42434cf270e2" into oc-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5 am: 3290f3b22e skipped: 2e5c1ed2ad
  [automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5 am: 3290f3b22e
  [automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5
  [automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009
  RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission.

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
akirilov [Wed, 5 Sep 2018 22:18:01 +0000 (15:18 -0700)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608 am: 7d153c56c6 am: eff2a46342 am: ee4a2aee83 skipped: 879ecd17ab
am: 47a4d99c0c

Change-Id: I92cf75e9261fdf866687dc31632714be257ca7f7

5 years ago[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projectio...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:39:21 +0000 (20:39 +0000)]
[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5 am: 3290f3b22e skipped: 2e5c1ed2ad

Change-Id: Iaec0b5ba5b3adeb6ac1150c7e2cc5534432def11

5 years ago[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projectio...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:39:13 +0000 (20:39 +0000)]
[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5 am: 3290f3b22e

Change-Id: If7b764f16eaf2bdc7f5327351e74458fad48d250

5 years ago[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projectio...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:39:05 +0000 (20:39 +0000)]
[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009 am: 7ee280f8b5

Change-Id: Ic52ca75008a7a428fae62f9e1adc861ec51abc09

5 years ago[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projectio...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:38:53 +0000 (20:38 +0000)]
[automerger] RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission. am: 295af36009

Change-Id: I277a26c94cde1e77ddef8ddbc81dad3c963def8f

5 years agoRESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission.
Wale Ogunwale [Wed, 16 May 2018 23:42:29 +0000 (16:42 -0700)]
RESTRICT AUTOMERGE: Hide overlay windows when requesting media projection permission.

1: Cherry-pick ag/4067454 - Setting PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS
updateNonSystemOverlayWindowsVisibilityIfNeeded on relayoutWindow

2: Cherry-pick ag/3650369 - If PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS changed on
relayoutWindow() then updateNonSystemOverlayWindowsVisibilityIfNeeded

3: Add permissions to SystemUI to allow it to hide non-system overlays

Bug: 34170870
Test: manual (see bug for poc)
Change-Id: I57cb0f390d9a78e721c5ddce49a377d385002753

5 years ago[automerger skipped] Hide overlay windows when requesting media projection permission...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:38:14 +0000 (20:38 +0000)]
[automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a skipped: defeb8c596 skipped: 6619efdd68

Change-Id: I228c8aa69b9a20c00153f961dc8459aa7d839e39

5 years ago[automerger skipped] Hide overlay windows when requesting media projection permission...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:38:06 +0000 (20:38 +0000)]
[automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a skipped: defeb8c596

Change-Id: Ia209169eb2587ede53cc0199c5eaa79f5819e674

5 years ago[automerger skipped] Hide overlay windows when requesting media projection permission...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:38:00 +0000 (20:38 +0000)]
[automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9 skipped: 50f6c53a1a

Change-Id: I1e986e823c9fcb1fc11e3d634e0c6b31725a57c5

5 years ago[automerger skipped] Hide overlay windows when requesting media projection permission...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:37:54 +0000 (20:37 +0000)]
[automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd skipped: 3eb97a9bd9

Change-Id: Icec5121efdff64b3352ac985141f612277549b6d

5 years ago[automerger skipped] Hide overlay windows when requesting media projection permission...
Android Build Merger (Role) [Wed, 5 Sep 2018 20:37:48 +0000 (20:37 +0000)]
[automerger skipped] Hide overlay windows when requesting media projection permission. skipped: 5c3f5a02bd

Change-Id: I76ade50f15b706e3f4e6acc156884b83967e4b40

5 years agoHide overlay windows when requesting media projection permission.
Wale Ogunwale [Wed, 16 May 2018 23:42:29 +0000 (16:42 -0700)]
Hide overlay windows when requesting media projection permission.

1: Cherry-pick ag/4067454 - Setting PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS
updateNonSystemOverlayWindowsVisibilityIfNeeded on relayoutWindow

2: Cherry-pick ag/3650369 - If PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS changed on
relayoutWindow() then updateNonSystemOverlayWindowsVisibilityIfNeeded

3: Add permissions to SystemUI to allow it to hide non-system overlays

Bug: 34170870
Test: manual (see bug for poc)
Change-Id: I57cb0f390d9a78e721c5ddce49a377d385002753

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
Android Build Merger (Role) [Fri, 24 Aug 2018 22:45:45 +0000 (22:45 +0000)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608 am: 7d153c56c6 am: eff2a46342 am: ee4a2aee83 skipped: 879ecd17ab

Change-Id: I8aa91170ea26a60a714f05ce59a27a8c510ac197

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
Android Build Merger (Role) [Fri, 24 Aug 2018 22:45:36 +0000 (22:45 +0000)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608 am: 7d153c56c6 am: eff2a46342 am: ee4a2aee83

Change-Id: Ieaa5386305a8d359b5b79d99925bd12696bbce2a

5 years agoRESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions.
akirilov [Fri, 24 Aug 2018 22:43:05 +0000 (15:43 -0700)]
RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions.

Bug: 111752150
Test: Manual local test
Change-Id: I0b48a20525f87fc6f5ab8d7e70aa7d11cd747f97

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
Android Build Merger (Role) [Fri, 24 Aug 2018 22:45:29 +0000 (22:45 +0000)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608 am: 7d153c56c6 am: eff2a46342

Change-Id: I2f97a9e176348ae81e9d72f8cb3c22e3f74c0a81

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
Android Build Merger (Role) [Fri, 24 Aug 2018 22:45:22 +0000 (22:45 +0000)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608 am: 7d153c56c6

Change-Id: Idba111169b057b88a7b47dde4b734ede2c651310

5 years ago[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for reque...
Android Build Merger (Role) [Fri, 24 Aug 2018 22:45:15 +0000 (22:45 +0000)]
[automerger] RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions. am: 8da6786608

Change-Id: I2c9174d4b065aada8c4ba95e864b3628dd1f0975

5 years agoRESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions.
akirilov [Fri, 24 Aug 2018 22:43:05 +0000 (15:43 -0700)]
RESTRICT AUTOMERGE: Check both self and shared user id package for requested permissions.

Bug: 111752150
Test: Manual local test
Change-Id: I0b48a20525f87fc6f5ab8d7e70aa7d11cd747f97

6 years agoMerge "RESTRICT AUTOMERGE Relax security exception for backport" into oc-dev
Todd Kennedy [Fri, 17 Aug 2018 19:19:09 +0000 (12:19 -0700)]
Merge "RESTRICT AUTOMERGE Relax security exception for backport" into oc-dev
am: 5b78b0015e

Change-Id: I2da67334d41640ecac6f2b9b31c93d16ee48dc22

6 years agoMerge "RESTRICT AUTOMERGE Relax security exception for backport" into oc-dev
TreeHugger Robot [Fri, 17 Aug 2018 18:56:28 +0000 (18:56 +0000)]
Merge "RESTRICT AUTOMERGE Relax security exception for backport" into oc-dev

6 years ago[automerger skipped] Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad...
Mihai Popa [Wed, 15 Aug 2018 20:04:26 +0000 (13:04 -0700)]
[automerger skipped] Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into oc-dev
am: fc28b6b724  -s ours

Change-Id: I74179d805d746ccbb32546fb268cb52c8c9db514

6 years ago[automerger skipped] Merge changes from topic "am-c709fe3e-1c07-4ecd-9998-2477e3445dd...
Mihai Popa [Wed, 15 Aug 2018 19:52:34 +0000 (12:52 -0700)]
[automerger skipped] Merge changes from topic "am-c709fe3e-1c07-4ecd-9998-2477e3445dd4" into oc-dev
am: d5e6e1e83e  -s ours

Change-Id: Ie4fb9ca93c435f53cfe6db23b4902b094506b618

6 years agoMerge "Fix crash during cursor moving on BiDi text" into oc-dev
Mihai Popa [Wed, 15 Aug 2018 19:43:55 +0000 (12:43 -0700)]
Merge "Fix crash during cursor moving on BiDi text" into oc-dev
am: e385255db4

Change-Id: Ib094039b1c515af77fcc3c051352de5cb15861cb

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-mr2-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-mr2-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573 am: 7693ce7eaf
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into cw-f-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into cw-f-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-mr1-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-mr1-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-dr1-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-dr1-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into nyc-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into oc-dev
Mihai Popa [Wed, 15 Aug 2018 19:23:35 +0000 (19:23 +0000)]
Merge changes from topic "am-0f30ee3d-94a0-4dc3-bb14-762781265ad9" into oc-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573 am: 7693ce7eaf am: 11ba74cce9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573 am: 7693ce7eaf
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
  [automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
  Fix crash during cursor moving on BiDi text

6 years agoMerge changes from topic "am-c709fe3e-1c07-4ecd-9998-2477e3445dd4" into oc-dev
Mihai Popa [Wed, 15 Aug 2018 19:17:04 +0000 (19:17 +0000)]
Merge changes from topic "am-c709fe3e-1c07-4ecd-9998-2477e3445dd4" into oc-dev

* changes:
  [automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4 am: a959ee227a am: 8f85f5ffd2
  [automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4 am: a959ee227a
  [automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4
  [automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3
  [automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb
  Fix crash during cursor moving on BiDi text

6 years agoMerge "Fix crash during cursor moving on BiDi text" into nyc-dev
Mihai Popa [Wed, 15 Aug 2018 19:17:04 +0000 (19:17 +0000)]
Merge "Fix crash during cursor moving on BiDi text" into nyc-dev

6 years agoMerge "Fix crash during cursor moving on BiDi text" into oc-dev
Mihai Popa [Wed, 15 Aug 2018 19:16:40 +0000 (19:16 +0000)]
Merge "Fix crash during cursor moving on BiDi text" into oc-dev

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc...
Android Build Merger (Role) [Wed, 15 Aug 2018 19:13:15 +0000 (19:13 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4 am: a959ee227a am: 8f85f5ffd2

Change-Id: If854f61c2516a61ac36426c10eafd30bf638e919

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc...
Android Build Merger (Role) [Wed, 15 Aug 2018 19:13:10 +0000 (19:13 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4 am: a959ee227a

Change-Id: I7cb6623befc84f76e783b8800aa18ce28a8cc2b7

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc...
Android Build Merger (Role) [Wed, 15 Aug 2018 19:13:04 +0000 (19:13 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3 am: 99e3f649b4

Change-Id: I16bff43cf755e443ed53f7a45469351c498f977f

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3
Android Build Merger (Role) [Wed, 15 Aug 2018 19:12:59 +0000 (19:12 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb am: 12baaa2bc3

Change-Id: Iaf0aded3004f33fdb52dd0c19779329991b24746

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb
Android Build Merger (Role) [Wed, 15 Aug 2018 19:12:52 +0000 (19:12 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 82c84d5fbb

Change-Id: I221d974ba9402c088235d5bdb3c94e91cf4167ba

6 years agoFix crash during cursor moving on BiDi text
Seigo Nonaka [Thu, 19 Jul 2018 23:22:02 +0000 (16:22 -0700)]
Fix crash during cursor moving on BiDi text

The crash was introduced by Ib66ef392c19c937718e7101f6d48fac3abe51ad0
The root cause of the crashing is requesting out-of-line access for the
horizontal width. This invalid access is silently ignored by
TextLine#measure() method but new implementation end up with out of
bounds access.

To makes behavior as old implementation, calling getHorizontal instead
of accessing measured result array.

Bug: 78464361111580019
Test: Manually done
Change-Id: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8
(cherry picked from commit 960647d582911ae7ab8b9491097898e6c313aaf1)
Merged-In: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8

6 years agoFix crash during cursor moving on BiDi text
Seigo Nonaka [Thu, 19 Jul 2018 23:22:02 +0000 (16:22 -0700)]
Fix crash during cursor moving on BiDi text

The crash was introduced by Ib66ef392c19c937718e7101f6d48fac3abe51ad0
The root cause of the crashing is requesting out-of-line access for the
horizontal width. This invalid access is silently ignored by
TextLine#measure() method but new implementation end up with out of
bounds access.

To makes behavior as old implementation, calling getHorizontal instead
of accessing measured result array.

Bug: 78464361111580019
Test: Manually done
Change-Id: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8
(cherry picked from commit 960647d582911ae7ab8b9491097898e6c313aaf1)
Merged-In: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:29:36 +0000 (00:29 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573 am: 7693ce7eaf am: 11ba74cce9

Change-Id: Ia5fad0a4e89e6ff44c546ab71f37f657a3313f0d

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:29:30 +0000 (00:29 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573 am: 7693ce7eaf

Change-Id: Ic311029be8ab99f4aaae526d980da0f2436c5459

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:29:23 +0000 (00:29 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55 am: f7f008f573

Change-Id: I4122a5c548c4b3395bb546c459c34f10b319ad29

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:29:16 +0000 (00:29 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b am: 74ffd2bc55

Change-Id: I680848db0e845617323ecca36c380fdf890789d9

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:29:09 +0000 (00:29 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9 am: 65082f8f5b

Change-Id: I27b2220f568a37ff16b0dfc3376d7e46cb3659c9

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:28:52 +0000 (00:28 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f am: 04c7154fd9

Change-Id: Ic801a54fa6cb048ddf911c7b315849ab40bd7a52

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec...
Android Build Merger (Role) [Wed, 15 Aug 2018 00:28:41 +0000 (00:28 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2 skipped: 723f13d01f

Change-Id: If1607fb19bd806cb6d0f9b9010032e95df6549a8

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2
Android Build Merger (Role) [Wed, 15 Aug 2018 00:26:19 +0000 (00:26 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea am: b7a2d47ec2

Change-Id: I6995aab201805b64e81022db295356ef8abda30c

6 years ago[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea
Android Build Merger (Role) [Wed, 15 Aug 2018 00:26:10 +0000 (00:26 +0000)]
[automerger] Fix crash during cursor moving on BiDi text am: 95218ce7ea

Change-Id: Id97c3f508a0dcd82978b06891b3a979921d4be3a

6 years agoFix crash during cursor moving on BiDi text
Seigo Nonaka [Thu, 19 Jul 2018 23:22:02 +0000 (16:22 -0700)]
Fix crash during cursor moving on BiDi text

The crash was introduced by Ib66ef392c19c937718e7101f6d48fac3abe51ad0
The root cause of the crashing is requesting out-of-line access for the
horizontal width. This invalid access is silently ignored by
TextLine#measure() method but new implementation end up with out of
bounds access.

To makes behavior as old implementation, calling getHorizontal instead
of accessing measured result array.

Bug: 111580019
Test: Manually done
Change-Id: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8
Merged-In: Ib66ef392c19c937718e7101f6d48fac3abe51ad0

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into oc-dev
Atanas Kirilov [Tue, 14 Aug 2018 20:16:40 +0000 (13:16 -0700)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into oc-dev
am: 9d85c1ff53

Change-Id: I96184594285add35eacbac8e61da3120e4ce67a1

6 years agoMerge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package...
Atanas Kirilov [Tue, 14 Aug 2018 19:59:29 +0000 (12:59 -0700)]
Merge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package." into oc-dev
am: 5315bbfbc7

Change-Id: Ibde8da5add8ee9e51c03b1ebb68b80313a7a5bb6

6 years agoMerge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package...
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package." into nyc-dev

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into oc-dev
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into oc-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815 am: 9310c5bdd3 skipped: c565a7f7e2
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815 am: 9310c5bdd3
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb
  RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package.

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-mr2-dev
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-mr2-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815 am: 9310c5bdd3
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb
  RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package.

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into cw-f-dev
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into cw-f-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7 am: a491c04815
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb
  RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package.

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-mr1-dev
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-mr1-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb am: 7d252f5ed7
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb
  RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package.

6 years agoMerge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-dr1-dev
Atanas Kirilov [Tue, 14 Aug 2018 19:40:27 +0000 (19:40 +0000)]
Merge changes from topic "am-81126cf1-3777-4130-82b2-fbb9b5f9bcf8" into nyc-dr1-dev

* changes:
  [automerger] RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package. am: fa69d725eb
  RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package.

6 years agoMerge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package...
Atanas Kirilov [Tue, 14 Aug 2018 19:40:14 +0000 (19:40 +0000)]
Merge "RESTRICT AUTOMERGE: Revoke permissions defined in a to-be removed package." into oc-dev

6 years agoMerge changes from topic "back111085900" into oc-dev
Jeff Sharkey [Fri, 10 Aug 2018 18:12:36 +0000 (11:12 -0700)]
Merge changes from topic "back111085900" into oc-dev
am: f0095ec4d6

Change-Id: Ie563f7c17a201dadfe8a6696d2cf99aebc07b855

6 years agoDO NOT MERGE. Execute "strict" queries with extra parentheses.
Jeff Sharkey [Fri, 10 Aug 2018 18:05:51 +0000 (11:05 -0700)]
DO NOT MERGE. Execute "strict" queries with extra parentheses.
am: 5a55a72fcd

Change-Id: I4be4620726e30ca4131320bde074a2e572c51a42

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Jeff Sharkey [Fri, 10 Aug 2018 17:58:44 +0000 (10:58 -0700)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09 am: c09bb997e8 am: 424304f893 am: b2e2b1386f skipped: a2ad2596b7
am: 4ccfb1d0aa

Change-Id: Iffccf38fd5e090757a2610d7b2cea6f9eacfb51b

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Jeff Sharkey [Fri, 10 Aug 2018 17:50:44 +0000 (10:50 -0700)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a am: 8ecd22c0a4 am: 97d0d2c209 am: ca5fd693bc skipped: 19d2af61df
am: f5c1a7ca27

Change-Id: I931e17dba1218ea342f9ec0f17a8a8432e77fc20

6 years agoMerge changes from topic "back111085900" into oc-dev
Jeff Sharkey [Fri, 10 Aug 2018 17:26:54 +0000 (17:26 +0000)]
Merge changes from topic "back111085900" into oc-dev

* changes:
  DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.
  DO NOT MERGE. Execute "strict" queries with extra parentheses.

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:16:05 +0000 (20:16 +0000)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09 am: c09bb997e8 am: 424304f893 am: b2e2b1386f skipped: a2ad2596b7

Change-Id: I18dbb198314da3b3722e5b0dfbd9f1dd1e203d4a

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:16:00 +0000 (20:16 +0000)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09 am: c09bb997e8 am: 424304f893 am: b2e2b1386f

Change-Id: Icdb977d8cb260d5210d103f306de550b3f8fed96

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:55 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09 am: c09bb997e8 am: 424304f893

Change-Id: I4c0f715b12df5e7ffb4f3a1b7cf9ae5da4be22ca

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:51 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09 am: c09bb997e8

Change-Id: I544bf2c6b5d0177aa70a6fb7bd4225d4d04881fd

6 years ago[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e959...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:45 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete. am: 8e95967f09

Change-Id: I6cdb5a5dd5531ad53ef02174ff5063788d11029d

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:44 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a am: 8ecd22c0a4 am: 97d0d2c209 am: ca5fd693bc skipped: 19d2af61df

Change-Id: I66ddfbffbec736061780c86c9c9e542fe2a200ba

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:39 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a am: 8ecd22c0a4 am: 97d0d2c209 am: ca5fd693bc

Change-Id: Iccacb48d382a3fd8012dff81c3d8482afe0e5f14

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:33 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a am: 8ecd22c0a4 am: 97d0d2c209

Change-Id: I92820ffe7b45077bc4beaf97144a7b7eb3117af0

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:28 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a am: 8ecd22c0a4

Change-Id: Ia9f489c55def0f592383ac2a10f5bd0b34c2663d

6 years ago[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd...
Android Build Merger (Role) [Thu, 9 Aug 2018 20:15:19 +0000 (20:15 +0000)]
[automerger] DO NOT MERGE. Execute "strict" queries with extra parentheses. am: 286fd5652a

Change-Id: Ia877305c642c3b7741941d2e438fe77f1d1550f3

6 years agoDO NOT MERGE. Persistable Uri grants still require permissions.
Jeff Sharkey [Thu, 9 Aug 2018 00:23:00 +0000 (17:23 -0700)]
DO NOT MERGE. Persistable Uri grants still require permissions.
am: 05519b7e3d

Change-Id: I6d42f089fec6c268b35885d3169644853ab734c5

6 years agoDO NOT MERGE. Persistable Uri grants still require permissions.
Jeff Sharkey [Tue, 7 Aug 2018 21:02:17 +0000 (15:02 -0600)]
DO NOT MERGE. Persistable Uri grants still require permissions.

When FLAG_GRANT_PERSISTABLE_URI_PERMISSION is requested, we still
need to check permissions between the source and target packages,
instead of shortcutting past them.

The spirit of the original change is remains intact: if the caller
requested FLAG_GRANT_PERSISTABLE_URI_PERMISSION, then we avoid
returning "-1", which would prevent the grant data structure from
being allocated.

Bug: 111934948
Test: atest android.appsecurity.cts.AppSecurityTests
Change-Id: Ief0fc922aa09fc3d9bb6a126c2ff5855347cd030
Merged-In: Ief0fc922aa09fc3d9bb6a126c2ff5855347cd030

6 years agoDO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.
Jeff Sharkey [Wed, 25 Jul 2018 20:52:14 +0000 (14:52 -0600)]
DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.

Developers often accept selection clauses from untrusted code, and
SQLiteQueryBuilder already supports a "strict" mode to help catch
SQL injection attacks.  This change extends the builder to support
update() and delete() calls, so that we can help secure those
selection clauses too.

Bug: 111085900
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Change-Id: Ib4fc8400f184755ee7e971ab5f2095186341730c
Merged-In: Ib4fc8400f184755ee7e971ab5f2095186341730c

6 years agoDO NOT MERGE. Execute "strict" queries with extra parentheses.
Jeff Sharkey [Wed, 25 Jul 2018 20:01:59 +0000 (14:01 -0600)]
DO NOT MERGE. Execute "strict" queries with extra parentheses.

SQLiteQueryBuilder has a setStrict() mode which can be used to
detect SQL attacks from untrusted sources, which it does by running
each query twice: once with an extra set of parentheses, and if that
succeeds, it runs the original query verbatim.

This sadly doesn't catch inputs of the type "1=1) OR (1=1", which
creates valid statements for both tests above, but the final executed
query ends up leaking data due to SQLite operator precedence.

Instead, we need to continue compiling both variants, but we need
to execute the query with the additional parentheses to ensure
data won't be leaked.

Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Bug: 111085900
Change-Id: I6e8746fa48f9de13adae37d2990de11c9c585381
Merged-In: I6e8746fa48f9de13adae37d2990de11c9c585381

6 years agoDO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.
Jeff Sharkey [Wed, 25 Jul 2018 20:52:14 +0000 (14:52 -0600)]
DO NOT MERGE. Extend SQLiteQueryBuilder for update and delete.

Developers often accept selection clauses from untrusted code, and
SQLiteQueryBuilder already supports a "strict" mode to help catch
SQL injection attacks.  This change extends the builder to support
update() and delete() calls, so that we can help secure those
selection clauses too.

Bug: 111085900
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Change-Id: Ib4fc8400f184755ee7e971ab5f2095186341730c
Merged-In: Ib4fc8400f184755ee7e971ab5f2095186341730c

6 years agoDO NOT MERGE. Execute "strict" queries with extra parentheses.
Jeff Sharkey [Wed, 25 Jul 2018 20:01:59 +0000 (14:01 -0600)]
DO NOT MERGE. Execute "strict" queries with extra parentheses.

SQLiteQueryBuilder has a setStrict() mode which can be used to
detect SQL attacks from untrusted sources, which it does by running
each query twice: once with an extra set of parentheses, and if that
succeeds, it runs the original query verbatim.

This sadly doesn't catch inputs of the type "1=1) OR (1=1", which
creates valid statements for both tests above, but the final executed
query ends up leaking data due to SQLite operator precedence.

Instead, we need to continue compiling both variants, but we need
to execute the query with the additional parentheses to ensure
data won't be leaked.

Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
Bug: 111085900
Change-Id: I6e8746fa48f9de13adae37d2990de11c9c585381
Merged-In: I6e8746fa48f9de13adae37d2990de11c9c585381

6 years agoMerge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into oc-dev
Bill Yi [Mon, 30 Jul 2018 05:43:33 +0000 (22:43 -0700)]
Merge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into oc-dev
am: 515700b4fe

Change-Id: I0f58a9fe2bb437e8caf854b4ca8f5c4bc0f10c7d

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 1c484c5d96 skipped...
Bill Yi [Mon, 30 Jul 2018 05:41:40 +0000 (22:41 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 1c484c5d96 skipped: b71941c9bb
am: 976bb372c3  -s ours

Change-Id: I971275a90e048fec4861d2e866ec53c5d1b0a356

6 years agoMerge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into oc-dev
Bill Yi [Mon, 30 Jul 2018 05:18:03 +0000 (22:18 -0700)]
Merge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into oc-dev
am: d0025407df

Change-Id: I7186be0877b4649e3246a05ea610c7c5ee75e542

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: f9a5e160d0 skipped...
Bill Yi [Mon, 30 Jul 2018 05:15:41 +0000 (22:15 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: f9a5e160d0 skipped: eff2a7b637
am: 70ebabc63d  -s ours

Change-Id: I06839e68100abc88459588a4fec9ef4e04f65c08

6 years agoMerge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into nyc-mr2-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:14:30 +0000 (05:14 +0000)]
Merge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into nyc-mr2-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: 1c484c5d96
  Import translations. DO NOT MERGE

6 years agoMerge "Import translations. DO NOT MERGE" into cw-f-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:14:30 +0000 (05:14 +0000)]
Merge "Import translations. DO NOT MERGE" into cw-f-dev

6 years agoMerge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into oc-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:14:30 +0000 (05:14 +0000)]
Merge changes from topic "am-c65d7988-0ca0-4757-9d9c-21f4575eec01" into oc-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: 1c484c5d96 skipped: b71941c9bb
  [automerger skipped] Import translations. DO NOT MERGE skipped: 1c484c5d96
  Import translations. DO NOT MERGE

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5 skipped...
Bill Yi [Mon, 30 Jul 2018 05:10:47 +0000 (22:10 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5 skipped: b3e44fae1f
am: 843fb76d1f  -s ours

Change-Id: Id1336208575063e2fe1231b7655731132beb7953

6 years agoMerge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into oc-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:04:27 +0000 (05:04 +0000)]
Merge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into oc-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: f9a5e160d0 skipped: eff2a7b637
  [automerger skipped] Import translations. DO NOT MERGE skipped: f9a5e160d0
  Import translations. DO NOT MERGE

6 years agoMerge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into nyc-mr2-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:04:27 +0000 (05:04 +0000)]
Merge changes from topic "am-1155d171-2145-4903-8420-80ecfd6c6b08" into nyc-mr2-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: f9a5e160d0
  Import translations. DO NOT MERGE

6 years agoMerge "Import translations. DO NOT MERGE" into cw-f-dev
TreeHugger Robot [Mon, 30 Jul 2018 05:04:27 +0000 (05:04 +0000)]
Merge "Import translations. DO NOT MERGE" into cw-f-dev

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5 skipped...
Android Build Merger (Role) [Sun, 29 Jul 2018 15:53:30 +0000 (15:53 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5 skipped: b3e44fae1f

Change-Id: I877e44ea6efe845c0c30a3280b512c1253d727ce

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5
Android Build Merger (Role) [Sun, 29 Jul 2018 15:53:26 +0000 (15:53 +0000)]
[automerger skipped] Import translations. DO NOT MERGE skipped: 4c781e19f5

Change-Id: Ib62c14bc0bb4d205821e8f3b6312c5dca7773fde

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 29 Jul 2018 15:53:11 +0000 (08:53 -0700)]
Import translations. DO NOT MERGE

Change-Id: I556f15b9dc9c144d1ddd3bee21f823a52afdfbf4
Auto-generated-cl: translation import