upload android base code part6
This commit is contained in:
parent
421e214c7d
commit
4e516ec6ed
35396 changed files with 9188716 additions and 0 deletions
1
android/device/softwinner/uranus-t1/AndroidBoard.mk
Executable file
1
android/device/softwinner/uranus-t1/AndroidBoard.mk
Executable file
|
@ -0,0 +1 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
18
android/device/softwinner/uranus-t1/AndroidProducts.mk
Executable file
18
android/device/softwinner/uranus-t1/AndroidProducts.mk
Executable file
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# Copyright (C) 2013 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.
|
||||
#
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/uranus_t1.mk
|
106
android/device/softwinner/uranus-t1/BoardConfig.mk
Normal file
106
android/device/softwinner/uranus-t1/BoardConfig.mk
Normal file
|
@ -0,0 +1,106 @@
|
|||
# BoardConfig.mk
|
||||
#
|
||||
# Product-specific compile-time definitions.
|
||||
#
|
||||
|
||||
include device/softwinner/uranus-common/BoardConfigCommon.mk
|
||||
|
||||
# image related
|
||||
# Enable dex-preoptimization to speed up first boot sequence
|
||||
WITH_DEXPREOPT := true
|
||||
DONT_DEXPREOPT_PREBUILTS := true
|
||||
|
||||
BOARD_KERNEL_CMDLINE := selinux=1 androidboot.selinux=enforcing
|
||||
BOARD_FLASH_BLOCK_SIZE := 4096
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 1073741824
|
||||
BOARD_VENDORIMAGE_PARTITION_SIZE := 314572800
|
||||
|
||||
# recovery touch high threshold
|
||||
TARGET_RECOVERY_UI_TOUCH_HIGH_THRESHOLD := 200
|
||||
|
||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
# build & split configs
|
||||
PRODUCT_ENFORCE_RRO_TARGETS := framework-res
|
||||
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
||||
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
||||
#BOARD_VNDK_VERSION := current
|
||||
#time for health alarm
|
||||
BOARD_PERIODIC_CHORES_INTERVAL_FAST := 86400
|
||||
BOARD_PERIODIC_CHORES_INTERVAL_SLOW := 86400
|
||||
|
||||
|
||||
# wifi and bt configuration
|
||||
# 1. Wifi Configuration
|
||||
|
||||
BOARD_WIFI_VENDOR := realtek
|
||||
|
||||
# 1.1 broadcom wifi configuration
|
||||
# BOARD_USR_WIFI: ap6181/ap6210/ap6212/ap6330/ap6335
|
||||
ifeq ($(BOARD_WIFI_VENDOR), broadcom)
|
||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
|
||||
BOARD_HOSTAPD_DRIVER := NL80211
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
|
||||
BOARD_WLAN_DEVICE := bcmdhd
|
||||
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
|
||||
|
||||
BOARD_USR_WIFI := ap6255
|
||||
include hardware/broadcom/wlan/bcmdhd/firmware/$(BOARD_USR_WIFI)/device-bcm.mk
|
||||
endif
|
||||
|
||||
# 1.2 realtek wifi configuration
|
||||
ifeq ($(BOARD_WIFI_VENDOR), realtek)
|
||||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
|
||||
BOARD_HOSTAPD_DRIVER := NL80211
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
|
||||
include hardware/realtek/wlan/config/config.mk
|
||||
BOARD_WLAN_DEVICE := realtek
|
||||
WIFI_DRIVER_MODULE_NAME := "8723cs"
|
||||
WIFI_DRIVER_MODULE_PATH := "/vendor/modules/8723cs.ko"
|
||||
WIFI_DRIVER_MODULE_ARG := "ifname=wlan0 if2name=p2p0"
|
||||
endif
|
||||
|
||||
# 1.3 eagle wifi configuration
|
||||
ifeq ($(BOARD_WIFI_VENDOR), eagle)
|
||||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_eagle
|
||||
BOARD_HOSTAPD_DRIVER := NL80211
|
||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_eagle
|
||||
|
||||
BOARD_USR_WIFI := esp8089
|
||||
BOARD_WLAN_DEVICE := esp8089
|
||||
include hardware/espressif/wlan/firmware/esp8089/device-esp.mk
|
||||
endif
|
||||
|
||||
# 2. Bluetooth Configuration
|
||||
# make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor
|
||||
|
||||
BOARD_BLUETOOTH_VENDOR := realtek
|
||||
|
||||
# 2.1 broadcom bt configuration
|
||||
# BOARD_HAVE_BLUETOOTH_NAME: ap6210/ap6212/ap6330/ap6335
|
||||
ifeq ($(BOARD_BLUETOOTH_VENDOR), broadcom)
|
||||
BOARD_HAVE_BLUETOOTH := true
|
||||
BOARD_HAVE_BLUETOOTH_BCM := true
|
||||
BOARD_HAVE_BLUETOOTH_NAME := ap6255
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TOP_DIR)device/softwinner/$(basename $(TARGET_DEVICE))/configs/bluetooth/
|
||||
endif
|
||||
|
||||
# 2.2 realtek bt configuration
|
||||
ifeq ($(BOARD_BLUETOOTH_VENDOR), realtek)
|
||||
BOARD_HAVE_BLUETOOTH := true
|
||||
BOARD_HAVE_BLUETOOTH_RTK := true
|
||||
BOARD_HAVE_BLUETOOTH_RTK_COEX := true
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TOP_DIR)device/softwinner/$(basename $(TARGET_DEVICE))/configs/bluetooth/
|
||||
include hardware/realtek/bluetooth/firmware/rtlbtfw_cfg.mk
|
||||
endif
|
||||
|
||||
# sensor
|
||||
SW_BOARD_USES_SENSORS_TYPE := aw
|
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* Copyright (C) 2012 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.
|
||||
*/
|
||||
|
||||
#ifndef _BDROID_BUILDCFG_H
|
||||
#define _BDROID_BUILDCFG_H
|
||||
|
||||
/*
|
||||
#define BTM_DEF_LOCAL_NAME "Realtek Bluetooth"
|
||||
*/
|
||||
|
||||
// SERVICE_CLASS:0x1A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer)
|
||||
// MAJOR CLASS: COMPUTER
|
||||
// MINOR CLASS: TABLET
|
||||
#define BTA_DM_COD {0x1A, 0x01, 0x1C}
|
||||
|
||||
#define BTA_GATT_DEBUG FALSE
|
||||
|
||||
#define PORT_RX_BUF_LOW_WM (10)
|
||||
#define PORT_RX_BUF_HIGH_WM (40)
|
||||
#define PORT_RX_BUF_CRITICAL_WM (45)
|
||||
#define PORT_CREDIT_RX_MAX (48)
|
||||
|
||||
#define HCI_MAX_SIMUL_CMDS (1)
|
||||
#define BTM_BLE_SCAN_SLOW_INT_1 (144)
|
||||
#define BTM_BLE_SCAN_SLOW_WIN_1 (16)
|
||||
#define BTM_MAX_VSE_CALLBACKS (6)
|
||||
|
||||
#define BTM_BLE_CONN_INT_MIN_DEF 0x06
|
||||
#define BTM_BLE_CONN_INT_MAX_DEF 0x0C
|
||||
#define BTM_BLE_CONN_TIMEOUT_DEF 200
|
||||
|
||||
#define BTIF_HF_SERVICES (BTA_HSP_SERVICE_MASK)
|
||||
#define BTIF_HF_SERVICE_NAMES { BTIF_HSAG_SERVICE_NAME, NULL }
|
||||
|
||||
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */
|
||||
#define BTA_HOST_INTERLEAVE_SEARCH FALSE
|
||||
|
||||
/*heartbeat log define*/
|
||||
#define BTPOLL_DBG FALSE
|
||||
/*hci log define*/
|
||||
#define BTHC_DBG FALSE
|
||||
/*avdtp log define*/
|
||||
//#define AVDT_DEBUG TRUE
|
||||
/*BT log verbose*/
|
||||
#define BT_TRACE_VERBOSE TRUE
|
||||
/* BT trace messages*/
|
||||
#define BT_USE_TRACES TRUE
|
||||
/*A2DP SINK ENABLE*/
|
||||
#define BTA_AV_SINK_INCLUDED TRUE
|
||||
#define BLE_LOCAL_PRIVACY_ENABLED FALSE
|
||||
#define USE_AUDIO_TRACK TRUE
|
||||
/*BT lib vendor log*/
|
||||
//#define BTVND_DBG TRUE
|
||||
/*page timeout */
|
||||
#define BTA_DM_PAGE_TIMEOUT 8192
|
||||
#define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP
|
||||
#define BT_HCI_DEVICE_NODE_MAX_LEN 512
|
||||
|
||||
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
|
||||
#endif
|
|
@ -0,0 +1,39 @@
|
|||
# RELEASE NAME: 20171107_BT_ANDROID_8.x
|
||||
# Bluetooth Device Name; NULL or comment means "ro.product.model"
|
||||
# Name=Realtek Bluetooth
|
||||
|
||||
# Indicate USB or UART driver bluetooth
|
||||
# For usb device:
|
||||
# BtDeviceNode=/dev/rtk_btusb
|
||||
# For uart device:
|
||||
BtDeviceNode=/dev/ttyS1
|
||||
|
||||
# Device Class
|
||||
DevClassServiceClass=0x1A
|
||||
DevClassMajorClass=0x01
|
||||
DevClassMinorClass=0x1C
|
||||
|
||||
# Enable BtSnoop logging function
|
||||
# valid value : true, false
|
||||
RtkBtsnoopDump=false
|
||||
|
||||
# BtSnoop log output file
|
||||
BtSnoopFileName=/data/misc/bluedroid/btsnoop_hci.cfa
|
||||
|
||||
# Preserve existing BtSnoop log before overwriting
|
||||
BtSnoopSaveLog=true
|
||||
|
||||
#bit0 = 1,don't show heartbeat packet in btsnoop
|
||||
RtkbtLogFilter=1
|
||||
|
||||
# configuration for uart card to save HCI log for slave
|
||||
H5LogOutput=0
|
||||
|
||||
# Enable Coex log
|
||||
BtCoexLogOutput=0
|
||||
|
||||
# Enable net btsnoop Dump
|
||||
RtkBtsnoopNetDump=false
|
||||
|
||||
# Enable auto restart bt
|
||||
RtkBtAutoRestart=true
|
190
android/device/softwinner/uranus-t1/configs/camera.cfg
Executable file
190
android/device/softwinner/uranus-t1/configs/camera.cfg
Executable file
|
@ -0,0 +1,190 @@
|
|||
;-------------------------------------------------------------------------------
|
||||
; 用于camera的配置
|
||||
;
|
||||
; 采用格式:
|
||||
; key = key_value
|
||||
; 注意: 每个key需要顶格写;
|
||||
; key_value紧跟着key后面的等号后面, 位于同一行中;
|
||||
; key_value限制大小为256字节以内;
|
||||
;
|
||||
;-------------------------------------------------------------------------------
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; exif information of "make" and "model"
|
||||
;-------------------------------------------------------------------------------
|
||||
key_camera_exif_make = MAKE_AllWinner
|
||||
key_camera_exif_model = PRODUCT_BOARD
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; 1 for single camera, 2 for double camera
|
||||
;-------------------------------------------------------------------------------
|
||||
number_of_camera = 2
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; CAMERA_FACING_BACK
|
||||
; ov5640
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_id = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; 1 for CAMERA_FACING_FRONT
|
||||
; 0 for CAMERA_FACING_BACK
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_facing = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; 1 for camera without isp(using built-in isp of Axx)
|
||||
; 0 for camera with isp
|
||||
;-------------------------------------------------------------------------------
|
||||
use_builtin_isp = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; camera orientation (0, 90, 180, 270)
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_orientation = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; driver device name
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_device = /dev/video0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; device id
|
||||
; for two camera devices with one CSI
|
||||
;-------------------------------------------------------------------------------
|
||||
device_id = 0
|
||||
|
||||
used_preview_size = 1
|
||||
key_support_preview_size = 1280x720,640x480,320x240,176x144
|
||||
key_default_preview_size = 640x480
|
||||
|
||||
used_picture_size = 1
|
||||
key_support_picture_size = 2592x1936,1920x1080,1280x960,1280x720,640x480,320x240
|
||||
key_default_picture_size = 2592x1936
|
||||
|
||||
used_flash_mode = 0
|
||||
key_support_flash_mode = on,off,auto,red-eye,torch
|
||||
key_default_flash_mode = off
|
||||
|
||||
used_color_effect=1
|
||||
key_support_color_effect = none,mono,negative,sepia,aqua
|
||||
key_default_color_effect = none
|
||||
|
||||
used_frame_rate = 1
|
||||
key_support_frame_rate = 30
|
||||
key_default_frame_rate = 30
|
||||
|
||||
used_focus_mode = 1
|
||||
key_support_focus_mode = auto,infinity,macro,fixed
|
||||
key_default_focus_mode = auto
|
||||
|
||||
;used_scene_mode = 0
|
||||
;key_support_scene_mode = auto,action,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode,hdr
|
||||
;key_default_scene_mode = auto
|
||||
|
||||
used_scene_mode = 0
|
||||
key_support_scene_mode = auto,hdr
|
||||
key_default_scene_mode = auto
|
||||
|
||||
used_white_balance = 1
|
||||
key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight
|
||||
key_default_white_balance = auto
|
||||
|
||||
used_exposure_compensation = 1
|
||||
key_max_exposure_compensation = 4
|
||||
key_min_exposure_compensation = -4
|
||||
key_step_exposure_compensation = 1
|
||||
key_default_exposure_compensation = 0
|
||||
|
||||
used_zoom = 1
|
||||
key_zoom_supported = true
|
||||
key_smooth_zoom_supported = false
|
||||
key_zoom_ratios = 100,120,150,200,230,250,300
|
||||
key_max_zoom = 30
|
||||
key_default_zoom = 0
|
||||
|
||||
key_horizonal_view_angle = 52
|
||||
key_vertical_view_angle = 39.4
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; CAMERA_FACING_FRONT
|
||||
; gc2145
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_id = 1
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; 1 for camera without isp(using built-in isp of Axx)
|
||||
; 0 for camera with isp
|
||||
;-------------------------------------------------------------------------------
|
||||
use_builtin_isp = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; 1 for CAMERA_FACING_FRONT
|
||||
; 0 for CAMERA_FACING_BACK
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_facing = 1
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; camera orientation (0, 90, 180, 270)
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_orientation = 0
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; driver device name
|
||||
;-------------------------------------------------------------------------------
|
||||
camera_device = /dev/video1
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; device id
|
||||
; for two camera devices with one CSI
|
||||
;-------------------------------------------------------------------------------
|
||||
device_id = 1
|
||||
|
||||
used_preview_size = 1
|
||||
key_support_preview_size = 640x480,320x240,176x144
|
||||
key_default_preview_size = 640x480
|
||||
|
||||
used_picture_size = 1
|
||||
key_support_picture_size = 1600x1200,1280x720,640x480,320x240
|
||||
key_default_picture_size = 1600x1200
|
||||
|
||||
used_flash_mode = 0
|
||||
key_support_flash_mode = on,off,auto
|
||||
key_default_flash_mode = on
|
||||
|
||||
used_color_effect= 1
|
||||
key_support_color_effect = none,mono,negative,sepia,aqua
|
||||
key_default_color_effect = none
|
||||
|
||||
used_frame_rate = 1
|
||||
key_support_frame_rate = 30
|
||||
key_default_frame_rate = 30
|
||||
|
||||
used_focus_mode = 0
|
||||
key_support_focus_mode = auto,infinity,macro,fixed
|
||||
key_default_focus_mode = auto
|
||||
|
||||
used_scene_mode = 0
|
||||
key_support_scene_mode = auto,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode
|
||||
key_default_scene_mode = auto
|
||||
|
||||
used_white_balance = 1
|
||||
key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight
|
||||
key_default_white_balance = auto
|
||||
|
||||
used_exposure_compensation = 1
|
||||
key_max_exposure_compensation = 4
|
||||
key_min_exposure_compensation = -4
|
||||
key_step_exposure_compensation = 1
|
||||
key_default_exposure_compensation = 0
|
||||
|
||||
used_zoom = 1
|
||||
key_zoom_supported = true
|
||||
key_smooth_zoom_supported = false
|
||||
key_zoom_ratios = 100,120,150,200,230,250,300
|
||||
key_max_zoom = 30
|
||||
key_default_zoom = 0
|
||||
|
||||
key_horizonal_view_angle = 44
|
||||
key_vertical_view_angle = 39.4
|
||||
|
131
android/device/softwinner/uranus-t1/configs/gsensor.cfg
Executable file
131
android/device/softwinner/uranus-t1/configs/gsensor.cfg
Executable file
|
@ -0,0 +1,131 @@
|
|||
;Direction parameter adjustment, including the x, y, z axis, and xy interchange four variables,
|
||||
;the name of the module used for identification, and drive registered name consistent
|
||||
;--------------------------
|
||||
;name:bma250
|
||||
;--------------------------
|
||||
gsensor_name = bma250
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = false
|
||||
;--------------------------
|
||||
;name:mma8452
|
||||
;--------------------------
|
||||
gsensor_name = mma8452
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = false
|
||||
;--------------------------
|
||||
;name:mma7660
|
||||
;--------------------------
|
||||
gsensor_name = mma7660
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:mma865x
|
||||
;--------------------------
|
||||
gsensor_name = mma865x
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = true
|
||||
gsensor_direct_z = true
|
||||
gsensor_xy_revert = false
|
||||
;--------------------------
|
||||
;name:stk8312
|
||||
;--------------------------
|
||||
gsensor_name = stk8312
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = true
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:stk8313
|
||||
;--------------------------
|
||||
gsensor_name = stk8313
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = true
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:afa750
|
||||
;--------------------------
|
||||
gsensor_name = afa750
|
||||
gsensor_direct_x = true
|
||||
gsensor_direct_y = true
|
||||
gsensor_direct_z = true
|
||||
gsensor_xy_revert = false
|
||||
;--------------------------
|
||||
;name:lis3de_acc
|
||||
;--------------------------
|
||||
gsensor_name = lis3de_acc
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:lis3dh_acc
|
||||
;--------------------------
|
||||
gsensor_name = lis3dh_acc
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = true
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:kxtik
|
||||
;--------------------------
|
||||
gsensor_name = kxtik
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:dmard10
|
||||
;--------------------------
|
||||
gsensor_name = dmard10
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:dmard06
|
||||
;--------------------------
|
||||
gsensor_name = dmard06
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:mxc622x
|
||||
;--------------------------
|
||||
gsensor_name = mxc622x
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:fxos8700 acc
|
||||
;--------------------------
|
||||
gsensor_name = FreescaleAccelerometer
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
;--------------------------
|
||||
;name:lsm303d_acc
|
||||
;--------------------------
|
||||
gsensor_name = lsm303d_acc
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = true
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = false
|
||||
;--------------------------^M
|
||||
;name:lsm9ds0_acc^M
|
||||
;--------------------------^M
|
||||
gsensor_name = lsm9ds0_acc
|
||||
gsensor_direct_x = false
|
||||
gsensor_direct_y = false
|
||||
gsensor_direct_z = false
|
||||
gsensor_xy_revert = true
|
||||
|
11
android/device/softwinner/uranus-t1/configs/init.wireless.rc
Normal file
11
android/device/softwinner/uranus-t1/configs/init.wireless.rc
Normal file
|
@ -0,0 +1,11 @@
|
|||
on boot
|
||||
# MAC Program
|
||||
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_admin
|
||||
exec - root system -- /vendor/xbin/macprog.sh
|
||||
chmod 775 /data/misc/wifi
|
||||
|
||||
# Bluetooth
|
||||
# UART device
|
||||
chmod 0660 /dev/ttyS1
|
||||
chown bluetooth net_bt_admin /dev/ttyS1
|
||||
|
251
android/device/softwinner/uranus-t1/configs/media_profiles.xml
Executable file
251
android/device/softwinner/uranus-t1/configs/media_profiles.xml
Executable file
|
@ -0,0 +1,251 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 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.
|
||||
-->
|
||||
<!DOCTYPE MediaSettings [
|
||||
<!ELEMENT MediaSettings (CamcorderProfiles,
|
||||
EncoderOutputFileFormat+,
|
||||
VideoEncoderCap+,
|
||||
AudioEncoderCap+,
|
||||
VideoDecoderCap,
|
||||
AudioDecoderCap)>
|
||||
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
|
||||
<!ELEMENT EncoderProfile (Video, Audio)>
|
||||
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
|
||||
<!ATTLIST EncoderProfile fileFormat (mp4) #REQUIRED>
|
||||
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
|
||||
<!ELEMENT Video EMPTY>
|
||||
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
|
||||
<!ATTLIST Video bitRate CDATA #REQUIRED>
|
||||
<!ATTLIST Video width CDATA #REQUIRED>
|
||||
<!ATTLIST Video height CDATA #REQUIRED>
|
||||
<!ATTLIST Video frameRate CDATA #REQUIRED>
|
||||
<!ELEMENT Audio EMPTY>
|
||||
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
|
||||
<!ATTLIST Audio bitRate CDATA #REQUIRED>
|
||||
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST Audio channels (1|2) #REQUIRED>
|
||||
<!ELEMENT ImageEncoding EMPTY>
|
||||
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
|
||||
<!ELEMENT ImageDecoding EMPTY>
|
||||
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
|
||||
<!ELEMENT Camera EMPTY>
|
||||
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
|
||||
<!ELEMENT EncoderOutputFileFormat EMPTY>
|
||||
<!ATTLIST EncoderOutputFileFormat name (mp4) #REQUIRED>
|
||||
<!ELEMENT VideoEncoderCap EMPTY>
|
||||
<!ATTLIST VideoEncoderCap name (h264) #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
|
||||
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
|
||||
<!ELEMENT AudioEncoderCap EMPTY>
|
||||
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
|
||||
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
|
||||
<!ELEMENT VideoDecoderCap EMPTY>
|
||||
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
|
||||
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
|
||||
<!ELEMENT AudioDecoderCap EMPTY>
|
||||
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
|
||||
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
|
||||
]>
|
||||
<!--
|
||||
This file is used to declare the multimedia profiles and capabilities
|
||||
on an android-powered device.
|
||||
-->
|
||||
<MediaSettings>
|
||||
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
|
||||
<!-- Back Camera -->
|
||||
<!-- Front Camera -->
|
||||
|
||||
<CamcorderProfiles cameraId="0" startOffsetMs="700">
|
||||
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="3000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="128000"
|
||||
sampleRate="44100"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="1500000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="3000000"
|
||||
width="1280"
|
||||
height="720"
|
||||
frameRate="30" />
|
||||
<!-- audio setting is ignored -->
|
||||
<Audio codec="aac"
|
||||
bitRate="128000"
|
||||
sampleRate="44100"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="1500000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
|
||||
<ImageEncoding quality="90" />
|
||||
<ImageEncoding quality="80" />
|
||||
<ImageEncoding quality="70" />
|
||||
<ImageDecoding memCap="20000000" />
|
||||
|
||||
|
||||
</CamcorderProfiles>
|
||||
|
||||
<CamcorderProfiles cameraId="1" startOffsetMs="700">
|
||||
|
||||
<EncoderProfile quality="480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="1500000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="30">
|
||||
<Video codec="h264"
|
||||
bitRate="1500000"
|
||||
width="640"
|
||||
height="480"
|
||||
frameRate="30" />
|
||||
|
||||
<Audio codec="aac"
|
||||
bitRate="12200"
|
||||
sampleRate="8000"
|
||||
channels="1" />
|
||||
</EncoderProfile>
|
||||
|
||||
<ImageEncoding quality="90" />
|
||||
<ImageEncoding quality="80" />
|
||||
<ImageEncoding quality="70" />
|
||||
<ImageDecoding memCap="20000000" />
|
||||
|
||||
</CamcorderProfiles>
|
||||
|
||||
<EncoderOutputFileFormat name="mp4" />
|
||||
|
||||
<!--
|
||||
If a codec is not enabled, it is invisible to the applications
|
||||
In other words, the applications won't be able to use the codec
|
||||
or query the capabilities of the codec at all if it is disabled
|
||||
-->
|
||||
<VideoEncoderCap name="h264" enabled="true"
|
||||
minBitRate="64000" maxBitRate="3000000"
|
||||
minFrameWidth="176" maxFrameWidth="2592"
|
||||
minFrameHeight="144" maxFrameHeight="1936"
|
||||
minFrameRate="1" maxFrameRate="30" />
|
||||
|
||||
<AudioEncoderCap name="aac" enabled="true"
|
||||
minBitRate="12200" maxBitRate="51200"
|
||||
minSampleRate="8000" maxSampleRate="44100"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<AudioEncoderCap name="amrwb" enabled="true"
|
||||
minBitRate="6600" maxBitRate="23050"
|
||||
minSampleRate="16000" maxSampleRate="16000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
|
||||
<AudioEncoderCap name="amrnb" enabled="true"
|
||||
minBitRate="5525" maxBitRate="12200"
|
||||
minSampleRate="8000" maxSampleRate="8000"
|
||||
minChannels="1" maxChannels="1" />
|
||||
<!--
|
||||
FIXME:
|
||||
We do not check decoder capabilities at present
|
||||
At present, we only check whether windows media is visible
|
||||
for TEST applications. For other applications, we do
|
||||
not perform any checks at all.
|
||||
-->
|
||||
<VideoDecoderCap name="wmv" enabled="true"/>
|
||||
<AudioDecoderCap name="wma" enabled="true"/>
|
||||
|
||||
<!--
|
||||
The VideoEditor Capability configuration:
|
||||
- maxInputFrameWidth: maximum video width of imported video clip.
|
||||
- maxInputFrameHeight: maximum video height of imported video clip.
|
||||
- maxOutputFrameWidth: maximum video width of exported video clip.
|
||||
- maxOutputFrameHeight: maximum video height of exported video clip.
|
||||
- maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
|
||||
used to limit the amount of memory for prefetched YUV frames.
|
||||
For this platform, it allows maximum 30MB(3MB per 1080p frame x 10
|
||||
frames) memory.
|
||||
-->
|
||||
<VideoEditorCap maxInputFrameWidth="1920"
|
||||
maxInputFrameHeight="1080" maxOutputFrameWidth="1920"
|
||||
maxOutputFrameHeight="1080" maxPrefetchYUVFrames="10"/>
|
||||
<!--
|
||||
The VideoEditor Export codec profile and level values
|
||||
correspond to the values in OMX_Video.h.
|
||||
E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline
|
||||
and level 4096 means OMX_VIDEO_AVCLevel41.
|
||||
Please note that the values are in decimal.
|
||||
These values are for video encoder.
|
||||
-->
|
||||
<!--
|
||||
Codec = h.264, Baseline profile, level 4.1
|
||||
-->
|
||||
<ExportVideoProfile name="h264" profile= "2" level="4096"/>
|
||||
<!--
|
||||
Codec = h.263, Baseline profile, level 0
|
||||
-->
|
||||
<ExportVideoProfile name="h263" profile= "1" level="1"/>
|
||||
<!--
|
||||
Codec = mpeg4, Simple profile, level 5
|
||||
-->
|
||||
<ExportVideoProfile name="m4v" profile= "1" level="128"/>
|
||||
</MediaSettings>
|
|
@ -0,0 +1,32 @@
|
|||
29 81 03 7C E1 00 28 00 b3 04 65 45 10 86 40 02
|
||||
2A 2A 2A 2A 2A 2A 2E 2E 2E 2E 2E 02 FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF 2A 2A 2A 2A 2A 2A
|
||||
2E 2E 2E 2E 2E 02 FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF 20 20 28 00 00 00 FF FF
|
||||
FF 39 20 11 00 00 00 FF 00 FF 12 FF FF FF FF FF
|
||||
3E 10 01 02 23 00 80 FF 20 04 4C 02 03 B7 21 02
|
||||
0C 00 22 04 00 08 00 32 FF 21 02 0C 00 22 2A 01
|
||||
01 00 00 00 00 00 00 00 00 00 00 00 02 00 FF FF
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
||||
00 EB 00 6E 01 00 00 00 00 FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
||||
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
|
19
android/device/softwinner/uranus-t1/fstab.sun50iw3p1
Executable file
19
android/device/softwinner/uranus-t1/fstab.sun50iw3p1
Executable file
|
@ -0,0 +1,19 @@
|
|||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
/dev/block/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,formattable
|
||||
/dev/block/by-name/alog /logger ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,formattable
|
||||
/dev/block/by-name/UDISK /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,formattable,encryptable=/dev/block/by-name/metadata,quota
|
||||
/dev/block/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/by-name/recovery /recovery emmc defaults defaults
|
||||
/dev/block/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/by-name/frp /persistent emmc defaults defaults
|
||||
/dev/block/zram0 none swap defaults zramsize=268435456
|
||||
/devices/platform/soc/sdc0/mmc_host/mmc* auto auto defaults voldmanaged=extsd:auto
|
||||
/devices/platform/soc/usbc0/usb* auto auto defaults voldmanaged=usb:auto
|
||||
/devices/platform/soc/5101000.ehci0-controller/usb* auto auto defaults voldmanaged=usb:auto
|
||||
/devices/platform/soc/5200000.ehci1-controller/usb* auto auto defaults voldmanaged=usb:auto
|
||||
/devices/platform/soc/5101000.ohci0-controller/usb* auto auto defaults voldmanaged=usb:auto
|
||||
/devices/platform/soc/5200000.ohci1-controller/usb* auto auto defaults voldmanaged=usb:auto
|
24
android/device/softwinner/uranus-t1/init.device.rc
Executable file
24
android/device/softwinner/uranus-t1/init.device.rc
Executable file
|
@ -0,0 +1,24 @@
|
|||
on init
|
||||
# Load persistent dm-verity state
|
||||
verity_load_state
|
||||
|
||||
on early-boot
|
||||
# Update dm-verity state and set partition.*.verified properties
|
||||
verity_update_state
|
||||
|
||||
on boot
|
||||
#inmod tp module
|
||||
insmod /system/vendor/modules/gslX680new.ko
|
||||
|
||||
#tp
|
||||
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-0040/input/input6/runtime_suspend
|
||||
|
||||
### csi module
|
||||
insmod /vendor/modules/videobuf2-core.ko
|
||||
insmod /vendor/modules/videobuf2-memops.ko
|
||||
insmod /vendor/modules/videobuf2-v4l2.ko
|
||||
insmod /vendor/modules/videobuf2-dma-contig.ko
|
||||
insmod /vendor/modules/vin_io.ko
|
||||
insmod /vendor/modules/ov5640.ko
|
||||
insmod /vendor/modules/gc2145.ko
|
||||
insmod /vendor/modules/vin_v4l2.ko
|
5
android/device/softwinner/uranus-t1/init.recovery.sun50iw3p1.rc
Executable file
5
android/device/softwinner/uranus-t1/init.recovery.sun50iw3p1.rc
Executable file
|
@ -0,0 +1,5 @@
|
|||
on init
|
||||
insmod /nand.ko
|
||||
#insmod /auto_detect.ko debug_mask=0xff ctp_mask=1
|
||||
insmod /gslX680new.ko
|
||||
|
BIN
android/device/softwinner/uranus-t1/media/bootanimation.zip
Executable file
BIN
android/device/softwinner/uranus-t1/media/bootanimation.zip
Executable file
Binary file not shown.
|
@ -0,0 +1,234 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2012, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
|
||||
autodetected from the Configuration. -->
|
||||
<bool name="config_enableWallpaperService">true</bool>
|
||||
|
||||
<bool name="config_showNavigationBar">true</bool>
|
||||
|
||||
<!-- Maximum number of supported users -->
|
||||
<integer name="config_multiuserMaximumUsers">8</integer>
|
||||
<!-- Whether UI for multi user should be shown -->
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
||||
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
|
||||
<!-- If true, the screen can be rotated via the accelerometer in all 4
|
||||
rotations as the default behavior. -->
|
||||
<bool name="config_allowAllRotations">true</bool>
|
||||
|
||||
<!-- Switch for lockscreen rotation by -->
|
||||
<bool name="config_enableLockScreenRotation">true</bool>
|
||||
|
||||
<!-- Boolean indicating if current platform supports BLE peripheral mode -->
|
||||
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
|
||||
|
||||
<!-- The device supports freeform window management. Windows have title bars and can be moved
|
||||
and resized. If you set this to true, you also need to add
|
||||
PackageManager.FEATURE_FREEFORM_WINDOW_MANAGEMENT feature to your device specification.
|
||||
The duplication is necessary, because this information is used before the features are
|
||||
available to the system.-->
|
||||
<bool name="config_freeformWindowManagement">true</bool>
|
||||
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
|
||||
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
|
||||
The N entries of this array define N + 1 control points as follows:
|
||||
(1-based arrays)
|
||||
|
||||
Point 1: (0, value[1]): lux <= 0
|
||||
Point 2: (level[1], value[2]): 0 < lux <= level[1]
|
||||
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
|
||||
...
|
||||
Point N+1: (level[N], value[N+1]): level[N] < lux
|
||||
|
||||
The control points must be strictly increasing. Each control point
|
||||
corresponds to an entry in the brightness backlight values arrays.
|
||||
For example, if LUX == level[1] (first element of the levels array)
|
||||
then the brightness will be determined by value[2] (second element
|
||||
of the brightness values array).
|
||||
|
||||
Spline interpolation is used to determine the auto-brightness
|
||||
backlight values for LUX levels between these control points.
|
||||
|
||||
Must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLevels">
|
||||
<item>20</item>
|
||||
<item>50</item>
|
||||
<item>145</item>
|
||||
<item>350</item>
|
||||
<item>1250</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for LCD backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
The brightness values must be between 0 and 255 and be non-decreasing.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>15</item>
|
||||
<item>70</item>
|
||||
<item>120</item>
|
||||
<item>186</item>
|
||||
<item>234</item>
|
||||
<item>250</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for button backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
The brightness values must be between 0 and 255 and be non-decreasing.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessButtonBacklightValues">
|
||||
<item>255</item>
|
||||
<item>255</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for keyboard backlight corresponding to the LUX values
|
||||
in the config_autoBrightnessLevels array. This array should have size one greater
|
||||
than the size of the config_autoBrightnessLevels array.
|
||||
The brightness values must be between 0 and 255 and be non-decreasing.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
|
||||
<item>255</item>
|
||||
<item>255</item>
|
||||
<item>255</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Remote server that can provide NTP responses. -->
|
||||
<string translatable="false" name="config_ntpServer">2.android.pool.ntp.org</string>
|
||||
|
||||
<!-- This string array should be overridden by the device to present a list of network
|
||||
attributes. This is used by the connectivity manager to decide which networks can coexist
|
||||
based on the hardware -->
|
||||
<!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
|
||||
[associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
|
||||
<!-- the 5th element "resore-time" indicates the number of milliseconds to delay
|
||||
before automatically restore the default connection. Set -1 if the connection
|
||||
does not require auto-restore. -->
|
||||
<!-- the 6th element indicates boot-time dependency-met value. -->
|
||||
<string-array translatable="false" name="networkAttributes">
|
||||
<item>"wifi,1,1,1,-1,true"</item>
|
||||
<item>"bluetooth,7,7,0,-1,true"</item>
|
||||
<item>"ethernet,9,9,2,-1,true"</item>
|
||||
<item>"mobile,0,0,0,-1,true"</item>
|
||||
<item>"wifi_p2p,13,1,0,-1,true"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Array of ConnectivityManager.TYPE_xxxx constants for networks that may only
|
||||
be controlled by systemOrSignature apps. -->
|
||||
<integer-array translatable="false" name="config_protectedNetworks">
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- This string array should be overridden by the device to present a list of radio
|
||||
attributes. This is used by the connectivity manager to decide which networks can coexist
|
||||
based on the hardware -->
|
||||
<!-- An Array of "[ConnectivityManager connectionType],
|
||||
[# simultaneous connection types]" -->
|
||||
<string-array translatable="false" name="radioAttributes">
|
||||
<item>"1,1"</item>
|
||||
<item>"7,1"</item>
|
||||
<item>"9,1"</item>
|
||||
<item>"0,1"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
|
||||
should be empty. An example would be "softap.*" -->
|
||||
<string-array translatable="false" name="config_tether_wifi_regexs">
|
||||
<item>"wlan0"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- List of regexpressions describing the interface (if any) that represent tetherable
|
||||
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
|
||||
should be empty. -->
|
||||
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||
<item>"bt-pan"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
|
||||
<!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
|
||||
<!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
|
||||
<integer-array translatable="false" name="config_tether_upstream_types">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>5</item>
|
||||
<item>7</item>
|
||||
<item>9</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Whether WiFi display is supported by this device.
|
||||
There are many prerequisites for this feature to work correctly.
|
||||
Here are a few of them:
|
||||
* The WiFi radio must support WiFi P2P.
|
||||
* The WiFi radio must support concurrent connections to the WiFi display and
|
||||
to an access point.
|
||||
* The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix"
|
||||
remote submix module. This module is used to record and stream system
|
||||
audio output to the WiFi display encoder in the media server.
|
||||
* The remote submix module "audio.r_submix.default" must be installed on the device.
|
||||
* The device must be provisioned with HDCP keys (for protected content).
|
||||
-->
|
||||
<bool name="config_enableWifiDisplay">true</bool>
|
||||
|
||||
<!-- Flag indicating whether the current device is "voice capable".
|
||||
If true, this means that the device supports circuit-switched
|
||||
(i.e. voice) phone calls over the telephony network, and is
|
||||
allowed to display the in-call UI while a cellular voice call is
|
||||
active. This can be overridden to false for "data only" devices
|
||||
which can't make voice calls and don't support any in-call UI.
|
||||
|
||||
Note: this flag is subtly different from the
|
||||
PackageManager.FEATURE_TELEPHONY system feature, which is
|
||||
available on *any* device with a telephony radio, even if the
|
||||
device is data-only. -->
|
||||
<bool name="config_voice_capable">false</bool>
|
||||
|
||||
<!-- Flag indicating whether the current device allows sms service.
|
||||
If true, this means that the device supports both sending and
|
||||
receiving sms via the telephony network.
|
||||
This can be overridden to false for "data only" devices
|
||||
which can't send and receive sms message.
|
||||
|
||||
Note: Disable SMS also disable voicemail waiting sms,
|
||||
cell broadcasting sms, and MMS. -->
|
||||
<bool name="config_sms_capable">false</bool>
|
||||
|
||||
<!-- support night light mode -->
|
||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,93 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2009, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<device name="Android">
|
||||
<!-- Most values are the incremental current used by a feature,
|
||||
in mA (measured at nominal voltage).
|
||||
The default values are deliberately incorrect dummy values.
|
||||
OEM's must measure and provide actual values before
|
||||
shipping a device.
|
||||
Example real-world values are given in comments, but they
|
||||
are totally dependent on the platform and can vary
|
||||
significantly, so should be measured on the shipping platform
|
||||
with a power meter. -->
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">300</item> <!-- ~200mA -->
|
||||
<item name="screen.full">400</item> <!-- ~300mA -->
|
||||
<item name="bluetooth.active">93.5</item> <!-- Bluetooth data transfer, ~10mA -->
|
||||
<item name="bluetooth.on">0.79</item> <!-- Bluetooth on & connectable, but not connected, ~0.1mA -->
|
||||
<item name="wifi.on">3.5</item> <!-- ~3mA -->
|
||||
<item name="wifi.active">73.24</item> <!-- WIFI data transfer, ~200mA -->
|
||||
<item name="wifi.scan">75.48</item> <!-- WIFI network scanning, ~100mA -->
|
||||
<item name="dsp.audio">88</item> <!-- ~10mA -->
|
||||
<item name="dsp.video">88</item> <!-- ~50mA -->
|
||||
<item name="camera.flashlight">0.1</item> <!-- Avg. power for camera flash, ~160mA -->
|
||||
<item name="camera.avg">550</item> <!-- Avg. power use of camera in standard usecases, ~550mA -->
|
||||
<item name="radio.active">0.1</item> <!-- ~200mA -->
|
||||
<item name="radio.scanning">0.1</item> <!-- cellular radio scanning for signal, ~10mA -->
|
||||
<item name="gps.on">0.1</item> <!-- ~50mA -->
|
||||
<!-- Current consumed by the radio at different signal strengths, when paging -->
|
||||
<array name="radio.on"> <!-- Strength 0 to BINS-1 -->
|
||||
<value>0.2</value> <!-- ~2mA -->
|
||||
<value>0.1</value> <!-- ~1mA -->
|
||||
</array>
|
||||
<!-- Different CPU speeds as reported in
|
||||
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state -->
|
||||
<array name="cpu.speeds">
|
||||
<value>480000</value> <!-- 480 MHz CPU speed -->
|
||||
<value>600000</value> <!-- 600 MHz CPU speed -->
|
||||
<value>720000</value> <!-- 720 MHz CPU speed -->
|
||||
<value>864000</value> <!-- 860 MHz CPU speed -->
|
||||
<value>912000</value> <!-- 912 MHz CPU speed -->
|
||||
<value>1008000</value> <!-- 1008 MHz CPU speed -->
|
||||
<value>1128000</value> <!-- 1128 MHz CPU speed -->
|
||||
<value>1200000</value> <!-- 1200 MHz CPU speed -->
|
||||
<value>1608000</value> <!-- 1608 MHz CPU speed -->
|
||||
<value>1800000</value> <!-- 1800 MHz CPU speed -->
|
||||
<value>2016000</value> <!-- 2016 MHz CPU speed -->
|
||||
</array>
|
||||
<!-- Current when CPU is idle -->
|
||||
<item name="cpu.idle">3.2</item>
|
||||
<item name="cpu.awake">17.4</item>
|
||||
<!-- Current at each CPU speed, as per 'cpu.speeds' -->
|
||||
<array name="cpu.active">
|
||||
<value>88.2</value> <!-- 480 MHz CPU speed -->
|
||||
<value>99.6</value> <!-- 600 MHz CPU speed -->
|
||||
<value>138.8</value> <!-- 720 MHz CPU speed -->
|
||||
<value>149.6</value> <!-- 860 MHz CPU speed -->
|
||||
<value>170.2</value> <!-- 912 MHz CPU speed -->
|
||||
<value>178.3</value> <!-- 1008 MHz CPU speed -->
|
||||
<value>149.6</value> <!-- 1128 MHz CPU speed -->
|
||||
<value>189.1</value> <!-- 1200 MHz CPU speed -->
|
||||
<value>266.4</value> <!-- 1608 MHz CPU speed -->
|
||||
<value>287.7</value> <!-- 1800 MHz CPU speed -->
|
||||
<value>325.7</value> <!-- 2016 MHz CPU speed -->
|
||||
|
||||
</array>
|
||||
<!-- This is the battery capacity in mAh (measured at nominal voltage) -->
|
||||
<item name="battery.capacity">2978</item>
|
||||
|
||||
<array name="wifi.batchedscan"> <!-- mA -->
|
||||
<value>.0076</value> <!-- 1-8/hr -->
|
||||
<value>.0613</value> <!-- 9-64/hr -->
|
||||
<value>.4845</value> <!-- 65-512/hr -->
|
||||
<value>3.870</value> <!-- 513-4,096/hr -->
|
||||
<value>30.96</value> <!-- 4097-/hr -->
|
||||
</array>
|
||||
</device>
|
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Keep screen on at all times by default -->
|
||||
<bool name="def_stay_on_while_plugged_in">false</bool>
|
||||
|
||||
<!-- Do not give up on DHCP -->
|
||||
<integer name="def_max_dhcp_retries">0</integer>
|
||||
|
||||
<!-- Default Location Mode -->
|
||||
<string name="def_location_providers_allowed" translatable="false">network</string>
|
||||
|
||||
<!-- captive portal detection -->
|
||||
<add-resource type="integer" name="def_captive_portal_mode" />
|
||||
<integer name="def_captive_portal_mode">1</integer>
|
||||
|
||||
<!-- captive portal detection use https -->
|
||||
<add-resource type="integer" name="def_captive_portal_use_https" />
|
||||
<integer name="def_captive_portal_use_https">1</integer>
|
||||
|
||||
<!-- captive portal detection https server url -->
|
||||
<add-resource type="string" name="def_captive_portal_https_url" />
|
||||
<string name="def_captive_portal_https_url">https://captive.v2ex.co/generate_204</string>
|
||||
|
||||
<!-- captive portal detection http server url -->
|
||||
<add-resource type="string" name="def_captive_portal_http_url" />
|
||||
<string name="def_captive_portal_http_url">http://captive.v2ex.co/generate_204</string>
|
||||
|
||||
</resources>
|
144
android/device/softwinner/uranus-t1/uranus_t1.mk
Executable file
144
android/device/softwinner/uranus-t1/uranus_t1.mk
Executable file
|
@ -0,0 +1,144 @@
|
|||
$(call inherit-product, device/softwinner/uranus-common/uranus_64_bit.mk)
|
||||
$(call inherit-product, build/target/product/full_base.mk)
|
||||
$(call inherit-product, device/softwinner/uranus-common/uranus-common.mk)
|
||||
$(call inherit-product-if-exists, device/softwinner/uranus-t1/modules/modules.mk)
|
||||
$(call inherit-product, device/softwinner/common/pad.mk)
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS := device/softwinner/uranus-t1/overlay \
|
||||
$(DEVICE_PACKAGE_OVERLAYS)
|
||||
|
||||
# secure config
|
||||
BOARD_HAS_SECURE_OS := false
|
||||
|
||||
# drm config
|
||||
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
|
||||
|
||||
# dm-verity relative
|
||||
$(call inherit-product, build/target/product/verity.mk)
|
||||
# PRODUCT_SUPPORTS_BOOT_SIGNER must be false,otherwise error will be find when boota check boot partition
|
||||
PRODUCT_SUPPORTS_BOOT_SIGNER := false
|
||||
#PRODUCT_SUPPORTS_VERITY_FEC := false
|
||||
PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/by-name/system
|
||||
PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/by-name/vendor
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
Launcher3 \
|
||||
SoundRecorder
|
||||
|
||||
#File Explorer
|
||||
PRODUCT_PACKAGES += \
|
||||
ESFileExplorer
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0-service \
|
||||
android.hardware.power@1.0-impl \
|
||||
power.uranus
|
||||
|
||||
# vndk
|
||||
PRODUCT_PACKAGES += \
|
||||
uranus-t1-vndk
|
||||
|
||||
############################### 3G Dongle Support ###############################
|
||||
# Radio Packages and Configuration Flie
|
||||
$(call inherit-product, vendor/aw/public/prebuild/lib/librild/radio_common.mk)
|
||||
|
||||
##################### Realtek WiFi & Bluetooth Config start #####################
|
||||
# WiFi Property for Realtek modules
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
wifi.interface=wlan0 \
|
||||
wifi.direct.interface=p2p0
|
||||
|
||||
# Bluetooth Property for Realtek module
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.bluetooth.btsnoopenable=false \
|
||||
persist.bluetooth.btsnooppath=/data/misc/bluedroid/btsnoop_hci.cfa \
|
||||
persist.bluetooth.btsnoopsize=0xffff \
|
||||
persist.bluetooth.rtkcoex=true \
|
||||
bluetooth.enable_timeout_ms=11000
|
||||
###################### Realtek WiFi & Bluetooth Config end ######################
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/softwinner/uranus-t1/kernel:kernel \
|
||||
device/softwinner/uranus-t1/fstab.sun50iw3p1:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.sun50iw3p1 \
|
||||
device/softwinner/uranus-t1/init.device.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.device.rc \
|
||||
device/softwinner/uranus-t1/init.recovery.sun50iw3p1.rc:root/init.recovery.sun50iw3p1.rc \
|
||||
device/softwinner/uranus-t1/modules/modules/gslX680new.ko:recovery/root/gslX680new.ko \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/softwinner/uranus-t1/configs/camera.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/camera.cfg \
|
||||
device/softwinner/uranus-t1/configs/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
|
||||
device/softwinner/common/config/awbms_config:$(TARGET_COPY_OUT_VENDOR)/etc/awbms_config \
|
||||
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/softwinner/common/config/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml \
|
||||
frameworks/native/data/etc/android.software.managed_users.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.managed_users.xml \
|
||||
frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
|
||||
frameworks/native/data/etc/android.software.picture_in_picture.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.picture_in_picture.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/softwinner/uranus-t1/media/bootanimation.zip:system/media/bootanimation.zip
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.radio.noril=true
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.frp.pst=/dev/block/by-name/frp
|
||||
|
||||
# usb
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.sys.usb.config=mtp,adb \
|
||||
ro.adb.secure=0
|
||||
|
||||
#scense control
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
sys.p_home=false \
|
||||
sys.p_music=true
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.product.first_api_level=27
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.sf.lcd_density=320
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
pm.dexopt.boot=verify-at-runtime \
|
||||
dalvik.vm.heapsize=256m \
|
||||
dalvik.vm.heapstartsize=8m \
|
||||
dalvik.vm.heapgrowthlimit=192m \
|
||||
dalvik.vm.heaptargetutilization=0.75 \
|
||||
dalvik.vm.heapminfree=2m \
|
||||
dalvik.vm.heapmaxfree=8m \
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.sys.timezone=Asia/Shanghai \
|
||||
persist.sys.country=CN \
|
||||
persist.sys.language=zh
|
||||
|
||||
PRODUCT_AAPT_CONFIG := xlarge large
|
||||
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||
# A list of dpis to select prebuilt apk, in precedence order.
|
||||
PRODUCT_AAPT_PREBUILT_DPI := xhdpi hdpi tvdpi mdpi
|
||||
PRODUCT_CHARACTERISTICS := tablet
|
||||
|
||||
# stoarge
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
persist.fw.force_adoptable=true
|
||||
|
||||
# for ota
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.build.version.ota=8.0.0 \
|
||||
ro.sys.ota.license=1605226a74fff91167b3df50b1f1bca4c8a924be52cd946ef2ef25c67d8bf886f21832bc66511c8f
|
||||
|
||||
$(call inherit-product-if-exists, vendor/google/products/gms-mandatory.mk)
|
||||
|
||||
PRODUCT_BRAND := Allwinner
|
||||
PRODUCT_NAME := uranus_t1
|
||||
PRODUCT_DEVICE := uranus-t1
|
||||
# PRODUCT_BOARD must equals the board name in kernel
|
||||
PRODUCT_BOARD := t1
|
||||
PRODUCT_MODEL := Uranus A63
|
||||
PRODUCT_MANUFACTURER := Allwinner
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/softwinner/uranus-t1/configs/gsensor.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/gsensor.cfg
|
24
android/device/softwinner/uranus-t1/vendorsetup.sh
Executable file
24
android/device/softwinner/uranus-t1/vendorsetup.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
# Copyright (C) 2012 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.
|
||||
#
|
||||
|
||||
# This file is executed by build/envsetup.sh, and can use anything
|
||||
# defined in envsetup.sh.
|
||||
#
|
||||
# In particular, you can add lunch options with the add_lunch_combo
|
||||
# function: add_lunch_combo generic-eng
|
||||
|
||||
add_lunch_combo uranus_t1-eng
|
||||
add_lunch_combo uranus_t1-user
|
184
android/device/softwinner/uranus-t1/vndk/Android.mk
Executable file
184
android/device/softwinner/uranus-t1/vndk/Android.mk
Executable file
|
@ -0,0 +1,184 @@
|
|||
ifneq ($(filter uranus-t1,$(TARGET_DEVICE)),)
|
||||
|
||||
VNDK_SP_LIBRARIES := \
|
||||
android.hardware.graphics.allocator@2.0 \
|
||||
android.hardware.graphics.common@1.0 \
|
||||
android.hardware.graphics.mapper@2.0 \
|
||||
android.hidl.memory@1.0 \
|
||||
libbacktrace \
|
||||
libbase \
|
||||
libc++ \
|
||||
libcutils \
|
||||
libhardware \
|
||||
libhidlbase \
|
||||
libhidltransport \
|
||||
libhwbinder \
|
||||
libion \
|
||||
liblzma \
|
||||
libunwind \
|
||||
libutils \
|
||||
|
||||
VNDK_LIBRARIES := \
|
||||
libstagefright_amrnb_common \
|
||||
libopus \
|
||||
libvorbisidec \
|
||||
libstagefright_enc_common \
|
||||
|
||||
VNDK_LIBRARIES_32 := \
|
||||
libstagefright_soft_aacdec \
|
||||
libstagefright_soft_aacenc \
|
||||
libstagefright_soft_amrdec \
|
||||
libstagefright_soft_amrnbenc \
|
||||
libstagefright_soft_amrwbenc \
|
||||
libstagefright_soft_avcdec \
|
||||
libstagefright_soft_avcenc \
|
||||
libstagefright_soft_flacdec \
|
||||
libstagefright_soft_flacenc \
|
||||
libstagefright_soft_g711dec \
|
||||
libstagefright_soft_gsmdec \
|
||||
libstagefright_soft_hevcdec \
|
||||
libstagefright_soft_mp3dec \
|
||||
libstagefright_soft_mpeg2dec \
|
||||
libstagefright_soft_mpeg4dec \
|
||||
libstagefright_soft_mpeg4enc \
|
||||
libstagefright_soft_opusdec \
|
||||
libstagefright_soft_rawdec \
|
||||
libstagefright_soft_vorbisdec \
|
||||
libstagefright_soft_vpxdec \
|
||||
libstagefright_soft_vpxenc
|
||||
|
||||
VNDK_SP_HW_LIBRARIES := \
|
||||
android.hidl.memory@1.0-impl
|
||||
|
||||
VNDK_SP_EXT_LIBRARIES := \
|
||||
|
||||
EXTRA_VENDOR_LIBRARIES := \
|
||||
android.hardware.radio.deprecated@1.0 \
|
||||
android.hardware.radio@1.0 \
|
||||
android.hardware.radio@1.1 \
|
||||
android.hardware.wifi.supplicant@1.0 \
|
||||
android.hardware.wifi@1.0 \
|
||||
android.hardware.wifi@1.1 \
|
||||
libSmileEyeBlink \
|
||||
libapperceivepeople \
|
||||
libaudioroute \
|
||||
libcap \
|
||||
libfacedetection \
|
||||
libhdr \
|
||||
libkeymaster_portable \
|
||||
libkeymaster_staging \
|
||||
libproc \
|
||||
libprotobuf-cpp-full \
|
||||
libsoftkeymasterdevice \
|
||||
libtinyalsa \
|
||||
libcdc_base \
|
||||
libawavs \
|
||||
libawh264 \
|
||||
libawh265 \
|
||||
libawh265soft \
|
||||
libawmjpeg \
|
||||
libawmjpegplus \
|
||||
libawmpeg2 \
|
||||
libawmpeg4base \
|
||||
libawmpeg4dx \
|
||||
libawmpeg4h263 \
|
||||
libawmpeg4normal \
|
||||
libawmpeg4vp6 \
|
||||
libawvp6soft \
|
||||
libawvp8 \
|
||||
libawvp9soft \
|
||||
libawvp9Hw \
|
||||
libawwmv12soft \
|
||||
libawwmv3 \
|
||||
libMemAdapter \
|
||||
libvdecoder \
|
||||
libvideoengine \
|
||||
libVE \
|
||||
libvencoder \
|
||||
|
||||
#include device/softwinner/uranus-t1/vndk/IllegalLib.mk
|
||||
#-------------------------------------------------------------------------------
|
||||
# VNDK Modules
|
||||
#-------------------------------------------------------------------------------
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
define define-vndk-lib
|
||||
include $$(CLEAR_VARS)
|
||||
LOCAL_MODULE := $1.$2
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)/$1.so
|
||||
LOCAL_STRIP_MODULE := false
|
||||
LOCAL_MULTILIB := first
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_INSTALLED_MODULE_STEM := $1.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3
|
||||
LOCAL_VENDOR_MODULE := $4
|
||||
include $$(BUILD_PREBUILT)
|
||||
|
||||
ifneq ($$(TARGET_2ND_ARCH),)
|
||||
ifneq ($$(TARGET_TRANSLATE_2ND_ARCH),true)
|
||||
include $$(CLEAR_VARS)
|
||||
LOCAL_MODULE := $1.$2
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_PREBUILT_MODULE_FILE := $$($$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES)/$1.so
|
||||
LOCAL_STRIP_MODULE := false
|
||||
LOCAL_MULTILIB := 32
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_INSTALLED_MODULE_STEM := $1.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3
|
||||
LOCAL_VENDOR_MODULE := $4
|
||||
include $$(BUILD_PREBUILT)
|
||||
endif # TARGET_TRANSLATE_2ND_ARCH is not true
|
||||
endif # TARGET_2ND_ARCH is not empty
|
||||
endef
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
define define-vndk32-lib
|
||||
include $$(CLEAR_VARS)
|
||||
LOCAL_MODULE := $1.$2
|
||||
$(warning "=== $1.$2")
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_PREBUILT_MODULE_FILE := $$($$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES)/$1.so
|
||||
LOCAL_STRIP_MODULE := false
|
||||
LOCAL_MULTILIB := 32
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_INSTALLED_MODULE_STEM := $1.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3
|
||||
LOCAL_VENDOR_MODULE := $4
|
||||
include $$(BUILD_PREBUILT)
|
||||
endef
|
||||
|
||||
$(foreach lib,$(VNDK_SP_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-gen,vndk-sp,)))
|
||||
$(foreach lib,$(VNDK_SP_EXT_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-ext-gen,vndk-sp,true)))
|
||||
$(foreach lib,$(EXTRA_VENDOR_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-ext-gen,,true)))
|
||||
$(foreach lib,$(VNDK_SP_HW_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-hw-gen,vndk-sp/hw,)))
|
||||
$(foreach lib,$(VNDK_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-gen,vndk,)))
|
||||
$(foreach lib,$(VNDK_LIBRARIES_32),\
|
||||
$(eval $(call define-vndk32-lib,$(lib),vndk-gen,vndk,)))
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Phony Package
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := uranus-t1-vndk
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_REQUIRED_MODULES := \
|
||||
$(addsuffix .vndk-sp-gen,$(VNDK_SP_LIBRARIES)) \
|
||||
$(addsuffix .vndk-sp-ext-gen,$(VNDK_SP_EXT_LIBRARIES)) \
|
||||
$(addsuffix .vndk-ext-gen,$(EXTRA_VENDOR_LIBRARIES)) \
|
||||
$(addsuffix .vndk-sp-hw-gen,$(VNDK_SP_HW_LIBRARIES)) \
|
||||
$(addsuffix .vndk-gen,$(VNDK_LIBRARIES)) \
|
||||
$(addsuffix .vndk-gen,$(VNDK_LIBRARIES_32))
|
||||
include $(BUILD_PHONY_PACKAGE)
|
||||
|
||||
endif # ifneq ($(filter uranus-t1,$(TARGET_DEVICE)),)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue