From f5528d5f8e13ce042195c267a6d9346c26dc0249 Mon Sep 17 00:00:00 2001 From: xunmod <116288337+xunmod@users.noreply.github.com> Date: Sat, 20 Apr 2024 23:37:05 +0800 Subject: [PATCH] Misc tweaks --- bluetooth/bdroid_buildcfg.h | 2 +- device.mk | 9 ++++--- patches/su.patch | 49 ------------------------------------- 3 files changed, 6 insertions(+), 54 deletions(-) delete mode 100644 patches/su.patch diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index ffcb18c..46a6ccb 100755 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -17,7 +17,7 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H -#define BTM_DEF_LOCAL_NAME "octopus-ibt" +#define BTM_DEF_LOCAL_NAME "V975s Core8" // SERVICE_CLASS:0x5A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer,Bit22 -Telephony) // MAJOR CLASS: COMPUTER diff --git a/device.mk b/device.mk index 6475d8f..7d77d98 100644 --- a/device.mk +++ b/device.mk @@ -81,19 +81,20 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.usb.config=mtp,adb \ ro.adb.secure=0 \ ro.sys.mutedrm=false \ - rw.logger=0 + rw.logger=1 PRODUCT_PROPERTY_OVERRIDES += \ ro.product.firmware=v3.0rc1 PRODUCT_PROPERTY_OVERRIDES += \ ro.sf.lcd_density=160 \ - ro.sf.rotation=270 \ - ro.product.8723b_bt.used=true + ro.sf.rotation=270 # function PRODUCT_PROPERTY_OVERRIDES += \ - ro.sys.bootfast=true + ro.sys.bootfast=true \ + ro.product.8723b_bt.used=true \ + ro.inet.wlan.type=8723bs_vq0 PRODUCT_LOCALES := zh_CN zh_TW en_US diff --git a/patches/su.patch b/patches/su.patch deleted file mode 100644 index 32feccd..0000000 --- a/patches/su.patch +++ /dev/null @@ -1,49 +0,0 @@ -diff --git a/android/system/core/include/private/android_filesystem_config.h b/android/system/core/include/private/android_filesystem_config.h -index 2f528b95c8..2a90fd842e 100644 ---- a/android/system/core/include/private/android_filesystem_config.h -+++ b/android/system/core/include/private/android_filesystem_config.h -@@ -244,7 +244,8 @@ static const struct fs_path_config android_files[] = { - - /* the following five files are INTENTIONALLY set-uid, but they - * are NOT included on user builds. */ -- { 04750, AID_ROOT, AID_SHELL, 0, "system/xbin/su" }, -+ //{ 04750, AID_ROOT, AID_SHELL, 0, "system/xbin/su" }, //BPI-M3 Root Porting Start -+ { 06755, AID_ROOT, AID_SHELL, 0, "system/bin/su" }, //BPI-M3 Root Porting End - { 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/librank" }, - { 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/procrank" }, - { 06755, AID_ROOT, AID_ROOT, 0, "system/xbin/procmem" }, -diff --git a/android/system/extras/su/Android.mk b/android/system/extras/su/Android.mk -index 0593cc96b4..e07cce53b7 100644 ---- a/android/system/extras/su/Android.mk -+++ b/android/system/extras/su/Android.mk -@@ -9,7 +9,7 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true - - LOCAL_STATIC_LIBRARIES := libc - --LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) --LOCAL_MODULE_TAGS := debug -+#LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -+#LOCAL_MODULE_TAGS := debug - - include $(BUILD_EXECUTABLE) -diff --git a/android/system/extras/su/su.c b/android/system/extras/su/su.c -index 8365379f97..b8486b0f04 100644 ---- a/android/system/extras/su/su.c -+++ b/android/system/extras/su/su.c -@@ -106,11 +106,16 @@ int main(int argc, char **argv) - gid_t gid, gids[10]; - - /* Until we have something better, only root and the shell can use su. */ -+ -+ //BPI-M3 Root Porting Start -+ /* - myuid = getuid(); - if (myuid != AID_ROOT && myuid != AID_SHELL) { - fprintf(stderr,"su: uid %d not allowed to su\n", myuid); - return 1; - } -+ */ -+ //BPI-M3 Root Porting Start - - if(argc < 2) { - uid = gid = 0;