Building Mobile Proxy with Android Phones support 4G/5G with high speed & low cost

Setting up Android phones that support 4G/5G has never been easier with the new version (NextGen), in the tutorial we will introduce the improved advantages compared to the previous version (Legacy) that the new version has. This new NextGen can do it.

The content of this article is divided into the following sections:

  1. Why do we have to improve the Legacy version?
  2. Comparison of features of XProxy supporting android in Legacy and NextGen versions
  3. Requirements for hardware
  4. Permissions to use in NextGen Android App
  5. Installation Guide
  6. Battery Problems

Why do we have to improve the Legacy version?

We've been rolling out Legacy for 3 years, it works pretty well for most of our customers, however we noticed some downsides, so we needed to upgrade, some of the reasons listed below:

- USB 2.0 transfer rate limitation: let's say your server supports 1 USB 2.0 controller, and we have 20 Android Phones in use. In theory each USB controller 2.0 supports up to 480Mbps, assuming that all phones are used to download at fully capacity, each phone can only reach maximum speed: 480/ 20 = 24Mbps.
So, if we use a large number of android phones per controller, the speed will be slow.

- Speed improvement: we can use USB 3.0 hardware to get total speed up to 5000Mbps per controller. However, some other problems arise: by design, USB3.0 (XHCI) only supports a small number of devices plugged into it compared to USB2.0 (EHCI).
This setup need use multiple Expansion USB 3.0 cards to expand your USB controllers to use multiple phones, each controller needs 1 PCI-Express slot.
The server only has 4-5 PCI-Express slots, so we can not use a large number of phones on the single server.

- Using a server with PCI-Express slots, buying a lot of USB Expansion cards, a lot of USB Hub 3.0 has increased the cost of setup. It seems only suitable for systems under 50 phones/single server.

- To improve the hardware problem, we release the NextGen version that supports Proxy transmission through LAN/WI-FI, to get high speed and reduce investment costs.

Compare the pros and cons of versions

Features Legacy Version NextGen Version
Proxy Transport By USB wire and USB hub WIFI or LAN OTG
High Speed Support Yes (almost via USB HUB) Yes (almost via LAN)
Stably depend on USB hub, server motherboard Wifi/LAN router
Not required USB HUB No Yes (Usb hub is optional)
No required PC server with high spec No (ìf you plug a lot phones) Yes
Not Required Rooted permission Yes (limited, rooted is better) Yes
Device Owner permission required No Yes (optional)
Fast Rotation Yes (limited, fast with rooted) Yes
Access Logging Support No Yes
Shared Proxies (Selling function) Yes (limited) Yes
TCP OS Fingerprinting No Yes
Compatible with all dongle features No Yes

Requirements for hardware

  1. (Optional) Recommend to use Samsung Phones if you are planing to purchase phones, it's easy for DIY remove batter (see more in Battery Problems section).
  2. Android phones support from Marshmallow version (Android 6 with API/SDK level 23) and above.
  3. Android Phones no need rooted.
  4. (Optional) Android Phones with no users added (need factory reset and without login google account OR remove all accounts.
  5. USB cable for first setup.
  6. (Optional) USB HUB supporting fast installing multiple phones at once.
  7. Proxy server: CPU more than 4 cores, RAM minimum 16GB, Gigabits card (use 2.5 Gbps if your network adapt). It's using for creating proxies and bridge with phones.
  8. Router with high performance: we are recommend to use couple balancing router & WI-FI agents for handling phones connections.
    - Some balancing router you can reference: Mikrotik 750GR3, Draytek series with high users supported,...
    - Some WI-FI agents you can reference: multiple instance of Aruba 225, Xirrus XD4,...
    - If you use with OTG adapter, LAN, you need only balancing router.

Permissions being used in NextGen Android App

  1. Permission READ_PHONE_STATE: getting information about network: name, signal, provider,...
  2. Permission ACCESS_FINE_LOCATION: allow setting WI-FI, notification,...
  3. Permission App Assistant: use for rotation/changing IP.
  4. Permission Device Owner App (optional): use special permission such reboot, Auto enable WI-FI, data,...

Installation Guide

First, you need enable NextGen Android feature on Settings page

  1. (Optional) Remove all accounts if you want to use Device Owner App
  2. This step is not required, but if you want to use with some advanced function such WI-FI configuration, reboot on XProxy panel, you can do it.

  3. Enable debugging mode
  4. Turn on the Developer Mode of Android Phone and Enable USB Debugging.

    Go to Settings > Find the Build Number option and Tap 7 times.

    Go to the Developer Options > Enable USB Debugging.

  5. Plug Android Phone to XProxy Server and Confirm Always allow.

  6. The XProxy application will install automatically, and you will see the XProxy app on your list

  7. Verify & checking application installed
  8. On XProxy panel, go to the Android Device, check your device connected or not.

    Look at the Android Devices list, some Column need check to make sure android phones are working properly:
    - ADB: indicated the phone connect with your proxy server via USB cable and ADB working or not, if it's not work, please check "Step 2: Enable debugging mode".
    - AgentApp: indicated the status of Android App installed on your phone, if it shows YES means it's working normally, another status need follow the hint instruction by hover your mouse to this column.
    - OWNER: indicated this phone is bridge with your server to make proxy or not. By default, all phones connected via USB cable to this server will automatically remember this server is OWNER. When the phones are using wireless mode, you can change OWNER by Config Owner Server button.
    - Proxying: indicate the status of proxy on Android App is working or not.
    - WI-FI/LAN Information: indicate the WI-FI connection status between your phone and the router.

  9. Setting WI-FI (if your phone is not setup or want to change to another)
  10. You can easy to config the WI-FI for your phones with some clicks on panel

  11. Remove USB cable
  12. If the phone being showing on XProxy panel with all GREEN status, means this phone working perfectly. You can remove USB cable and use it normally.

    (Optional) For exceptional cases, the XProxy application does not work properly for almost phones, please maintain the connection of the phones on the USB Hub connected to the server, XProxy will control it via ADB to fix the problems during using (if any).

Battery Problems

Normally, all android phones working great less than 6 months - 1 year, because we are plugging to charger 24/7 then after 1 year have some problem about battery such: drains fast, can't charge, battery swelling etc,..

There are some solutions for you:
- Replacement the battery periodically.
- DIY to remove battery: we are recommend to use Samsung phones, all samsung phones can use without battery. You need open the case to remove batter and use the battery wire and USB Hub charging your phones.
We have all accessories to do it, please contact our supporter to purchase if you want.

Contact US via Telegram
Contact Us via Messenger
Contact Us via What's App