gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

Not Working on Adnroid Pie on my device

Open elswerky opened this issue 5 years ago • 1 comments

hello dev; i tried to make it work on my device realme 2 pro android pie ,,color os 6 but it fails with this error 2020-04-21 21:25:16.981 ERROR Main: Cannot start client: Command adb ["-s", "307714f6", "shell", "am", "start", "-a", "com.genymobile.gnirehtet.START", "-n", "com.genymobile.gnirehtet/.GnirehtetActivity"] returned with value 255

but i tested it on another device with older android version and it worked well

so can you help me plz to make it work

thx in advance

elswerky avatar Apr 21 '20 19:04 elswerky

Step-by-Step Fix for Android Pie (Realme 2 Pro):

  1. Manually Allow VPN Permission Open Gnirehtet app directly on your phone.

It should prompt you for VPN permission.

Tap Allow (even if you're using adb from PC).

ColorOS may silently block VPN permission if started from adb without manual approval.

  1. Turn Off Battery Optimization for Gnirehtet Go to Settings → Battery → App battery management

Find Gnirehtet

Set to "No Restrictions" or "Don't optimize"

  1. Check "Auto Launch" Settings (ColorOS Specific) Go to Settings → App Management → Gnirehtet → Auto Launch

Turn ON Auto Launch

Also allow background activity and secondary launch 4. Install Gnirehtet Manually (If Needed) In case installation failed:

Download the .apk from the official repo

Push manually:

adb install gnirehtet.apk Then start it:

adb shell am start -a com.genymobile.gnirehtet.START 5. Check USB Debugging Go to Developer Options

Make sure USB Debugging is ON

Try adb devices to confirm your phone is connected properly

Still Not Working? Some Realme/ColorOS devices block VPN apps launched via ADB, especially if you're not allowing VPN permissions manually.

VaradGupta23 avatar Jul 15 '25 06:07 VaradGupta23