Skip to content

Instantly share code, notes, and snippets.

1. パッケージ名でPIDを探す
gpid=`pidof -s com.miHoYo.GenshinImpact`
2. フレーム補間をPID指定で有効化
vivo X100の場合45FPSを90FPSにフレーム補間
settings put system gamecube_frame_interpolation 1:3:$gpid:45:90
iQOO 12の場合48FPSを144FPSにフレーム補間
settings put system gamecube_frame_interpolation 1:3:$gpid:48:144
@AndroPlus-org
AndroPlus-org / userdata以外すべての場合
Last active June 6, 2025 08:00
Androidのイメージバックアップ (パスやファイル名は端末によって変わるため、適宜変更してください)
# 1. root権限で実行するためsuに
su
※suコマンドを実行できないGSIの場合は一旦exitでadb shellを抜けて以下を実行
adb root
adb shell
# 2. 各イメージがあるパスへ移動する (/dev/block/bootdevice/by-name/ の場合もあります)
cd /dev/block/by-name/
# 3. バックアップ保存用ディレクトリを作成
# Check if the port works. Error will be outputed if it didn't work
./EfsTools.exe efsInfo
# Reset mcfg_autoselect_by_uim (please create empty file named mcfg_autoselect_by_uim file)
./EfsTools.exe writeFile -i mcfg_autoselect_by_uim -o /nv/item_files/mcfg/mcfg_autoselect_by_uim
# Flash mbn
./EfsTools.exe uploadDirectory -i mcfg_sw.mbn -o / -v
@AndroPlus-org
AndroPlus-org / gist:a6e6573cde23d990ea89636da02a5f14
Last active February 22, 2025 10:45
OnePlus logo with Unicode color block
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥⬛⬛🟥🟥🟥🟥🟥🟥🟥
🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
🟥⬛⬛⬛⬛🟥🟥🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
🟥⬛⬛⬛⬛🟥🟥🟥🟥⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛
🟥⬛⬛⬛⬛⬛⬛🟥🟥⬛⬛⬛⬛⬛⬛🟥⬛⬛⬛
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="actionbar_button_up_description">Back</string>
<string name="afternoon">Afternoon</string>
<string name="ai_assistant">AI Call Assistant</string>
<string name="ai_assistant_not_installed">Install AI Call Assistant first</string>
<string name="ai_dial">AI call</string>
<string name="ai_mode_auto">Auto</string>
<string name="ai_mode_manual">Manually</string>
<string name="ai_mode_subtitles">Subtitles</string>
@AndroPlus-org
AndroPlus-org / google-lang.user.js
Last active February 15, 2024 13:52
Google検索に日本語のみ、英語のみ表示するボタンを追加するユーザースクリプト
// ==UserScript==
// @name Google検索 日本語のみ・英語のみボタン
// @namespace http://0-oo.net/
// @description Google検索に「日本語のみ」「英語のみ」ボタンを追加する
// @homepage http://0-oo.net/log/category/greasemonkey/
// @version 1.1
// @include http*://www.google.tld/search*
// @include http*://www.google.tld/webhp*
// @include http*://www.google.tld/#*
// @include http*://www.google.tld/
@AndroPlus-org
AndroPlus-org / show_fps.sh
Last active July 21, 2023 08:11
Show FPS on OnePlus 7 Pro
#!/bin/bash
# Example of the case where you want to get 50 repetitions
max=50
for ((i=0; i < $max; i++)); do
adb shell su -c "cat /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/measured_fps"
echo -n -e "\n"
done
@AndroPlus-org
AndroPlus-org / rakuten-userstyle
Created July 11, 2023 11:30
楽天アフィリエイト管理画面のトップバナーとお知らせを2列にする
.raf-slider{
width: 50%;
float: left;
}
#app > main > section:nth-child(2){
overflow-y: scroll;
height: 300px;
}
#app > main > section:nth-child(3){
padding-top: 1rem;
@AndroPlus-org
AndroPlus-org / functions.php
Created May 19, 2023 02:36
Twitter API v2 WordPress 投稿時に自動ツイート
https://github.com/fsyhrnl/twifer
composer require ferrysyahrinal/twifer
でテーマフォルダにインストールしておく
<?php
require_once STYLESHEETPATH . '/vendor/autoload.php';
use Twifer\API;
function tweetv2($new_status, $old_status, $post){
./realme-ota -d ./out.txt -r [0] [1] [2] [3] [4]
例:
./realme-ota -d ./out.txt -r 1 PGP110 PGP110_11.A.12_0120_202210111756 3 10010111
[0]
リージョン
グローバル = 0, CN = 1, IN = 2, EU = 3
[1]