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

Plugin lib 1.3.0 #2245

Merged
merged 5 commits into from
Jun 22, 2019
Merged

Plugin lib 1.3.0 #2245

merged 5 commits into from
Jun 22, 2019

Conversation

Mygod
Copy link
Contributor

@Mygod Mygod commented Jun 19, 2019

Read commit messages for more information. Tested locally with updated v2ray-plugin-android that I will push later.

This should hopefully fix #1091 and #1106 but I have not tested since I do not own a device that can reproduce them.

Please read doc for METADATA_KEY_EXECUTABLE_PATH for more details.
Basically, we get around application launching limitations from Huawei (among others) by reading metadata and therefore prevent launching the application altogether.
This should hopefully fix #1091, #1106. (requires plugin app support)

This commit also refines error reporting in PluginManager.
@Mygod Mygod requested a review from madeye June 19, 2019 18:16
@Mygod Mygod added the plugin label Jun 19, 2019
@Mygod
Copy link
Contributor Author

Mygod commented Jun 20, 2019

For client see: shadowsocks/v2ray-plugin-android@6c58c30#diff-c8cc2dd42271f2bf39c6aa81eb6a5529R25 (luckily this does not require the release of 1.3.0 lib)

Mygod referenced this pull request in shadowsocks/v2ray-plugin-android Jun 20, 2019
Copy link
Contributor

@madeye madeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mygod
Copy link
Contributor Author

Mygod commented Jun 20, 2019

@madeye Do you have a Huawei device that can test #1091?

@madeye
Copy link
Contributor

madeye commented Jun 20, 2019

Yeah, I'm using Huawei Mate 20. I think #1091 is already fixed by Huawei on Android P.

Also tested latest commit. Everything works well.

@Mygod
Copy link
Contributor Author

Mygod commented Jun 20, 2019

Hmm... According to Crashlytics (5c93a35af8b88c2963f27cf3), this still happens and >1/3 of them are Android 9 devices (including a Huawei Honor Play and Honor V9). This issue also non-negligibly occurs for vendors including ADVAN, EVERCROSS, vivo, LENOVO among others.

@Mygod
Copy link
Contributor Author

Mygod commented Jun 22, 2019

Before 1.3:

I/ActivityManager: Start proc 23494:com.github.shadowsocks.plugin.v2ray/u0a382 for content provider com.github.shadowsocks.plugin.v2ray/.BinaryProvider

After killing plugin app proc and installing updated apps, ActivityManager no longer outputs Start proc line so I have high confidence that this should resolve the issue.

@Mygod Mygod merged commit e6b511f into master Jun 22, 2019
@Mygod Mygod deleted the plugin-1.3.0 branch June 22, 2019 09:34
bannedbook pushed a commit to bannedbook/SpeedUp.VPN that referenced this pull request Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kcp插件无法启动
2 participants