Skip to content

Instantly share code, notes, and snippets.

View hmtheboy154's full-sized avatar
🇻🇳
Noob since 2018

Huy Minh hmtheboy154

🇻🇳
Noob since 2018
View GitHub Profile
From f8b94083896854ab5fe265b20892cc95eddbf87a Mon Sep 17 00:00:00 2001
From: Huy Minh <buingoc67@gmail.com>
Date: Tue, 19 Aug 2025 13:42:15 +0700
Subject: [PATCH] WIP: Bluetooth: Initial support for MT7902
USB IDs taken from
https://github.com/OnlineLearningTutorials/mt7902_temp
This work is based on Xiaomi's "rodin" BSP, including setting up
support for both USB & SDIO for MT7902
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<privapp-permissions package="com.google.android.tvlauncher">
<permission name="android.permission.BIND_APPWIDGET"/>
<permission name="android.permission.CHANGE_HDMI_CEC_ACTIVE_SOURCE"/>
<permission name="android.permission.MEDIA_CONTENT_CONTROL"/>
<permission name="android.permission.NOTIFY_TV_INPUTS"/>
<permission name="android.permission.READ_CONTENT_RATING_SYSTEMS"/>
</privapp-permissions>
@hmtheboy154
hmtheboy154 / gist:deaa02c6ff382a3867c50c44dd233121
Created May 28, 2025 07:37
LineageOS' htop build fix on CachyOS
diff --git a/Android.bp b/Android.bp
index ebd8404..9c5f383 100644
--- a/Android.bp
+++ b/Android.bp
@@ -73,6 +73,8 @@ cc_binary {
"-DSYSCONFDIR=\"/system_ext/etc\"",
"-Wno-deprecated-declarations",
"-Wno-enum-conversion",
+ "-DNCURSES_ENABLE_STDBOOL_H",
+ "-Wno-int-conversion",
From da20fe397a30e76dd74db044776409e7b0268803 Mon Sep 17 00:00:00 2001
From: hmtheboy154 <buingoc67@gmail.com>
Date: Mon, 21 Apr 2025 13:51:31 +0000
Subject: [PATCH] nvme/pci: Apply Simple Suspend quirk to Surface Pro 2017
(1807) SSD
Recent kernel version seems to broke suspend on this drive, set
Simple Suspend seems to fix the issue, but I still don't know the cause
and why this quirk can help.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Michael Goffioul <michael.goffioul@lincor.com>
Date: Fri, 26 Apr 2024 10:52:24 -0400
Subject: [PATCH] Add support for codec2 AIDL HAL
---
codec2/Android.mk | 23 +++--
...droid.hardware.media.c2-ffmpeg-service.rc} | 2 +-
...fmpeg.xml => manifest_media_c2_ffmpeg.xml} | 7 ++
...droid.hardware.media.c2-ffmpeg-arm.policy} | 0
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Michael Goffioul <michael.goffioul@lincor.com>
Date: Mon, 23 Sep 2024 17:45:56 -0400
Subject: [PATCH] Don't use disk cache on Android
Disk cache is supposed to be disabled on Android, but commit
c3bc6991d27c61b5c1b362f60db513044c5e41c3 had the side-effect of still
creating cache directory unconditionally. This is a problem for
processes that have not access to mkdirat syscall, e.g. mediaswcodec.
@hmtheboy154
hmtheboy154 / iso_from_target_files
Last active June 15, 2024 21:34
iso_from_target_files
#!/bin/bash
#
# Copyright (C) 2024 BlissLabs
#
# Licensed under the GNU General Public License Version 2 or later.
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.gnu.org/licenses/gpl.html
#
@hmtheboy154
hmtheboy154 / error.log
Created June 15, 2023 21:06
iptsd & tools error
FAILED: target C++: iptsd-calibrate <= device/generic/common/iptsd/src/apps/calibrate/main.cpp
Outputs: /media/new-ej-drive/hmtheboy154/bliss15/out/target/product/x86_64/obj/EXECUTABLES/iptsd-calibrate_intermediates/src/apps/calibrate/main.o
Error: exited with code: 1
Command: /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r416183b1/bin/clang++ -I device/generic/common/iptsd/src -I device/generic/common/iptsd -I /media/new-ej-drive/hmtheboy154/bliss15/out/target/product/x86_64/obj/EXECUTABLES/iptsd-calibrate_intermediates -I /media/new-ej-drive/hmtheboy154/bliss15/out/target/product/x86_64/gen/EXECUTABLES/iptsd-calibrate_intermediates -I external/spdlog/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Ibionic/libc/async_safe/include -Isystem/logging/liblog/include -Ibionic/libc/system_properties/include -Isystem/core/property_service/libpropertyinfoparser/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/ke
# Maintainer: HMTheBoy154 <buingoc67@gmail.com>
# from: git
_pkgname="fcitx5-bamboo"
pkgbase="fcitx5-bamboo-git"
pkgname=(
"$pkgbase"
)
pkgver=1.0.0.a59ebea
pkgrel=1