[GH-ISSUE #8] Andtoid 10 libss-local excits too fast (excit code 255) #9

Open
opened 2026-02-26 12:35:12 +03:00 by kerem · 19 comments
Owner

Originally created by @OBrein on GitHub (Sep 4, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/8

It does not start on Android 10. OnePlus 7 Pro smartphone.
libss-local exits too fast (exit code 255)

Originally created by @OBrein on GitHub (Sep 4, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/8 It does not start on Android 10. OnePlus 7 Pro smartphone. libss-local exits too fast (exit code 255)
Author
Owner

@omengye commented on GitHub (Sep 5, 2019):

Pixel 2 with the same problem

<!-- gh-comment-id:528180990 --> @omengye commented on GitHub (Sep 5, 2019): Pixel 2 with the same problem
Author
Owner

@cbeuw commented on GitHub (Sep 5, 2019):

Possible duplicate of #7

<!-- gh-comment-id:528284145 --> @cbeuw commented on GitHub (Sep 5, 2019): Possible duplicate of #7
Author
Owner

@omengye commented on GitHub (Sep 5, 2019):

@cbeuw i deleted the shadowsocks's storage and cache, but it doesn't work under andtoid 10...

<!-- gh-comment-id:528317091 --> @omengye commented on GitHub (Sep 5, 2019): @cbeuw i deleted the shadowsocks's storage and cache, but it doesn't work under andtoid 10...
Author
Owner

@omengye commented on GitHub (Sep 18, 2019):

first, i upgrade com.github.shadowsocks:plugin to version 1.3.1 and the other dependencies.
second, i replaced .so file in jniLibs folder with cloak version 2.0.2 (https://github.com/cbeuw/Cloak/releases).
the problem fixed and the app worked.

<!-- gh-comment-id:532501613 --> @omengye commented on GitHub (Sep 18, 2019): first, i upgrade com.github.shadowsocks:plugin to version 1.3.1 and the other dependencies. second, i replaced .so file in jniLibs folder with cloak version 2.0.2 (https://github.com/cbeuw/Cloak/releases). the problem fixed and the app worked.
Author
Owner

@MegaStone commented on GitHub (Sep 22, 2019):

I am suffering from the same problem. Huawei P30, Android 10. I tried to clean up shadowsocks, as described in #7 . But it does not work.

<!-- gh-comment-id:533878192 --> @MegaStone commented on GitHub (Sep 22, 2019): I am suffering from the same problem. Huawei P30, Android 10. I tried to clean up shadowsocks, as described in #7 . But it does not work.
Author
Owner

@txdywy commented on GitHub (Sep 25, 2019):

Same issue. OnePlus 7 Pro, Android P

<!-- gh-comment-id:534876344 --> @txdywy commented on GitHub (Sep 25, 2019): Same issue. OnePlus 7 Pro, Android P
Author
Owner

@MegaStone commented on GitHub (Oct 23, 2019):

I am suffering from the same problem. Huawei P30, Android 10. I tried to clean up shadowsocks, as described in #7 . But it does not work.

I finally compile a usable version for android 10. Basically, you should install android SDK, NDK and Golang>1.11 on a *UNIX.
Replace everything under Cloak-android/gradle/wrapper with https://github.com/shadowsocks/shadowsocks-android/tree/master/gradle/wrapper.
Delete everything under Cloak-android/app/src/main/jniLibs/.
Run app/src/make.sh to recompile the libck-client.so.
Run ./gradlew build to build the app.
Then sign the app with your own signature.

It seems shadowsocks plugin added support for android 10 two months ago. And this app has not updated accordingly.

<!-- gh-comment-id:545241917 --> @MegaStone commented on GitHub (Oct 23, 2019): > I am suffering from the same problem. Huawei P30, Android 10. I tried to clean up shadowsocks, as described in #7 . But it does not work. I finally compile a usable version for android 10. Basically, you should install android SDK, NDK and Golang>1.11 on a *UNIX. Replace everything under Cloak-android/gradle/wrapper with https://github.com/shadowsocks/shadowsocks-android/tree/master/gradle/wrapper. Delete everything under Cloak-android/app/src/main/jniLibs/. Run app/src/make.sh to recompile the libck-client.so. Run `./gradlew build` to build the app. Then sign the app with your own signature. It seems shadowsocks plugin added support for android 10 two months ago. And this app has not updated accordingly.
Author
Owner

@kylemraz commented on GitHub (Nov 1, 2019):

update kcptun to latest version

<!-- gh-comment-id:548693620 --> @kylemraz commented on GitHub (Nov 1, 2019): update kcptun to latest version
Author
Owner

@Almanix commented on GitHub (Nov 18, 2019):

It does not start on Android 10 (MIUI 11, Xiaomi Mi9 smartphone).
libss-local exits too fast (exit code 255). On Andriod 9 (MIUI 10) worked fine.

<!-- gh-comment-id:554867365 --> @Almanix commented on GitHub (Nov 18, 2019): It does not start on Android 10 (MIUI 11, Xiaomi Mi9 smartphone). libss-local exits too fast (exit code 255). On Andriod 9 (MIUI 10) worked fine.
Author
Owner

@cyqsimon commented on GitHub (Nov 26, 2019):

Just updated my Pixel 1 to Android 10. This problem arises again. This time clearing cache and storage no longer works.

<!-- gh-comment-id:558629656 --> @cyqsimon commented on GitHub (Nov 26, 2019): Just updated my Pixel 1 to Android 10. This problem arises again. This time clearing cache and storage no longer works.
Author
Owner

@cyqsimon commented on GitHub (Dec 4, 2019):

THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3

To whom it may concern:
I forked this repo and updated Gradle Wrapper as @MegaStone suggested. It now works with Android 10. Other than this I have made no changes. If you are feeling lazy you can find the compiled binary here.
Note that I will not be maintaining this forked repo, so please switch back to official release as soon as it's updated.

<!-- gh-comment-id:561496608 --> @cyqsimon commented on GitHub (Dec 4, 2019): **THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3** To whom it may concern: I forked this repo and updated Gradle Wrapper as @MegaStone suggested. It now works with Android 10. Other than this I have made no changes. If you are feeling lazy you can find the compiled binary [here](https://github.com/cyqsimon/Cloak-android/releases/tag/v2.1.1.1). Note that **I will not be maintaining this forked repo**, so please switch back to official release as soon as it's updated.
Author
Owner

@txdywy commented on GitHub (Dec 17, 2019):

Still does not work... with Pixel 3 Android 10, OnePlus 7pro Android 10, OnePlus 6 Android 9

<!-- gh-comment-id:566414459 --> @txdywy commented on GitHub (Dec 17, 2019): Still does not work... with Pixel 3 Android 10, OnePlus 7pro Android 10, OnePlus 6 Android 9
Author
Owner

@cyqsimon commented on GitHub (Dec 18, 2019):

Still does not work... with Pixel 3 Android 10, OnePlus 7pro Android 10, OnePlus 6 Android 9

THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3

Uninstall previous version first, then proceed to install the modified version of binary. I have not updated version string so updating directly may not work as intended.
If the issue persists then I'm afraid I cannot help you.

<!-- gh-comment-id:566825440 --> @cyqsimon commented on GitHub (Dec 18, 2019): > Still does not work... with Pixel 3 Android 10, OnePlus 7pro Android 10, OnePlus 6 Android 9 **THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3** Uninstall previous version first, then proceed to install the modified version of binary. I have not updated version string so updating directly may not work as intended. If the issue persists then I'm afraid I cannot help you.
Author
Owner

@papampi commented on GitHub (Feb 10, 2020):

Gives me the same error on Android 9, Moto Z and Galaxy Tab S3

<!-- gh-comment-id:584027464 --> @papampi commented on GitHub (Feb 10, 2020): Gives me the same error on Android 9, Moto Z and Galaxy Tab S3
Author
Owner

@amirzenoozi commented on GitHub (Feb 17, 2020):

V2.1.1 Still Has problem on android 10 in Samsung Galaxy S9, I use this to fix my problem.

<!-- gh-comment-id:586894070 --> @amirzenoozi commented on GitHub (Feb 17, 2020): V2.1.1 Still Has problem on android 10 in Samsung Galaxy S9, I use [this](https://github.com/cyqsimon/Cloak-android/releases/tag/v2.1.1.1) to fix my problem.
Author
Owner

@floxy commented on GitHub (Feb 21, 2020):

V2.1.1 Still Has problem on android 10 in Samsung Galaxy S9, I use this to fix my problem.

This works! Thanks man!

<!-- gh-comment-id:589820159 --> @floxy commented on GitHub (Feb 21, 2020): > V2.1.1 Still Has problem on android 10 in Samsung Galaxy S9, I use [this](https://github.com/cyqsimon/Cloak-android/releases/tag/v2.1.1.1) to fix my problem. This works! Thanks man!
Author
Owner

@cyqsimon commented on GitHub (Feb 25, 2020):

THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3

Update: I have noticed that the version I compiled seems to be missing key configuration options in the GUI. Unfortunately I haven't got the technical ability nor enough free time to fix the code, so you will have to use the following workaround:

  1. Install official version.
  2. Configure settings in SS GUI.
  3. Uninstall official version. The settings will remain on your device.
  4. Install modified version. It will use the settings leftover by the official version.
  5. Pray that it works, because if it doesn't then too bad I guess. =(
<!-- gh-comment-id:590678508 --> @cyqsimon commented on GitHub (Feb 25, 2020): **THIS COMMENT IS OUTDATED. PLEASE USE OFFICIAL VERSION 2.1.3** Update: I have noticed that the version I compiled seems to be missing key configuration options in the GUI. Unfortunately I haven't got the technical ability nor enough free time to fix the code, so you will have to use the following workaround: 1. Install official version. 2. Configure settings in SS GUI. 3. Uninstall official version. The settings will remain on your device. 4. Install modified version. It will use the settings leftover by the official version. 5. Pray that it works, because if it doesn't then too bad I guess. =(
Author
Owner

@kevev commented on GitHub (Feb 28, 2020):

When is this going to be fixed? Pixel 3a & Firestick 4K have same issue.

<!-- gh-comment-id:592267545 --> @kevev commented on GitHub (Feb 28, 2020): When is this going to be fixed? Pixel 3a & Firestick 4K have same issue.
Author
Owner

@chentong444 commented on GitHub (Feb 29, 2020):

Is it possible to update? The above method isn't work for me

<!-- gh-comment-id:592973677 --> @chentong444 commented on GitHub (Feb 29, 2020): Is it possible to update? The above method isn't work for me
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak-android#9
No description provided.