<feed xmlns='http://www.w3.org/2005/Atom'>
<title>build_soong/java, branch android-10.0.0_r6</title>
<subtitle>Fork of build/soong
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/'/>
<entry>
<title>Fix the unbundled mainline module build</title>
<updated>2019-07-17T03:10:19+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-07-15T06:31:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=b8650ff16bb7fe69370d38cb7002c7b0929067ed'/>
<id>b8650ff16bb7fe69370d38cb7002c7b0929067ed</id>
<content type='text'>
This change fixes two problems:

1) the prebuilt apexes are force disabled for the unbundled builds
because we need to build the modules from the source then

2) the dependencies from an sdk_library module to
*.stubs.{public|system|tests} are not added for the unbundled build
because the stubs modules are disabled.

Bug: 137282010
Test: unbundled mainline builds are successful
Test: build com.android.media and inspect the jar file to see if
hiddenapi flags are there
$ cd out/dist/mainline_modules_arm
$ unzip com.android.media.apex apex_payload.img
$ mkdir -p mnt
$ sudo mount -o ro,loop apex_payload.img mnt
$ dexdump2 mnt/javalib/updatable-media.jar | grep hiddenapi
shows results

Merged-In: I2c00af07aac4a15770d3acab011a36e2e4803bfc
Change-Id: I2c00af07aac4a15770d3acab011a36e2e4803bfc
(cherry picked from commit 53554e25593d6498a229d1dc89208aade4137008)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change fixes two problems:

1) the prebuilt apexes are force disabled for the unbundled builds
because we need to build the modules from the source then

2) the dependencies from an sdk_library module to
*.stubs.{public|system|tests} are not added for the unbundled build
because the stubs modules are disabled.

Bug: 137282010
Test: unbundled mainline builds are successful
Test: build com.android.media and inspect the jar file to see if
hiddenapi flags are there
$ cd out/dist/mainline_modules_arm
$ unzip com.android.media.apex apex_payload.img
$ mkdir -p mnt
$ sudo mount -o ro,loop apex_payload.img mnt
$ dexdump2 mnt/javalib/updatable-media.jar | grep hiddenapi
shows results

Merged-In: I2c00af07aac4a15770d3acab011a36e2e4803bfc
Change-Id: I2c00af07aac4a15770d3acab011a36e2e4803bfc
(cherry picked from commit 53554e25593d6498a229d1dc89208aade4137008)
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Don't build hiddenapi flags or encode dex for unbundled builds"</title>
<updated>2019-07-17T03:10:13+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-07-15T06:29:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=2c7b1c41cd603dece99e8e93f888b83650271e98'/>
<id>2c7b1c41cd603dece99e8e93f888b83650271e98</id>
<content type='text'>
This reverts commit 7b8a567f44b3fdb30eac8211e8ed8e27fb162797.

Bug: 137282010
Test: With the CL above this one, the unbundled mainline module build
does not fail.

Merged-In: I2f49fa7dbe1da92cb282a9bc14acd5830888ed17
Change-Id: I2f49fa7dbe1da92cb282a9bc14acd5830888ed17
(cherry picked from commit 716828ab4ec2a673e6022171bb2b52584ee8e916)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7b8a567f44b3fdb30eac8211e8ed8e27fb162797.

Bug: 137282010
Test: With the CL above this one, the unbundled mainline module build
does not fail.

Merged-In: I2f49fa7dbe1da92cb282a9bc14acd5830888ed17
Change-Id: I2f49fa7dbe1da92cb282a9bc14acd5830888ed17
(cherry picked from commit 716828ab4ec2a673e6022171bb2b52584ee8e916)
</pre>
</div>
</content>
</entry>
<entry>
<title>Uncompress dex in unbundled privileged apps</title>
<updated>2019-06-26T05:28:00+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2019-06-25T20:35:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=43377eeb3890dcdbc8d5a391c54c5b6062f9d807'/>
<id>43377eeb3890dcdbc8d5a391c54c5b6062f9d807</id>
<content type='text'>
Mainline builds privileged apps unbundled and then uses them as
prebuilts, so they need to respect the privileged flag when
deciding whether or not to uncompress the dex.

Bug: 135772877
Test: TestUncompressDex
Change-Id: I91da7116b779ae35c0617ef77dbcb9788902370c
Merged-In: I91da7116b779ae35c0617ef77dbcb9788902370c
(cherry picked from commit 53a87f523b75f86008c3e0971489a06a6450a670)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mainline builds privileged apps unbundled and then uses them as
prebuilts, so they need to respect the privileged flag when
deciding whether or not to uncompress the dex.

Bug: 135772877
Test: TestUncompressDex
Change-Id: I91da7116b779ae35c0617ef77dbcb9788902370c
Merged-In: I91da7116b779ae35c0617ef77dbcb9788902370c
(cherry picked from commit 53a87f523b75f86008c3e0971489a06a6450a670)
</pre>
</div>
</content>
</entry>
<entry>
<title>Optionally embed NOTICE files in apks.</title>
<updated>2019-06-25T20:56:17+00:00</updated>
<author>
<name>Jaewoong Jung</name>
<email>jungjw@google.com</email>
</author>
<published>2019-06-18T00:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=5c6572e53fa2810e45215850842b81b8fa9a22ec'/>
<id>5c6572e53fa2810e45215850842b81b8fa9a22ec</id>
<content type='text'>
If embed_notices or ALWAYS_EMBED_NOTICES is set, collect NOTICE files
from all dependencies of the android_app, merge them with the app's own
one (if exists), transform it to HTML, gzip it, and put it as an asset
in the final APK output.

Bug: 135460391
Test: app_test.go + Built Mainline modules
Change-Id: I52d92e2fd19b3f5f396100424665c5cc344190d8
Merged-In: I52d92e2fd19b3f5f396100424665c5cc344190d8
(cherry picked from commit 5b425e2e20c55216c1ed13fcf047b0df33886736)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If embed_notices or ALWAYS_EMBED_NOTICES is set, collect NOTICE files
from all dependencies of the android_app, merge them with the app's own
one (if exists), transform it to HTML, gzip it, and put it as an asset
in the final APK output.

Bug: 135460391
Test: app_test.go + Built Mainline modules
Change-Id: I52d92e2fd19b3f5f396100424665c5cc344190d8
Merged-In: I52d92e2fd19b3f5f396100424665c5cc344190d8
(cherry picked from commit 5b425e2e20c55216c1ed13fcf047b0df33886736)
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't build hiddenapi flags or encode dex for unbundled builds</title>
<updated>2019-05-29T15:38:53+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2019-05-28T21:06:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=7b8a567f44b3fdb30eac8211e8ed8e27fb162797'/>
<id>7b8a567f44b3fdb30eac8211e8ed8e27fb162797</id>
<content type='text'>
Builds with TARGET_BUILD_APPS shouldn't build the hiddenapi flags
or encode dex files even if frameworks/base exists.

Bug: 133343287
Test: mainline modules build
Change-Id: I0647451420fd09bb680808b35e1ad3b8f514ba46
Merged-In: I0647451420fd09bb680808b35e1ad3b8f514ba46
(cherry picked from commit 9c74a1ee855b1dcf4871a4cc40f317bd765ab7fd)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Builds with TARGET_BUILD_APPS shouldn't build the hiddenapi flags
or encode dex files even if frameworks/base exists.

Bug: 133343287
Test: mainline modules build
Change-Id: I0647451420fd09bb680808b35e1ad3b8f514ba46
Merged-In: I0647451420fd09bb680808b35e1ad3b8f514ba46
(cherry picked from commit 9c74a1ee855b1dcf4871a4cc40f317bd765ab7fd)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add No_dist property</title>
<updated>2019-05-16T10:23:39+00:00</updated>
<author>
<name>Sundong Ahn</name>
<email>sundongahn@google.com</email>
</author>
<published>2019-05-13T06:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=a4a385f1d581d0bfdb2776b7c95311cf80654441'/>
<id>a4a385f1d581d0bfdb2776b7c95311cf80654441</id>
<content type='text'>
For the sysprop apis, we don't need dist. So the No_dist property is
added for it.

Bug: 132448761
Test: m -j dist
Merged-In: I51c6a6b87ab9dc90b6825c0d4d414e958dd7b265
Change-Id: I51c6a6b87ab9dc90b6825c0d4d414e958dd7b265
(cherry picked from commit 80a87b3309192d0f0caa2097a097ed4ed20c6fff)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the sysprop apis, we don't need dist. So the No_dist property is
added for it.

Bug: 132448761
Test: m -j dist
Merged-In: I51c6a6b87ab9dc90b6825c0d4d414e958dd7b265
Change-Id: I51c6a6b87ab9dc90b6825c0d4d414e958dd7b265
(cherry picked from commit 80a87b3309192d0f0caa2097a097ed4ed20c6fff)
</pre>
</div>
</content>
</entry>
<entry>
<title>Pass other boot classpath locations to the apex image.</title>
<updated>2019-05-13T14:09:47+00:00</updated>
<author>
<name>Nicolas Geoffray</name>
<email>ngeoffray@google.com</email>
</author>
<published>2019-04-30T08:43:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=f489589521d7da053814438b0bf3dc379239118a'/>
<id>f489589521d7da053814438b0bf3dc379239118a</id>
<content type='text'>
In order to evaluate the impact of framework classes being in an image.

Test: m
Bug: 119800099
Exempt-From-Owner-Approval: this is only for an experimental config, which we would like to see
the performance before build snap.

(cherry picked from commit feef2ef4d7cc146885c482899f9a967554dc083d)

Change-Id: I44ea9d99985c3e9d21602f2c612364d0cef0d1ea
Merged-In: Ib0d3acf8d2718ee443b3bffe8122a54f92257691
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to evaluate the impact of framework classes being in an image.

Test: m
Bug: 119800099
Exempt-From-Owner-Approval: this is only for an experimental config, which we would like to see
the performance before build snap.

(cherry picked from commit feef2ef4d7cc146885c482899f9a967554dc083d)

Change-Id: I44ea9d99985c3e9d21602f2c612364d0cef0d1ea
Merged-In: Ib0d3acf8d2718ee443b3bffe8122a54f92257691
</pre>
</div>
</content>
</entry>
<entry>
<title>Support target.hostdex.required</title>
<updated>2019-04-26T18:13:30+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2019-04-24T20:41:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=363360c963116df431da33d45b1a2b7abab64c28'/>
<id>363360c963116df431da33d45b1a2b7abab64c28</id>
<content type='text'>
Hostdex modules sometimes need extra required modules, add
target.hostdex.required.

Bug: 131167818
Test: manual
Change-Id: I599f3499f0b738556baeb27185371a42b4c2701b
Merged-In: I599f3499f0b738556baeb27185371a42b4c2701b
(cherry picked from commit 7f87f4fdeb30f612d74001acb26c466cbb452467)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hostdex modules sometimes need extra required modules, add
target.hostdex.required.

Bug: 131167818
Test: manual
Change-Id: I599f3499f0b738556baeb27185371a42b4c2701b
Merged-In: I599f3499f0b738556baeb27185371a42b4c2701b
(cherry picked from commit 7f87f4fdeb30f612d74001acb26c466cbb452467)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix handling optimize.enabled from java_defaults" into qt-dev</title>
<updated>2019-04-24T03:31:49+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2019-04-24T03:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=687fd94d441912cc756f00027b5e2a1901d3caf0'/>
<id>687fd94d441912cc756f00027b5e2a1901d3caf0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set default target SDK version for APEX</title>
<updated>2019-04-23T05:26:06+00:00</updated>
<author>
<name>Jiyong Park</name>
<email>jiyong@google.com</email>
</author>
<published>2019-04-18T08:25:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/build_soong/commit/?id=d37a882ad462111f6b99bdecbd2771e7f3c3ad07'/>
<id>d37a882ad462111f6b99bdecbd2771e7f3c3ad07</id>
<content type='text'>
Target SDK version is used for targeting an APEX to a specific set of
platform builds. Usually, the targeting is unrestricted (in case the
APEX can run on all platforms), or based on platform SDK version (e.g.
28 for P). However, when the platform is under development and SDK is
not finalized, the targeting should be much more fine-grained; the
APEX should be targeted to a very specific build that supports the same
set of APIs that the APEX was built against.

To support that, target sdk version is automatically set by the build
system. When the platform is released or SDK is finalized, the target sdk
version set to the SDK version number. If not, it is set to
&lt;version_code&gt;.&lt;fingerprint&gt; (e.g., Q.123456).
Note that the target sdk version set by the build system is used only
when the target sdk version is not explicitly set in
AndroidManifest.xml.

Bug: 130541924
Test: UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true \
UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true \
TARGET_BUILD_APPS=com.android.tzdata m
build.ninja has --target_sdk_version Q.$$(cat out/soong/api_fingerprint.txt)

Test: aapt dump badging out/dist/com.android.tzdata.apex | grep \
targetSdkVersion shows:
targetSdkVersion:'Q.6ee443d9ad5f0cca7a43cfa97b7fc62a'

Merged-In: I086230d787f01075c28fc3f0163550300fa00212
Change-Id: I086230d787f01075c28fc3f0163550300fa00212
(cherry picked from commit 71b519d6ce98fc0313019d84777bfc04f3799efc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Target SDK version is used for targeting an APEX to a specific set of
platform builds. Usually, the targeting is unrestricted (in case the
APEX can run on all platforms), or based on platform SDK version (e.g.
28 for P). However, when the platform is under development and SDK is
not finalized, the targeting should be much more fine-grained; the
APEX should be targeted to a very specific build that supports the same
set of APIs that the APEX was built against.

To support that, target sdk version is automatically set by the build
system. When the platform is released or SDK is finalized, the target sdk
version set to the SDK version number. If not, it is set to
&lt;version_code&gt;.&lt;fingerprint&gt; (e.g., Q.123456).
Note that the target sdk version set by the build system is used only
when the target sdk version is not explicitly set in
AndroidManifest.xml.

Bug: 130541924
Test: UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true \
UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true \
TARGET_BUILD_APPS=com.android.tzdata m
build.ninja has --target_sdk_version Q.$$(cat out/soong/api_fingerprint.txt)

Test: aapt dump badging out/dist/com.android.tzdata.apex | grep \
targetSdkVersion shows:
targetSdkVersion:'Q.6ee443d9ad5f0cca7a43cfa97b7fc62a'

Merged-In: I086230d787f01075c28fc3f0163550300fa00212
Change-Id: I086230d787f01075c28fc3f0163550300fa00212
(cherry picked from commit 71b519d6ce98fc0313019d84777bfc04f3799efc)
</pre>
</div>
</content>
</entry>
</feed>
