Repository navigation
Modifications
Download these required files:
- Push SuperSU zip to device:
adb push SR5-SuperSU-v2.82-SR5-20171001224502.zip /sdcard- Boot into TWRP recovery:
adb reboot bootloader
fastboot boot twrp-3.1.1-0-seed.imgNote
Wait for ADB to detect the device again. This may take a few moments.
- Install SuperSU through TWRP:
adb shell
twrp install /sdcard/SR5-SuperSU-v2.82-SR5-20171001224502.zip
rebootThe default BusyBox installation lacks several commands (like vi). Here's how to install a complete version:
-
Download BusyBox APK
-
Install the APK:
adb install busybox.apk- Launch BusyBox:
- Follow the View Display Guide
- Open BusyBox application
- Tap "Install"
- Grant root permissions when prompted
To verify installation:
adb shell
busybox --helpFirst, identify and pull the correct APK:
# MifiService.apk is typically located at:
adb pull /system/priv-app/MifiService.apk# Clone Android platform build tools
git clone https://android.googlesource.com/platform/build
# Navigate to security folder
cd build/target/product/security/
# Generate platform key files
openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem
openssl pkcs12 -export -in platform.x509.pem -inkey platform.pem -out platform.p12 -password pass:android -name testkey
keytool -importkeystore -deststorepass android -destkeystore platform.keystore -srckeystore platform.p12 -srcstoretype PKCS12 -srcstorepass android
# Move keystore to working directory
mv platform.keystore {YOUR_WORK_DIR}- Decompile:
java -jar apktool.jar d MifiService.apk -o MifiService-
Make modifications in the
assetsfolder or any part of the APK that you need to modify -
Recompile (use
androidas passphrase when prompted):
java -jar apktool.jar b -o unsigned.apk MifiService- Sign and align:
zipalign -v 4 unsigned.apk aligned.apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./platform.keystore aligned.apk testkey- Install modified APK:
adb install -r aligned.apkChanging Default IP by tarokeitaro
Note
Use VS Code's global search and replace feature (Ctrl+Shift+H) to find and replace all instances efficiently.
-
Replace IP addresses in the decompiled APK:
- Search for all instances of
192.168.100.in theMifiServicefolder - Replace with your desired IP range (e.g.,
192.168.1.or192.168.0.)
- Search for all instances of
-
Recompile the APK:
java -jar apktool.jar b -o unsigned.apk MifiService- Sign and align the APK (PASS: android):
zipalign -v 4 unsigned.apk aligned.apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./platform.keystore aligned.apk testkey- Install the modified APK:
adb install -r aligned.apk- Mount
/systempartition as read-write:
mount -o rw,remount,rw /system- Edit the initialization script:
busybox vi /system/bin/initmifiservice.shFind line 22: ifconfig br0 192.168.100.1 up and change the IP to match your chosen range.
- Pull the Android services framework:
adb pull /system/framework/services.jar- Decompile the services framework:
java -jar apktool.jar d -o services services.jar-
Update IP addresses in services framework:
- Search for all instances of
192.168.100.in theservicesfolder - Replace with your chosen IP range to maintain consistency
- Search for all instances of
-
Recompile the services framework:
java -jar apktool.jar b -c -f -o services.jar services- Push the modified services framework back to device:
adb push services.jar /system/framework/- Remount
/systemas read-only:
mount -o ro,remount,ro /system- Reboot device for changes to take effect:
adb rebootWarning
Ensure all three components (APK, script, and services.jar) use the same IP range, or the device may not function correctly.