<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/adb, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Merge "adb: fix double close in jdwp_service." into pi-dev</title>
<updated>2018-05-15T04:50:43+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-05-15T04:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=09b309807ff4cbf53545749dabbfe2838a1755ff'/>
<id>09b309807ff4cbf53545749dabbfe2838a1755ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: fix double close in jdwp_service.</title>
<updated>2018-05-15T00:36:45+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-05-15T00:12:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d88f3b696425373c927736bea907c172afc28b7d'/>
<id>d88f3b696425373c927736bea907c172afc28b7d</id>
<content type='text'>
Bug: http://b/78793027
Test: treehugger
Change-Id: Ie66d12e70bdaf09148e3d672e3c7c3da9e8ab2fe
(cherry picked from commit b7a9956cbc1cd8b1ffff86d13c6bea893a65c74d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/78793027
Test: treehugger
Change-Id: Ie66d12e70bdaf09148e3d672e3c7c3da9e8ab2fe
(cherry picked from commit b7a9956cbc1cd8b1ffff86d13c6bea893a65c74d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Documented adb install --instant</title>
<updated>2018-05-09T16:42:55+00:00</updated>
<author>
<name>Felipe Leme</name>
<email>felipeal@google.com</email>
</author>
<published>2018-05-09T01:40:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=95c5b7f3582468660cdb7cc9a0368238d7a43f2c'/>
<id>95c5b7f3582468660cdb7cc9a0368238d7a43f2c</id>
<content type='text'>
Test: m -j32 adb &amp;&amp; ./out/host/linux-x86/bin/adb help 2&gt;&amp;1 | grep instant
Bug: 79422318

Change-Id: I2830a9e3cf81becac1a6334670d8dc487fe72322
    (cherry picked from commit 807be77c25276cecd8a939dad2cdb3c7ac1db975)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test: m -j32 adb &amp;&amp; ./out/host/linux-x86/bin/adb help 2&gt;&amp;1 | grep instant
Bug: 79422318

Change-Id: I2830a9e3cf81becac1a6334670d8dc487fe72322
    (cherry picked from commit 807be77c25276cecd8a939dad2cdb3c7ac1db975)
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: don't error in handle_host_request if we can't acquire a transport.</title>
<updated>2018-04-19T20:29:59+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-19T20:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=05e5bc1b1774ecce4a87f4221b835d8fd3f23585'/>
<id>05e5bc1b1774ecce4a87f4221b835d8fd3f23585</id>
<content type='text'>
Host services are attempted after handle_host_request, which means that
failing to find a transport to give to handle_forward_request shouldn't
send an error over to the other end.

Bug: http://b/78294734
Test: `adb track-devices` with multiple devices connected
Change-Id: I46c89cc1894b51d48fea7d4e629b1d57f73e3fd6
(cherry picked from commit 78f133d7d46386a2215cd45836354260265ade26)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Host services are attempted after handle_host_request, which means that
failing to find a transport to give to handle_forward_request shouldn't
send an error over to the other end.

Bug: http://b/78294734
Test: `adb track-devices` with multiple devices connected
Change-Id: I46c89cc1894b51d48fea7d4e629b1d57f73e3fd6
(cherry picked from commit 78f133d7d46386a2215cd45836354260265ade26)
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: fix `adb reverse` when adbd has multiple transports.</title>
<updated>2018-04-14T00:47:42+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-13T19:17:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=a98aab2a722105b569917b400cb0937bbcf85b2e'/>
<id>a98aab2a722105b569917b400cb0937bbcf85b2e</id>
<content type='text'>
Plumb the transport that we received the adb reverse request on through
to reverse_service, instead of trying to get a unique transport on
devices that have multiple active transports (e.g. a device with USB
(even unplugged) connected via TCP).

Bug: http://b/37066218
Bug: http://b/71898863
Test: `echo foo | nc -l 12345 &amp; adb reverse tcp:12345 tcp:12345; adb shell nc localhost 12345` on a device connected via TCP
Change-Id: Iae199ae787f2e344126bbcacca8544cfc9844a4c
(cherry picked from commit 44899eeb53eb6260c20891723709ab38ed246349)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Plumb the transport that we received the adb reverse request on through
to reverse_service, instead of trying to get a unique transport on
devices that have multiple active transports (e.g. a device with USB
(even unplugged) connected via TCP).

Bug: http://b/37066218
Bug: http://b/71898863
Test: `echo foo | nc -l 12345 &amp; adb reverse tcp:12345 tcp:12345; adb shell nc localhost 12345` on a device connected via TCP
Change-Id: Iae199ae787f2e344126bbcacca8544cfc9844a4c
(cherry picked from commit 44899eeb53eb6260c20891723709ab38ed246349)
</pre>
</div>
</content>
</entry>
<entry>
<title>adbd: increase oom_score_adj for `adb shell`</title>
<updated>2018-04-13T22:47:53+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-03-28T20:16:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=217b8fcf8647c758caed7963d3188e23509cdccb'/>
<id>217b8fcf8647c758caed7963d3188e23509cdccb</id>
<content type='text'>
Previously, processes started via `adb shell` have an oom_score_adj of
-1000, making them invisible to the oom killer. This makes running a
process that consumes all memory (e.g. by leaking in a loop) lead to
the entire rest of the system (including adbd, because of bad
heuristics in the kernel) being oom killed before getting to it.

Bug: http://b/63143027
Test: `adb shell cat /proc/self/oom_score_adj` with adb root
Change-Id: I59111134e36dc271adf4c1dd4bd4400d4fe6aee0
(cherry picked from commit 2de2ade387774effee209a1498f16babab81e4ee)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, processes started via `adb shell` have an oom_score_adj of
-1000, making them invisible to the oom killer. This makes running a
process that consumes all memory (e.g. by leaking in a loop) lead to
the entire rest of the system (including adbd, because of bad
heuristics in the kernel) being oom killed before getting to it.

Bug: http://b/63143027
Test: `adb shell cat /proc/self/oom_score_adj` with adb root
Change-Id: I59111134e36dc271adf4c1dd4bd4400d4fe6aee0
(cherry picked from commit 2de2ade387774effee209a1498f16babab81e4ee)
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: properly calculate packet size on Mac.</title>
<updated>2018-04-11T18:44:26+00:00</updated>
<author>
<name>Josh Gao</name>
<email>jmgao@google.com</email>
</author>
<published>2018-04-10T21:35:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2e05dfa2f24c22b5c993b4e79d347d6706d566a0'/>
<id>2e05dfa2f24c22b5c993b4e79d347d6706d566a0</id>
<content type='text'>
OS X reports maxPacketSize as wMaxPacketSize * (bMaxBurst + 1) in the
deprecated GetPipeProperties function. Use the also-deprecated
GetPipePropetiesV2 API to get bMaxBurst and figure out what
wMaxPacketSize is. (This file is going to go away eventually, so don't
bother with switching to the recommended GetPipePropertiesV3, since
it would be a substantially larger charge.)

libusb is unaffected.

Bug: http://b/77733422
Test: python test_device.py
Change-Id: I66517d699a4f39b93ba5eb7882bd8ee6c70f3672
(cherry picked from commit 2ea46521f3c6a275b100737ea071ecd473a38aaa)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OS X reports maxPacketSize as wMaxPacketSize * (bMaxBurst + 1) in the
deprecated GetPipeProperties function. Use the also-deprecated
GetPipePropetiesV2 API to get bMaxBurst and figure out what
wMaxPacketSize is. (This file is going to go away eventually, so don't
bother with switching to the recommended GetPipePropertiesV3, since
it would be a substantially larger charge.)

libusb is unaffected.

Bug: http://b/77733422
Test: python test_device.py
Change-Id: I66517d699a4f39b93ba5eb7882bd8ee6c70f3672
(cherry picked from commit 2ea46521f3c6a275b100737ea071ecd473a38aaa)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Support /odm and /product in "adb remount" and "adb sync"." into pi-dev</title>
<updated>2018-04-09T15:41:00+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-04-09T15:41:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=6d2f2135eee520af8919e57dc113e90ea2d5d74d'/>
<id>6d2f2135eee520af8919e57dc113e90ea2d5d74d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>adb: Correctly drop caps when ambient capabilities are used</title>
<updated>2018-04-06T13:40:14+00:00</updated>
<author>
<name>Luis Hector Chavez</name>
<email>lhchavez@google.com</email>
</author>
<published>2018-04-04T22:59:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2685c77c34c29f86b5a7053fdb98e4f146e1b33b'/>
<id>2685c77c34c29f86b5a7053fdb98e4f146e1b33b</id>
<content type='text'>
This change splits the capability-dropping step of adbd into two. This
is more robust when ambient capabilities are being used, since minijail
cannot currently handle that case.

Bug: 77146512
Test: grep Cap /proc/`pidof adbd`/status
      CapInh: 0000000000000000
      CapPrm: 0000000000000000
      CapEff: 0000000000000000
      CapBnd: 00000000000000c0
      CapAmb: 0000000000000000

Change-Id: I0476a8d80f7a2497600196932542045f3bc87537
Merged-In: I0476a8d80f7a2497600196932542045f3bc87537
(cherry picked from commit daacf4f6f3aba6e0584103820100da7a7ea81123)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change splits the capability-dropping step of adbd into two. This
is more robust when ambient capabilities are being used, since minijail
cannot currently handle that case.

Bug: 77146512
Test: grep Cap /proc/`pidof adbd`/status
      CapInh: 0000000000000000
      CapPrm: 0000000000000000
      CapEff: 0000000000000000
      CapBnd: 00000000000000c0
      CapAmb: 0000000000000000

Change-Id: I0476a8d80f7a2497600196932542045f3bc87537
Merged-In: I0476a8d80f7a2497600196932542045f3bc87537
(cherry picked from commit daacf4f6f3aba6e0584103820100da7a7ea81123)
</pre>
</div>
</content>
</entry>
<entry>
<title>Support /odm and /product in "adb remount" and "adb sync".</title>
<updated>2018-04-06T02:45:27+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-04-03T17:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=792581f1835a425432632bca052deb478276f25f'/>
<id>792581f1835a425432632bca052deb478276f25f</id>
<content type='text'>
Bug: http://b/77587036
Test: `adb remount` and `adb sync` still work on hikey

(cherry picked from commit 57e97cb7aac9873745ca14dcb005d61fda6a65d0)

Change-Id: Ie49d703dac04e2fb8eda420b9253b8d45b6e1479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: http://b/77587036
Test: `adb remount` and `adb sync` still work on hikey

(cherry picked from commit 57e97cb7aac9873745ca14dcb005d61fda6a65d0)

Change-Id: Ie49d703dac04e2fb8eda420b9253b8d45b6e1479
</pre>
</div>
</content>
</entry>
</feed>
