A simple Termux script for applying Piko patches to X/Twitter
This script automatically downloads and applies current latest release Piko patches and latest integrations apk to the Twitter (X) APK using ReVanced CLI.
It also performs the following:
- β
Checks if
revanced-cli.jarandaapt2binary exist in the script folder:- If missing β downloads the working versions.
- If present β skips downloading.
- Fetches latest current GitHub release of
PikoPatches.rvpandintegrations.apk
- β Includes prompt and option for "Bring Back Twitter Old Blue Icon" with y/n selection
No root is required. Just make the script executable and run it (Requires copy to termux data dir of home for chmod rights if no root).
- Android with Termux
Twitter.apkrenamed that, Twitter.apk in same folder as script.chmod +xpermission on the script either copy ~ (termux home) if no root or root run anywhere.
If both the script and Twitter.apk are in /sdcard/Download, move them to Termux home, give execute permission, and run:
mv /sdcard/Download/ResinousInMyX.sh ~ \
mv /sdcard/Download/Twitter.apk ~ \
chmod 0755 ResinousInMyX.sh \
bash ~/ResinousInMyX.shor 1 line:
mv /sdcard/Download/ResinousInMyX.sh ~ && mv /sdcard/Download/Twitter.apk ~ && chmod 0755 ResinousInMyX.sh && bash ~/ResinousInMyX.sh
After the first patch, for new versions of Twitter, simply:
- Place the updated
Twitter.apkin the scriptβs folder and - Run:
./ResinousInMyX.shIt will get latest patch rvp and integrations APK. Then check if right version and size CLI jar exits already and download if needed same with aapt2 binary.
- All Piko patches are included by default, except the icon change, which is optional via prompt.
- Script only downloads missing dependencies (
revanced-cli.jarandaapt2)βthis saves time and bandwidth. - Ensure
Twitter.apkmatches the name exactly. - Script fetches latest Piko patches and Integrations APK automatically.
- If you donβt have root, keep the script in Termux home (
~/).
- Piko Patches β GitHub Repo
- ReVanced CLI β GitHub Repo
- Custom AAPT2 (from ReVanced) β GitHub Repo
- Termux β GitHub Repo