diff --git a/groups/device-specific/.gitignore b/groups/device-specific/.gitignore index f3ab00890..817c5b9e1 100644 --- a/groups/device-specific/.gitignore +++ b/groups/device-specific/.gitignore @@ -1,3 +1,7 @@ -# ignore base_aaos -base_aaos/ -aaos_iasw/ +* +!.gitignore +!caas/ +!default +!doc.spec +!false +!mixinfo.spec diff --git a/groups/device-specific/caas_dev/AndroidBoard.mk b/groups/device-specific/caas_dev/AndroidBoard.mk deleted file mode 100644 index f54382b0e..000000000 --- a/groups/device-specific/caas_dev/AndroidBoard.mk +++ /dev/null @@ -1,30 +0,0 @@ -KERNEL_VIRT_DIFFCONFIG = $(wildcard $(KERNEL_CONFIG_PATH)/virt_diffconfig) -KERNEL_DIFFCONFIG += $(KERNEL_VIRT_DIFFCONFIG) -KERNEL_CAAS_DIFFCONFIG = $(wildcard $(KERNEL_CONFIG_PATH)/caas_diffconfig) -KERNEL_DIFFCONFIG += $(KERNEL_CAAS_DIFFCONFIG) - -# Specify /dev/mmcblk0 size here -BOARD_MMC_SIZE = 15335424K - -LOCAL_CLANG_PATH = $(CLANG_PREBUILTS_PATH)/host/$(HOST_OS)-x86/$(KERNEL_CLANG_VERSION)/bin - -LOCAL_MAKE:= \ - PATH="$(LOCAL_CLANG_PATH):$(PWD)/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin:$$PATH" \ - $(PWD)/prebuilts/build-tools/linux-x86/bin/make - -.PHONY: vinput-manager -vinput-manager: - cd device/intel/civ/host/virtual-input-manager && $(LOCAL_MAKE) - cp device/intel/civ/host/virtual-input-manager/vinput-manager $(PRODUCT_OUT)/scripts/ - cp device/intel/civ/host/virtual-input-manager/sendkey $(PRODUCT_OUT)/scripts/ - -.PHONY: em-host-utilities -em-host-utilities: - mkdir -p $(PRODUCT_OUT)/scripts/ - cd device/intel/civ/host/backend/battery/vm_battery_utility && $(LOCAL_MAKE) - cp device/intel/civ/host/backend/battery/vm_battery_utility/batsys $(PRODUCT_OUT)/scripts/ - cd device/intel/civ/host/backend/thermal/vm_thermal_utility && $(LOCAL_MAKE) - cp device/intel/civ/host/backend/thermal/vm_thermal_utility/thermsys $(PRODUCT_OUT)/scripts/ - -.PHONY: host-pkg -host-pkg: em-host-utilities vinput-manager diff --git a/groups/device-specific/caas_dev/BoardConfig.mk b/groups/device-specific/caas_dev/BoardConfig.mk deleted file mode 100644 index cbf3232eb..000000000 --- a/groups/device-specific/caas_dev/BoardConfig.mk +++ /dev/null @@ -1,53 +0,0 @@ -DEVICE_PACKAGE_OVERLAYS += ${TARGET_DEVICE_DIR}/overlay - -BOARD_KERNEL_CMDLINE += \ - no_timer_check \ - noxsaves \ - reboot_panic=p,w \ - i915.hpd_sense_invert=0x7 \ - intel_iommu=off \ - i915.enable_pvmmio=0 \ - loop.max_part=7 - -BOARD_FLASHFILES += ${TARGET_DEVICE_DIR}/bldr_utils.img:bldr_utils.img -BOARD_FLASHFILES += $(PRODUCT_OUT)/LICENSE -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/start_flash_usb.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/auto_switch_pt_usb_vms.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/findall.py -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/setup_host.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/sof_audio/configure_sof.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/cam_sharing/0001-Netlink-sync.patch -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/cam_sharing/IntelCameraService -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/cam_sharing/virtualcamera.service -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/setup_cam_sharing.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/setup_audio_host.sh -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/guest_pm_control -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/intel-thermal-conf.xml -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/thermald.service -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/rpmb_dev -BOARD_FLASHFILES += $(PRODUCT_OUT)/scripts/vm-manager.deb - -# for USB OTG WA -BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/bxt_usb - -# i915_async -BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/i915_async - -#for clipboard agent -PRODUCT_PRIVATE_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/clipboard_agent/private - -#add vendor property -BOARD_SEPOLICY_DIRS += device/intel/sepolicy/vendor/ - -TARGET_USES_HWC2 := true -BOARD_USES_GENERIC_AUDIO := false - -DEVICE_MANIFEST_FILE := ${TARGET_DEVICE_DIR}/manifest.xml -DEVICE_MATRIX_FILE := ${TARGET_DEVICE_DIR}/compatibility_matrix.xml -DEVICE_FRAMEWORK_MANIFEST_FILE := ${TARGET_DEVICE_DIR}/framework_manifest.xml -BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true -BUILD_BROKEN_USES_BUILD_HOST_SHARED_LIBRARY := true -BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE := true -BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true -# PRODUCT_COPY_FILES directives. -BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true diff --git a/groups/device-specific/caas_dev/addon/debian/control b/groups/device-specific/caas_dev/addon/debian/control deleted file mode 100644 index 9db04560d..000000000 --- a/groups/device-specific/caas_dev/addon/debian/control +++ /dev/null @@ -1,9 +0,0 @@ -Package: release -Version: 1.0 -Section: custom -Priority: optional -Architecture: all -Essential: no -Installed-Size: 1024 -Maintainer: Intel -Description: celadon on vm diff --git a/groups/device-specific/caas_dev/auto_switch_pt_usb_vms.sh b/groups/device-specific/caas_dev/auto_switch_pt_usb_vms.sh deleted file mode 100644 index 17d4c76f4..000000000 --- a/groups/device-specific/caas_dev/auto_switch_pt_usb_vms.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -findall() -{ - args="" - input="usb_vm.txt" - if [ ! -s $input ] - then - return - fi - while IFS=" " read -r line - do - args="$args $line" - done < "$input" - i=0 - bcnt=0 - pcnt=0 - bs='\' - for word in $args - do - if [ $(( i % 2 )) == 0 ] - then - bid[$bcnt]=$word - bcnt=$bcnt+1 - else - pid[$pcnt]=$word - pcnt=$pcnt+1 - fi - i=$(( i + 1 )) - #i=$i+1 - done - - i=0 - for elem in "${bid[@]}" - do - echo "-device usb-host,hostbus=${bid[$i]},hostport=${pid[$i]}" - i=$(( i + 1 )) - done - -} - -rm -rf usb_vm.txt -python3 $1 -findall diff --git a/groups/device-specific/caas_dev/bldr_utils.img b/groups/device-specific/caas_dev/bldr_utils.img deleted file mode 100644 index 0d063f8a6..000000000 Binary files a/groups/device-specific/caas_dev/bldr_utils.img and /dev/null differ diff --git a/groups/device-specific/caas_dev/caas_dev.mk b/groups/device-specific/caas_dev/caas_dev.mk deleted file mode 100644 index aad059a96..000000000 --- a/groups/device-specific/caas_dev/caas_dev.mk +++ /dev/null @@ -1,72 +0,0 @@ -# -# Copyright 2014 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Sample: This is where we'd set a backup provider if we had one -# $(call inherit-product, device/sample/products/backup_overlay.mk) -{{#treble}} -PRODUCT_FULL_TREBLE_OVERRIDE := true -{{/treble}} -{{^treble}} -PRODUCT_FULL_TREBLE_OVERRIDE := false -{{/treble}} - -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64_32 -PRODUCT_COPY_FILES += system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc - -BOARD_USE_64BIT_USERSPACE := true - -TARGET_GFX_INTEL := intel - -INTEL_PATH_DEVICE := device/intel/project-celadon -INTEL_PATH_COMMON := device/intel/common -INTEL_PATH_SEPOLICY := device/intel/sepolicy -INTEL_PATH_BUILD := device/intel/build -INTEL_PATH_HARDWARE := hardware/intel -INTEL_PATH_VENDOR := vendor/intel -INTEL_PATH_PREKERNEL := device/intel/prebuilt_kernel -INTEL_PATH_PREBUILTS := vendor/intel/prebuilts -INTEL_PATH_PREBUILTS_OUT = $(PRODUCT_OUT)/prebuilts - -# Set Vendor SPL to match platform -VENDOR_SECURITY_PATCH = $(PLATFORM_SECURITY_PATCH) - -# refer board_config_mk definition in build/make/core/envsetup.mk file to get TARGET_DEVICE -_board_config_mk := $(shell find $(dir $(current_product_makefile)) -maxdepth 2 -name BoardConfig.mk) -#TARGET_DEVICE_DIR := $(shell dirname $(_board_config_mk)) -TARGET_DEVICE := $(shell basename $(TARGET_DEVICE_DIR)) - -$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -$(call inherit-product, $(LOCAL_PATH)/device.mk) - -PRODUCT_NAME := {{target}} -PRODUCT_DEVICE := {{target}} -PRODUCT_BRAND := intel -PRODUCT_MODEL := AOSP on Intel Platform -PRODUCT_MANUFACTURER := Intel -PRODUCT_LOCALES := en_US en_IN fr_FR it_IT es_ES et_EE de_DE nl_NL cs_CZ pl_PL ja_JP zh_TW zh_CN zh_HK ru_RU ko_KR nb_NO es_US da_DK el_GR tr_TR pt_PT pt_BR rm_CH sv_SE bg_BG ca_ES en_GB fi_FI hi_IN hr_HR hu_HU in_ID iw_IL lt_LT lv_LV ro_RO sk_SK sl_SI sr_RS uk_UA vi_VN tl_PH ar_EG fa_IR th_TH sw_TZ ms_MY af_ZA zu_ZA am_ET hi_IN en_XA ar_XB fr_CA km_KH lo_LA ne_NP mn_MN hy_AM az_AZ ka_GE de_AT de_CH de_LI en_AU en_CA en_NZ en_SG eo_EU fr_CH fr_BE it_CH nl_BE -PRODUCT_AAPT_CONFIG := normal large mdpi -PRODUCT_AAPT_PREF_CONFIG := mdpi - -PRODUCT_RESTRICT_VENDOR_FILES := false -PRODUCT_SET_DEBUGFS_RESTRICTIONS := false -{{^ota-update}} -PRODUCT_SHIPPING_API_LEVEL := 33 -PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := true -{{/ota-update}} -{{#ota-update}} -PRODUCT_SHIPPING_API_LEVEL := 27 -{{/ota-update}} diff --git a/groups/device-specific/caas_dev/cam_sharing/0001-Netlink-sync.patch b/groups/device-specific/caas_dev/cam_sharing/0001-Netlink-sync.patch deleted file mode 100644 index edbb0f4f0..000000000 --- a/groups/device-specific/caas_dev/cam_sharing/0001-Netlink-sync.patch +++ /dev/null @@ -1,201 +0,0 @@ -From 68fe44c6753b4ffa75a43ad07fa29d36cf93c90a Mon Sep 17 00:00:00 2001 -From: Neo Fang -Date: Tue, 25 May 2021 15:27:24 +0800 -Subject: [PATCH] Netlink sync - -Add netlink send/receive in v4l2loopback_open and v4l2loopback_close functions. -When an app tries to open v4l2loopback device node, v4l2loopback_open/close will broadcast -this message thru netlink and wait 750ms for the response. -In design, IntelCameraService(userspace service) will fetch the netlink message and -sendback the response after handled. ---- - v4l2loopback.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 109 insertions(+) - -diff --git a/v4l2loopback.c b/v4l2loopback.c -index 2e63751..fb6cbf1 100644 ---- a/v4l2loopback.c -+++ b/v4l2loopback.c -@@ -36,6 +36,11 @@ - #endif - #include - -+#include -+#include -+#include -+#include -+ - #include - #include "v4l2loopback.h" - -@@ -63,6 +68,9 @@ MODULE_AUTHOR("Vasily Levin, " - "et al."); - MODULE_LICENSE("GPL"); - -+struct sock *nl_sk = NULL; -+#define MYMGRP 22 -+ - /* - * helpers - */ -@@ -458,6 +466,76 @@ struct v4l2l_format { - #define FORMAT_FLAGS_PLANAR 0x01 - #define FORMAT_FLAGS_COMPRESSED 0x02 - -+ -+DECLARE_COMPLETION(SyncCompl); -+ -+void nl_recv_msg(struct sk_buff *skb) { -+ struct nlmsghdr *nlh = nlmsg_hdr(skb); -+ dprintk(KERN_INFO "Netlink received msg from userspace echo:%s\n", (char *)nlmsg_data(nlh)); -+ complete(&SyncCompl); -+} -+ -+void nl_send_msg(char *msg) { -+ struct sk_buff *skb_out; -+ struct nlmsghdr *nlh; -+ int res; -+ int msg_size; -+ -+ char send_msg[48]; -+ unsigned long timeout; -+ unsigned long ret_compl; -+ -+ dprintk(KERN_ALERT "THREAD NAME = %s\n", current->comm); -+ if (strncmp(current->comm, "IntelCameraService", strlen(current->comm)) == 0) { -+ return; -+ } -+ memset(send_msg, 0, sizeof(send_msg)); -+ sprintf(send_msg, "%d&%s&%s", current->pid, current->comm, msg); -+ msg_size = strlen(send_msg) + 1; -+ -+ skb_out = nlmsg_new( -+ NLMSG_ALIGN(msg_size), // @payload: size of the message payload -+ GFP_NOWAIT // @flags: the type of memory to allocate. -+ ); -+ if (!skb_out) { -+ printk(KERN_ERR "Failed to allocate new skb\n"); -+ return; -+ } -+ -+ nlh = nlmsg_put( -+ skb_out, // @skb: socket buffer to store message in -+ 0, // @portid: netlink PORTID of requesting application -+ 0, // @seq: sequence number of message -+ NLMSG_DONE, // @type: message type -+ msg_size, // @payload: length of message payload -+ 0 // @flags: message flags -+ ); -+ -+ memcpy(nlmsg_data(nlh), send_msg, msg_size); -+ res = nlmsg_multicast( -+ nl_sk, // @sk: netlink socket to spread messages to -+ skb_out, // @skb: netlink message as socket buffer -+ 0, // @portid: own netlink portid to avoid sending to yourself -+ MYMGRP, // @group: multicast group id -+ GFP_NOWAIT // @flags: allocation flags -+ ); -+ //msleep(500); -+ -+ if (res < 0) { -+ printk(KERN_INFO "Error while sending to user: %d\n", res); -+ } else { -+ dprintk(KERN_INFO "Netlink sent msg to userspace :%s %d\n", send_msg, msg_size); -+ timeout = msecs_to_jiffies(3000); -+ ret_compl = wait_for_completion_timeout(&SyncCompl, timeout); -+ if (ret_compl == 0) { -+ dprintk(KERN_INFO "wait_for_completion_timeout timeout."); -+ } -+ dprintk(KERN_INFO "wait_for_completion_timeout done %lu, %lu", ret_compl, timeout); -+ -+ } -+ -+} -+ - #include "v4l2loopback_formats.h" - - static const unsigned int FORMATS = ARRAY_SIZE(formats); -@@ -1978,14 +2056,26 @@ static unsigned int v4l2_loopback_poll(struct file *file, - return ret_mask; - } - -+#define PROMPT_OPEN "open&" -+#define PROMPT_CLOSE "close&" -+#define PROMPT_READ "read&" -+#define PROMPT_WRITE "write&" -+ - /* do not want to limit device opens, it can be as many readers as user want, - * writers are limited by means of setting writer field */ - static int v4l2_loopback_open(struct file *file) - { - struct v4l2_loopback_device *dev; - struct v4l2_loopback_opener *opener; -+ char msg[128]; - MARK(); - dev = v4l2loopback_getdevice(file); -+ -+ memset(msg, 0, sizeof(msg)); -+ strcpy(msg, PROMPT_OPEN); -+ strcpy(msg + strlen(PROMPT_OPEN), dev->card_label); -+ nl_send_msg(msg); -+ - if (dev->open_count.counter >= dev->max_openers) - return -EBUSY; - /* kfree on close */ -@@ -2020,6 +2110,7 @@ static int v4l2_loopback_close(struct file *file) - struct v4l2_loopback_opener *opener; - struct v4l2_loopback_device *dev; - int iswriter = 0; -+ char msg[128]; - MARK(); - - opener = fh_to_opener(file->private_data); -@@ -2042,6 +2133,12 @@ static int v4l2_loopback_close(struct file *file) - if (iswriter) { - dev->ready_for_output = 1; - } -+ -+ memset(msg, 0, sizeof(msg)); -+ strcpy(msg, PROMPT_CLOSE); -+ strcpy(msg + strlen(PROMPT_CLOSE), dev->card_label); -+ nl_send_msg(msg); -+ - MARK(); - return 0; - } -@@ -2772,6 +2869,9 @@ static int __init v4l2loopback_init_module(void) - { - int err; - int i; -+ struct netlink_kernel_cfg cfg = { -+ .input = nl_recv_msg, -+ }; - MARK(); - - err = misc_register(&v4l2loopback_misc); -@@ -2856,6 +2956,13 @@ static int __init v4l2loopback_init_module(void) - (V4L2LOOPBACK_VERSION_CODE ) & 0xff); - // clang-format on - -+ printk(KERN_INFO "Init NetLink of V4l2Loopback\n"); -+ nl_sk = netlink_kernel_create(&init_net, NETLINK_USERSOCK, &cfg); -+ if (!nl_sk) { -+ printk(KERN_ALERT "Error creating socket.\n"); -+ goto error; -+ } -+ - return 0; - error: - misc_deregister(&v4l2loopback_misc); -@@ -2866,6 +2973,8 @@ error: - static void v4l2loopback_cleanup_module(void) - { - MARK(); -+ netlink_kernel_release(nl_sk); -+ - /* unregister the device -> it deletes /dev/video* */ - free_devices(); - /* and get rid of /dev/v4l2loopback */ --- -2.25.1 - diff --git a/groups/device-specific/caas_dev/cam_sharing/IntelCameraService b/groups/device-specific/caas_dev/cam_sharing/IntelCameraService deleted file mode 100644 index 38e08e981..000000000 Binary files a/groups/device-specific/caas_dev/cam_sharing/IntelCameraService and /dev/null differ diff --git a/groups/device-specific/caas_dev/cam_sharing/virtualcamera.service b/groups/device-specific/caas_dev/cam_sharing/virtualcamera.service deleted file mode 100644 index 100b505e4..000000000 --- a/groups/device-specific/caas_dev/cam_sharing/virtualcamera.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description=Virtual Camera Auto Start - -After=default.target - -[Service] -ExecStartPre=/usr/sbin/modprobe v4l2loopback devices=2 video_nr=6,9 card_label="normal","tobii" exclusive_caps=1,1 - -ExecStart=/usr/bin/IntelCameraService -i /dev/video0 -o /dev/video6 -o /dev/video9 -w 1920 -h 1080 -f MJPG - -SuccessExitStatus=255 - -Restart=always - -RestartSec=10 - -[Install] -WantedBy=default.target - diff --git a/groups/device-specific/caas_dev/compatibility_matrix.xml b/groups/device-specific/caas_dev/compatibility_matrix.xml deleted file mode 100644 index 4389dac24..000000000 --- a/groups/device-specific/caas_dev/compatibility_matrix.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - android.frameworks.sensorservice - 1.0 - - ISensorManager - default - - - - android.hidl.allocator - 1.0 - - IAllocator - ashmem - - - - android.hidl.manager - 1.0 - - IServiceManager - default - - - - android.hidl.memory - 1.0 - - IMapper - ashmem - - - - android.hidl.token - 1.0 - - ITokenManager - default - - - - android.system.wifi.keystore - 1.0 - - IKeystore - default - - - - 33 - - diff --git a/groups/device-specific/caas_dev/file_share.sh b/groups/device-specific/caas_dev/file_share.sh deleted file mode 100755 index 3ff5ee838..000000000 --- a/groups/device-specific/caas_dev/file_share.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /system/bin/sh -insmod /vendor/lib/modules/9pnet.ko -insmod /vendor/lib/modules/9pnet_virtio.ko -insmod /vendor/lib/modules/9p.ko -cd /mnt -mkdir /mnt/share -mount -t 9p -o trans=virtio,version=9p2000.L hostshare /mnt/share diff --git a/groups/device-specific/caas_dev/files.spec b/groups/device-specific/caas_dev/files.spec deleted file mode 100644 index c56bb2fdf..000000000 --- a/groups/device-specific/caas_dev/files.spec +++ /dev/null @@ -1,30 +0,0 @@ -[mapping] -{{ref_target}}.mk: {{target}}.mk - -[devicefiles] -bldr_utils.img: "fastboot image is used when bldr partsize is 0" -compatibility_matrix.xml: "add compatibility for ota verify" -flash_cmd.sh: "ELK mode flash tool" -manifest.xml: "define hidl interface" -framework_manifest.xml: "define hidl framework interface" -overlay: "configurations for SystemUI" -system.prop: "system properties file" -{{ref_target}}.mk: "product definition file" -r2_{{target}}.mk: "Ring 2 target for P.car" -start_flash_usb.sh: "script for flashing qcow2 in Qemu" -start_android_qcow2.sh: "script for starting android in Qemu" -setup_host.sh: "script for setting up virtulization environment on host" -setup_cam_sharing.sh: "script for setting up camera sharing feature" -file_share.sh: "script for setting up file sharing environment on host" -sof_audio: "script for sof audio" -cam_sharing: "binaries for virtual device" -auto_switch_pt_usb_vms.sh:"script for switching usb_vms" -guest_pm_control:" Guest PM control" -findall.py: "Find script" -thermald.service: "thermald service" -intel-thermal-conf.xml: "Configuration file" -qmp_events_handler.sh: "Event handler" -setup_audio_host.sh: "scripts for host audio" -wakeup.py: "guest wakeup from vinput-manager" -rpmb_dev: "rpmb simulation application" -vm-manager: "vm-manager host installer package" diff --git a/groups/device-specific/caas_dev/findall.py b/groups/device-specific/caas_dev/findall.py deleted file mode 100644 index 777181129..000000000 --- a/groups/device-specific/caas_dev/findall.py +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/python -import sys -import subprocess -import usb -import usb.core -import usb.util as util -import pyudev -import copy -context = pyudev.Context() -monitor = pyudev.Monitor.from_netlink(context) -monitor.filter_by(subsystem='usb') -old_busid = [] -old_portid = [] -scanDone = False -def findAll(): - if (scanDone == True): - return - # find USB devices - dev = usb.core.find(find_all=True) - busid = [] - portid = [] - # loop through devices, printing vendor and product ids in decimal and hex - for cfg in dev: - flag = 0 - #VendorID=0x46d & ProductID=0x82d bDeviceClass=0xef - #print('VendorID=' + hex(cfg.idVendor) + ' & ProductID=' + hex(cfg.idProduct) + ' portid=' + hex(cfg.port_number) + ' busid=' + hex(cfg.bus) +'\n') - if (cfg.idVendor == 0x46d): - if (cfg.idProduct == 0x82d or cfg.idProduct == 0x85c): - flag = 1 - if (flag == 1): - #print(' busid=' + hex(cfg.bus) + ' portid=' + hex(cfg.port_number) + '\n') - busid.append(cfg.bus) - portid.append(cfg.port_number) - flag = 0 - #ms = [(vid[i], pid[i]) for i in range(0, len(vid))] - f= open("usb_vm.txt","w+") - for j in range (0, len(busid)): - f.write(str(busid[j]) + " " + str(portid[j]) + "\n") - #print (str(hex(vid[j])) + " " + str(hex(pid[j]))) - old_busid = copy.deepcopy(busid) - old_portid = copy.deepcopy(portid) -def findUpdates(action, dev): - global old_busid, old_portid - if action != 'add' and action != 'delete': - return - # find USB devices - dev = usb.core.find(find_all=True) - vid = [] - pid = [] - # loop through devices, printing vendor and product ids in decimal and hex - for cfg in dev: - flag = 0 - #VendorID=0x46d & ProductID=0x82d bDeviceClass=0xef - #print('VendorID=' + hex(cfg.idVendor) + ' & ProductID=' + hex(cfg.idProduct) + ' portid=' + hex(cfg.port_number) + ' busid=' + hex(cfg.bus) +'\n') - if (cfg.idVendor == 0x46d): - if (cfg.idProduct == 0x82d or cfg.idProduct == 0x85c): - flag = 1 - if (flag == 1): - # print(' busid=' + hex(cfg.bus) + ' portid=' + hex(cfg.port_number) + '\n') - vid.append(cfg.bus) - pid.append(cfg.port_number) - flag = 0 - - if old_busid != busid and old_portid != portid: - f= open("usb_vm.txt","w+") - for j in range (0, len(busid)): - f.write(str(hex(busid[j])) + " " + str(hex(portid[j])) + "\n") - #print (str(hex(vid[j])) + " " + str(hex(pid[j]))) - old_busid = copy.deepcopy(busid) - old_portid = copy.deepcopy(portid) -if __name__ == "__main__": - observer = pyudev.MonitorObserver(monitor, findUpdates) - observer.start() - #while True: - findAll() - scanDone = True - pass diff --git a/groups/device-specific/caas_dev/flash_cmd.sh b/groups/device-specific/caas_dev/flash_cmd.sh deleted file mode 100644 index e9010d721..000000000 --- a/groups/device-specific/caas_dev/flash_cmd.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh - -FLASHING_LIST="multiboot bootloader boot system vendor recovery" -ERASE_LIST="data" -FORMAT_LIST="config cache" -MMC="/dev/mmcblk0" -SIMG2IMG="/opt/simg2img/simg2img" -PART_LIST=`mktemp` - -CMDLINE=`cat /proc/cmdline` -for i in $CMDLINE -do - echo $i | grep "ABL.hwver" - if [ "$?" == 0 ];then - hwver=`echo $i | cut -d ',' -f 4 | tr tr '[A-Z]''[a-z]'` - #echo $hwver - if [ "$hwver" == "908f" ];then - echo "a0 soc..." - cp bootloader_gr_mrb bootloader.img - elif [ "$hwver" == "b08f" ];then - echo "b1 soc..." - cp bootloader_gr_mrb_b1 bootloader.img - fi - fi -done - - -echo "Flashing gpt.img" -dd if=gpt.img of=${MMC} - -echo "Reloading partition table" -hdparm -z ${MMC} - -fdisk -l > $PART_LIST -cat $PART_LIST - -for p in $FLASHING_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2-` - - if [ ! -b ${MMC}p${part_num} ] - then - echo "Could not flash $p : partition not found." - continue - fi - - if [ ! -f ${part_name}.img ] - then - echo "Could not flash $p : file not found." - continue - fi - - echo "Flashing ${part_name} on ${MMC}p${part_num}" - unsparsed_img=/tmp/${part_name}.img - - cmd="$SIMG2IMG ${part_name}.img ${unsparsed_img}" - echo $cmd - $cmd - if [ "$?" != "0" ] - then - echo "Source image is not sparsed. Flashing it" - cmd="dd if=${part_name}.img of=${MMC}p${part_num} bs=1M" - echo $cmd - $cmd - else - cmd="dd if=${unsparsed_img} of=${MMC}p${part_num} bs=1M" - echo $cmd - $cmd - fi - rm ${unsparsed_img} -done - -for p in $ERASE_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2` - - echo "Erasing ${part_name} (${MMC}p${part_num})" - dd if=/dev/zero of=${MMC}p${part_num} bs=4096 count=2 -done - -for p in $FORMAT_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2` - - echo "Formatting ${part_name} (${MMC}p${part_num})" - yes | mkfs.ext4 ${MMC}p${part_num} -done - -rm $PART_LIST -sync diff --git a/groups/device-specific/caas_dev/flashfiles.ini b/groups/device-specific/caas_dev/flashfiles.ini deleted file mode 100644 index 1a185a652..000000000 --- a/groups/device-specific/caas_dev/flashfiles.ini +++ /dev/null @@ -1,16 +0,0 @@ -[global] -[command.unlock.unlock] -block_scan = true - -[command.format.data] -block_scan = true -timeout = 6000000 - -[command.{{^dynamic-partitions}}flash{{/dynamic-partitions}}{{#dynamic-partitions}}usfb_flash{{/dynamic-partitions}}.system] -block_scan = true - -[command.{{^dynamic-partitions}}flash{{/dynamic-partitions}}{{#dynamic-partitions}}usfb_flash{{/dynamic-partitions}}.vendor] -block_scan = true - -[command.lock.lock] -block_scan = true diff --git a/groups/device-specific/caas_dev/framework_manifest.xml b/groups/device-specific/caas_dev/framework_manifest.xml deleted file mode 100644 index 5de84f50a..000000000 --- a/groups/device-specific/caas_dev/framework_manifest.xml +++ /dev/null @@ -1,197 +0,0 @@ -{{^ota-update}} - -{{/ota-update}} -{{#ota-update}} - -{{/ota-update}} - - android.hardware.identity - 4 - - IIdentityCredentialStore - default - - - - android.hardware.security.keymint - 2 - - IKeyMintDevice - default - - - - android.hardware.security.keymint - 2 - - IRemotelyProvisionedComponent - default - - - - android.hardware.security.secureclock - - ISecureClock - default - - - - android.hardware.security.sharedsecret - - ISharedSecret - default - - - - android.hardware.health - 1 - IHealth/default - - - android.hardware.thermal - hwbinder - 1.0 - 2.0 - - IThermal - default - - - - android.hardware.gatekeeper - hwbinder - 1.0 - - IGatekeeper - default - - - - android.hardware.audio - hwbinder - 7.1 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 7.0 - - IEffectsFactory - default - - - - android.hardware.graphics.mapper - passthrough - 4.0 - - IMapper - default - - - - - android.hardware.graphics.allocator - hwbinder - 4.0 - - IAllocator - default - - - - android.hardware.graphics.composer - hwbinder - 2.4 - - IComposer - default - - - - android.hardware.wifi.supplicant - 1 - - ISupplicant - default - - - - android.hardware.wifi - hwbinder - 1.5 - - IWifi - default - - - - android.hardware.wifi.hostapd - 1 - - IHostapd - default - - - - android.hardware.media.omx - hwbinder - 1.0 - - IOmx - default - - - IOmxStore - default - - - - android.hardware.drm - hwbinder - @1.4::ICryptoFactory/clearkey - @1.4::IDrmFactory/clearkey - - - android.hardware.usb - 1 - - IUsb - default - - - - android.hardware.camera.provider - hwbinder - 2.4 - - ICameraProvider - external/0 - - - - android.hardware.boot - hwbinder - 1.2 - - IBootControl - default - - - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - - - 33 - - diff --git a/groups/device-specific/caas_dev/guest_pm_control b/groups/device-specific/caas_dev/guest_pm_control deleted file mode 100755 index d570dc6f0..000000000 --- a/groups/device-specific/caas_dev/guest_pm_control +++ /dev/null @@ -1,177 +0,0 @@ -#!/usr/bin/python3 - -# This script monitors shutdown and reboot event of guests through QEMU -# Guest shutdown/reboot will trigger entire system, the Guest CiV first -# and then Host CPU. -# -# It start QEMU with below comand: -# -# # qemu [...] -qmp unix:./qmp-sock,server -# -# and then Run the QMP shell to minitor the VM events : -# -# $ qmp-shell ./qmp-sock - -from __future__ import print_function -import json -import sys -import os -import time -import glob -import subprocess -import signal -from sys import argv,exit - -sys.path.append(os.path.join(os.path.dirname(__file__), '../qemu-7.2.3/python')) -from qemu import qmp -from qemu.qmp.legacy import QEMUMonitorProtocol - -rtc_wakeup = 0 -current_rtc_wakeup_count = 0 -prev_rtc_wakeup_count = 0 -rtc_wakeup_src = '/sys/devices/platform/rtc_cmos/power/wakeup' - -def detect_rtc_wakeup_src(): - for device in glob.glob('/sys/devices/pnp0/00:0*/power/wakeup'): - with open(device) as f: - for line in f: - wakeup_src = line.rstrip('\n') - if (wakeup_src == "enabled"): - return "".join((device, "_active_count")); - with open(rtc_wakeup_src) as f: - for line in f: - wakeup_src = line.rstrip('\n') - if (wakeup_src == "enabled"): - return "".join((rtc_wakeup_src, "_active_count")); - - return "none" - -def wakeup(qemu_hdl): - if (qemu_hdl == None): - print("Invalid qmp handler") - return -1 - - resp = qemu_hdl.cmd('query-status') - if resp != None: - for val in resp.values(): - if val['status'] == "suspended": - qemu_hdl.cmd('system_wakeup') - return 0 - elif val['status'] == "running": - return 1 - return -1 - -def main(): - - if len(argv) > 3: - print(' Proper argument not provided') - print(' 1. qmp-socket 2. path to sendkey library') - exit(1) - - rtc_wakeup_device = detect_rtc_wakeup_src() - - # check if qmp unix socket is created. - while True: - if os.path.exists(sys.argv[1]): - break - # even after checking the unix socket creation, we see failure when it try - # to connect to this unix socket. To avoid this failure delay of 2 second - # has been kept. With this delay there is no connection failure. - time.sleep(2) - qemu = QEMUMonitorProtocol(argv[1]) - - # Make a connection to QMP server. Break while loop only when the connection is made. - # put a timeout 2 minutes if connection is not successful - timeout_start = time.time() - while True: - try: - qemu.connect() - except qmp.QMPConnectError: - print('Didn\'t get QMP greeting message from QEMU QMP server') - except qmp.QMPCapabilitiesError: - print('Could not negotiate capabilities with QEMU QMP server') - except qmp.QMPTimeoutError: - print('Connection Timeout Error') - else: - print("connected to QEMU QMP server") - break - - while True: - try: - # Pull the VM shutdown and reboot event from QEMU QMP Server - resp = qemu.pull_event(wait=True) - if resp != None: - for val in resp.values(): - if val == "SHUTDOWN" or val == "RESET": - if "guest-reset" in json.dumps(resp["data"]): - print("VM is rebooting") - print("Reason: guest reset request") - os.system('reboot') - break - elif "host-qmp-system-reset" in json.dumps(resp["data"]): - print("VM is rebooting") - print("Reason: Reboot triggered by host") - os.system('reboot') - break - elif "host-qmp-quit" in json.dumps(resp["data"]): - print("VM is getting Shutdown") - print("Reason: this is in reaction to qmp quit command by host") - elif "host-signal" in json.dumps(resp["data"]): - print("VM is getting Shutdown") - print("Reason: this is in reaction to a signal, such as SIGINT") - elif "guest-shutdown" in json.dumps(resp["data"]): - print("VM is getting Shutdown") - print("Reason: guest Shutdown request, via ACPI or other hardware specific means") - elif "guest-panic" in json.dumps(resp["data"]): - print("VM is getting Shutdown") - print("Reason: guest panic results in to shutdown") - elif "host-error" in json.dumps(resp["data"]): - print("VM is getting Shutdown") - print("Reason: An error prevents further use of guest and results in shutdown") - cmdCommand = "poweroff -p -f" - signal.signal(signal.SIGTERM, signal.SIG_IGN) - process = subprocess.Popen(cmdCommand.split(), stdout=subprocess.PIPE, shell=True) - elif val == "SUSPEND": - - # Read the previous RTC wakeup count - if (rtc_wakeup_device != "none"): - with open(rtc_wakeup_device) as f: - for line in f: - prev_rtc_wakeup_count = line.rstrip('\n') - - # Put the host in to sleep state - cmdCommand = "systemctl suspend" - process = subprocess.Popen(cmdCommand.split(), stdout=subprocess.PIPE) - time.sleep(.75) - - # Read the current RTC wakeup count - if (rtc_wakeup_device != "none"): - with open(rtc_wakeup_device) as f: - for line in f: - current_rtc_wakeup_count = line.rstrip('\n') - # Send power button event to wake the android - if prev_rtc_wakeup_count == current_rtc_wakeup_count: - # Send power button event to wake the android - res = wakeup(qemu) - if (res == 1): - #guest already wakeup by pnp0. Need to send power button event - rtc_wakeup = 0 - else: - #guest is not wakeup by pnp0. wakeup() has wakeup the screen - rtc_wakeup = 1 - else: - #rtc alarm wake up - rtc_wakeup = 1 - - elif val == "WAKEUP": - if rtc_wakeup == 0: - time.sleep(1) - # send power button event using sendkey binary - process = subprocess.run([argv[2], '--vm', '0', '--power', '0']) - - except KeyboardInterrupt: - print('interrupted!') - break - -if __name__ == '__main__': - main() diff --git a/groups/device-specific/caas_dev/init.rc b/groups/device-specific/caas_dev/init.rc deleted file mode 100644 index ea10bd9e0..000000000 --- a/groups/device-specific/caas_dev/init.rc +++ /dev/null @@ -1,43 +0,0 @@ -on post-fs-data - mkdir /data/kpanic 0770 system system - mkdir /data/kpanic/pstore 0770 system system - # Set indication (checked by vold) that we have finished this action - setprop vold.post_fs_data_done 1 - -on boot - write /sys/devices/platform/INT33BB:00/power/control on - write /sys/devices/pci0000\:00/0000\:00\:15.0/power/control auto - -on post-fs - #Accelerometer: X & Z inverted - setprop ro.vendor.iio.accel.x.opt_scale -1 - setprop ro.vendor.iio.accel.z.opt_scale -1 - - #Gyro: X & Z inverted - setprop ro.vendor.iio.anglvel.x.opt_scale -1 - setprop ro.vendor.iio.anglvel.z.opt_scale -1 - - #Magnetometer: X & Z inverted - setprop ro.vendor.iio.magn.x.opt_scale -1 - setprop ro.vendor.iio.magn.z.opt_scale -1 - -on boot - write /sys/class/gpio/export 444 - write /sys/class/gpio/gpio444/direction out - write /sys/class/gpio/gpio444/value 1 - -# Set adb over network tcp port - setprop service.adb.tcp.port 5555 - -# workaround for the sys fs create -on post-fs - # Create trace buffer, and set basic configuration. - mkdir /sys/kernel/debug/tracing/instances/wifi 711 - -on post-fs - insmod /vendor/lib/modules/mii.ko - insmod /vendor/lib/modules/libphy.ko - insmod /vendor/lib/modules/usbnet.ko - insmod /vendor/lib/modules/asix.ko - insmod /vendor/lib/modules/r8152.ko - insmod /vendor/lib/modules/r8169.ko diff --git a/groups/device-specific/caas_dev/init.recovery.rc b/groups/device-specific/caas_dev/init.recovery.rc deleted file mode 100644 index 774d2cc39..000000000 --- a/groups/device-specific/caas_dev/init.recovery.rc +++ /dev/null @@ -1,2 +0,0 @@ -on post-fs - wait /dev/graphics/fb0 diff --git a/groups/device-specific/caas_dev/intel-thermal-conf.xml b/groups/device-specific/caas_dev/intel-thermal-conf.xml deleted file mode 100644 index dd5fcaca7..000000000 --- a/groups/device-specific/caas_dev/intel-thermal-conf.xml +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - CML-NUC-U-SERIES - NUC10i7FNH - QUIET - - - cpu_passive - - - x86_pkg_temp - 85000 - Passive - - rapl_limit_1 - - - - x86_pkg_temp - 95000 - Passive - - rapl_limit_2 - - - - - - - - rapl_limit_1 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 25000000 - 0 - 13000000 - -200000 - - - rapl_limit_2 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 13000000 - 0 - 6000000 - -200000 - - - - - - - - CML-NUC-U-SERIES - NUC10i7FNK - QUIET - - - cpu_passive - - - x86_pkg_temp - 85000 - Passive - - rapl_limit_1 - - - - x86_pkg_temp - 95000 - Passive - - rapl_limit_2 - - - - - - - - rapl_limit_1 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 25000000 - 0 - 13000000 - -200000 - - - rapl_limit_2 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 13000000 - 0 - 6000000 - -200000 - - - - - - - - CML-RVP-S-SERIES - WhiskeyLake Client Platform - QUIET - - - cpu_passive - - - x86_pkg_temp - 85000 - Passive - - rapl_limit_1 - - - - x86_pkg_temp - 95000 - Passive - - rapl_limit_2 - - - - - - - - rapl_limit_1 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 25000000 - 0 - 13000000 - -200000 - - - rapl_limit_2 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 13000000 - 0 - 6000000 - -200000 - - - - - - - - EHL-CRB-BOARD - Elkhart Lake Embedded Platform - QUIET - - - cpu_passive - - - x86_pkg_temp - 85000 - Passive - - rapl_limit_1 - - - - x86_pkg_temp - 95000 - Passive - - rapl_limit_2 - - - - - - - - rapl_limit_1 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 25000000 - 0 - 13000000 - -200000 - - - rapl_limit_2 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 13000000 - 0 - 6000000 - -200000 - - - - - - - AlderLake-P - Alder Lake Client Platform - QUIET - - - cpu_passive - - - x86_pkg_temp - 85000 - Passive - - rapl_limit_1 - - - - x86_pkg_temp - 95000 - Passive - - rapl_limit_2 - - - - - - x86_pkg_temp - 100000 - Critical - - - - - - - rapl_limit_1 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 25000000 - 0 - 13000000 - -200000 - - - rapl_limit_2 - /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw - 13000000 - 0 - 6000000 - -200000 - - - - - - diff --git a/groups/device-specific/caas_dev/manifest.xml b/groups/device-specific/caas_dev/manifest.xml deleted file mode 100644 index 6c896d7a5..000000000 --- a/groups/device-specific/caas_dev/manifest.xml +++ /dev/null @@ -1,155 +0,0 @@ -{{^ota-update}} - -{{/ota-update}} -{{#ota-update}} - -{{/ota-update}} - - android.hardware.identity - 4 - - IIdentityCredentialStore - default - - - - android.hardware.security.keymint - 2 - - IKeyMintDevice - default - - - - android.hardware.security.keymint - 2 - - IRemotelyProvisionedComponent - default - - - - android.hardware.security.secureclock - - ISecureClock - default - - - - android.hardware.security.sharedsecret - - ISharedSecret - default - - - - android.hardware.health - 1 - IHealth/default - - - android.hardware.thermal - hwbinder - 1.0 - 2.0 - - IThermal - default - - - - android.hardware.audio - hwbinder - 7.1 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 7.0 - - IEffectsFactory - default - - - - android.hardware.graphics.composer - hwbinder - 2.4 - - IComposer - default - - - - android.hardware.bluetooth - hwbinder - 1.0 - - IBluetoothHci - default - - - - android.hardware.bluetooth.audio - 2 - - IBluetoothAudioProviderFactory - default - - - - android.hardware.media.omx - hwbinder - 1.0 - - IOmx - default - - - IOmxStore - default - - - - android.hardware.drm - hwbinder - @1.4::ICryptoFactory/clearkey - @1.4::IDrmFactory/clearkey - - - android.hardware.camera.provider - hwbinder - 2.4 - - ICameraProvider - external/0 - legacy/0 - - - - android.hardware.boot - hwbinder - 1.2 - - IBootControl - default - - - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - - - - 33.0 - - diff --git a/groups/device-specific/caas_dev/option.spec b/groups/device-specific/caas_dev/option.spec deleted file mode 100644 index 10493593e..000000000 --- a/groups/device-specific/caas_dev/option.spec +++ /dev/null @@ -1,8 +0,0 @@ -[defaults] -target = caas_dev -ref_target = caas_dev -ota-update = false - -[mixinfo] -deps = device-type - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/config.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/config.xml deleted file mode 100644 index 6095f5e53..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - false - - false - - false - - false - - - - - "1,1" - "0,1" - "7,1" - - - - - - - - "wifi,1,1,1,-1,true" - "mobile,0,0,0,-1,true" - "mobile_mms,2,0,2,60000,true" - "mobile_supl,3,0,2,60000,true" - "mobile_dun,4,0,2,60000,true" - "mobile_hipri,5,0,3,60000,true" - "mobile_fota,10,0,2,60000,true" - "mobile_cbs,12,0,2,60000,true" - "bluetooth,7,7,2,-1,true" - "mobile_ims,11,0,2,60000,true" - "wifi_p2p,13,1,0,-1,true" - "mobile_ia,14,0,2,-1,true" - "mobile_emergency,15,0,2,-1,true" - "ethernet,9,9,0,-1,true" - - - - - - 0 - 1 - 5 - 7 - 9 - - - - true - - - true - - - - "wlan\\d" - - - - - "bt-pan" - - - - - "rndis0" - - - - true - - - true - - - 50 - 300 - 720 - 2000 - - - - - 60 - 100 - 140 - 200 - 250 - - - - - 50 - 0 - 0 - 0 - 0 - - - - - 60 - 100 - 140 - 200 - 250 - - - - false - - - true - - - 8 - - - power - restart - sleep - bugreport - users - - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/strings.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/strings.xml deleted file mode 100644 index 1a72797dc..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - -Sleep - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/symbols.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/symbols.xml deleted file mode 100644 index a91dfbec6..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/values/symbols.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/xml/power_profile.xml deleted file mode 100644 index b18851058..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/core/res/res/xml/power_profile.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - 0.1 - 870 - 870 - 80 - 40 - 40 - 70 - 110 - 80 - 110 - 0 - 420 - 80 - - - 0.1 - 0.1 - - - 0.2 - 0.1 - - - - - 4 - - - + - - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - - - - - 800000 - 900000 - 1000000 - 1100000 - 1200000 - 1300000 - 1400000 - 1500000 - 1600000 - 1700000 - 1800000 - 1900000 - 2000000 - 2100000 - 2200000 - 2300000 - 2400000 - - - - - 860 - 910 - 950 - 990 - 1010 - 1060 - 1080 - 1600 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - - - - 190 - - - 510 - - - - 22.7 - - - - 65000 - - - - 0 - - 0 - - 0 - - - - - 3300 - - - .0002 - .002 - .02 - .2 - 2 - - - - 0 - 0 - 0 - - 0 - 0 - 0 - 0 - 0 - - 0 - - - - 0 - 0 - - 3300 - - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml deleted file mode 100644 index d385c72ca..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - false - - - true - - - false - diff --git a/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SystemUI/res/values/config.xml deleted file mode 100644 index 1aadcfeab..000000000 --- a/groups/device-specific/caas_dev/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - 1 - - - 100 - 105 - - diff --git a/groups/device-specific/caas_dev/overlay/packages/apps/Bluetooth/res/values/config.xml b/groups/device-specific/caas_dev/overlay/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100644 index 315fa36ad..000000000 --- a/groups/device-specific/caas_dev/overlay/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - true - true - true - true - true - true - true - true - true - true - true - true - diff --git a/groups/device-specific/caas_dev/product.mk b/groups/device-specific/caas_dev/product.mk deleted file mode 100755 index 0530f47f4..000000000 --- a/groups/device-specific/caas_dev/product.mk +++ /dev/null @@ -1,70 +0,0 @@ -TARGET_BOARD_PLATFORM := celadon - -ifneq ($(TARGET_BUILD_VARIANT),user) -PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true -endif - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/init.recovery.rc:root/init.recovery.$(TARGET_PRODUCT).rc \ -{{#treble}} - $(LOCAL_PATH)/init.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(TARGET_PRODUCT).rc \ - $(LOCAL_PATH)/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \ -{{/treble}} -{{^treble}} - $(LOCAL_PATH)/init.rc:root/init.$(TARGET_PRODUCT).rc \ - $(LOCAL_PATH)/ueventd.rc:root/ueventd.$(TARGET_PRODUCT).rc \ -{{/treble}} - -PRODUCT_PACKAGES += vndservicemanager - -PRODUCT_PACKAGES += ClipboardAgent - -PRODUCT_PACKAGES += androidx.window.extensions \ - androidx.window.sidecar - -PRODUCT_PACKAGES += \ - android.hardware.usb-service.example \ - camera.device@1.0-impl \ - android.hardware.camera.provider@2.4-impl \ - android.hardware.graphics.mapper@4.0-impl.minigbm_intel \ - android.hardware.graphics.allocator@4.0-service.minigbm_intel \ - android.hardware.renderscript@1.0-impl \ - android.hardware.graphics.composer@2.4-service \ - android.hardware.identity \ - android.hardware.identity-service.example \ - - -PRODUCT_PROPERTY_OVERRIDES += ro.control_privapp_permissions=enforce -PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.useautofastjni=true -PRODUCT_PRODUCT_PROPERTIES += persist.adb.tcp.port=5555 -PRODUCT_PRODUCT_PROPERTIES += persist.sys.fuse.bpf.enable=true - -PRODUCT_PROPERTY_OVERRIDES += \ - ro.crypto.volume.metadata.method=dm-default-key \ - ro.crypto.dm_default_key.options_format.version=2 \ - ro.crypto.volume.options=::v2 - -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.software.device_admin.xml:vendor/etc/permissions/android.software.device_admin.xml \ - frameworks/native/data/etc/android.software.managed_users.xml:vendor/etc/permissions/android.software.managed_users.xml \ - frameworks/native/data/etc/android.software.secure_lock_screen.xml:vendor/etc/permissions/android.software.secure_lock_screen.xml - -PRODUCT_COPY_FILES += $(LOCAL_PATH)/file_share.sh:$(TARGET_COPY_OUT_VENDOR)/bin/file_share.sh -PRODUCT_COPY_FILES += vendor/intel/utils/bsp_diff/file_for_flashfile:$(PRODUCT_OUT)/LICENSE -PRODUCT_COPY_FILES += $(LOCAL_PATH)/auto_switch_pt_usb_vms.sh:$(PRODUCT_OUT)/scripts/auto_switch_pt_usb_vms.sh -PRODUCT_COPY_FILES += $(LOCAL_PATH)/findall.py:$(PRODUCT_OUT)/scripts/findall.py -PRODUCT_COPY_FILES += $(LOCAL_PATH)/sof_audio/configure_sof.sh:$(PRODUCT_OUT)/scripts/sof_audio/configure_sof.sh -PRODUCT_COPY_FILES += $(LOCAL_PATH)/cam_sharing/0001-Netlink-sync.patch:$(PRODUCT_OUT)/scripts/cam_sharing/0001-Netlink-sync.patch -PRODUCT_COPY_FILES += $(LOCAL_PATH)/cam_sharing/IntelCameraService:$(PRODUCT_OUT)/scripts/cam_sharing/IntelCameraService -PRODUCT_COPY_FILES += $(LOCAL_PATH)/cam_sharing/virtualcamera.service:$(PRODUCT_OUT)/scripts/cam_sharing/virtualcamera.service -PRODUCT_COPY_FILES += $(LOCAL_PATH)/setup_audio_host.sh:$(PRODUCT_OUT)/scripts/setup_audio_host.sh -PRODUCT_COPY_FILES += $(LOCAL_PATH)/guest_pm_control:$(PRODUCT_OUT)/scripts/guest_pm_control -PRODUCT_COPY_FILES += $(LOCAL_PATH)/intel-thermal-conf.xml:$(PRODUCT_OUT)/scripts/intel-thermal-conf.xml -PRODUCT_COPY_FILES += $(LOCAL_PATH)/thermald.service:$(PRODUCT_OUT)/scripts/thermald.service -PRODUCT_COPY_FILES += device/intel/common/host_scripts/setup_host.sh:$(PRODUCT_OUT)/scripts/setup_host.sh -PRODUCT_COPY_FILES += device/intel/common/host_scripts/setup_cam_sharing.sh:$(PRODUCT_OUT)/scripts/setup_cam_sharing.sh -PRODUCT_COPY_FILES += device/intel/common/host_scripts/guest_time_keeping.sh:$(PRODUCT_OUT)/scripts/guest_time_keeping.sh -PRODUCT_COPY_FILES += device/intel/common/host_scripts/start_flash_usb.sh:$(PRODUCT_OUT)/scripts/start_flash_usb.sh -PRODUCT_COPY_FILES += vendor/intel/fw/trusty-release-binaries/rpmb_dev:$(PRODUCT_OUT)/scripts/rpmb_dev -PRODUCT_COPY_FILES += $(LOCAL_PATH)/wakeup.py:$(PRODUCT_OUT)/scripts/wakeup.py -PRODUCT_COPY_FILES += device/intel/civ/host/vm-manager-binaries/vm-manager.deb:$(PRODUCT_OUT)/scripts/vm-manager.deb diff --git a/groups/device-specific/caas_dev/reset_usb.sh b/groups/device-specific/caas_dev/reset_usb.sh deleted file mode 100644 index ff52d0b5d..000000000 --- a/groups/device-specific/caas_dev/reset_usb.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/vendor/bin/sh - -# enable the device mode -echo 1 > /sys/devices/pci0000:00/0000:00:15.1/intel-cht-otg.0/otg_id -# force a VBUS event -echo 1 > /sys/devices/pci0000:00/0000:00:15.1/intel-cht-otg.0/vbus_evt diff --git a/groups/device-specific/caas_dev/setup_audio_host.sh b/groups/device-specific/caas_dev/setup_audio_host.sh deleted file mode 100755 index d9b5f384f..000000000 --- a/groups/device-specific/caas_dev/setup_audio_host.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -ALSA_CONF="/etc/modprobe.d/alsa-base.conf" -pa_cookie="/home/$SUDO_USER/.config/pulse/cookie" -pa_server="$XDG_RUNTIME_DIR/pulse/native" -mic_gain_cmd="pactl set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo " -audio_volume="pactl set-sink-volume @DEFAULT_SINK@" -function getCpuInfo { - echo `lscpu | grep $1 | cut -d ":" -f2 | xargs` -} - -function enableHeadset { - if [[ -z `grep 'dell-headset-multi' $ALSA_CONF` ]];then - echo "will use dell-headset-multi model for snd-hda-intel" - echo "options snd-hda-intel model=dell-headset-multi" >> $ALSA_CONF - fi -} - -function setMicGain { - echo "set alsa mic gain to $1%" - `PULSE_SERVER=$pa_server PULSE_COOKIE=$pa_cookie $mic_gain_cmd $1%` - `PULSE_SERVER=$pa_server PULSE_COOKIE=$pa_cookie $audio_volume 30%` -} - -cpu_family=$(getCpuInfo 'family:') -cpu_model=$(getCpuInfo 'Model:') -#Additional handling for CML and TGL NUC -if [[ ($cpu_family = 6) && (($cpu_model = 166) || ($cpu_model = 140)) ]]; then - echo "CML/TGL NUC detected" - if [[ $1 == "setMicGain" ]]; then - setMicGain 15 - else - enableHeadset - fi -fi - diff --git a/groups/device-specific/caas_dev/sof_audio/configure_sof.sh b/groups/device-specific/caas_dev/sof_audio/configure_sof.sh deleted file mode 100755 index dfc673692..000000000 --- a/groups/device-specific/caas_dev/sof_audio/configure_sof.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -SOFBIN_TPLGS="sof-bin/v2.2.x/sof-tplg/" -SOFBIN_FWS="sof-bin/v2.2.x/sof/" -LIB_TPLG="/lib/firmware/intel/sof-tplg/" -LIB_FW="/lib/firmware/intel/sof/" -SOF_WORK_DIR="$2/sof_audio" -ALSA_CONF="/etc/modprobe.d/alsa-base.conf" -USAGE="Usage : configure_sof.sh install/uninstall WorkingDir" - -function setupSof { - if [[ -z `grep 'options snd-intel-dspcfg' $ALSA_CONF` ]];then - echo "options snd-intel-dspcfg dsp_driver=3" >> $ALSA_CONF - else - sed -i 's/options snd-intel-dspcfg dsp_driver=1/options snd-intel-dspcfg dsp_driver=3/g' $ALSA_CONF - fi - - cd $SOF_WORK_DIR - if [ -d "$LIB_FW" ]; then - if [ ! -d "sof_bkp" ]; then - sudo mv $LIB_FW "sof_bkp" - fi - fi - if [ -d "$LIB_TPLG" ]; then - if [ ! -d "sof-tplg_bkp" ]; then - sudo mv $LIB_TPLG "sof-tplg_bkp" - fi - fi - sudo mkdir $LIB_FW - sudo mkdir $LIB_TPLG - - rm -rf sof-bin - git clone https://github.com/thesofproject/sof-bin -b v2.2 - if [ ! -d "sof-bin" ]; then - echo "Failed to download " - exit -1 - fi - sudo cp "${SOFBIN_TPLGS}sof-hda-generic-4ch.tplg" $LIB_TPLG - sudo cp "${SOFBIN_TPLGS}sof-hda-generic-2ch.tplg" $LIB_TPLG - sudo cp "${SOFBIN_TPLGS}sof-hda-generic.tplg" $LIB_TPLG - sudo cp "${SOFBIN_FWS}sof-cml.ri" $LIB_FW - sudo cp "${SOFBIN_FWS}sof-cnl.ri" $LIB_FW - sudo cp "${SOFBIN_FWS}sof-adl.ri" $LIB_FW -} - -function restore { - cd $SOF_WORK_DIR - rm -rf sof-bin - sudo rm -rf $LIB_FW - sudo rm -rf $LIB_TPLG - if [ -d "sof_bkp" ]; then - sudo mv "sof_bkp" $LIB_FW - fi - if [ -d "sof-tplg_bkp" ]; then - sudo mv "sof-tplg_bkp" $LIB_TPLG - fi - cd .. - rm -rf $SOF_WORK_DIR - sed -i 's/options snd-intel-dspcfg dsp_driver=3/options snd-intel-dspcfg dsp_driver=1/g' $ALSA_CONF -} - -if [[ ! -d $SOF_WORK_DIR ]]; then - echo "Error : $SOF_WORK_DIR does not exist" - echo $USAGE - exit -1 -fi - -echo "SOF_WORK_DIR=$SOF_WORK_DIR" - -if [[ $1 == "install" ]]; then - setupSof -else - if [[ $1 == "uninstall" ]]; then - restore - else - echo $USAGE - exit -1 - fi -fi - diff --git a/groups/device-specific/caas_dev/system.prop b/groups/device-specific/caas_dev/system.prop deleted file mode 100644 index dff1c6dc5..000000000 --- a/groups/device-specific/caas_dev/system.prop +++ /dev/null @@ -1,45 +0,0 @@ -# -# system.prop for {{target}} -# - -persist.sys.enable_rescue=false -persist.sys.disable_rescue=true -persist.bluetooth.enablenewavrcp=true -sys.rescue_level=0 -ro.board.platform=celadon -audio.safemedia.bypass=true -debug.nn.cpuonly=0 -camera.disable_treble=false -ro.incremental.enable=yes - -# Set the Bluetooth Class of Device -# Service Field: 0x5A -> 90 -# Bit 17: Networking -# Bit 19: Capturing -# Bit 20: Object Transfer -# Bit 22: Telephony -# MAJOR_CLASS: 0x02 -> 2 (Phone) -# MINOR_CLASS: 0x0C -> 12 (Smart Phone) -bluetooth.device.class_of_device=90,2,12 - -# Set supported Bluetooth profiles to enabled -bluetooth.profile.asha.central.enabled=true -bluetooth.profile.a2dp.source.enabled=true -bluetooth.profile.avrcp.target.enabled=true -bluetooth.profile.bap.broadcast.assist.enabled=true -bluetooth.profile.bap.unicast.client.enabled=true -bluetooth.profile.bas.client.enabled=true -bluetooth.profile.csip.set_coordinator.enabled=true -bluetooth.profile.gatt.enabled=true -bluetooth.profile.hap.client.enabled=true -bluetooth.profile.hfp.ag.enabled=true -bluetooth.profile.hid.device.enabled=true -bluetooth.profile.hid.host.enabled=true -bluetooth.profile.map.server.enabled=true -bluetooth.profile.mcp.server.enabled=true -bluetooth.profile.opp.enabled=true -bluetooth.profile.pan.nap.enabled=true -bluetooth.profile.pan.panu.enabled=true -bluetooth.profile.pbap.server.enabled=true -bluetooth.profile.ccp.server.enabled=true -bluetooth.profile.vcp.controller.enabled=true diff --git a/groups/device-specific/caas_dev/thermald.service b/groups/device-specific/caas_dev/thermald.service deleted file mode 100644 index 509c14f65..000000000 --- a/groups/device-specific/caas_dev/thermald.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Thermal Daemon Service - -[Service] -Type=dbus -SuccessExitStatus=1 -BusName=org.freedesktop.thermald -ExecStart=/usr/sbin/thermald --config-file=/etc/thermald/intel-thermal-conf.xml --no-daemon --dbus-enable - -[Install] -WantedBy=multi-user.target -Alias=dbus-org.freedesktop.thermald.service - diff --git a/groups/device-specific/caas_dev/ueventd.rc b/groups/device-specific/caas_dev/ueventd.rc deleted file mode 100644 index b13eb99c3..000000000 --- a/groups/device-specific/caas_dev/ueventd.rc +++ /dev/null @@ -1,7 +0,0 @@ -# FIXME: move these mei definitions to a mix-in - -# Used by HW-backed keystore -/dev/mei 0660 system drmrpc - -# Used by WideVine -/dev/meimm 0660 system drmrpc diff --git a/groups/device-specific/caas_dev/wakeup.py b/groups/device-specific/caas_dev/wakeup.py deleted file mode 100755 index 75cd46b8a..000000000 --- a/groups/device-specific/caas_dev/wakeup.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/python -import json -import sys -import os -import time -import subprocess -from sys import argv,exit - -timeout = 60 - -sys.path.append(os.path.join(os.path.dirname(__file__), '../qemu-7.0.0/python')) - -from qemu import qmp - -def main(): - timeout_start = time.time() - qemu = qmp.QEMUMonitorProtocol("/tmp/qmp-vinput-sock") - while True: - try: - qemu.connect(negotiate=True) - break - except qmp.QMPConnectError: - print('Didn\'t get QMP greeting message from QEMU QMP server') - except qmp.QMPCapabilitiesError: - print('Could not negotiate capabilities with QEMU QMP server') - - if time.time() >= timeout + timeout_start: - print("connection timeout error") - return - resp = qemu.cmd('query-status') - if resp != None: - for val in resp.values(): - if val['status'] == "suspended": - qemu.cmd('system_wakeup') - - -if __name__ == '__main__': - main() diff --git a/groups/device-specific/celadon_tablet/AndroidBoard.mk b/groups/device-specific/celadon_tablet/AndroidBoard.mk deleted file mode 100644 index 3fb5ec240..000000000 --- a/groups/device-specific/celadon_tablet/AndroidBoard.mk +++ /dev/null @@ -1,5 +0,0 @@ -KERNEL_APL_DIFFCONFIG = $(wildcard $(KERNEL_CONFIG_PATH)/apl_nuc_diffconfig) -KERNEL_DIFFCONFIG += $(KERNEL_APL_DIFFCONFIG) - -# Specify /dev/mmcblk0 size here -BOARD_MMC_SIZE = 15335424K diff --git a/groups/device-specific/celadon_tablet/BoardConfig.mk b/groups/device-specific/celadon_tablet/BoardConfig.mk deleted file mode 100644 index f920aa7cc..000000000 --- a/groups/device-specific/celadon_tablet/BoardConfig.mk +++ /dev/null @@ -1,30 +0,0 @@ -DEVICE_PACKAGE_OVERLAYS += ${TARGET_DEVICE_DIR}/overlay - -BOARD_KERNEL_CMDLINE += \ - no_timer_check \ - noxsaves \ - reboot_panic=p,w \ - i915.hpd_sense_invert=0x7 \ - intel_iommu=off - -BOARD_FLASHFILES += ${TARGET_DEVICE_DIR}/bldr_utils.img:bldr_utils.img -BOARD_FLASHFILES += $(PRODUCT_OUT)/LICENSE - -# for USB OTG WA -BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/bxt_usb - -# i915_async -BOARD_SEPOLICY_DIRS += $(INTEL_PATH_SEPOLICY)/i915_async - -#add vendor property -BOARD_SEPOLICY_DIRS += device/intel/sepolicy/vendor/ - -TARGET_USES_HWC2 := true -BOARD_USES_GENERIC_AUDIO := false - -DEVICE_MANIFEST_FILE := ${TARGET_DEVICE_DIR}/manifest.xml -DEVICE_MATRIX_FILE := ${TARGET_DEVICE_DIR}/compatibility_matrix.xml -BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true -BUILD_BROKEN_USES_BUILD_HOST_SHARED_LIBRARY := true -BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE := true -BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true diff --git a/groups/device-specific/celadon_tablet/bldr_utils.img b/groups/device-specific/celadon_tablet/bldr_utils.img deleted file mode 100644 index 0d063f8a6..000000000 Binary files a/groups/device-specific/celadon_tablet/bldr_utils.img and /dev/null differ diff --git a/groups/device-specific/celadon_tablet/celadon_tablet.mk b/groups/device-specific/celadon_tablet/celadon_tablet.mk deleted file mode 100644 index 1e37c826e..000000000 --- a/groups/device-specific/celadon_tablet/celadon_tablet.mk +++ /dev/null @@ -1,65 +0,0 @@ -# -# Copyright 2014 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Sample: This is where we'd set a backup provider if we had one -# $(call inherit-product, device/sample/products/backup_overlay.mk) -{{#treble}} -PRODUCT_FULL_TREBLE_OVERRIDE := true -{{/treble}} -{{^treble}} -PRODUCT_FULL_TREBLE_OVERRIDE := false -{{/treble}} - -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64_32 -PRODUCT_COPY_FILES += system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc - -BOARD_USE_64BIT_USERSPACE := true - -INTEL_PATH_DEVICE := device/intel/project-celadon -INTEL_PATH_COMMON := device/intel/common -INTEL_PATH_SEPOLICY := device/intel/sepolicy -INTEL_PATH_BUILD := device/intel/build -INTEL_PATH_HARDWARE := hardware/intel -INTEL_PATH_VENDOR := vendor/intel -INTEL_PATH_PREKERNEL := device/intel/prebuilt_kernel -INTEL_PATH_PREBUILTS := vendor/intel/prebuilts -INTEL_PATH_PREBUILTS_OUT = $(PRODUCT_OUT)/prebuilts - -# refer board_config_mk definition in build/make/core/envsetup.mk file to get TARGET_DEVICE -_board_config_mk := $(shell find $(dir $(current_product_makefile)) -maxdepth 2 -name BoardConfig.mk) -#TARGET_DEVICE_DIR := $(shell dirname $(_board_config_mk)) -TARGET_DEVICE := $(shell basename $(TARGET_DEVICE_DIR)) - -$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -$(call inherit-product, $(LOCAL_PATH)/device.mk) - -PRODUCT_NAME := {{target}} -PRODUCT_DEVICE := {{target}} -PRODUCT_BRAND := intel -PRODUCT_MODEL := AOSP on Intel Platform -PRODUCT_MANUFACTURER := Intel -PRODUCT_LOCALES := en_US en_IN fr_FR it_IT es_ES et_EE de_DE nl_NL cs_CZ pl_PL ja_JP zh_TW zh_CN zh_HK ru_RU ko_KR nb_NO es_US da_DK el_GR tr_TR pt_PT pt_BR rm_CH sv_SE bg_BG ca_ES en_GB fi_FI hi_IN hr_HR hu_HU in_ID iw_IL lt_LT lv_LV ro_RO sk_SK sl_SI sr_RS uk_UA vi_VN tl_PH ar_EG fa_IR th_TH sw_TZ ms_MY af_ZA zu_ZA am_ET hi_IN en_XA ar_XB fr_CA km_KH lo_LA ne_NP mn_MN hy_AM az_AZ ka_GE de_AT de_CH de_LI en_AU en_CA en_NZ en_SG eo_EU fr_CH fr_BE it_CH nl_BE -PRODUCT_AAPT_CONFIG := normal large mdpi -PRODUCT_AAPT_PREF_CONFIG := mdpi - -PRODUCT_RESTRICT_VENDOR_FILES := false -{{^ota-update}} -PRODUCT_SHIPPING_API_LEVEL := 28 -{{/ota-update}} -{{#ota-update}} -PRODUCT_SHIPPING_API_LEVEL := 27 -{{/ota-update}} diff --git a/groups/device-specific/celadon_tablet/compatibility_matrix.xml b/groups/device-specific/celadon_tablet/compatibility_matrix.xml deleted file mode 100644 index 6fe200e2c..000000000 --- a/groups/device-specific/celadon_tablet/compatibility_matrix.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - android.frameworks.displayservice - 1.0 - - IDisplayService - default - - - - android.frameworks.schedulerservice - 1.0 - - ISchedulingPolicyService - default - - - - android.frameworks.sensorservice - 1.0 - - ISensorManager - default - - - - android.hidl.allocator - 1.0 - - IAllocator - ashmem - - - - android.hidl.manager - 1.0 - - IServiceManager - default - - - - android.hidl.memory - 1.0 - - IMapper - ashmem - - - - android.hidl.token - 1.0 - - ITokenManager - default - - - - android.system.wifi.keystore - 1.0 - - IKeystore - default - - - diff --git a/groups/device-specific/celadon_tablet/files.spec b/groups/device-specific/celadon_tablet/files.spec deleted file mode 100644 index 915c825aa..000000000 --- a/groups/device-specific/celadon_tablet/files.spec +++ /dev/null @@ -1,12 +0,0 @@ -[mapping] -{{ref_target}}.mk: {{target}}.mk - -[devicefiles] -bldr_utils.img: "fastboot image is used when bldr partsize is 0" -compatibility_matrix.xml: "add compatibility for ota verify" -flash_cmd.sh: "ELK mode flash tool" -manifest.xml: "define hidl interface" -overlay: "configurations for SystemUI" -system.prop: "system properties file" -{{ref_target}}.mk: "product definition file" -r2_{{target}}.mk: "Ring 2 target for P.car" diff --git a/groups/device-specific/celadon_tablet/flash_cmd.sh b/groups/device-specific/celadon_tablet/flash_cmd.sh deleted file mode 100644 index e9010d721..000000000 --- a/groups/device-specific/celadon_tablet/flash_cmd.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh - -FLASHING_LIST="multiboot bootloader boot system vendor recovery" -ERASE_LIST="data" -FORMAT_LIST="config cache" -MMC="/dev/mmcblk0" -SIMG2IMG="/opt/simg2img/simg2img" -PART_LIST=`mktemp` - -CMDLINE=`cat /proc/cmdline` -for i in $CMDLINE -do - echo $i | grep "ABL.hwver" - if [ "$?" == 0 ];then - hwver=`echo $i | cut -d ',' -f 4 | tr tr '[A-Z]''[a-z]'` - #echo $hwver - if [ "$hwver" == "908f" ];then - echo "a0 soc..." - cp bootloader_gr_mrb bootloader.img - elif [ "$hwver" == "b08f" ];then - echo "b1 soc..." - cp bootloader_gr_mrb_b1 bootloader.img - fi - fi -done - - -echo "Flashing gpt.img" -dd if=gpt.img of=${MMC} - -echo "Reloading partition table" -hdparm -z ${MMC} - -fdisk -l > $PART_LIST -cat $PART_LIST - -for p in $FLASHING_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2-` - - if [ ! -b ${MMC}p${part_num} ] - then - echo "Could not flash $p : partition not found." - continue - fi - - if [ ! -f ${part_name}.img ] - then - echo "Could not flash $p : file not found." - continue - fi - - echo "Flashing ${part_name} on ${MMC}p${part_num}" - unsparsed_img=/tmp/${part_name}.img - - cmd="$SIMG2IMG ${part_name}.img ${unsparsed_img}" - echo $cmd - $cmd - if [ "$?" != "0" ] - then - echo "Source image is not sparsed. Flashing it" - cmd="dd if=${part_name}.img of=${MMC}p${part_num} bs=1M" - echo $cmd - $cmd - else - cmd="dd if=${unsparsed_img} of=${MMC}p${part_num} bs=1M" - echo $cmd - $cmd - fi - rm ${unsparsed_img} -done - -for p in $ERASE_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2` - - echo "Erasing ${part_name} (${MMC}p${part_num})" - dd if=/dev/zero of=${MMC}p${part_num} bs=4096 count=2 -done - -for p in $FORMAT_LIST -do - part_num=`grep -w $p $PART_LIST | awk '{print $1}'` - part_name=`echo $p | cut -d '_' -f 2` - - echo "Formatting ${part_name} (${MMC}p${part_num})" - yes | mkfs.ext4 ${MMC}p${part_num} -done - -rm $PART_LIST -sync diff --git a/groups/device-specific/celadon_tablet/flashfiles.ini b/groups/device-specific/celadon_tablet/flashfiles.ini deleted file mode 100644 index 1a185a652..000000000 --- a/groups/device-specific/celadon_tablet/flashfiles.ini +++ /dev/null @@ -1,16 +0,0 @@ -[global] -[command.unlock.unlock] -block_scan = true - -[command.format.data] -block_scan = true -timeout = 6000000 - -[command.{{^dynamic-partitions}}flash{{/dynamic-partitions}}{{#dynamic-partitions}}usfb_flash{{/dynamic-partitions}}.system] -block_scan = true - -[command.{{^dynamic-partitions}}flash{{/dynamic-partitions}}{{#dynamic-partitions}}usfb_flash{{/dynamic-partitions}}.vendor] -block_scan = true - -[command.lock.lock] -block_scan = true diff --git a/groups/device-specific/celadon_tablet/init.rc b/groups/device-specific/celadon_tablet/init.rc deleted file mode 100644 index 2c67e82d4..000000000 --- a/groups/device-specific/celadon_tablet/init.rc +++ /dev/null @@ -1,43 +0,0 @@ -on post-fs-data - mkdir /data/kpanic 0770 system system - mkdir /data/kpanic/pstore 0770 system system - # Set indication (checked by vold) that we have finished this action - setprop vold.post_fs_data_done 1 - -on boot - write /sys/devices/platform/INT33BB:00/power/control on - write /sys/devices/pci0000\:00/0000\:00\:15.0/power/control auto - -on post-fs - #Accelerometer: X & Z inverted - setprop ro.vendor.iio.accel.x.opt_scale -1 - setprop ro.vendor.iio.accel.z.opt_scale -1 - - #Gyro: X & Z inverted - setprop ro.vendor.iio.anglvel.x.opt_scale -1 - setprop ro.vendor.iio.anglvel.z.opt_scale -1 - - #Magnetometer: X & Z inverted - setprop ro.vendor.iio.magn.x.opt_scale -1 - setprop ro.vendor.iio.magn.z.opt_scale -1 - -on boot - write /sys/class/gpio/export 444 - write /sys/class/gpio/gpio444/direction out - write /sys/class/gpio/gpio444/value 1 - -# adb over ethernet - setprop service.adb.tcp.port 5555 - -# workaround for the sys fs create -on post-fs - # Create trace buffer, and set basic configuration. - mkdir /sys/kernel/debug/tracing/instances/wifi 711 - -on post-fs - insmod /vendor/lib/modules/mii.ko - insmod /vendor/lib/modules/libphy.ko - insmod /vendor/lib/modules/usbnet.ko - insmod /vendor/lib/modules/asix.ko - insmod /vendor/lib/modules/r8152.ko - insmod /vendor/lib/modules/r8169.ko diff --git a/groups/device-specific/celadon_tablet/init.recovery.rc b/groups/device-specific/celadon_tablet/init.recovery.rc deleted file mode 100644 index 774d2cc39..000000000 --- a/groups/device-specific/celadon_tablet/init.recovery.rc +++ /dev/null @@ -1,2 +0,0 @@ -on post-fs - wait /dev/graphics/fb0 diff --git a/groups/device-specific/celadon_tablet/manifest.xml b/groups/device-specific/celadon_tablet/manifest.xml deleted file mode 100644 index 0e38b0185..000000000 --- a/groups/device-specific/celadon_tablet/manifest.xml +++ /dev/null @@ -1,269 +0,0 @@ -{{^ota-update}} - -{{/ota-update}} -{{#ota-update}} - -{{/ota-update}} - - android.hardware.automotive.audiocontrol - hwbinder - 1.0 - - IAudioControl - default - - - - android.hardware.keymaster - hwbinder - 3.0 - - IKeymasterDevice - default - - - - android.hardware.health - hwbinder - 2.0 - - IHealth - default - - - - android.hardware.memtrack - hwbinder - 1.0 - - IMemtrack - default - - - - android.hardware.light - hwbinder - 2.0 - - ILight - default - - - - android.hardware.audio - hwbinder - 5.0 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 5.0 - - IEffectsFactory - default - - - - android.hardware.broadcastradio - hwbinder - 1.1 - - IBroadcastRadioFactory - default - - - - android.hardware.graphics.mapper - passthrough - 2.0 - - IMapper - default - - - - - android.hardware.graphics.allocator - hwbinder - 2.0 - - IAllocator - default - - - - android.hardware.graphics.composer - hwbinder - 2.1 - - IComposer - default - - - - android.hardware.automotive.vehicle - hwbinder - 2.0 - - IVehicle - default - - - - android.hardware.bluetooth - hwbinder - 1.0 - - IBluetoothHci - default - - - - android.hardware.wifi.supplicant - hwbinder - 1.1 - - ISupplicant - default - - - - android.hardware.wifi - hwbinder - 1.2 - - IWifi - default - - - - android.hardware.wifi.hostapd - hwbinder - 1.1 - - IHostapd - default - - - - android.hardware.media.omx - hwbinder - 1.0 - - IOmx - default - - - IOmxStore - default - - - - android.hardware.drm - hwbinder - 1.0 - - ICryptoFactory - default - - - IDrmFactory - default - - @1.1::ICryptoFactory/clearkey - @1.1::IDrmFactory/clearkey - @1.1::ICryptoFactory/widevine - @1.1::IDrmFactory/widevine - - - android.hardware.usb - hwbinder - 1.0 - - IUsb - default - - - - android.hardware.dumpstate - hwbinder - 1.0 - - IDumpstateDevice - default - - - - android.hardware.camera.provider - hwbinder - 2.4 - - ICameraProvider - external/0 - - - - android.hardware.configstore - hwbinder - 1.0 - - ISurfaceFlingerConfigs - default - - - - android.hardware.power - hwbinder - 1.2 - - IPower - default - - - - android.hardware.boot - hwbinder - 1.0 - - IBootControl - default - - - - android.hardware.automotive.evs - hwbinder - 1.0 - - IEvsEnumerator - EvsEnumeratorHw - default - - - - android.hardware.renderscript - passthrough - 1.0 - - IDevice - default - - - - android.hardware.neuralnetworks - hwbinder - 1.2 - - IDevice - CPU - GPU - gpgpu - - - - 27.0 - - diff --git a/groups/device-specific/celadon_tablet/option.spec b/groups/device-specific/celadon_tablet/option.spec deleted file mode 100644 index 37bc09c47..000000000 --- a/groups/device-specific/celadon_tablet/option.spec +++ /dev/null @@ -1,8 +0,0 @@ -[defaults] -target = celadon_tablet -ref_target = celadon_tablet -ota-update = false - -[mixinfo] -deps = device-type - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/config.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/config.xml deleted file mode 100644 index 9729b361f..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,198 +0,0 @@ - - - true - - false - - - - - "1,1" - "0,1" - "7,1" - - - - - - - - "wifi,1,1,1,-1,true" - "mobile,0,0,0,-1,true" - "mobile_mms,2,0,2,60000,true" - "mobile_supl,3,0,2,60000,true" - "mobile_dun,4,0,2,60000,true" - "mobile_hipri,5,0,3,60000,true" - "mobile_fota,10,0,2,60000,true" - "mobile_cbs,12,0,2,60000,true" - "bluetooth,7,7,2,-1,true" - "mobile_ims,11,0,2,60000,true" - "wifi_p2p,13,1,0,-1,true" - "mobile_ia,14,0,2,-1,true" - "mobile_emergency,15,0,2,-1,true" - "ethernet,9,9,0,-1,true" - - - - - - 0 - 1 - 5 - 7 - 9 - - - - true - - - true - - - - "wlan\\d" - - - - - "bt-pan" - - - - - "rndis0" - - - - true - - - true - - - 50 - 300 - 720 - 2000 - - - - - 60 - 100 - 140 - 200 - 250 - - - - - 50 - 0 - 0 - 0 - 0 - - - - - 60 - 100 - 140 - 200 - 250 - - - - false - - - false - - - true - - - 8 - - - power - restart - sleep - bugreport - users - - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/strings.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/strings.xml deleted file mode 100644 index 1a72797dc..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - -Sleep - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/symbols.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/symbols.xml deleted file mode 100644 index a91dfbec6..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/values/symbols.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/xml/power_profile.xml deleted file mode 100644 index 7c93d1775..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/core/res/res/xml/power_profile.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - 0.1 - 870 - 870 - 80 - 40 - 40 - 70 - 110 - 80 - 110 - 0 - 420 - 80 - - - 0.1 - 0.1 - - - 0.2 - 0.1 - - - - - 4 - - - - - 800000 - 900000 - 1000000 - 1100000 - 1200000 - 1300000 - 1400000 - 1500000 - 1600000 - 1700000 - 1800000 - 1900000 - 2000000 - 2100000 - 2200000 - 2300000 - 2400000 - - - - - 860 - 910 - 950 - 990 - 1010 - 1060 - 1080 - 1600 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - 1630 - - - - 190 - - - 510 - - - - 22.7 - - - - 65000 - - - - 0 - - 0 - - 0 - - - - - 3300 - - - .0002 - .002 - .02 - .2 - 2 - - - - 0 - 0 - 0 - - 0 - 0 - 0 - 0 - 0 - - 0 - - - - 0 - 0 - - 3300 - - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml deleted file mode 100644 index d385c72ca..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - false - - - true - - - false - diff --git a/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SystemUI/res/values/config.xml deleted file mode 100644 index 1aadcfeab..000000000 --- a/groups/device-specific/celadon_tablet/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - 1 - - - 100 - 105 - - diff --git a/groups/device-specific/celadon_tablet/overlay/packages/apps/Bluetooth/res/values/config.xml b/groups/device-specific/celadon_tablet/overlay/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100644 index 787de8619..000000000 --- a/groups/device-specific/celadon_tablet/overlay/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - false - true - false - true - true - true - - - true - diff --git a/groups/device-specific/celadon_tablet/product.mk b/groups/device-specific/celadon_tablet/product.mk deleted file mode 100755 index df127d2b9..000000000 --- a/groups/device-specific/celadon_tablet/product.mk +++ /dev/null @@ -1,30 +0,0 @@ -TARGET_BOARD_PLATFORM := celadon - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/init.recovery.rc:root/init.recovery.$(TARGET_PRODUCT).rc \ -{{#treble}} - $(LOCAL_PATH)/init.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(TARGET_PRODUCT).rc \ - $(LOCAL_PATH)/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ -{{/treble}} -{{^treble}} - $(LOCAL_PATH)/init.rc:root/init.$(TARGET_PRODUCT).rc \ - $(LOCAL_PATH)/ueventd.rc:root/ueventd.$(TARGET_PRODUCT).rc \ -{{/treble}} - -PRODUCT_PACKAGES += android.hardware.keymaster@3.0-impl \ - android.hardware.keymaster@3.0-service \ - android.hardware.wifi@1.0-service \ - android.hardware.bluetooth@1.0-service.vbt \ - android.hardware.usb@1.0-impl \ - android.hardware.usb@1.0-service \ - android.hardware.dumpstate@1.0-impl \ - android.hardware.dumpstate@1.0-service \ - android.hardware.graphics.mapper@2.0-impl \ - android.hardware.graphics.allocator@2.0-impl \ - android.hardware.graphics.allocator@2.0-service \ - android.hardware.renderscript@1.0-impl \ - android.hardware.graphics.composer@2.1-impl \ - android.hardware.graphics.composer@2.1-service \ - libbt-vendor - -PRODUCT_COPY_FILES += vendor/intel/utils/bsp_diff/file_for_flashfile:$(PRODUCT_OUT)/LICENSE diff --git a/groups/device-specific/celadon_tablet/reset_usb.sh b/groups/device-specific/celadon_tablet/reset_usb.sh deleted file mode 100644 index ff52d0b5d..000000000 --- a/groups/device-specific/celadon_tablet/reset_usb.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/vendor/bin/sh - -# enable the device mode -echo 1 > /sys/devices/pci0000:00/0000:00:15.1/intel-cht-otg.0/otg_id -# force a VBUS event -echo 1 > /sys/devices/pci0000:00/0000:00:15.1/intel-cht-otg.0/vbus_evt diff --git a/groups/device-specific/celadon_tablet/system.prop b/groups/device-specific/celadon_tablet/system.prop deleted file mode 100644 index 76d63e80b..000000000 --- a/groups/device-specific/celadon_tablet/system.prop +++ /dev/null @@ -1,12 +0,0 @@ -# -# system.prop for {{target}} -# - -persist.sys.enable_rescue=false -persist.sys.disable_rescue=true -persist.bluetooth.enablenewavrcp=false -sys.rescue_level=0 -ro.board.platform=broxton -audio.safemedia.bypass=true -debug.nn.cpuonly=0 -camera.disable_treble=false diff --git a/groups/device-specific/celadon_tablet/ueventd.rc b/groups/device-specific/celadon_tablet/ueventd.rc deleted file mode 100644 index b13eb99c3..000000000 --- a/groups/device-specific/celadon_tablet/ueventd.rc +++ /dev/null @@ -1,7 +0,0 @@ -# FIXME: move these mei definitions to a mix-in - -# Used by HW-backed keystore -/dev/mei 0660 system drmrpc - -# Used by WideVine -/dev/meimm 0660 system drmrpc diff --git a/groups/device-type/.gitignore b/groups/device-type/.gitignore new file mode 100644 index 000000000..98c82979b --- /dev/null +++ b/groups/device-type/.gitignore @@ -0,0 +1,11 @@ +* +!.gitignore +!autodetect +!car +!clamshell +!default +!doc.spec +!false +!handheld +!tablet +!tablet-lowram diff --git a/valid_targets.spec b/valid_targets.spec index 16f38610b..2f005281c 100644 --- a/valid_targets.spec +++ b/valid_targets.spec @@ -1,6 +1,5 @@ [project-celadon] base_aaos: -celadon_tablet: caas: -caas_dev: aaos_iasw: +celadon_desktop: