使用视频所在目录下的第一个 .override.ttf 文件作为字幕字体
模仿 bilibili 的长按快进逻辑(基于 https://github.com/n1nja88888/mpv-fastfoward )
| package io.github.a13e300.demo.maho | |
| import android.app.PendingIntent | |
| import android.content.BroadcastReceiver | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.content.IntentFilter | |
| import android.content.pm.PackageInstaller | |
| import android.content.pm.PackageInstaller.EXTRA_STATUS | |
| import android.content.pm.PackageInstaller.STATUS_PENDING_USER_ACTION |
| #!/usr/bin/python | |
| ################################################################################ | |
| # | |
| # Universal JDWP shellifier | |
| # | |
| # @_hugsy_ | |
| # | |
| # And special cheers to @lanjelot | |
| # https://github.com/IOActive/jdwp-shellifier/blob/e82ec26193861ba58179aae7f3fa93654b7abc8a/jdwp-shellifier.py |
| package com.android.settings.bootloader; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.text.TextUtils; | |
| import android.util.Log; | |
| import com.android.settings.AESUtil; | |
| import com.android.settings.bootloader.Utils; |
| #include <cstdio> | |
| #include <fcntl.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| #include <cstring> | |
| #include <cerrno> | |
| #include <string> | |
| #include <utility> |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <pthread.h> | |
| #include <err.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <sys/wait.h> | |
| #include <signal.h> |
| import os | |
| import shutil | |
| from pathlib import Path | |
| from traceback import print_exc | |
| def rmall(p: Path): | |
| print('removing', p) | |
| try: | |
| if os.path.isdir(p): | |
| shutil.rmtree(p) |
使用视频所在目录下的第一个 .override.ttf 文件作为字幕字体
模仿 bilibili 的长按快进逻辑(基于 https://github.com/n1nja88888/mpv-fastfoward )
| #pragma description Android Boot image | |
| #pragma magic [ 41 4e 44 52 4f 49 44 21 ] @ 0x00 | |
| #pragma magic [ 56 4e 44 52 42 4f 4f 54 ] @ 0x00 | |
| #pragma endian little | |
| using uint8_t = u8; | |
| using uint32_t = u32; | |
| using uint64_t = u64; | |
| import std.mem; |