Skip to content

Instantly share code, notes, and snippets.

@ayasa520
ayasa520 / bootanim.rc
Last active October 1, 2025 14:58
waydroid magisk
service bootanim /system/bin/bootanimation
class core animation
user graphics
group graphics audio
disabled
oneshot
ioprio rt 0
task_profiles MaxPerformance
on post-fs-data
@ayasa520
ayasa520 / main.py
Created September 10, 2025 15:49
bilibili收藏夹
import requests
params = {
"access_key" : "",
"appkey" : "1d8b6e7d45233436",
"build" : "8611100",
"media_id" : "51732771",
"mobi_app" : "android",
"pn" : "1",
@ayasa520
ayasa520 / neozygisk.diff
Last active October 1, 2025 15:03
A workaround to make NeoZygisk work on devices with SELinux disabled
diff --git a/zygiskd/src/utils.rs b/zygiskd/src/utils.rs
index b5d9f82..4afd2af 100644
--- a/zygiskd/src/utils.rs
+++ b/zygiskd/src/utils.rs
@@ -172,12 +172,21 @@ pub fn unix_listener_from_path(path: &str) -> Result<UnixListener> {
/// Sends a datagram packet to a Unix socket path.
pub fn unix_datagram_sendto(path: &str, buf: &[u8]) -> Result<()> {
- set_socket_create_context(&get_current_attr()?)?;
+ // Best-effort: ignore failures when SELinux is disabled or context is invalid