initial brax3 device makefiles
* boots and works fine Signed-off-by: erascape <erascape@proton.me>
This commit is contained in:
commit
59281ccd87
67 changed files with 3271 additions and 0 deletions
1
overlay/system/etc/default/aethercast
Normal file
1
overlay/system/etc/default/aethercast
Normal file
|
@ -0,0 +1 @@
|
|||
AETHERCAST_I_FRAME_INTERVAL=-1
|
|
@ -0,0 +1 @@
|
|||
export MIR_ANDROID_FORCE_HWC2=1
|
|
@ -0,0 +1,7 @@
|
|||
IDVENDOR=0E8D
|
||||
IDPRODUCT_MTP=2008
|
||||
IDPRODUCT_MTP_ADB=201D
|
||||
IDPRODUCT_RNDIS=2004
|
||||
IDPRODUCT_RNDIS_ADB=2005
|
||||
# Disable usb-moded's rescue mode.
|
||||
USB_MODED_ARGS=
|
12
overlay/system/etc/deviceinfo/devices/prithvi.yaml
Normal file
12
overlay/system/etc/deviceinfo/devices/prithvi.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
prithvi:
|
||||
Vendor: BraX
|
||||
PrettyName: BraX3
|
||||
DeviceType: phone
|
||||
GridUnit: 14
|
||||
SupportedOrientations:
|
||||
- Portrait
|
||||
- Landscape
|
||||
- InvertedLandscape
|
||||
OfonoPlugin: binder
|
||||
OfonoImplementsIms: true
|
||||
VibrateDurationExtraMs: 40
|
2
overlay/system/etc/gbinder.conf
Normal file
2
overlay/system/etc/gbinder.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
[General]
|
||||
ApiLevel = 33
|
25
overlay/system/etc/ofono/binder.d/mtk.conf
Normal file
25
overlay/system/etc/ofono/binder.d/mtk.conf
Normal file
|
@ -0,0 +1,25 @@
|
|||
# ofono binder driver configuration for MTK devices
|
||||
|
||||
[Settings]
|
||||
ExpectSlots = slot1,slot2
|
||||
3GLTEHandover = false
|
||||
MaxNonDataMode = none
|
||||
|
||||
Device=/dev/binder
|
||||
InterfaceType = aidl
|
||||
#radioInterface = aidl
|
||||
emptyPinQuery = false
|
||||
useDataProfiles = true
|
||||
mmsDataProfileId = 1001
|
||||
# RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND
|
||||
rilRequestOnSetUdub = 13
|
||||
#extPlugin = mtk
|
||||
|
||||
[slot1]
|
||||
path = /ril_0
|
||||
slot = 0
|
||||
|
||||
[slot2]
|
||||
path = /ril_1
|
||||
slot = 1
|
||||
|
26
overlay/system/etc/ofono/ril_subscription.d/mtk.conf
Normal file
26
overlay/system/etc/ofono/ril_subscription.d/mtk.conf
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Ofono configuration for MTK devices
|
||||
|
||||
[Settings]
|
||||
#EmptyConfig=false
|
||||
#Identity=radio:radio
|
||||
#3GLTEHandover=true
|
||||
Device=/dev/binder
|
||||
InterfaceType = aidl
|
||||
emptyPinQuery=false
|
||||
radioPowerCycle=false
|
||||
confirmRadioPowerOn=false
|
||||
networkSelectionManual0=false
|
||||
cellInfoIntervalShortMs=0
|
||||
useDataProfiles=true
|
||||
mmsDataProfileId=1001
|
||||
# RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND
|
||||
rilRequestOnSetUdub=13
|
||||
|
||||
[ril_0]
|
||||
transport=binder:name=slot1;interface=android.hardware.radio.modem.IRadioModem
|
||||
name=slot1
|
||||
|
||||
[ril_1]
|
||||
transport=binder:name=slot2;interface=android.hardware.radio.modem.IRadioModem
|
||||
#;interface=radio
|
||||
name=slot2
|
2
overlay/system/etc/pulse/droid_card_custom.pa
Normal file
2
overlay/system/etc/pulse/droid_card_custom.pa
Normal file
|
@ -0,0 +1,2 @@
|
|||
### Load Pulseaudio Droid module built for API 30
|
||||
load-module module-droid-card-30 output_deep_buffer=false hw_volume=false rate=48000
|
1
overlay/system/etc/systemd/system/biometryd.service
Symbolic link
1
overlay/system/etc/systemd/system/biometryd.service
Symbolic link
|
@ -0,0 +1 @@
|
|||
/dev/null
|
|
@ -0,0 +1 @@
|
|||
/usr/lib/systemd/user/umtprd-manager.service
|
|
@ -0,0 +1 @@
|
|||
/dev/null
|
46
overlay/system/etc/umtprd/umtprd.conf
Normal file
46
overlay/system/etc/umtprd/umtprd.conf
Normal file
|
@ -0,0 +1,46 @@
|
|||
#
|
||||
# uMTP Responder config file
|
||||
#
|
||||
|
||||
# UBports: Don't show hidden files
|
||||
show_hidden_files 0
|
||||
|
||||
# UBports: Use phablet user as default for all storage file operations
|
||||
default_uid 32011
|
||||
default_gid 32011
|
||||
|
||||
# Add home folder as default "internal storage" entry
|
||||
storage "/home/phablet" "Internal Storage" "rw,locked"
|
||||
|
||||
# Set the USB strings visible to host systems
|
||||
manufacturer "BraX"
|
||||
product "BraX3"
|
||||
# FIXME: set to something proper!
|
||||
serial "UT2004"
|
||||
|
||||
# Set the MTP firmware version
|
||||
firmware_version "Rev A"
|
||||
|
||||
# Set the USB interface string. Should be always "MTP"
|
||||
interface "MTP"
|
||||
|
||||
# Set the USB Vendor ID, Product ID and class
|
||||
# FIXME: set to something proper!
|
||||
usb_vendor_id 0x1D6B # Linux Foundation
|
||||
usb_product_id 0x0100 # PTP Gadget
|
||||
usb_class 0x6 # Image
|
||||
usb_subclass 0x1 # Still Imaging device
|
||||
usb_protocol 0x1 #
|
||||
|
||||
# Device version
|
||||
usb_dev_version 0x3008
|
||||
|
||||
# Generic FunctionFS Mode
|
||||
usb_functionfs_mode 0x1
|
||||
|
||||
usb_dev_path "/dev/usb-ffs/mtp/ep0"
|
||||
usb_epin_path "/dev/usb-ffs/mtp/ep1"
|
||||
usb_epout_path "/dev/usb-ffs/mtp/ep2"
|
||||
usb_epint_path "/dev/usb-ffs/mtp/ep3"
|
||||
|
||||
usb_max_packet_size 0x200
|
|
@ -0,0 +1,6 @@
|
|||
[configfs]
|
||||
function_mtp = ffs.mtp
|
||||
gadget_udc_device = musb-hdrc
|
||||
|
||||
[udev]
|
||||
extcon_tracking = 1
|
9
overlay/system/etc/usb-moded/dyn-modes/mtp.ini.in
Normal file
9
overlay/system/etc/usb-moded/dyn-modes/mtp.ini.in
Normal file
|
@ -0,0 +1,9 @@
|
|||
[mode]
|
||||
name = mtp
|
||||
module = none
|
||||
appsync = 1 # Launches uMTP-Responder as needed
|
||||
|
||||
[options]
|
||||
# sysfs_value = comma separated list of functions to enable in this mode
|
||||
sysfs_value = mtp
|
||||
idProduct = $IDPRODUCT_MTP
|
13
overlay/system/etc/usb-moded/dyn-modes/mtp_adb.ini.in
Normal file
13
overlay/system/etc/usb-moded/dyn-modes/mtp_adb.ini.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
[mode]
|
||||
name = mtp_adb
|
||||
module = none
|
||||
# Launches ADBD
|
||||
# Launches uMTP-Responder as needed
|
||||
appsync = 1
|
||||
|
||||
[options]
|
||||
# sysfs_value = comma separated list of functions to enable in this mode
|
||||
sysfs_value = mtp,adb
|
||||
android_extra_sysfs_path = /sys/class/android_usb/android0/f_ffs/aliases
|
||||
android_extra_sysfs_value = adb
|
||||
idProduct = $IDPRODUCT_MTP_ADB
|
5
overlay/system/etc/usb-moded/run/mtp-umtprd.ini
Normal file
5
overlay/system/etc/usb-moded/run/mtp-umtprd.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[info]
|
||||
mode = mtp
|
||||
systemd = 1
|
||||
name = umtprd.service
|
||||
systemd_wait = 1
|
5
overlay/system/etc/usb-moded/run/mtp_adb-umtprd.ini
Normal file
5
overlay/system/etc/usb-moded/run/mtp_adb-umtprd.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[info]
|
||||
mode = mtp_adb
|
||||
systemd = 1
|
||||
name = umtprd.service
|
||||
systemd_wait = 1
|
Loading…
Add table
Add a link
Reference in a new issue