Reverse Tethering & Screen Mirroring Qube for Android Device 📱 revisions

Go back to topic: Reverse Tethering & Screen Mirroring Qube for Android Device 📱

  1. v5 anchor; v5 full version
  2. v4 anchor; v4 full version
  3. v3 anchor; v3 full version
  4. v2 anchor; v2 full version

Revision #5

Edited on
2024-11-09
Edited by user
glockmane
9) *Enable* Developer Settings & *USB Debugging* on Android Device 10) *Connect Android Device* via USB 11) Run 9) Create *connect_android.sh*
nano ~/.local/connect_android.sh ``` With the following Content: ```
/home/user/start_scrcpy.sh & /home/user/start_gnirehtet.sh
and *authorize PC* on Android Device 12) Start Reverse Tethering with Make it executable:
gnirehtet run chmod u+x ~/.local/connect_android.sh
and *accept VPN Connection* Window on Android Device 13) Run *scrcpy* from Start Menu10) Create *start_scrcpy.sh* ``` nano ~/.local/start_scrcpy.sh ``` With the following Content: ``` scrcpy ``` Make it executable: ``` chmod u+x ~/.local/start_scrcpy.sh ``` 11) Create *start_gnirehtet.sh* ``` nano ~/.local/start_gnirehtet.sh ``` With the following Content: ``` /home/linuxbrew/.linuxbrew/Cellar/gnirehtet/2.5.1/bin/gnirehtet run ``` Make it executable: ``` chmod u+x ~/.local/start_gnirehtet.sh ``` 12) Create *connect_android.desktop* ``` nano ~/.local/share/applications/connect_android.desktop ``` With the following Content: ``` [Desktop Entry] Name=Connect Android GenericName=Connect Android Hardware Device Comment=Authorize ADB, Control & Reverse Tether Exec=/home/user/connect_android.sh Icon=terminal Terminal=true Type=Application Categories=Utility;Network; StartupNofity=true ``` Make it executable: ``` chmod u+x ~/.local/share/applications/connect_android.desktop ``` 13) Refresh App List in Qubes Settings 14) *Enable* Developer Settings & *USB Debugging* on Android Device 15) *Connect Android Device* via USB 16) Make sure other Qubes which passthrough the same USB Controller (e.g. sys-usb) are shutted down 17) Launch "Connect Android" Shortcut 18) Authorize ADB when prompt is shown on Android Device

Revision #4

Edited on
2024-11-09
Edited by user
glockmane

Revision #3

Edited on
2024-09-12
Edited by user
glockmane
**Reverse Tethering & Screen Mirroring Qube for Android Device** **Reverse Tethering & Screen Mirroring Qube for Android Device** 📱
🛑 Guide utilizes *USB Debugging* which can add significant Attack Surface to your Android Device, use at your own risk! 🛑

Revision #2

Edited on
2024-09-12
Edited by user
glockmane
**Reverse Tethering & Screen Mirroring Qube for Android Device** **Reverse Tethering & Screen Mirroring Qube for Android Device** *Control your Android Device from Qubes OS while providing Network to the Android Device*
4) Passthrough USB Controller to App Qube, switch Virt Mode to *hvm* 5) Run Terminal on App Qube 6) Install homebrew with 4) *Passthrough USB Controller* to App Qube, switch Virt Mode to *hvm* 5) Run *Terminal on App Qube* 6) Install *homebrew* with
9) Enable Developer Settings & USB Debugging on Android Device 10) Connect Android Device via USB 9) *Enable* Developer Settings & *USB Debugging* on Android Device 10) *Connect Android Device* via USB
and authorize PC on Android Device and *authorize PC* on Android Device
and accept VPN Connection Window on Android Device and *accept VPN Connection* Window on Android Device