Skip to content

Instantly share code, notes, and snippets.

@Systemad
Systemad / Azure.md
Last active December 15, 2020 13:13

Meddelandet C# Simulator skickar till Azure med MQTT: (JSON)

{"conveyor":"Conveyor1","vibration":0.0}
                                                                    
{"conveyor":"Conveyor1","temp":59.95233778630026}

{"conveyor":"Conveyor1","speed":1}

{"conveyor":"Conveyor1","packages":2}
Starting TWRP 3.4.2b-0623-b1cf20af on Fri Jun 5 20:12:31 1970
(pid 764)
TWRP Version : 3.4.2b-0623
Build Date : 2020年 06月 23日 星期二 20:26:04 CST
Build User : wzsx150
Build Device : OnePlus 7T
BOARD_HAS_NO_REAL_SDCARD := true
TW_DEFAULT_DEVICE_NAME := OnePlus 7T
TW_EXCLUDE_DEL_PWD := true
TW_USE_LEDS_HAPTICS := true
[ 0.000718] I:[libfs_mgr]dt_fstab: Skip disabled entry for partition vendor
[ 0.000748] I:[libfs_mgr]dt_fstab: Skip disabled entry for partition odm
[ 0.000750] recovery filesystem table
[ 0.000751] =========================
[ 0.000752] 0 /system ext4 system_a 0
[ 0.000753] 1 /product ext4 product_a 0
[ 0.000754] 2 /vendor ext4 vendor_a 0
[ 0.000755] 3 /odm ext4 odm_a 0
[ 0.000756] 4 /metadata ext4 /dev/block/by-name/metadata 0
[ 0.000757] 5 /data ext4 /dev/block/bootdevice/by-name/userdata 0
Starting TWRP 3.5.0_10-0-a66a33a5 on Thu Sep 3 03:07:34 1970
(pid 587)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
TW_NO_USB_STORAGE := true
TW_HAS_EDL_MODE := true
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/backlight/panel0-backlight/brightness
I:Found brightness file at '/sys/class/backlight/panel0-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 420
@Systemad
Systemad / modify dynamic
Last active January 5, 2026 09:53
Make Dynamic Partition Read/Write
NOTE: I have only tested this on my OnePlus 7T Pro running OxygenOS11 Beta (Android 11).
Be sure to know what you're doing and proceed at your own risk.
Below are two guides on how to make dynamic partition R/W, this also works for stock.
Unlike some other guides out there, this is without the need of unpacking/repacking the super partitions.
Although, the second guide does require (a properly) TWRP.
Note: If you get qualcomm crash dump complaining about dm-verity, flash magisk.
For Guide 2, you need to use a personal ***test*** TWRP build of mine. Only tested on 7T Pro running OOS11.
@Systemad
Systemad / dm-verity
Last active December 19, 2025 02:15
Remove dm-verity from boot image
Credit: thohac@xda
I took the tools/arm/magiskboot from that git and did it manually.
Here are my steps.
put magiskboot in /data/local/bin
chmod +x /data/local/bin/magiskboot.
put unpacked boot.img on the device and patch with magisk. rename back to boot.img
mkdir unpacked; cd unpacked #make a working dir and switch to it
@Systemad
Systemad / fastbootdrescue.txt
Last active June 13, 2024 01:29
FastbootD Rescue
FastbootD Rescue:
All commands: https://source.android.com/devices/bootloader/fastbootd
### Deleted logical partition
In case you "accidentally" delete a logical partition, you won't be able to flash anything on that slot
since the partition don't exist.
In order to restore the slot to be functional you need to manually create a the new deleted logcal parition
@Systemad
Systemad / partitionmounts
Last active February 12, 2021 21:45
Partition mounts 7T PRO OOS11
### Log from TWRP
Partition mounts including dynamic partition. Log is taken directly from TWRP, bootin on OOS 11 Beta on OnePlus 7T Pro.
-------------------------------------------------------------------------------------------------------------------------
Partition Logs:
/system_root | /dev/block/dm-4 | Size: 1287MB Used: 1283MB Free: 3MB Backup Size: 1283MB
Flags: Can_Be_Mounted IsPresent SlotSelect Mount_Read_Only
Primary_Block_Device: /dev/block/dm-4
@Systemad
Systemad / model.json
Created March 2, 2021 14:12
model.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "MQTT Configuration",
"description": "",
"type": "object",
"properties": {
"topicPattern": {
"title": "Topic that will be used when publishing messages on DNX MQTT Server.",
"type": "string",
"minimum": 3,
@Systemad
Systemad / catppuccin_macchiato.omp.json
Created December 27, 2022 00:00
oh my posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"os": "#ACB0BE",
"closer": "p:os",
"pink": "#F5BDE6",
"lavender": "#B7BDF8",
"blue": "#8AADF4"
},
"blocks": [