Commit 8c4e8187 authored by Dominika Liberda's avatar Dominika Liberda 💽
Browse files

Initial commit

parents
This diff is collapsed.
# Rvololtut mobile app deadname remover
The app welcomes you with a personalized string, containing your name. But what if that's not legally your name? Enter `revloltutPatcher.sh` (misspelled because I don't want to be sued)!
## Instructions
1. Install the app via Aurora store or any other store that leaves you all APK files for an app somewhere under `/sdcard/` - maybe YALP will work too
2. Uninstall the app. Copy the main APK file (the one without "config" in the name) to a machine with Bash, OpenSSL and JRE
3. Run the patcher
4. Transfer the resulting APK (out_signed.apk) back to your device.
5. Install [Split APKs Installer (SAI)](https://play.google.com/store/apps/details?id=com.aefyr.sai) (com.aefyr.sai), we'll use this to install patched Revtoltut's APK
6. Settings -> select `Sign APKs`
7. Select `out_signed.apk`, `com.revloltüt.revültut.*.config.arm64_v8a.apk` (or similar), and `com.revlóltut.lulrevültut.*.config.xxhdpi.apk`. **Do NOT select the additional translation APK!*
8. Install the app, and you're done!
## Notes
The patcher (backported from [mbank deadname remover](https://git.sakamoto.pl/laudom/mbank-mobile-app-deadname-remover)) still signs the APK, but as in this case we're using `Split APKs Installer` that can sign the APK for us, it might not be required.
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "usage: $0 <revolut_apk> <your desired name(s)>"
exit 0
fi
apk="$(realpath $1)"
mkdir -p revolut; cd revolut; rm -R base
[[ ! -f "apktool.jar" ]] && wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.5.0.jar -O apktool.jar
[[ ! -f "signapk.jar" ]] && wget https://github.com/techexpertize/SignApk/raw/master/signapk.jar -O signapk.jar
java -jar apktool.jar d "$apk" -o base
strings_file=$(grep -Rl '<string name="passcode.welcome')
sed -E -i 's/passcode.welcome.*%(1|s)/&'"$2"'/g;s/%(1|s)'"$2"'(\$s|)/'"$2"'/g' "$i"
if [[ ! -f "crypto.crt" || ! -f "key.pk8" ]]; then
openssl genrsa -out crypto.key 1024
openssl req -new -key crypto.key -out crypto.csr -subj "/C=PL/ST=Warsaw/L=Warsaw/O=Paweł Tanajno Rigcz Hawajska+ hacker collective"
openssl x509 -req -days 9999 -in crypto.csr -signkey crypto.key -out crypto.crt
cat crypto.key crypto.crt > certificate.pem
openssl pkcs8 -topk8 -outform DER -in certificate.pem -inform PEM -out key.pk8 -nocrypt
rm crypto.key crypto.csr certificate.pem
fi
java -jar apktool.jar --use-aapt2 b base -o out.apk
java -jar signapk.jar crypto.crt key.pk8 out.apk out_signed.apk
#rm -R revolut/base
#echo "IMPORTANT NOTE: please store crypto.crt and key.pk8 in a safe place - you'll need them to sign the app after any updates."
#echo "OUTPUT FILE: revolut/out_signed.apk"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment