Skip to content

Instantly share code, notes, and snippets.

@s4704
s4704 / 1
Last active March 28, 2023 16:42
#!/system/bin/sh
mount /vendor && mount /vendor_dlkm && mount /dev/block/bootdevice/by-name/modem /vendor/firmware_mnt
arg="$(cat /vendor_dlkm/lib/modules/modules.load)"
modprobe -a -d /vendor_dlkm/lib/modules $arg
echo "1" > /proc/sys/kernel/firmware_config/force_sysfs_fallback
echo "1" > /sys/kernel/boot_adsp/boot
exit 0
@s4704
s4704 / 33
Created March 28, 2023 16:50
s4704@s4704-VirtualBox:~/dev/rom/twrp/device/motorola/hiphi$ diff -r /home/s4704/dev/rom/twrp/device/motorola/hiphi/ /home/s4704/dev/rom/twrp/device/motorola/recovery_device_motorola_hiphi/
diff -r /home/s4704/dev/rom/twrp/device/motorola/hiphi/BoardConfig.mk /home/s4704/dev/rom/twrp/device/motorola/recovery_device_motorola_hiphi/BoardConfig.mk
127c127
< TW_DEVICE_VERSION := BETA-3
---
> TW_DEVICE_VERSION := BETA-4
Only in /home/s4704/dev/rom/twrp/device/motorola/hiphi/.git: FETCH_HEAD
Binary files /home/s4704/dev/rom/twrp/device/motorola/hiphi/.git/index and /home/s4704/dev/rom/twrp/device/motorola/recovery_device_motorola_hiphi/.git/index differ
diff -r /home/s4704/dev/rom/twrp/device/motorola/hiphi/.git/logs/HEAD /home/s4704/dev/rom/twrp/device/motorola/recovery_device_motorola_hiphi/.git/logs/HEAD
1c1
# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
adsp.b00
adsp.b01
adsp.b02
adsp.b03
adsp.b04
adsp.b05
adsp.b06
adsp.b07
adsp.b08
adsp.b09
@s4704
s4704 / it
Last active April 20, 2023 13:08
# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
@s4704
s4704 / sh
Last active April 20, 2023 13:00
#!/system/bin/sh
mkdir /vendor/firmware_mnt
mount /dev/block/bootdevice/by-name/modem /vendor/firmware_mnt
echo "1" > /proc/sys/kernel/firmware_config/force_sysfs_fallback
echo "1" > /sys/kernel/boot_adsp/boot
exit 0
# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of The Linux Foundation nor
@s4704
s4704 / README.md
Created October 3, 2023 14:23 — forked from SebaUbuntu/README.md
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@s4704
s4704 / man
Created October 3, 2023 14:28
android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@2)
android.hardware.drm.IDrmFactory/clearkey (@1)
[email protected]::IComponentStore/software
android.hardware.power.IPower/default (@3)
[email protected]::ISap/slot2
android.hardware.wifi.hostapd.IHostapd/default (@1)
android.hardware.wifi.supplicant.ISupplicant/default (@1)
[email protected]::IWifi/default
[email protected]::IMotoFingerPrint/default
[email protected]::IMotoFingerPrintSensorTest/default