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

per app proxy doesn't work #590

Closed
mdre3a opened this issue Sep 7, 2020 · 9 comments
Closed

per app proxy doesn't work #590

mdre3a opened this issue Sep 7, 2020 · 9 comments

Comments

@mdre3a
Copy link

mdre3a commented Sep 7, 2020

When I enable per app proxy it doesn't enable vpn when i checked log I saw:

java.lang.SecurityException: getPackageUid: Neither user 10391 nor current process has android.permission.INTERACT_ACROSS_USERS.

@yuhan6665
Copy link
Contributor

Please post full adb log. What applications do you select in per app proxy?

@mdre3a
Copy link
Author

mdre3a commented Sep 8, 2020

actually the notification with key icon doesn't appear in notifications area. it doesn't matter any application i add to list this happen.

09-08 08:55:32.226 9929 11575 W com.v2ray.ang: ClassLoaderContext shared library size mismatch. Expected=1, found=0 (PCL[]{PCL[/system/framework/org.apache.http.legacy.jar2121798329]} | PCL[];PCL[])
09-08 08:55:32.259 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.osp.app.signin-Qt4hUdvvAmAFqVDNl9W7zg==/base.apk' is compressed.
09-08 08:55:33.631 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.instagram.android-zinAALq3Ha5jbUNpEiFfew==/base.apk' is compressed.
09-08 08:55:34.702 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.lenovo.anyshare.gps-8cOmGszL9KOIHh0Xm1UatA==/base.apk' is compressed.
09-08 08:55:35.168 9929 11575 W com.v2ray.ang: ClassLoaderContext shared library size mismatch. Expected=3, found=0 (PCL[]{PCL[/system/framework/android.hidl.manager-V1.0-java.jar1684516937]{PCL[/system/framework/android.hidl.base-V1.0-java.jar604948433]}#PCL[/system/framework/android.hidl.base-V1.0-java.jar604948433]#PCL[/system/framework/org.apache.http.legacy.jar*2121798329]} | PCL[];PCL[])
09-08 08:55:35.174 9929 11575 I com.v2ray.ang: Waiting for a blocking GC ClassLinker
09-08 08:55:35.456 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.samsung.android.spaymini-mOuLFytGFXpyokKRfeQ62g==/base.apk' is compressed.
09-08 08:55:36.026 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.facebook.katana-Ju-vSbfW8UfGK5edv3wenA==/base.apk' is compressed.
09-08 08:55:37.871 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/air.com.adobe.connectpro-Mx07czyqxeycLQ-zleCfRw==/base.apk' is compressed.
09-08 08:55:38.033 9929 11575 W com.v2ray.ang: resources.arsc in APK '/data/app/com.instagram.igtv-QEb_SEeclcotYmSVI2Cs1w==/base.apk' is compressed.
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "dns": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "hosts": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "domain:googleapis.cn": "googleapis.com"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "servers": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "1.1.1.1"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ]
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "inbounds": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "listen": "127.0.0.1",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "port": 10808,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "protocol": "socks",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "settings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "auth": "noauth",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "udp": true,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "userLevel": 8
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "sniffing": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "destOverride": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "http",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tls"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ],
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "enabled": true
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tag": "socks"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "listen": "127.0.0.1",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "port": 10809,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "protocol": "http",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "settings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "userLevel": 8
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tag": "http"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ],
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "log": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "loglevel": "warning"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "outbounds": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "mux": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "concurrency": -1,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "enabled": false
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "protocol": "vmess",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "settings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "vnext": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "address": "xx.xx.xx",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "port": xxxx,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "users": [
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "alterId": 64,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "level": 8,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "security": "auto"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ]
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ]
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "streamSettings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "network": "ws",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "security": "",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "wsSettings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "headers": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "Host": ""
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "path": "/"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tag": "proxy"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "protocol": "freedom",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "settings": {},
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tag": "direct"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "protocol": "blackhole",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "settings": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "response": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "type": "http"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "tag": "block"
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: ],
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "policy": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "levels": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "8": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "connIdle": 300,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "downlinkOnly": 1,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "handshake": 4,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "uplinkOnly": 1
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "system": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "statsOutboundUplink": true,
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "statsOutboundDownlink": true
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "routing": {
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "domainStrategy": "IPIfNonMatch",
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "rules": []
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: },
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: "stats": {}
09-08 08:55:52.055 9929 9929 D V2rayConfigUtilGoLog: }
09-08 08:55:52.199 11891 11891 I GoLog : loading v2ray config
09-08 08:55:52.199 11891 11924 I GoLog : Preparing Domain: xx.xx.xx:xxxx
09-08 08:55:52.204 11891 11891 I GoLog : new v2ray core
09-08 08:55:52.205 11891 11891 I GoLog : start v2ray core
09-08 08:55:52.206 11891 11923 I GoLog : [Warning] v2ray.com/core: V2Ray 4.27.4 started
09-08 08:55:52.291 11891 11891 D com.v2ray.ang: java.lang.SecurityException: getPackageUid: Neither user 10392 nor current process has android.permission.INTERACT_ACROSS_USERS.
09-08 08:55:52.576 11891 11924 I GoLog : Prepare Result:
09-08 08:55:52.576 11891 11924 I GoLog : Domain: xx.xx.xx
09-08 08:55:52.576 11891 11924 I GoLog : Port: xxxx
09-08 08:55:52.576 11891 11924 I GoLog : IPs: [xx.xx.xx.xx]
09-08 08:55:53.277 11891 11923 I GoLog : tcp:127.0.0.1:54566 accepted tcp:149.154.167.91:443 [proxy]
09-08 08:55:53.292 11891 11923 I GoLog : tcp:127.0.0.1:54564 accepted tcp:149.154.167.92:443 [proxy]
09-08 08:55:53.356 11891 11918 I GoLog : tcp:127.0.0.1:54572 accepted tcp:149.154.167.91:443 [proxy]
09-08 08:55:53.515 11891 11924 I GoLog : Using Prepared: xx.xx.xx.xx
09-08 08:55:53.516 11891 11914 I GoLog : Using Prepared: xx.xx.xx.xx
09-08 08:55:53.655 11891 11925 I GoLog : Using Prepared: xx.xx.xx.xx

@yuhan6665
Copy link
Contributor

Are you using the new "Proxy only" mode? If so, it is expected. I will make a UI change in settings to mark it clearly.

@mdre3a
Copy link
Author

mdre3a commented Sep 9, 2020

I don't think so. My phone is Samsung Galaxy A50, some days ago it has got an upgrade and after that this app stopped working.
after a while I disabled per app proxy and I saw it's working.

@akiirui
Copy link
Contributor

akiirui commented Sep 9, 2020

I don't think so. My phone is Samsung Galaxy A50, some days ago it has got an upgrade and after that this app stopped working.
after a while I disabled per app proxy and I saw it's working.

Settings - Advanced Settings - Mode - Proxy only is a new feature from v1.4.0.
Ref: #578 #587

And per app proxy only working with Mode - VPN

Check your settings and try again.

@mdre3a
Copy link
Author

mdre3a commented Sep 9, 2020

I checked it.
but it was in VPN mode and my problem is still not resolved.

@akiirui
Copy link
Contributor

akiirui commented Sep 9, 2020

I checked it.
but it was in VPN mode and my problem is still not resolved.

Are you running v2rayNG at multi-users? there is a issues like your issues shadowsocks/shadowsocks-android#1184

@mdre3a
Copy link
Author

mdre3a commented Sep 9, 2020

No, I didn't.
I just updated my phone

@MrOplus
Copy link

MrOplus commented Sep 13, 2020

it's a known issue from latest Samsung update
on some samsung devices you have to disable secure folder and dual messenger to keep the VPN based applications work , on some devices like s10 , s20 it will not work , however , vpn get connected but application get crashed , everything works fine but you have to disconnect the application from the settings

@2dust 2dust closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants