Commit Graph

6780 Commits

Author SHA1 Message Date
Jon Spivack
6fd2b9e8e5 Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544 am: fa830219cd
am: 6b8cef41e5

Change-Id: I8814042dc6f0a86c321b8bad4f89b0ecc12f3407
2019-10-11 18:29:07 -07:00
Jon Spivack
6b8cef41e5 Merge "Made libbinder's waitForService accessible in java" am: 3ef1b5e544
am: fa830219cd

Change-Id: I312f51b6a802754981bf642c587cbbdb3024cfbb
2019-10-11 18:17:45 -07:00
Jon Spivack
fa830219cd Merge "Made libbinder's waitForService accessible in java"
am: 3ef1b5e544

Change-Id: I70972120fcb7dd7cbe664750409bfd00a41e0a62
2019-10-11 18:06:40 -07:00
Jon Spivack
3ef1b5e544 Merge "Made libbinder's waitForService accessible in java" 2019-10-12 00:50:43 +00:00
Jon Spivack
9e45fde5e9 Made libbinder's waitForService accessible in java
waitForService is used to lazily start AIDL services

Bug: 138756857
Test: Manual (tested starting gsiservice with this function)
Change-Id: I7ff16b014052d3845bd4b1baa8fc9843e7975a16
2019-10-11 15:15:02 -07:00
Xin Li
019d9d0bf7 Merge "DO NOT MERGE - Merge QP1A.191005.007 into master" 2019-10-11 02:56:40 +00:00
Xin Li
8efb8c35f1 DO NOT MERGE - Merge QP1A.191005.007 into master
Bug: 142297020
Merged-In: Ifc7254ab3a5272b056cbc75233aa2dfa8219ea84
Change-Id: Ib4566cec52912a8daa86c317fd99d6d60ef1524f
2019-10-10 00:28:04 +00:00
Daniel Colascione
94e087973f Merge "Apply JNI optimizations to HwParcel" am: 299036ea2f am: 2e7651e279
am: 3b2f1e2d4d

Change-Id: Icf622444a6148762fff631216fed22d3cb5c0e5c
2019-10-08 17:21:47 -07:00
Daniel Colascione
3b2f1e2d4d Merge "Apply JNI optimizations to HwParcel" am: 299036ea2f
am: 2e7651e279

Change-Id: Ib0f2f227a01e9ec43f3b8a96a5330bf7ae76ec44
2019-10-08 17:09:45 -07:00
Daniel Colascione
2e7651e279 Merge "Apply JNI optimizations to HwParcel"
am: 299036ea2f

Change-Id: Icabf83e888a99f8b2837540f5709c7e72a515fa0
2019-10-08 16:55:34 -07:00
Daniel Colascione
c94b8c3dcc Apply JNI optimizations to HwParcel
This change reduces the JNI overhead of binder calls by about 160ns
per parameter.

Test: boots
Change-Id: Ie3acdbf9f3ad48c884042ada5e63bd9757c6b2e6
2019-10-08 14:12:48 -07:00
Kevin Hufnagle
63edc1be29 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb am: 7b02dd8342
am: 2f57ebf99c

Change-Id: Ic62dbc5f5dd2e9f97832b501d0e88dd202d0884a
2019-10-08 12:15:13 -07:00
Kevin Hufnagle
2f57ebf99c Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb
am: 7b02dd8342

Change-Id: I432a4b416077f2ab21f34eec32956278846af809
2019-10-08 12:08:12 -07:00
Kevin Hufnagle
7b02dd8342 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev
am: 3c92f24adb

Change-Id: Ieb7549bb38439ad297bba0f5a4b64870919651a7
2019-10-08 12:00:20 -07:00
Peiyong Lin
26cbc3235b Merge "Add owners for GraphicsEnvironment.java." am: f605363ce4 am: da6a180c3c
am: 7f20633990

Change-Id: I7d387b6959d9fed06b838f0b129edff07e6daf00
2019-10-07 10:23:10 -07:00
Tao Bao
f4e2a8c352 Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b am: d0ad6794d4
am: 4e4890a362

Change-Id: I4ebd814f61585ebd9358fa82cc0478fdb8f8e038
2019-10-07 10:17:26 -07:00
Peiyong Lin
7f20633990 Merge "Add owners for GraphicsEnvironment.java." am: f605363ce4
am: da6a180c3c

Change-Id: I0af9eb50c2f85255620387256770fa7a66858856
2019-10-07 10:17:21 -07:00
Tao Bao
4e4890a362 Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b
am: d0ad6794d4

Change-Id: Id53a5c0f7d56b2dcde839052e2e7c040c9751d69
2019-10-07 10:10:20 -07:00
Peiyong Lin
da6a180c3c Merge "Add owners for GraphicsEnvironment.java."
am: f605363ce4

Change-Id: I443ea03f00258b51d8b536452c0771a985dd1a54
2019-10-07 10:04:25 -07:00
Tao Bao
d0ad6794d4 Merge "Use ParcelFileDescriptor over FileDescriptor"
am: 56f111e13b

Change-Id: I68c75d02a4eb4bc74fb83efe12ec5dce8d41f7f3
2019-10-07 09:57:55 -07:00
Peiyong Lin
f605363ce4 Merge "Add owners for GraphicsEnvironment.java." 2019-10-07 16:43:11 +00:00
Peiyong Lin
92aecf1884 Add owners for GraphicsEnvironment.java.
BUG: N/A
Test: N/A
2019-10-04 17:58:36 -07:00
Kyeongkab.Nam
73fde3809a Use ParcelFileDescriptor over FileDescriptor
The java.io.FileDescriptor object has a poor definition of ownership,
which can result in obscure use-after-close bugs. Instead, APIs should
return or accept ParcelFileDescriptor instances.

Bug: 130209137
Test: manual
Change-Id: Ifb3dd53dc138ec47f416f2d4b46c4668bc8ee1d8
2019-10-04 17:58:11 +09:00
Josh Gao
cca303ecd9 Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c036 am: 15f8fb42d6
am: 332a53756d

Change-Id: If284835a381f6f7c300c62edc59d1cf9743ac815
2019-10-03 11:11:44 -07:00
Josh Gao
332a53756d Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c036
am: 15f8fb42d6

Change-Id: I57ba0d7b301ac4652b3df54672c91dedfe1bb16c
2019-10-03 11:05:21 -07:00
Josh Gao
15f8fb42d6 Merge "zygote: respond and wait for reply to --boot-completed."
am: d34e18c036

Change-Id: I47819fa73d07ecc3507b03ef446f606407830b29
2019-10-03 10:58:24 -07:00
Treehugger Robot
d34e18c036 Merge "zygote: respond and wait for reply to --boot-completed." 2019-10-03 17:43:22 +00:00
Josh Gao
273613653f zygote: respond and wait for reply to --boot-completed.
The zygote handles requests by polling on its sockets, and then handling
one request for each active socket. However, it does so by reading from
a socket via a BufferedReader, which means that if multiple requests are
written into the socket before the zygote gets a chance to read them,
the zygote reads multiple requests into its BufferedReader, it handles
one request, and then never responds to the request that's buffered,
leaving its client stuck waiting for a response that will never happen.

For most requests, this can't happen, because the client will wait for a
response to be sent from the zygote before sending another request, but
this isn't true for --boot-completed until this patch.

Bug: http://b/141767463
Test: forrest runs of apct/text/text_native_test-cloud-tf
Change-Id: I8b7a80abfd9443d98f8cf5aedb7669b82c0cb84a
2019-10-03 17:18:04 +00:00
Nicolas Geoffray
62806139df Merge "Adjust and update dumpsys meminfo output." am: 165050810b am: c2f5e33525
am: 9409ec02a6

Change-Id: I506c914212ee2e2d366c2469a7aecf3d9528b78a
2019-10-03 07:52:06 -07:00
Nicolas Geoffray
9409ec02a6 Merge "Adjust and update dumpsys meminfo output." am: 165050810b
am: c2f5e33525

Change-Id: Ife6a6ffc348f3c0253b843fbd3833727ef0c3e22
2019-10-03 07:40:34 -07:00
Nicolas Geoffray
c2f5e33525 Merge "Adjust and update dumpsys meminfo output."
am: 165050810b

Change-Id: I9c4068fcccedeaf00e2c3d52b8e8f75a2ef033f5
2019-10-03 07:26:57 -07:00
Nicolas Geoffray
0567cd4c7b Adjust and update dumpsys meminfo output.
Adjust for JIT zygote.

Test: dumpsys meminfo
Bug: 119800099

(cherry picked from commit 08fcd7588c)

Change-Id: I84e0d41619558ff3528d7ac8670b1fac04afd34e
Merged-In: Ie0e7d6b938b6ee81c01191d6830f1196fa2121c1
2019-10-03 12:09:50 +01:00
Howard Chen
83500bab17 Merge changes from topics "dsu_ashmem", "dsu_clean_up" am: 417aed2c61 am: 1975c67bdb
am: b2bc8f41a6

Change-Id: I7b4d6f8a4f8ace9afc83d96a3e9afd1a7132e0cf
2019-09-28 05:19:49 -07:00
Howard Chen
b2bc8f41a6 Merge changes from topics "dsu_ashmem", "dsu_clean_up" am: 417aed2c61
am: 1975c67bdb

Change-Id: I1968d2763896fbd62127e0cc5b02b5ca2c1998c0
2019-09-28 05:07:39 -07:00
Howard Chen
1975c67bdb Merge changes from topics "dsu_ashmem", "dsu_clean_up"
am: 417aed2c61

Change-Id: I3382c8a7aca1fadb9e7ef37d050b52e1fff69155
2019-09-28 04:56:30 -07:00
Treehugger Robot
417aed2c61 Merge changes from topics "dsu_ashmem", "dsu_clean_up"
* changes:
  Use Ashmem to reduce buffer copies
  Clean up usage on deprecated GSID methods
2019-09-28 11:45:28 +00:00
Jeongik Cha
cac5791954 Merge changes from topic "system_ext" am: a828ee6442 am: dee02a0fae
am: 6a46c5315a

Change-Id: Ic31f9d12fffda486d36ce427848e04c7755cc531
2019-09-26 16:00:00 -07:00
Jeongik Cha
6a46c5315a Merge changes from topic "system_ext" am: a828ee6442
am: dee02a0fae

Change-Id: If2cc7cfe20182578b4e3c515f42209d9446f6a68
2019-09-26 15:53:32 -07:00
Jeongik Cha
dee02a0fae Merge changes from topic "system_ext"
am: a828ee6442

Change-Id: I2b636d0c54c932342586de47a38c16e93bf978e8
2019-09-26 15:40:26 -07:00
Treehugger Robot
a828ee6442 Merge changes from topic "system_ext"
* changes:
  Consider overlay in system_ext as system's
  Support /system_ext partition
2019-09-26 22:18:07 +00:00
Jiyong Park
0b08ec7040 Merge "Add documentation for *.sysprop" am: 1ae4c5b781 am: 912fabb3e3
am: b5856c3829

Change-Id: If87c23e87ae3369bb953109382ce60d2dd02a0e1
2019-09-24 20:41:26 -07:00
Jiyong Park
b5856c3829 Merge "Add documentation for *.sysprop" am: 1ae4c5b781
am: 912fabb3e3

Change-Id: Ib8503fccf2aaef7ba98c1887b2f96651fbead68a
2019-09-24 20:33:25 -07:00
Jiyong Park
912fabb3e3 Merge "Add documentation for *.sysprop"
am: 1ae4c5b781

Change-Id: Ia7dea21a6a0e1cfa1af858cc4b1155687c7a092b
2019-09-24 20:25:24 -07:00
Treehugger Robot
1ae4c5b781 Merge "Add documentation for *.sysprop" 2019-09-25 03:01:21 +00:00
Jiyong Park
09c730b197 Add documentation for *.sysprop
Bug: 141246285
Test: N/A
Change-Id: Ia90dd8fc75a9caa3b90c4e3adfb1252a5b1c19c4
2019-09-24 14:52:36 +09:00
Mike Ma
262a3b0009 Merge "Add an API to dump incident report for dumpstate" am: a11beeca12 am: af1f91a133
am: 3343814a57

Change-Id: I2d4bfdf8537adf1541a78c264a36f95e1384af71
2019-09-23 21:40:26 -07:00
Mike Ma
3343814a57 Merge "Add an API to dump incident report for dumpstate" am: a11beeca12
am: af1f91a133

Change-Id: If72f5dbe140ea5746288204e0de5275087d7709d
2019-09-23 21:28:02 -07:00
Mike Ma
af1f91a133 Merge "Add an API to dump incident report for dumpstate"
am: a11beeca12

Change-Id: If5ca98de9a5a85ae6e2aff90224a80e925ea419c
2019-09-23 21:17:34 -07:00
Mike Ma
a11beeca12 Merge "Add an API to dump incident report for dumpstate" 2019-09-24 01:07:25 +00:00
Mike Ma
15f83a3118 Add an API to dump incident report for dumpstate
Instead of just relying on the regular iteration through the system
services inside dumpstate, add another API to IIncidentManager
dedicated for dumpstate.

- It is only callable by dumpstate() (check the calling uid)
- It has the same behavior as the current call inside dump()

Advantages:
- More explicit function name, right next to takeIncidentReport will
  make it easier to keep them in sync.
- Nobody else can call it, make security easier.
- If dumpstate calls it explicitly, it can skip the 10 second timeout
- The regular dump() call should provide debugging data about
  incidentd itself, for example timestamps for the most recent N
  incident reports taken and the current state of the work directory,
  allowing us to debug incidentd itself.

Bug: 137493082
Test: Manually trigger a bug report, and verify
      /proto/incident_log.proto in the zip file.

Change-Id: I19139c765b53ede63d3beb3ea3ac40ada1aba42d
Merged-In: I19139c765b53ede63d3beb3ea3ac40ada1aba42d
2019-09-23 16:20:53 -07:00