# HK1 RBOX X4

# HK1RBOX-X4

Amlogic S905X4

Specifications (adb shell getprop)  
> ro.product.build.fingerprint]: [Amlogic/ah212/ah212:11/RQ3A.210805.001.A1/user12212324:user/release-keys]  
[ro.product.build.id]: [RQ3A.210805.001.A1]

GPU (adb shell dumpsys SurfaceFlinger | grep GLES ) :
>GLES: ARM, Mali-G31, OpenGL ES 3.2 v1.r25p1-01bet0-6a4488b89-0567174f3.3ce44ab07ffe09dde7ee2f5999c7dd83


## Backup original ROM

https://slimboxtv.ru/obnovlenie-proshivki-s-soxraneniem-dannyx-v-usb-burning-tool/


## Custom ROM

https://slimboxtv.ru/transpeed-x4-x4s/

Procedure:  

- Start the Amlogic Flash tool with administrative privilege
- Load the custom image
- Leave the options by default (erase flash, etc)
- Press the `start` button
- Push `reset` button located inside the audio/jack connector
- Plug the USB to the PC
  The USB2 connector (not the blue one) is pretty tight so to avoid bad connection, put the box on the side having the USB port facing the ceiling. Don't move at all during the process.
- Wait for the flash to proceed


## Configuration

- Update Magisk app and system using Magisk app
  - Configure systemless hosts file
  - Configure denylist
 
- Enable all slimbox features in the `internet` menu
- Install basic packages
  - AdAway
  - Amaze
  - F-Droid
  - Firefox
  - Neo Backup
  - NewPipe
  - Tivimate
  - VLC
  - WG Tunnel
  - Wireguard

- Update all packages
- Freeze APKPure package
  ```shell
  # Find package name
  adb shell pm list packages -e | grep -i apk
  # Disable/freeze package
  adb shell pm disable com.apkpure.aegon
  # Stop all processes
  adb shell ps -Aw | grep -i apkpure
  # Grab the PID above and kill processes
  kill ${PID}
  ```

- WireGuard Configuration
  - Add the below line in each conf file located in `/data/data/com.wireguard.android/files` :
    `IncludedApplications = ar.tvplayer.tv`
  - Configure the "Always-on VPN" settings in the "Network & Internet" settings

- Install Viper4Android
  <https://github.com/programminghoch10/ViPER4AndroidRepackaged>  
  Download latest package and install using Magisk.

### Troubleshooting

- Check the current network connections
  ```shell
  adb shell netstat -lpeWt
  ```

## Infos

https://androidpctv.com/firmware-hk1-rbox-vontar-x4-transpeed-x4-rom/