initial brax3 device makefiles

* boots and works fine

Signed-off-by: erascape <erascape@proton.me>
This commit is contained in:
erascape 2025-09-24 08:37:41 +00:00
commit 59281ccd87
67 changed files with 3271 additions and 0 deletions

View file

@ -0,0 +1 @@
AETHERCAST_I_FRAME_INTERVAL=-1

View file

@ -0,0 +1 @@
export MIR_ANDROID_FORCE_HWC2=1

View file

@ -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=

View file

@ -0,0 +1,12 @@
prithvi:
Vendor: BraX
PrettyName: BraX3
DeviceType: phone
GridUnit: 14
SupportedOrientations:
- Portrait
- Landscape
- InvertedLandscape
OfonoPlugin: binder
OfonoImplementsIms: true
VibrateDurationExtraMs: 40

View file

@ -0,0 +1,2 @@
[General]
ApiLevel = 33

View 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

View 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

View 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

View file

@ -0,0 +1 @@
/dev/null

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/umtprd-manager.service

View file

@ -0,0 +1 @@
/dev/null

View 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

View file

@ -0,0 +1,6 @@
[configfs]
function_mtp = ffs.mtp
gadget_udc_device = musb-hdrc
[udev]
extcon_tracking = 1

View 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

View 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

View file

@ -0,0 +1,5 @@
[info]
mode = mtp
systemd = 1
name = umtprd.service
systemd_wait = 1

View file

@ -0,0 +1,5 @@
[info]
mode = mtp_adb
systemd = 1
name = umtprd.service
systemd_wait = 1