update new sdk

This commit is contained in:
August 2020-07-15 19:27:51 +08:00
parent f33907443a
commit 744c72c133
1643 changed files with 83006 additions and 28021 deletions

View file

@ -22,7 +22,7 @@
<resources>
<!-- The default tiles to display in QuickSettings -->
<string name="quick_settings_tiles_default" translatable="false">
wifi,bt,dnd,flashlight,rotation,location,cell,airplane,cast,custom(com.android.systemui/com.softwinner.screenshot.ScreenshotTileService),custom(com.android.systemui/com.softwinner.screenrecord.ScreenrecordTileService)
wifi,bt,dnd,flashlight,rotation,cell,airplane,cast,custom(com.android.systemui/com.softwinner.screenshot.ScreenshotTileService),custom(com.android.systemui/com.softwinner.screenrecord.ScreenrecordTileService)
</string>
</resources>

View file

@ -10,6 +10,8 @@ allow hal_bluetooth_default tmpfs:dir { write };
allow hal_bluetooth_default bluetooth_data_file:dir search;
allow hal_bluetooth_default bluetooth_data_file:file open;
allow hal_bluetooth_default bluetooth_data_file:file read;
allow hal_bluetooth_default bluetooth_logs_data_file:dir { write search create add_name remove_name};
allow hal_bluetooth_default bluetooth_logs_data_file:file {open read write create rename unlink getattr};
allow hal_bluetooth_default proc:file open;
allow hal_bluetooth_default proc:file write;

1
android/device/softwinner/common/sepolicy/vendor/shell.te vendored Normal file → Executable file
View file

@ -5,3 +5,4 @@ allow shell sysfs_zram:dir search;
allow shell sysfs_zram:file { read getattr open };
allow shell hal_memtrack_default:binder call;
allow shell untrusted_app_25:process getsched;
set_prop(shell, system_prop)

View file

@ -0,0 +1,2 @@
#!/system/bin/sh
cat /proc/kmsg > /data/misc/logd/cur_bg_kmsg.log

View file

@ -35,7 +35,7 @@
</mixPort>
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>

View file

@ -18,8 +18,8 @@
<Encoders>
<MediaCodec name="OMX.allwinner.video.encoder.avc" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="45-220" />
<Limit name="measured-frame-rate-720x480" range="87-322" />
<Limit name="measured-frame-rate-1280x720" range="27-147" />
<Limit name="measured-frame-rate-720x480" range="26-127" />
<Limit name="measured-frame-rate-1280x720" range="25-129" />
<!-- Limit name="measured-frame-rate-1920x1080" range="69-69" / -->
</MediaCodec>
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
@ -28,7 +28,7 @@
<Limit name="measured-frame-rate-1280x720" range="10-50" />
</MediaCodec>
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="126-1003" />
<Limit name="measured-frame-rate-176x144" range="85-411" />
</MediaCodec>
<MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="175-847" />
@ -60,7 +60,7 @@
<Limit name="measured-frame-rate-480x360" range="166-807" />
</MediaCodec>
<MediaCodec name="OMX.allwinner.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="186-902" />
<Limit name="measured-frame-rate-320x180" range="469-2274" />
<Limit name="measured-frame-rate-640x360" range="216-1049" />
<Limit name="measured-frame-rate-1280x720" range="66-324" />
<Limit name="measured-frame-rate-1920x1080" range="26-91"/>

View file

@ -25,15 +25,12 @@ on fs
mount_all /vendor/etc/fstab.sun50iw1p1
swapon_all /vendor/etc/fstab.sun50iw1p1
restorecon_recursive /persist
start console
on late-fs
# gpu
insmod /vendor/modules/mali.ko
write /sys/devices/platform/soc/cpu_budget_cooling/roomage "1152000 4 0 0 1152000 4 0 0"
# mkdir for optee
mkdir /data/tee 0770 system system
restorecon_recursive /data/tee
on post-fs-data
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
@ -64,3 +61,37 @@ on boot
on post-fs-data
# create file for audio dump data
mkdir /data/audio_d 0777 audio audio
mkdir /data/tee 0770 system system
restorecon_recursive /data/tee
# add background log(kmsg:logcat) collect(pre:cur)
on property:persist.bg.logcollect=*
stop bg_kmsg
stop bg_logcat
# loadpersist and sys-complete trigger , use only eng/userdebug- ro.debuggable=1
on property:persist.bg.logcollect=1 && property:sys.boot_completed=1 && property:ro.debuggable=1
rm /data/misc/logd/pre_bg_kmsg.log
copy /data/misc/logd/cur_bg_kmsg.log /data/misc/logd/pre_bg_kmsg.log
rm /data/misc/logd/cur_bg_kmsg.log
start bg_kmsg
rm /data/misc/logd/pre_bg_logcat.log
copy /data/misc/logd/cur_bg_logcat.log /data/misc/logd/pre_bg_logcat.log
rm /data/misc/logd/cur_bg_logcat.log
start bg_logcat
service bg_kmsg /system/bin/bg_kmsg.sh
class main
oneshot
disabled
service bg_logcat /system/bin/logcat -f /data/misc/logd/cur_bg_logcat.log
class main
oneshot
disabled
# end

View file

@ -10,6 +10,11 @@ PRODUCT_COPY_FILES += \
device/softwinner/tulip-common/init.sun50iw1p1.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.sun50iw1p1.usb.rc \
device/softwinner/tulip-common/ueventd.sun50iw1p1.rc:root/ueventd.sun50iw1p1.rc
ifneq ($(TARGET_BUILD_VARIANT), user)
PRODUCT_COPY_FILES += device/softwinner/tulip-common/bg_kmsg.sh:system/bin/bg_kmsg.sh
endif
# video
PRODUCT_COPY_FILES += \
device/softwinner/tulip-common/configs/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \

View file

@ -57,10 +57,10 @@ ifeq ($(BOARD_WIFI_VENDOR), broadcom)
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
BOARD_USR_WIFI := ap6212
include hardware/aw/wlan/config/config.mk
include hardware/aw/wlan/firmware/firmware.mk
endif

View file

@ -37,7 +37,7 @@
-->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>

View file

@ -20,7 +20,7 @@
#ifdef BLUETOOTH_RTK
/*
#define BTM_DEF_LOCAL_NAME "Realtek Bluetooth"
#define BTM_DEF_LOCAL_NAME "bananapi"
*/
// SERVICE_CLASS:0x1A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer)
@ -74,7 +74,7 @@
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
#else
#define BTM_DEF_LOCAL_NAME "BPI-M64"
#define BTM_DEF_LOCAL_NAME "bananapi"
#define BTA_DM_COD {0x20, BTM_COD_MAJOR_AUDIO, BTM_COD_MINOR_SET_TOP_BOX}
#define BLE_VND_INCLUDED TRUE

View file

@ -6,7 +6,7 @@
#/dev/block/by-name/system /system ext4 ro,barrier=1 wait
#/dev/block/by-name/vendor /vendor ext4 ro,barrier=1 wait
/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/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,encryptable=/dev/block/by-name/metadata
/dev/block/by-name/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,forceencrypt=/dev/block/by-name/metadata
/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

View file

@ -11,15 +11,13 @@ on boot
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 80
# led
insmod /vendor/modules/leds-sunxi.ko
# rgb led
insmod /vendor/modules/leds-sunxi.ko
#insmod gsensor module
# gsensor module
#insmod /vendor/modules/bma250.ko
#tp
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-0038/input/input3/runtime_suspend
### csi module
# csi module
insmod /vendor/modules/videobuf2-core.ko
insmod /vendor/modules/videobuf2-memops.ko
insmod /vendor/modules/videobuf2-v4l2.ko
@ -29,13 +27,15 @@ on boot
insmod /vendor/modules/vfe_v4l2.ko
on property:sys.boot_completed=1
#inmod tp module
# tp module
#insmod /vendor/modules/ft5x16_ts.ko
#insmod /vendor/modules/gt9xxnew_ts.ko
#chown system system /sys/devices/platform/soc/twi0/i2c-0/0-005d/input/input3/runtime_suspend
#insmod ir module
# ir module
insmod /vendor/modules/ir-nec-decoder.ko
insmod /vendor/modules/sunxi-ir-rx.ko
# 40pin
insmod /vendor/modules/gpio-sunxi.ko
# 40pin
#insmod /vendor/modules/gpio-sunxi.ko

View file

@ -99,8 +99,8 @@ PRODUCT_COPY_FILES += \
device/softwinner/common/config/awbms_config:$(TARGET_COPY_OUT_VENDOR)/etc/awbms_config \
# bootanimation
PRODUCT_COPY_FILES += \
device/softwinner/tulip-m64-hdmi/media/bootanimation.zip:system/media/bootanimation.zip
#PRODUCT_COPY_FILES += \
# device/softwinner/tulip-m64-hdmi/media/bootanimation.zip:system/media/bootanimation.zip
# audio
PRODUCT_COPY_FILES += \
@ -119,8 +119,9 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.first_api_level=27
# hdmi 1080P set 213
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160
ro.sf.lcd_density=213
# limit dex2oat threads to improve thermals
PRODUCT_PROPERTY_OVERRIDES += \
@ -139,8 +140,8 @@ PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapminfree=512k \
dalvik.vm.heapmaxfree=8m
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.downgrade_pressure=95
#PRODUCT_PROPERTY_OVERRIDES += \
# ro.lmk.downgrade_pressure=95
# Reduces GC frequency of foreground apps by 50% (not recommanded for 512M devices)
PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.foreground-heap-growth-multiplier=2.0

View file

@ -57,6 +57,7 @@ ifeq ($(BOARD_WIFI_VENDOR), broadcom)
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
WIFI_DRIVER_MODULE_NAME := "bcmdhd"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
BOARD_USR_WIFI := ap6212

View file

@ -37,7 +37,7 @@
-->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>

View file

@ -20,7 +20,7 @@
#ifdef BLUETOOTH_RTK
/*
#define BTM_DEF_LOCAL_NAME "Realtek Bluetooth"
#define BTM_DEF_LOCAL_NAME "bananapi"
*/
// SERVICE_CLASS:0x1A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer)
@ -74,7 +74,7 @@
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
#else
#define BTM_DEF_LOCAL_NAME "BPI-M64"
#define BTM_DEF_LOCAL_NAME "bananapi"
#define BTA_DM_COD {0x20, BTM_COD_MAJOR_AUDIO, BTM_COD_MINOR_SET_TOP_BOX}
#define BLE_VND_INCLUDED TRUE

View file

@ -1,11 +0,0 @@
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

View file

@ -6,7 +6,7 @@
#/dev/block/by-name/system /system ext4 ro,barrier=1 wait
#/dev/block/by-name/vendor /vendor ext4 ro,barrier=1 wait
/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/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,encryptable=/dev/block/by-name/metadata
/dev/block/by-name/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,forceencrypt=/dev/block/by-name/metadata
/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

View file

@ -11,15 +11,13 @@ on boot
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 80
# led
insmod /vendor/modules/leds-sunxi.ko
# rgb led
insmod /vendor/modules/leds-sunxi.ko
#insmod gsensor module
# gsensor module
#insmod /vendor/modules/bma250.ko
#tp
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-0038/input/input3/runtime_suspend
### csi module
# csi module
insmod /vendor/modules/videobuf2-core.ko
insmod /vendor/modules/videobuf2-memops.ko
insmod /vendor/modules/videobuf2-v4l2.ko
@ -29,13 +27,15 @@ on boot
insmod /vendor/modules/vfe_v4l2.ko
on property:sys.boot_completed=1
#inmod tp module
# tp module
#insmod /vendor/modules/ft5x16_ts.ko
insmod /vendor/modules/gt9xxnew_ts.ko
chown system system /sys/devices/platform/soc/twi0/i2c-0/0-005d/input/input3/runtime_suspend
#insmod ir module
# ir module
insmod /vendor/modules/ir-nec-decoder.ko
insmod /vendor/modules/sunxi-ir-rx.ko
# 40pin
insmod /vendor/modules/gpio-sunxi.ko
# 40pin
#insmod /vendor/modules/gpio-sunxi.ko

View file

@ -99,8 +99,8 @@ PRODUCT_COPY_FILES += \
device/softwinner/common/config/awbms_config:$(TARGET_COPY_OUT_VENDOR)/etc/awbms_config \
# bootanimation
PRODUCT_COPY_FILES += \
device/softwinner/tulip-m64/media/bootanimation.zip:system/media/bootanimation.zip
#PRODUCT_COPY_FILES += \
# device/softwinner/tulip-m64/media/bootanimation.zip:system/media/bootanimation.zip
# audio
PRODUCT_COPY_FILES += \
@ -139,8 +139,8 @@ PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapminfree=512k \
dalvik.vm.heapmaxfree=8m
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.downgrade_pressure=95
#PRODUCT_PROPERTY_OVERRIDES += \
# ro.lmk.downgrade_pressure=95
# Reduces GC frequency of foreground apps by 50% (not recommanded for 512M devices)
PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.foreground-heap-growth-multiplier=2.0

View file

@ -37,7 +37,7 @@
-->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>

View file

@ -1,4 +1,4 @@
on boot
on post-fs-data
# MAC Program
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_admin
exec - root system -- /vendor/xbin/macprog.sh

View file

@ -6,7 +6,7 @@
#/dev/block/by-name/system /system ext4 ro,barrier=1 wait
#/dev/block/by-name/vendor /vendor ext4 ro,barrier=1 wait
/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/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,encryptable=/dev/block/by-name/metadata,quota
/dev/block/by-name/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,forceencrypt=/dev/block/by-name/metadata,quot
/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

View file

@ -40,7 +40,6 @@ PRODUCT_PACKAGES += Launcher3Go
#File Explorer
PRODUCT_PACKAGES += \
ESFileExplorer \
SoundRecorder
#PRODUCT_NOT_USES_VENDORIMAGE := true

View file

@ -22,3 +22,4 @@
add_lunch_combo tulip_p3-eng
add_lunch_combo tulip_p3-user
add_lunch_combo tulip_p3-userdebug

View file

@ -37,7 +37,7 @@
-->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>

View file

@ -1,4 +1,4 @@
on boot
on post-fs-data
# MAC Program
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_admin
exec - root system -- /vendor/xbin/macprog.sh

View file

@ -6,7 +6,7 @@
#/dev/block/by-name/system /system ext4 ro,barrier=1 wait
#/dev/block/by-name/vendor /vendor ext4 ro,barrier=1 wait
/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/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,encryptable=/dev/block/by-name/metadata
/dev/block/by-name/UDISK /data f2fs noatime,nosuid,nodev,discard wait,check,formattable,quota,forceencrypt=/dev/block/by-name/metadata
/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

View file

@ -137,8 +137,8 @@ PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapminfree=512k \
dalvik.vm.heapmaxfree=8m
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.downgrade_pressure=95
#PRODUCT_PROPERTY_OVERRIDES += \
# ro.lmk.downgrade_pressure=95
# Reduces GC frequency of foreground apps by 50% (not recommanded for 512M devices)
PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.foreground-heap-growth-multiplier=2.0