Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.3k stars 579 forks source link

gnirehtet: starting client... Starting: Intent and hangs (no prompt on device) #515

Open bvoxx opened 11 months ago

bvoxx commented 11 months ago

I've checked previous/similar issues but logcat output with this seems to be a different problem.

Linux OS, Motorola device gnirehtet gets stuck at starting client and hangs, nothing happens/no prompt on device.

Logcat specific to gnirehtet: 8-24 13:37:34.160 1504 7560 I ActivityTaskManager: START u0 {act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity} from uid 2000 08-24 13:37:34.173 1504 7560 I PowerHalWrapper: amsBoostNotify pid:9950,activity:com.genymobile.gnirehtet.GnirehtetActivity, package:com.genymobile.gnirehtet, mProcessCreatePacknull 08-24 13:37:34.174 779 852 I libPowerHal: [perfNotifyAppState] pack:com.genymobile.gnirehtet, act:com.genymobile.gnirehtet.GnirehtetActivity, state:1, pid:9950, uid:10295, fps:90 08-24 13:37:34.174 779 852 I libPowerHal: [perfNotifyAppState] foreground:com.genymobile.gnirehtet, pid:9950, uid:10295 08-24 13:37:34.174 779 806 I mtkpower@impl: [notifyAppState] pc:0, com.android.settings => com.genymobile.gnirehtet 08-24 13:37:34.195 9950 9950 D GnirehtetActivity: Received request com.genymobile.gnirehtet.START 08-24 13:37:34.236 779 806 I mtkpower@impl: [notifyAppState] pc:0, com.genymobile.gnirehtet => com.android.vpndialogs 08-24 13:37:34.241 1504 6985 I PowerHalWrapper: amsBoostNotify pid:9950,activity:com.genymobile.gnirehtet.GnirehtetActivity, package:com.genymobile.gnirehtet, mProcessCreatePacknull 08-24 13:37:34.242 779 852 I libPowerHal: [perfNotifyAppState] pack:com.genymobile.gnirehtet, act:com.genymobile.gnirehtet.GnirehtetActivity, state:0, pid:9950, uid:10295, fps:90 08-24 13:37:34.243 1504 1540 I PowerHalWrapper: amsBoostNotify pid:9950,activity:com.genymobile.gnirehtet.GnirehtetActivity, package:com.genymobile.gnirehtet, mProcessCreatePacknull 08-24 13:37:34.244 779 852 I libPowerHal: [perfNotifyAppState] pack:com.genymobile.gnirehtet, act:com.genymobile.gnirehtet.GnirehtetActivity, state:0, pid:9950, uid:10295, fps:90 08-24 13:37:34.259 1504 2155 E AppOps : java.lang.SecurityException: Specified package com.genymobile.gnirehtet under uid 10101 but it is not 08-24 13:37:34.275 1504 2155 I PowerHalWrapper: amsBoostNotify pid:9950,activity:com.genymobile.gnirehtet.GnirehtetActivity, package:com.genymobile.gnirehtet, mProcessCreatePacknull 08-24 13:37:34.275 779 852 I libPowerHal: [perfNotifyAppState] pack:com.genymobile.gnirehtet, act:com.genymobile.gnirehtet.GnirehtetActivity, state:1, pid:9950, uid:10295, fps:90 08-24 13:37:34.276 779 852 I libPowerHal: [perfNotifyAppState] foreground:com.genymobile.gnirehtet, pid:9950, uid:10295 08-24 13:37:34.276 779 806 I mtkpower@impl: [notifyAppState] pc:0, com.android.vpndialogs => com.genymobile.gnirehtet 08-24 13:37:34.317 779 806 I mtkpower@impl: [notifyAppState] pc:0, com.genymobile.gnirehtet => com.android.settings 08-24 13:37:34.333 1504 3571 I PowerHalWrapper: amsBoostNotify pid:9950,activity:com.genymobile.gnirehtet.GnirehtetActivity, package:com.genymobile.gnirehtet, mProcessCreatePacknull 08-24 13:37:34.333 779 852 I libPowerHal: [perfNotifyAppState] pack:com.genymobile.gnirehtet, act:com.genymobile.gnirehtet.GnirehtetActivity, state:0, pid:9950, uid:10295, fps:90 08-24 13:37:34.355 1504 1593 W InputManager-JNI: Input channel object 'd56f763 com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity (client)' was disposed without first being removed with the input manager! 08-24 13:37:34.495 7957 8149 W ProcStatsManager: No process com.genymobile.gnirehtet/10292 for service com.genymobile.gnirehtet.GnirehtetService 08-24 13:37:34.495 7957 8149 W ProcStatsManager: No process com.genymobile.gnirehtet/10293 for service com.genymobile.gnirehtet.GnirehtetService 08-24 13:37:34.495 7957 8149 W ProcStatsManager: No process com.genymobile.gnirehtet/10294 for service com.genymobile.gnirehtet.GnirehtetService 08-24 13:37:34.495 7957 8149 W ProcStatsManager: No process com.genymobile.gnirehtet/10295 for service com.genymobile.gnirehtet.GnirehtetService

any help appreciated.

ya55sh commented 11 months ago

+1 Having the same issue in Samsung note 20 overall nothing is happening v13.0.0 In pixel 6 v14.0.0 only thing is, it says "gnirehtet enabled" notification bar.

fetched some logs: ActivityTaskManager: START u0 {act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity} with LAUNCH_MULTIPLE from uid 2000 (BAL_ALLOW_PERMISSION) result code=0 11-02 07:22:12.331 2182 2206 V WindowManagerShell: Transition requested: android.os.BinderProxy@b552415 TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=2752 displayId=0 isRunning=true baseIntent=Intent { act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity } baseActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} topActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} origActivity=null realActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} numActivities=1 lastActiveTime=243378 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@17cf32a} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 128 - 0, 0) topActivityInfo=ActivityInfo{c6851b com.genymobile.gnirehtet.GnirehtetActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null } 11-02 07:22:12.339 11516 11516 D GnirehtetActivity: Received request com.genymobile.gnirehtet.START 11-02 07:22:12.347 11516 11516 D GnirehtetService: Received request com.genymobile.gnirehtet.START_VPN

11-02 07:20:50.403 1654 1876 V WindowManager: Sent Transition #9 createdAt=11-02 07:20:50.364 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=2750 displayId=0 isRunning=true baseIntent=Intent { act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity } baseActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} topActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} origActivity=null realActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} numActivities=1 lastActiveTime=161422 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{18291eb Task{1ad8630 #2750 type=standard A=10262:com.genymobile.gnirehtet}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 128 - 0, 0) topActivityInfo=ActivityInfo{3cfeb48 com.genymobile.gnirehtet.GnirehtetActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null } 11-02 07:21:57.864 11516 11516 D GnirehtetService: Received request com.genymobile.gnirehtet.CLOSE_VPN

yash-ssts commented 8 months ago

+1 Having the same issue in Samsung note 20 overall nothing is happening v13.0.0 In pixel 6 v14.0.0 only thing is, it says "gnirehtet enabled" notification bar.

* no vpn permission pop

* internet isnt working

fetched some logs: ActivityTaskManager: START u0 {act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity} with LAUNCH_MULTIPLE from uid 2000 (BAL_ALLOW_PERMISSION) result code=0 11-02 07:22:12.331 2182 2206 V WindowManagerShell: Transition requested: android.os.BinderProxy@b552415 TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=2752 displayId=0 isRunning=true baseIntent=Intent { act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity } baseActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} topActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} origActivity=null realActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} numActivities=1 lastActiveTime=243378 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@17cf32a} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 128 - 0, 0) topActivityInfo=ActivityInfo{c6851b com.genymobile.gnirehtet.GnirehtetActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null } 11-02 07:22:12.339 11516 11516 D GnirehtetActivity: Received request com.genymobile.gnirehtet.START 11-02 07:22:12.347 11516 11516 D GnirehtetService: Received request com.genymobile.gnirehtet.START_VPN

11-02 07:20:50.403 1654 1876 V WindowManager: Sent Transition #9 createdAt=11-02 07:20:50.364 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=2750 displayId=0 isRunning=true baseIntent=Intent { act=com.genymobile.gnirehtet.START flg=0x10000000 cmp=com.genymobile.gnirehtet/.GnirehtetActivity } baseActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} topActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} origActivity=null realActivity=ComponentInfo{com.genymobile.gnirehtet/com.genymobile.gnirehtet.GnirehtetActivity} numActivities=1 lastActiveTime=161422 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{18291eb Task{1ad8630 #2750 type=standard A=10262:com.genymobile.gnirehtet}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 128 - 0, 0) topActivityInfo=ActivityInfo{3cfeb48 com.genymobile.gnirehtet.GnirehtetActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = null, displayChange = null } 11-02 07:21:57.864 11516 11516 D GnirehtetService: Received request com.genymobile.gnirehtet.CLOSE_VPN

My bad. I had done some changes in the files and built it. The default build is working fine.

haochuan1982 commented 4 months ago

@yash-ssts , what's you change? thanks

ya55sh commented 3 months ago

@haochuan1982 sry I don't remember the change exactly but it had something to do with getting ~wifi-id/device-id as soon as we start gnirehtet. I was trying to hardcode it in order to bypass the permission popup in android 14 but that didnt work.