question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work with MIUI12

See original GitHub issue

Hii there,

I’m trying to use this with MIUI12 (since I also use scrcpy I might as well right?), however, I can’t seem to get it to work (even after trying some things found in #5). The main issue is that I have very little information to go off:

Finlay@DESKTOP-UE7732P MINGW64 /j/Toolkit/srcrpy/bin/gnirehtet
$ ADB=../scrcpy/adb.exe ./gnirehtet.exe run
2021-03-21 21:47:42.966 INFO Main: Starting relay server on port 31416...
2021-03-21 21:47:42.966 INFO Main: Checking gnirehtet client...
2021-03-21 21:47:42.979 INFO Relay: Relay server started
2021-03-21 21:47:43.101 INFO Main: Starting client...
Starting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gnirehtet/.GnirehtetActivity }

And it just sticks there, indefinitely. No VPN pop-up, no permission errors, nothing. I do have the USB debugging (Security settings) enabled (since I also use scrcpy, which also needs this). afbeelding

So I wonder what there is that I can do now :\

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
FinlayDaG33kcommented, May 16, 2021

I’ve found some more time to do some more digging. So I ran gnirehtet and used logcat to find the logs (this time, I managed to filter it by just the gnirehtet, which made it a lot easier).

Running gnirehtet

Finlay@DESKTOP-UE7732P MINGW64 /j/Toolkit/srcrpy/bin/gnirehtet
$ ./gnirehtet.exe run 5e0ed092
2021-05-16 16:02:08.818 INFO Main: Starting relay server on port 31416...
2021-05-16 16:02:08.820 INFO Relay: Relay server started
2021-05-16 16:02:08.818 INFO Main: Checking gnirehtet client...
2021-05-16 16:02:08.979 INFO Main: Starting client...
Starting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gnirehtet/.GnirehtetActivity }

Logcat output

Finlay@DESKTOP-UE7732P MINGW64 /j/Toolkit/srcrpy
$ adb logcat --pid=$(adb shell pidof -s com.genymobile.gnirehtet)
--------- beginning of main
05-16 16:04:00.310 21522 21522 I obile.gnirehte: Late-enabling -Xcheck:jni
05-16 16:04:00.321 21522 21522 E obile.gnirehte: Unknown bits set in runtime_flags: 0x8000
05-16 16:04:00.431 21522 21522 I Perf    : Connecting to perf service.
05-16 16:04:00.439 21522 21522 I FeatureParser: can't find raphael.xml in assets/device_features/,it may be in /system/etc/device_features
05-16 16:04:00.446 21522 21522 E libc    : Access denied finding property "ro.vendor.df.effect.conflict"
05-16 16:04:00.436 21522 21522 W obile.gnirehtet: type=1400 audit(0.0:720545): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=28804 scontext=u:r:untrusted_app:s0:c75,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
05-16 16:04:00.449 21522 21547 E Perf    : Fail to get file list com.genymobile.gnirehtet
05-16 16:04:00.449 21522 21547 E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
05-16 16:04:00.450 21522 21547 E Perf    : Fail to get file list com.genymobile.gnirehtet
05-16 16:04:00.450 21522 21547 E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
05-16 16:04:00.450 21522 21547 E Perf    : Fail to get file list oat
05-16 16:04:00.450 21522 21547 E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
05-16 16:04:00.462 21522 21522 D GnirehtetActivity: Received request com.genymobile.gnirehtet.STOP
05-16 16:04:00.469 21522 21522 D View    : com.genymobile.gnirehtet initForcedUseForceDark: 1
05-16 16:04:00.482 21522 21522 D GnirehtetService: Received request com.genymobile.gnirehtet.CLOSE_VPN
05-16 16:04:04.267 21522 21522 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@73ef374
05-16 16:04:04.286 21522 21522 D GnirehtetActivity: Received request com.genymobile.gnirehtet.START
05-16 16:04:04.287 21522 21522 W GnirehtetActivity: VPN requires the authorization from the user, requesting...
--------- beginning of system
05-16 16:04:04.289 21522 21522 I Timeline: Timeline: Activity_launch_request time:611663930
05-16 16:04:04.340 21522 21548 I AdrenoGLES: QUALCOMM build                   : 4d7a98b, Ic1977df6c2
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Build Date                       : 09/16/20
05-16 16:04:04.340 21522 21548 I AdrenoGLES: OpenGL ES Shader Compiler Version: EV031.27.05.01
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Local Branch                     :
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.8.1.R1.09.00.00.529.087
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Remote Branch                    : NONE
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Reconstruct Branch               : NOTHING
05-16 16:04:04.340 21522 21548 I AdrenoGLES: Build Config                     : S P 8.0.11 AArch64
05-16 16:04:04.343 21522 21548 I AdrenoGLES: PFP: 0x016ee187, ME: 0x00000000
05-16 16:04:04.336 21522 21522 W RenderThread: type=1400 audit(0.0:720546): avc: denied { search } for name="kgsl" dev="sysfs" ino=55643 scontext=u:r:untrusted_app:s0:c75,c257,c512,c768 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
05-16 16:04:04.344 21522 21548 W AdrenoUtils: <ReadGpuID_from_sysfs:194>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
05-16 16:04:04.344 21522 21548 W AdrenoUtils: <ReadGpuID:218>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
05-16 16:04:10.563 21522 21537 I obile.gnirehte: Thread[7,tid=21537,WaitingInMainSignalCatcherLoop,Thread*=0x71945be400,peer=0x135402a8,"Signal Catcher"]: reacting to signal 3
05-16 16:04:10.563 21522 21537 I obile.gnirehte: 
05-16 16:04:10.690 21522 21537 I obile.gnirehte: Wrote stack traces to tombstoned

My thought flow

In the logcat, there were 2 specific lines that caught my interest (not because I know what I was looking at, but because I put an association in my head):

05-16 16:04:00.482 21522 21522 D GnirehtetService: Received request com.genymobile.gnirehtet.CLOSE_VPN
05-16 16:04:04.287 21522 21522 W GnirehtetActivity: VPN requires the authorization from the user, requesting...

So the first line, indicated to me that it wanted to close a VPN (I don’t know what it actually does, but this was that came to my mind).
The second one told me it did try to request authorization (which never popped up).
This meant nothing to me really and only raised more questions.
A few moments later, I got a bunch of notifications from a variety of apps.
So I scrolled down to the “dismiss all” button and tapped it… It was at this moment that I noticed a very particular message stuck in my notifications: image

“That surely can’t be… Can it?” So I went to the Android VPN settings for my OpenVPN, disabled “Always-on VPN”… Tried running Gnirehtet again and… “Crap… that actually worked…” image

Finlay@DESKTOP-UE7732P MINGW64 /j/Toolkit/srcrpy/bin/gnirehtet
$ ./gnirehtet.exe run 5e0ed092
2021-05-16 16:33:02.059 INFO Main: Starting relay server on port 31416...
2021-05-16 16:33:02.059 INFO Main: Checking gnirehtet client...
2021-05-16 16:33:02.089 INFO Relay: Relay server started
2021-05-16 16:33:02.122 INFO Main: Starting client...
Starting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gnirehtet/.GnirehtetActivity }
2021-05-16 16:33:02.262 INFO TunnelServer: Client #0 connected

So in the end, it was all caused by the “Always-on VPN” setting that I use for when I’m out and about. This setting appears to conflict with Gnirehtet even when I’m not connected to the VPN. So for those coming by this issue later: Check if you have this setting on as well, and if so, disable it.

0reactions
FinlayDaG33kcommented, Apr 26, 2021

I used the modified release Casper send me (though I still had this on disk from when I opened this issue).

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Common MIUI 12.5 Problems & Their Solutions On Xiaomi
5. Google Assistant Does Not Work With Dark Mode. Google Assistant or Google Assistant has presented several problems on Xiaomi phones when the ......
Read more >
MIUI 12.5 update bugs & issues tracker: Here's the current status
Xiaomi is rolling out the global MIUI 12.5 update to various devices and here, we keep track of all the bugs that have...
Read more >
how to fix lag in xiaomi | fix miui 12 lag - YouTube
how to fix lag in redmi | how to fix miui 12 lag | fix ui lagging in xiaomi ... Fix Lag Issue...
Read more >
Top MIUI 12 Bugs / Problems, And Why Xiaomi Won't Fix Them?
Can't Switch On / Off Mobile · Notification Panel Displaying Black Text · Random Reboots · Too Much Battery Consumption · Poor Sound...
Read more >
MIUI 12 - Google Apps Problem | XDA Forums
After several hours of trying all the fixes mentioned here and elsewhere this si what worked for me. Delete everything Google. Redownload the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found