Commit Graph

2605 Commits

Author SHA1 Message Date
Yifan Hong c9ad35ce39 Add compatibility check for system_manifest/compatibility_matrix.xml
Add compatibility check against device vintf schemas
when framework schemas are built.

Test: build with lunch marlin (that has manifest.xml)
Test: build with mini_emulator_arm64 (that doesn't have manfiest.xml)

Bug: 37321309

Change-Id: I87db152754d0185938bcef0c4395f477b8fd269b
2017-05-01 22:29:16 -07:00
Yifan Hong b5cbe22b84 Add device/fwk compatibility matrices to device.
Also renamed matrix.xml to compatibility_matrix.xml.

Test: make and ensure vendor/compatibility_matrix.xml is there.
Test: adb shell vintf (see matrices, compatible = true)

Bug: 37321309
Change-Id: I4ebbedf47a576a50a42df53b72e507ed31ef2e56
2017-05-01 21:49:18 -07:00
Joe LaPenna 885f8f7576 Remove NetworkRecommendation from platform.
It no longer provides platform functionality, so can be removed.

Bug: 37357264,37686309
Test: make aosp_bullhead-userdebug and make bullhead-userdebug
Change-Id: Iedaa1dd764678f12eaeda292e6047485aae236ac
2017-04-25 19:16:28 -07:00
Diego Wilson 77fcc43b6c Remove BOARD_USES_RECOVERY_AS_BOOT from aosp_arm64_ab
The target does not have a kernel so this flag does
not make sense.

Bug: 37443196
Test: flash aosp_arm64_ab system.img on sailfish
Change-Id: I1f22866dd5ecdd16615c02fdc8aa898b1ec2ddbd
2017-04-20 11:36:50 -07:00
Jaesoo Lee 41e5dff370 fixed build errors for aosp generic system image
Following files are missing in AOSP and not needed
- device/google/marlin/init.recovery.common.rc
- vendor/google/products/marlin/bootanimation-1440-256col.zip
- vendor/google/certs/devkeys/devkey

Bug: 37259658
Test: built systemimage and tested it work with other sailfish images
Change-Id: I95e180b6adbe8d08348794fd6b5f41e810999aea
2017-04-17 12:33:02 +09:00
Jiyong Park 279e3c2ae3 install android.hidl.*-java.jar files by default
Without this, the jar files are not installed to /system/framework and
thus the classes in the libraries become unaccessible during the direct
boot mode, where java code is directly interpreted from the jar files
instaed of the odex file.

Bug: 37363533
Test: android.hidl.*-java.jar are installed at /system/framework
Test: no crash of com.qualcomm.qti.telephonyservice upon boot (with data
partition protected with pin or pattern)

Change-Id: Ib3d5f9b7abd907d89a793e7501055c289145b239
2017-04-15 15:01:28 +09:00
TreeHugger Robot 9fdd426c91 Merge "Change ld.config.txt to a module" into oc-dev 2017-04-15 01:47:40 +00:00
TreeHugger Robot ffd66c35bf Merge changes from topic 'assemble_vintf' into oc-dev
* changes:
  Use assemble_vintf to verify framework manifests.
  Use assemble_vintf to verify device manifests.
2017-04-15 01:21:23 +00:00
Yifan Hong aa21221f80 Use assemble_vintf to verify framework manifests.
Test: builds, and verify that system/manifest.xml is there.

Bug: 36681384 Runtime-Collectible information must be statically
collectible
Bug: 36983271 VINTF checked at build time

Change-Id: Ic3bb50211311fa423a2ad56bd2891cb57d7dc1a5
2017-04-14 16:29:55 -07:00
Yifan Hong 283af596eb Use assemble_vintf to verify device manifests.
Test: builds, and verify that vendor/manifest.xml has
sepolicy version.

Bug: 36681384 Runtime-Collectible information must be statically
collectible
Bug: 36983271 VINTF checked at build time

Change-Id: I10e4cff6ed1b78a7cb9239e822ab054e1b90e7d3
2017-04-14 16:29:04 -07:00
Justin Klaassen 89f74db432 Merge "Add "android.software.preview_sdk" feature" into oc-dev 2017-04-14 22:39:59 +00:00
Martijn Coenen d75be23640 Merge "Add HIDL base/manager packages to PRODUCT_BOOT_JARS." into oc-dev 2017-04-14 05:43:49 +00:00
Michael Schwartz ceeaa7be20 Merge "Rule to copy device manifest to device" into oc-dev 2017-04-14 03:25:55 +00:00
Martijn Coenen 53b345dd22 Merge "Add NfcNci to default builds." into oc-dev 2017-04-14 03:18:40 +00:00
Steven Moreland dfabcc5566 Add HIDL base/manager packages to PRODUCT_BOOT_JARS.
Bug: 36603742
Bug: 36565056
Test: marlin boots, dynamically linking against these works
Change-Id: I1bfb73f2bce858823ad6ba8d826e42bd38cc2317
2017-04-13 19:30:48 -07:00
Justin Klaassen 2bfe0943c8 Add "android.software.preview_sdk" feature
Conditionally add the "android.software.preview_sdk" feature to any
targets that have a Build.VERSION.CODENAME != "REL". This allows clients
to filter out platforms that are not running official Android releases.

Bug: 31064561
Test: verified using PackageManager#getSystemAvailableFeatures()
Change-Id: I539e9537f5f9a572db0a15489b14710e2e8eb0c0
2017-04-13 20:57:50 +00:00
Martijn Coenen 96d62d7fb7 Add NfcNci to default builds.
The package won't be started if the feature is not
present on the device, but we need it for generic
builds.

Bug: 36873979
Test: marlin builds
Change-Id: Ib8110e5af00f8365f45f50b147fe5fb42f1a14e1
2017-04-13 11:13:46 -07:00
Michael Schwartz 4d9cb56866 Rule to copy device manifest to device
The device manifest defines the collection of HAL interfaces exposed by
the vendor. Create a common rule so each target need not define their own.

Bug: 36810913
Test: Ran marlin build and inspected file was copied
Change-Id: I9f53796fdd85e706f91664d275aff6dbd785213f
2017-04-13 08:42:42 -07:00
Martijn Coenen 14d363fa42 Merge "Add hwservice_contexts to default builds." into oc-dev 2017-04-13 03:34:49 +00:00
Jiyong Park 93cae68532 Change ld.config.txt to a module
ld.config.txt is changed to a module. So, installing it via
PRODUCT_PACKAGES intead of PRODUCT_COPY_FILES.

Bug: 37138083
Test: sailfish boots
Change-Id: I8689b7c090901d4f157c5da8a67326c97373ed29
2017-04-13 11:29:24 +09:00
Martijn Coenen bcd029c587 Add hwservice_contexts to default builds.
Bug: 34454312
Test: marlin boots
Change-Id: Ifff8c2842b4131dba6a480c87c6db1e65497e6ef
2017-04-12 12:43:26 -07:00
Jaekyun Seok 0d16dd1942 Remove resource overlay
Test: building succeeded and tested with sailfish vendor image.
Bug: 36231603

Change-Id: I5d2d6d882ef3fc8a807a8b0ecd2f59f8a4a03e1f
2017-04-12 18:35:19 +09:00
Martijn Coenen 1fe4f23a04 Add 'vndservice' to default builds.
To query vndservicemanager and its services.

Bug: 36987120
Test: vndservice present and works
Change-Id: Ic65acbde17a1be5b728eeeac0f799a86c1d8c1fa
2017-04-07 10:49:22 -07:00
Martijn Coenen ca1fd78190 Add vndservicemanager to default builds.
vndservicemanager will be used for AIDL/binder
communication between processes running from
the /vendor partition. While technically only
required on full-treble devices, it is useful
to have on Android devices by default, since it
allows vendors to distribute a single binary talking
to vndservicemanager, instead of having to maintain
two versions that talk to different servicemanagers.

On devices that don't have a new kernel prebuilt with
/dev/vndbinder yet, vndservicemanager will simply
block indefinitely.

Also add new vndservice_contexts target, that
defines the service contexts for vendor services.

Bug: 36052864
Test: Marlin boots with and without /dev/vndbinder
Change-Id: I7334b5cb357dc6d4c5de8632e835dd892cd2f174
2017-04-04 14:06:04 -07:00
Steven Moreland 417fc4f445 ENABLE_TREBLE is deprecated
ENABLE_TREBLE is deprecated...removing obsolete code fragments related
to the flag.

Test: marlin boots/works
aosp_arm64_ab boots/works on sailfish/marlin

Bug: 32978887
Change-Id: I59b4509e4e7ec11cfa138200bccc4418c10b44f3
2017-04-03 12:27:51 +09:00
TreeHugger Robot 4afcb8c6b6 Merge "Add vr binary to commands" into oc-dev 2017-03-31 23:48:25 +00:00
Karthik Ravi Shankar 35aed3da10 Add vr binary to commands
Bug: 36071574

Change-Id: I8a953950a4eb96d9ffa2ee5789e3c8cd98b4dd0e
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
2017-03-31 11:17:59 -07:00
Nicolas Geoffray 7d32b8bb4f Introduce a whitelist for core apps used by system server.
And by default 'speed' compile those apps at build time.

bug:33799337
Test: m -j32
Change-Id: I7be3bbfef59c020a34b9a82ef038bd27210bc9d7
(cherry picked from commit 9af483488a)
2017-03-30 11:47:13 +00:00
Jiyong Park 6fdf938751 Remove marlin/sailfish specific sepolicy
Don't use sepolicy dir for marlin/sailfish.

Bug: 36231802
Test: aosp_arm64_ab should boot
Change-Id: I0e76841530cec2c51b61251ffde802bd7ec10663
2017-03-30 14:25:41 +09:00
Sunny Goyal 4f49a94fe7 Including WallpaperPicker in SDK build
Bug: 35724630
Test: None
Change-Id: I5b066171b70899d4d980d3cdedd32ad58ade9b90
2017-03-29 01:32:47 +00:00
Esteban Talavera deb26ad395 Revert "Remove resource overlays"
This reverts commit 1dcf689c3b.

The CL broke git_master/sailfish-userdebug_P and oc-release/marlin_svelte

Bug: 36231603
Test: "make" works again for oc-release/marlin_svelte after reverting both CLs from this topic

Change-Id: I861b8b11c29293fb4a0c746768c03bc4eb986807
2017-03-28 17:02:20 +01:00
TreeHugger Robot 0b1e95f08b Merge "Remove resource overlays" 2017-03-28 01:02:54 +00:00
Jeff Vander Stoep b8093c0e87 Merge "embedded.mk: Make phony selinux_policy" am: b30c12df3e am: 6d418a86b7
am: 856b00b8db

Change-Id: Ib3fc261851e1a19eea91513f0ea2fbe3dde5ba1c
2017-03-27 20:12:11 +00:00
Jeff Vander Stoep 6d418a86b7 Merge "embedded.mk: Make phony selinux_policy"
am: b30c12df3e

Change-Id: Iba9b4c92d1772f50f77a112747b32d4c4290e363
2017-03-27 20:06:41 +00:00
Treehugger Robot b30c12df3e Merge "embedded.mk: Make phony selinux_policy" 2017-03-27 20:03:04 +00:00
Jiyong Park d68246c8e4 Remove mailin/sailfish fstab from the generic system image
fstab files are now in /vendor/etc. No need to have it in system.

Bug: 36229492
Test: aosp_arm64_ab should boot in sailfish/marlin
Change-Id: I9ced5361ce3e3a98722d45124ee58d4411f06273
2017-03-27 15:46:34 +09:00
Jaekyun Seok 1dcf689c3b Remove resource overlays
Test: building succeeded and tested on sailfish and marlin with
http://ag/2009238.
Bug: 36231603

Change-Id: I82d672cbdca3b8597de71c821df8fb92f27318f3
2017-03-27 14:52:57 +09:00
Jeff Vander Stoep 2064364765 embedded.mk: Make phony selinux_policy
Moves selinux policy build decisions to system/sepolicy/Android.mk.
This is done because the PRODUCT_FULL_TREBLE variable isn't available
in embedded.mk and TARGET_SANITIZE isn't available to dependencies of
init.

Test: Build/boot Bullhead PRODUCT_FULL_TREBLE=false
Test: Build/boot Marlin PRODUCT_FULL_TREBLE=true
Test: Build Marlin TARGET_SANITIZE=address. Verify asan rules are
      included in policy output.

Bug: 36138508
Change-Id: I792786cd867bae3e1baeb824167a848948a719df
2017-03-26 14:51:38 -07:00
Dimitry Ivanov b5bbf1ad0f Merge "Add ld.config.txt to rootdir/etc" am: 86559441a1 am: 3fd5bf0f82
am: 4926df7b5f

Change-Id: Ie5ba33fe45bfaa069f3454e50b5eaf3ca5df1deb
2017-03-25 05:26:21 +00:00
Dimitry Ivanov 3fd5bf0f82 Merge "Add ld.config.txt to rootdir/etc"
am: 86559441a1

Change-Id: I35da84dceb546c04494e16106745b63cc80234b0
2017-03-25 05:21:15 +00:00
Treehugger Robot 86559441a1 Merge "Add ld.config.txt to rootdir/etc" 2017-03-25 05:17:32 +00:00
TreeHugger Robot d4bcd158a5 Merge "Use HWC2 for all emulator images." 2017-03-24 21:03:37 +00:00
Jiyong Park 06241051e8 Make telephony work on generic system image
Bug: 36070427
Test: modem is up and emergency call can be made
Change-Id: Ic09200943a7ae7c51e420c6485f3b1b95c702265
2017-03-24 08:47:47 +00:00
TreeHugger Robot e496c6a76f Merge "Add libion to the generic sytem image for camera" 2017-03-24 07:56:57 +00:00
TreeHugger Robot 75187d0d8e Merge "Add wifi support to the generic system image" 2017-03-24 07:51:34 +00:00
Jiyong Park a14bf425f7 Add libion to the generic sytem image for camera
Camera HAL is using libion. I believe libion is generic library, so put
it in this generic system image.

Bug: 36043196
Test: make, flash and check that libion.so is in /system/lib.
Change-Id: I2e6b68e5899e27c603476ad7c5cd64f3cd5a8c53
2017-03-24 06:29:02 +00:00
TreeHugger Robot 74922e8dfb Merge "Remove dependency on marlin sepolicy" 2017-03-23 22:30:19 +00:00
TreeHugger Robot c003af00a1 Merge "Remove media config file copy rule" 2017-03-23 20:14:37 +00:00
Lingfeng Yang 450cd0ba62 Use HWC2 for all emulator images.
bug: 36375335

Change-Id: I1a220d7ea0174a87713e3009ceba22a5e3f66f25
2017-03-23 19:33:33 +00:00
Diego Wilson f4efd73e96 Remove dependency on marlin sepolicy
Now that the selinux policy has been split between the system and
vendor partitions the aosp_arm64_ab build variant no longer
depends on the marlin selinux policy to work on marlin and sailfish.

Test: build and flash aosp_arm64_ab system.img on marlin and sailfish
Change-Id: I7681207284d783ffca1acccf44dbb159ea3b521c
2017-03-23 13:30:04 -04:00