Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnirehtet and android 8.1 #190

Closed
bfcosta opened this issue May 17, 2019 · 8 comments
Closed

gnirehtet and android 8.1 #190

bfcosta opened this issue May 17, 2019 · 8 comments
Labels

Comments

@bfcosta
Copy link

bfcosta commented May 17, 2019

Does gnirehtet work with android 8.1? I can't get mine working with it. The problem might be the VPN connection or something else.

@rom1v
Copy link
Collaborator

rom1v commented May 17, 2019

Yes, it should. What's the problem? Check adb logcat.

@bfcosta
Copy link
Author

bfcosta commented May 18, 2019

Java gnirehtet log says this in the first run:

2019-05-17 22:44:51.483 INFO Main: Starting relay server...
2019-05-17 22:44:51.484 INFO Relay: Relay server started
2019-05-17 22:44:51.483 INFO Main: Checking gnirehtet client...
2019-05-17 22:44:54.494 ERROR Main: Cannot start client: Command adb ["shell", "dumpsys", "package", "com.genymobile.gnirehtet"] returned with value 1

Then, it says this in the second run:

2019-05-17 22:49:00.187 INFO Main: Starting relay server...
2019-05-17 22:49:00.187 INFO Relay: Relay server started
2019-05-17 22:49:00.187 INFO Main: Checking gnirehtet client...
2019-05-17 22:49:00.372 INFO Main: Installing gnirehtet client...
Success
2019-05-17 22:49:01.966 INFO Main: Starting client...
Broadcasting: Intent { act=com.genymobile.gnirehtet.START flg=0x400000 cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver }
Broadcast completed: result=0
^C2019-05-17 22:51:18.642 INFO Main: Interrupted
2019-05-17 22:51:18.643 INFO Main: Stopping client...
Broadcasting: Intent { act=com.genymobile.gnirehtet.STOP flg=0x400000 cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver }
Broadcast completed: result=0

Adb logcat says lots of things, but basically repeats this java null pointer exception.

05-04 09:03:07.906  9292  9451 E AndroidRuntime: FATAL EXCEPTION: Thread-9
05-04 09:03:07.906  9292  9451 E AndroidRuntime: Process: com.floriandraschbacher.reversetethering.free, PID: 9292
05-04 09:03:07.906  9292  9451 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void com.floriandraschbacher.reversetethering.b.b()' on a null object reference
05-04 09:03:07.906  9292  9451 E AndroidRuntime:        at com.floriandraschbacher.reversetethering.d.b.a(Unknown Source:28)
05-04 09:03:07.906  9292  9451 E AndroidRuntime:        at com.floriandraschbacher.reversetethering.d.b.a(Unknown Source:1)
05-04 09:03:07.906  9292  9451 E AndroidRuntime:        at com.floriandraschbacher.reversetethering.RTService$2.run(Unknown Source:16)
05-04 09:03:07.906  9292  9451 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:764)

adb.log

@bfcosta
Copy link
Author

bfcosta commented May 18, 2019

Well, if it was not clear by my last comment, no connection was possible. Also, I used the rust binaries, not the java jar file.

@cjk02025
Copy link

cjk02025 commented May 20, 2019

Same problem on 8.1.

No confirmation dialog when VPN set up. No sign that VPN is set up. App on phone never started.

console output from bat on windows pc...

2019-05-20 13:14:14.117 INFO Main: Starting relay server...
2019-05-20 13:14:14.117 INFO Main: Checking gnirehtet client...
2019-05-20 13:14:14.121 INFO Relay: Relay server started
2019-05-20 13:14:25.723 INFO Main: Starting client...
Broadcasting: Intent { act=com.genymobile.gnirehtet.START flg=0x400000 cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver }
Broadcast completed: result=0

@cjk02025
Copy link

cjk02025 commented May 20, 2019

05-20 13:29:53.541  5550  5550 I ADB_SERVICES: service_to_fd shell,v2,raw:dumpsys package com.genymobile.gnirehtet
05-20 13:29:53.603  7703  7800 W System  : ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
05-20 13:29:53.605  7703  7800 I System.out: e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp
05-20 13:29:53.608  2791  5377 I AuthChimeraService: Executing request: ProxyRequest[ url: https://securetoken.googleapis.com/v1/token?alt=proto&key=AIzaSyDjbRm-o-eriFd_WcxOI9YphV6pP8kNp1k, method: 1 ]
05-20 13:29:53.612  1513  8513 W libc-netbsd: [getaddrinfo]: netid=0; mark=0; ai_flags=1024; ai_family=0
05-20 13:29:53.614  1513  8513 W libc-netbsd: default dns: query_ipv6=0, query_ipv4=0
05-20 13:29:53.616  7703  7800 W libc-netbsd: getaddrinfo: get result from proxy gai_error = 7
05-20 13:29:53.643  2791  6980 W System  : ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
05-20 13:29:53.646  2791  6980 I System.out: e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp
05-20 13:29:53.652  1513  8515 W libc-netbsd: [getaddrinfo]: netid=0; mark=786432; ai_flags=1024; ai_family=0
05-20 13:29:53.653  1513  8515 W libc-netbsd: default dns: query_ipv6=0, query_ipv4=0
05-20 13:29:53.654  2791  6980 W libc-netbsd: getaddrinfo: get result from proxy gai_error = 7

@rom1v rom1v added the nodialog label May 20, 2019
@rom1v
Copy link
Collaborator

rom1v commented May 20, 2019

@bfcosta

basically repeats this java null pointer exception
this NullPointerException comes from another program (com.floriandraschbacher.reversetethering.free).

This issue is another case of no dialog displayed.

Some devices require to "authorize" the app manually, but each in different ways. See for example: #161 (comment) and #150 (comment).

@bfcosta
Copy link
Author

bfcosta commented May 20, 2019

I have checked all possible configurations in android settings and could not find any way to "authorize" the app manually. I wonder if there is a way of doing it using adb in the command line. GooglePlay might be able to do it but it does not recognize gnirehet as an app.

@rom1v
Copy link
Collaborator

rom1v commented Sep 7, 2019

Should be fixed by f868180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants