Commit graph

2372 commits

Author SHA1 Message Date
Lingfeng Yang
207413d056 emulator: api 26 fix guest rendering (build)
As swiftshader is open sourced, put it into emulator
targets to enable -gpu guest option.

Test: build aosp_x86-eng, launch emulator -gpu guest
and it should boot to home screen.

Change-Id: I2140d7cec28d5f00b7463b1d37d9cf62120398fb
2017-11-22 12:45:35 -08:00
Yao Chen
44d569b130 Merge "Set the default ring buffer size for stats log, and set it loggable." am: adbaeb0c1d am: 2e006b7dc8
am: 5783f2beca

Change-Id: I8c4b41e0af440f759e783728b43b35555c0cec75
2017-11-21 19:54:46 +00:00
Yao Chen
5783f2beca Merge "Set the default ring buffer size for stats log, and set it loggable." am: adbaeb0c1d
am: 2e006b7dc8

Change-Id: I8f5cd906ce842d03c2028dfee2e4ea8ce1b84f06
2017-11-21 19:52:17 +00:00
Yao Chen
2e006b7dc8 Merge "Set the default ring buffer size for stats log, and set it loggable."
am: adbaeb0c1d

Change-Id: I86a62bad86030eb3cc3ce3d6806c56cf87a711b4
2017-11-21 19:49:36 +00:00
Treehugger Robot
adbaeb0c1d Merge "Set the default ring buffer size for stats log, and set it loggable." 2017-11-21 19:44:56 +00:00
Yao Chen
8ce8dc2efa Set the default ring buffer size for stats log, and set it loggable.
Bug: 69323063
Test: manual
Change-Id: I19de884927bc4999d503b919d851048609be1470
2017-11-21 09:02:12 -08:00
Xin Li
44dd4881de Merge commit '66b8b530187b129934a685bf0c4349eef00e4b0c' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: I7594bb72dd7e847292eb502edd918e41318aac29
Merged-In: Ide82473d358719f7e01cd2a4a85db954f3722f14
2017-11-14 11:36:22 -08:00
Jaekyun Seok
0d910aade0 Merge "Move system default values in system partition" am: 7c61a4eaef am: cc29444e0a
am: 9e760a3da2

Change-Id: I53de3bb413ca16c86d9d6657f6bb531f4df7b287
2017-11-14 06:08:02 +00:00
Jaekyun Seok
9e760a3da2 Merge "Move system default values in system partition" am: 7c61a4eaef
am: cc29444e0a

Change-Id: I8a9290c7d10c9f5330c9b9e3c09c00163cb8bf1b
2017-11-14 06:05:26 +00:00
Jaekyun Seok
4022ec99a6 Move system default values in system partition
The following properties are specified under platform/build as system
default values.

- tombstoned.max_tombstone_count
- debug.atrace.tags.enableflags
- dalvik.vm.dex2oat-minidebuginfo

So they should move into system partition.

Bug: 64661857
Test: confirmed that the default properties were stored in
/system/etc/prop.default on sailfish device
Change-Id: Ic34c05fd9761e281962b6bb425e4babedfca45a9
2017-11-14 05:43:35 +00:00
Dan Willemsen
b6a3564609 Merge "Add PRODUCT_ADB_KEYS" am: f599f4010e am: 617dce0c29
am: 06870ee92b

Change-Id: I3691dda3888e1a49e7c1e26955b022a2f88160a4
2017-11-08 03:28:38 +00:00
Dan Willemsen
06870ee92b Merge "Add PRODUCT_ADB_KEYS" am: f599f4010e
am: 617dce0c29

Change-Id: I189f7ff9e9849fcfed1fe2b02502d105267db97a
2017-11-08 03:26:35 +00:00
Treehugger Robot
f599f4010e Merge "Add PRODUCT_ADB_KEYS" 2017-11-08 03:12:17 +00:00
Jaekyun Seok
1e972a863f Merge changes from topic "system_default_prop" am: 4cb631f624 am: bc94fb4340
am: 5f035cbbde

Change-Id: I294c154385bb387bcfc81c63a86d314a30eb6bff
2017-11-08 02:22:54 +00:00
Jaekyun Seok
5f035cbbde Merge changes from topic "system_default_prop" am: 4cb631f624
am: bc94fb4340

Change-Id: I5fc7527907cce11084151643ce6b6451687faed6
2017-11-08 01:55:32 +00:00
Treehugger Robot
4cb631f624 Merge changes from topic "system_default_prop"
* changes:
  Move ART default properties into system partition
  Add PRODUCT_SYSTEM_DEFAULT_PROPERTIES
2017-11-08 01:42:40 +00:00
Jaekyun Seok
5fb6a3eb9f Move ART default properties into system partition
Bug: 64661857
Bug: 68755013
Test: confirmed that ART default properties were stored in
/system/etc/prop.default on sailfish device

Change-Id: Ie07d3049de5ac395cfb9105e208fe7825080fa15
2017-11-08 00:56:43 +00:00
Isaac Chen
c72ebd8f2e Move emulator specific configurations to vendor
am: 5bf9ac508c

Change-Id: I192a2c5f41c8a0558e08e77cceb0875c290ec4cd
2017-11-07 05:37:16 +00:00
Isaac Chen
5bf9ac508c Move emulator specific configurations to vendor
The moved files are all emulator specific so should reside in vendor
directory/partition. This modification resolves a Launcher crash
issue when GSI boots on the emulator. Directly relevant file is
handheld_core_hardware.xml, which is absent from the GSI.

All other files moved in this change can cause similar issues (if they
stay under /system) since they aren't present on GSI, either.

Bug: 67987112
Test: x86 GSI boots to home screenon with 2 emulator products, aosp_x86,
      and sdk_gphone_x86 on the x86 emulator (on internal master).
      Both aosp_x86 and aosp_x86_64 boot to home screen on the emulator.
      Both aosp_arm and sdk_phone_arm boot to home screen on the arm
      emulator.

Change-Id: I2ff4f71b89d84dab322d00cf846cf06c98a1e8a7
2017-11-07 11:41:51 +08:00
Andreas Gampe
47392c41ff Merge "Build: Enable minidebuginfo generation" am: ca677112f0 am: 01e6cae2cb
am: 4e347f9dce

Change-Id: I26b0dce798b5ef5b0bf7826eeaa987deef4c7290
2017-11-06 22:07:08 +00:00
Andreas Gampe
4e347f9dce Merge "Build: Enable minidebuginfo generation" am: ca677112f0
am: 01e6cae2cb

Change-Id: I958eec8297a937f411002ba9fdab0eb852a65848
2017-11-06 22:01:47 +00:00
Treehugger Robot
ca677112f0 Merge "Build: Enable minidebuginfo generation" 2017-11-06 21:45:46 +00:00
Isaac Chen
8930bf679b Merge "Move emulator specific configurations to vendor" 2017-11-06 06:18:04 +00:00
Dan Willemsen
0bd793815e Add PRODUCT_ADB_KEYS
This easily allow products to add custom adb keys for debuggable builds.
To use, provide a public key created by `adb keygen` to
PRODUCT_ADB_KEYS.

This way automated test farms don't need manual intervention to
authenticate to the device over adb, but we don't disable security for
everyone else.

Add an inherit-product-if-exists hook to aosp_* targets so that our
build servers can add a key for our test farms.

Bug: 32891559
Test: lunch aosp_marlin-userdebug; m bootimage
Test: lunch aosp_marlin-user; m bootimage
Change-Id: I1720644d89ec5289fbe99f95ebcdfbb3f3b20e67
2017-11-03 15:57:38 -07:00
Andreas Gampe
0f3e16aad2 Build: Enable minidebuginfo generation
Enable generation of minidebuginfo through dex2oat by default.

Test: m
Test: adb shell cmd package compile -f -a
Change-Id: I70f7a1ca4939e7992ba2a7b607e8ce9bd6e0b918
2017-11-03 14:37:32 -07:00
Jin Qian
44edd9a9a1 Merge "Replace make_ext4fs with mke2fs" am: bd532fbf2e am: 3f2bf55726
am: a08e72372e

Change-Id: I3fef2c24e4795e4b9a146f1e7ee9953c3e5f5db6
2017-11-03 18:57:59 +00:00
Jin Qian
a08e72372e Merge "Replace make_ext4fs with mke2fs" am: bd532fbf2e
am: 3f2bf55726

Change-Id: I413967d1e6f479d8899e906aa4a5d597107c77de
2017-11-03 18:03:20 +00:00
Jin Qian
bd532fbf2e Merge "Replace make_ext4fs with mke2fs" 2017-11-03 17:28:57 +00:00
Jin Qian
95b2b695cd Replace make_ext4fs with mke2fs
make_ext4fs is deprecated and should be replaced with mke2fs

Bug: 64395169
Change-Id: Idfc8c0ee0ff598fdaa6f20bb0d4f6dca687a1b10
2017-11-02 16:27:41 -07:00
Treehugger Robot
1c505a1985 Merge "Set the default value of pm.dexopt.shared to speed" 2017-11-02 18:13:54 +00:00
Dan Willemsen
165ede37ad Merge "Revert "Add adb keys to debuggable AOSP builds"" am: 40fae9ca0f am: 438a8b800a
am: be48f9de21

Change-Id: I5bc89c0401a9c0535d105ae08cf4cdc62de8241e
2017-11-02 17:26:55 +00:00
Dan Willemsen
be48f9de21 Merge "Revert "Add adb keys to debuggable AOSP builds"" am: 40fae9ca0f
am: 438a8b800a

Change-Id: I32ff3e53910b0d162a4aa40ae0111589f979a053
2017-11-02 17:24:48 +00:00
Calin Juravle
89836f119e Set the default value of pm.dexopt.shared to speed
By default, we should compile all shared apks with the speed filter.

(cherry picked from commit 3fdb549931)

Bug: 65591595
Test: build & boot
Merged-In: I8781ca47090321a32641ec4c7a4ed3c722bab475
Change-Id: I8781ca47090321a32641ec4c7a4ed3c722bab475
2017-11-02 09:33:39 -07:00
Tobias Thierer
e76e3837cd Revert "Add adb keys to debuggable AOSP builds"
This reverts commit 6d4536023b.

Reason for revert: Suspected to have broken build_test on master:

build/make/core/tasks/vendor_module_check.mk:108: error: Error: vendor module "adb_keys" in vendor/google/security/adb in product "aosp_lionhead" being installed to out/multiproduct-20171102103809/aosp_lionhead/target/product/lionhead/root/adb_keys which is not in the vendor tree or odm tree.

Change-Id: If7c1c9f08604b1dfc1036ea6fe3cb487fafc3cf0
2017-11-02 15:16:17 +00:00
Isaac Chen
2b063ee55d Move emulator specific configurations to vendor
The moved files are all emulator specific so should reside in vendor
directory/partition. This modification resolves a Launcher crash
issue when GSI boots on the emulator. Directly relevant file is
handheld_core_hardware.xml, which is absent from the GSI.

All other files moved in this change can cause similar issues (if they
stay under /system) since they aren't present on GSI, either.

Bug: 67987112
Test: x86 GSI boots to home screenon with 2 emulator products, aosp_x86,
      and sdk_gphone_x86 on the x86 emulator (on internal master).
      Both aosp_x86 and aosp_x86_64 boot to home screen on the emulator.
      Both aosp_arm and sdk_phone_arm boot to home screen on the arm
      emulator.

Change-Id: I2ff4f71b89d84dab322d00cf846cf06c98a1e8a7
2017-11-02 19:08:58 +08:00
Dan Willemsen
a2221a5824 Merge "Add adb keys to debuggable AOSP builds" am: 40cd480454 am: ccdbf9866c
am: b2830040b4

Change-Id: I944c70d920353bd7f31560566a31c25f58aa6a5b
2017-11-02 01:07:39 +00:00
Dan Willemsen
b2830040b4 Merge "Add adb keys to debuggable AOSP builds" am: 40cd480454
am: ccdbf9866c

Change-Id: Ie1c8c729b47cfeb070f899db97b759cbe4b1abd7
2017-11-02 01:03:16 +00:00
Dan Willemsen
6d4536023b Add adb keys to debuggable AOSP builds
These don't exist on AOSP itself, but if they're added in, debuggable
builds will include the keys. This way automated test farms don't need
manual intervention to authenticate to the device over adb, but we don't
disable security for everyone else.

Bug: 32891559
Test: lunch aosp_marlin-userdebug; m
Change-Id: I59011a5c1f45b0c8bd5c2355d2b4c3671f5da4e4
2017-11-01 15:04:11 -07:00
Shubham Ajmera
c5966a35ca Add compiler filter for inactive app downgrade
(cherry picked from commit 572a3df7fc)

Bug: 36598475
Test: Verified the property value on the device
Merged-In: I8afcffcb7064ff6a3b97c26ee18aa22f969ffef3
Change-Id: I8afcffcb7064ff6a3b97c26ee18aa22f969ffef3
2017-10-31 10:03:14 -07:00
Sunny Goyal
c65540bccf Switching build to use Launcher3 instead of Launcher2
Bug: 67984089
Test: it builds
Change-Id: I92a6e4852d6367f5c42fc5e9686487a793b71afe
2017-10-31 09:25:53 -07:00
Justin Yun
ef4f57af4a resolve merge conflicts of eb247544a7 to oc-mr1-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ib0c5ade0a1db65491b21226d5a2686ff6cf32d74
2017-10-31 15:27:52 +09:00
Justin Yun
83c8f78e00 Use vndk-sp phony module for vndk-sp package list
To install the vndk-sp libraries defined in device/generic/common,
use vndk-sp phony module to list the libraries.

Bug: 65853349
Test: build aosp_x86-user and check emulator boot
Change-Id: Idf2d421b5d84e04e332db9cb357a46c898a89c4e
(cherry picked from commit 740c6a3c7c)
2017-10-31 11:32:52 +09:00
Mathieu Chartier
b5ecb6581a Add PRODUCT_MINIMIZE_JAVA_DEBUG_INFO to go_defaults_common am: 99b2739a66
am: 356d58009c

Change-Id: I7c319ae376e0a6d7b094ad6629dffef757d9e508
2017-10-30 16:20:42 +00:00
Mathieu Chartier
356d58009c Add PRODUCT_MINIMIZE_JAVA_DEBUG_INFO to go_defaults_common
am: 99b2739a66

Change-Id: I24d503bc735a231b5e39c5a0745c3dacfdc64a15
2017-10-30 16:09:15 +00:00
bohu
813249bfdf emulator: squash misc modifications from oc-emu-dev
Change-Id: Ia6c3ff0805b88ef284524a4e6faa5615016b359c
Merged-In: I7380292cd4dc851a987683bdf61d511dbf74aff6
2017-10-26 16:45:05 -07:00
bohu
4a6cc6a8fc emulator: move rild.libpath to vendor
BUG: 62137708
Test: buld sdk_gphone_x86-user, launch
emulator make sure radio works

Change-Id: Ib25ae4a1c7f86ef20a45af2f88732067ad95c5f4
Merged-In: I4ef1483a8d95a74b54deb6f0d4b2461c733c8140
2017-10-26 16:45:05 -07:00
bohu
179849ade7 sdk:enable emulator to launch in build environment
Recent changes in emulator requires advancedFeatures.ini,
encryptionkey.img and new kernels (such as 3.18) at OUT directory
so emulator can find them.

This CL set those up as part of the build process.

Change-Id: Iccaea540b2a27f45fd487dd25408b5d5c047171c
Merged-In: Ib3b7c4c48a22cecb44255e643402fd1c37797522
2017-10-26 16:45:05 -07:00
bohu
cb0bebbeda build-emulator: fully treblize emulator image
Install emulator specific binaries and libraries
to vendor partition; update selinux; add vndk.

BUG: 37511975

Test: build user build, launch emualtor, run CTS.

Change-Id: I7f5317d52e552367a1390789fe7ce6e0955ba8de
Merged-In: I70f58947e98b41b195d77b4347d2efdc09348392
2017-10-26 16:45:05 -07:00
Justin Yun
740c6a3c7c Use vndk-sp phony module for vndk-sp package list
To install the vndk-sp libraries defined in device/generic/common,
use vndk-sp phony module to list the libraries.

Bug: 65853349
Test: build aosp_x86-user and check emulator boot
Change-Id: Idf2d421b5d84e04e332db9cb357a46c898a89c4e
2017-10-25 21:02:42 +09:00
Mathieu Chartier
99b2739a66 Add PRODUCT_MINIMIZE_JAVA_DEBUG_INFO to go_defaults_common
Strip the local variable table and the local variable type table to
reduce the size of the system image. This has no bearing on stack
traces, but will leave less information available via JDWP

Bug: 67374015
Test: make and flash
Change-Id: Ie592221b893f7fa7433fe10e8c08ff70b5de4e47
2017-10-24 14:57:08 -07:00