[GH-ISSUE #28] [enhancement]add 64bit version #22

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

Originally created by @chenshaoju on GitHub (Oct 17, 2022).
Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/28

Current cloak-android only has a 32-bit version, in some cases, the newest phone maybe not support it. [The Pixel 7 series might be the first 64-bit-only Android phones]

and some phones may show a warning message:
QQ图片20221017111546

Thanks for your hard work.

Originally created by @chenshaoju on GitHub (Oct 17, 2022). Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/28 Current cloak-android only has a 32-bit version, in some cases, the newest phone maybe not support it. [[The Pixel 7 series might be the first 64-bit-only Android phones](https://www.androidauthority.com/google-pixel-7-64-bit-only-3220469/)] and some phones may show a warning message: ![QQ图片20221017111546](https://user-images.githubusercontent.com/515763/196081706-40b8de03-ac6b-4996-98ae-863db8c0e688.jpg) Thanks for your hard work.
Author
Owner

@fyrych commented on GitHub (Dec 2, 2022):

Hi. Downloaded today, and cannot install this app. Is it possible to create a 64 bit version?
Pixel 7 Pro.

<!-- gh-comment-id:1335448105 --> @fyrych commented on GitHub (Dec 2, 2022): Hi. Downloaded today, and cannot install this app. Is it possible to create a 64 bit version? Pixel 7 Pro.
Author
Owner

@bingzhangdai commented on GitHub (Mar 21, 2023):

Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work?

<!-- gh-comment-id:1477886259 --> @bingzhangdai commented on GitHub (Mar 21, 2023): Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work?
Author
Owner

@fyrych commented on GitHub (Mar 21, 2023):

Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work?

I am changed ROM, installed custom rom for my phone. Problem with 32bit solved.

<!-- gh-comment-id:1477896534 --> @fyrych commented on GitHub (Mar 21, 2023): > Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work? I am changed ROM, installed custom rom for my phone. Problem with 32bit solved.
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work?

I am changed ROM, installed custom rom for my phone. Problem with 32bit solved.

Yes, I can install the x86 version, but there are some problems when launching the shadowsocks client with cloak plugin. Every time I have to manually open the cloak plugin then return to shadowsocks client (this leaves the cloak plugin running in the background), otherwise, the shadowsocks client won't start. It will complain "unknown plugin cloak". I suspect it is due to the compatibility problems of x86 version app.

<!-- gh-comment-id:1479387235 --> @bingzhangdai commented on GitHub (Mar 22, 2023): > > Same here. I am wondering about the effort of migrating to 64 bit. Will build with 64 bit sdk but no code change work? > > I am changed ROM, installed custom rom for my phone. Problem with 32bit solved. Yes, I can install the x86 version, but there are some problems when launching the shadowsocks client with cloak plugin. Every time I have to manually open the cloak plugin then return to shadowsocks client (this leaves the cloak plugin running in the background), otherwise, the shadowsocks client won't start. It will complain "unknown plugin cloak". I suspect it is due to the compatibility problems of x86 version app.
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

I can see that the build script already compiles the arm64 version apk: github.com/cbeuw/Cloak-android@08ad33d70c/app/src/make.sh (L122). I think the owner can directly put the artifact to release page?

<!-- gh-comment-id:1479391986 --> @bingzhangdai commented on GitHub (Mar 22, 2023): I can see that the build script already compiles the arm64 version apk: https://github.com/cbeuw/Cloak-android/blob/08ad33d70c368d3497c6b3226608ba9a15b6df86/app/src/make.sh#L122. I think the owner can directly put the artifact to release page?
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

These android-strip tools are removed from NDK so that the cross platform compile fails. github.com/cbeuw/Cloak-android@08ad33d70c/app/src/make.sh (L96) I commented these strip steps and manually built the apk. I can get the x64 version.

However, "unknown plugin ck-client" is still there.

<!-- gh-comment-id:1479854053 --> @bingzhangdai commented on GitHub (Mar 22, 2023): These android-strip tools are removed from NDK so that the cross platform compile fails. https://github.com/cbeuw/Cloak-android/blob/08ad33d70c368d3497c6b3226608ba9a15b6df86/app/src/make.sh#L96 I commented these strip steps and manually built the apk. I can get the x64 version. However, "unknown plugin ck-client" is still there.
Author
Owner

@cbeuw commented on GitHub (Mar 22, 2023):

x86_64, arm, and arm64 versions of the native Go lib are included in every APK, so this shouldn't have been the issue.

I was not aware of APKs being architecture specific, I'll look into this.

<!-- gh-comment-id:1479860583 --> @cbeuw commented on GitHub (Mar 22, 2023): x86_64, arm, and arm64 versions of the native Go lib are included in every APK, so this shouldn't have been the issue. I was not aware of APKs being architecture specific, I'll look into this.
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

@cbeuw This line failed github.com/cbeuw/Cloak-android@08ad33d70c/app/src/make.sh (L124) Commented these strip steps will work.
I suggest adding set -e in the beginning of the script to force this build step to fail in Azure DevOps. Then you can notice the error.

<!-- gh-comment-id:1479872218 --> @bingzhangdai commented on GitHub (Mar 22, 2023): @cbeuw This line failed https://github.com/cbeuw/Cloak-android/blob/08ad33d70c368d3497c6b3226608ba9a15b6df86/app/src/make.sh#L124 Commented these strip steps will work. I suggest adding `set -e` in the beginning of the script to force this build step to fail in Azure DevOps. Then you can notice the error.
Author
Owner

@cbeuw commented on GitHub (Mar 22, 2023):

This alone wouldn't fix the 32-bit APK issue, since existing releases were built successfully when NPK didn't remove strip

<!-- gh-comment-id:1479876084 --> @cbeuw commented on GitHub (Mar 22, 2023): This alone wouldn't fix the 32-bit APK issue, since existing releases were built successfully when NPK didn't remove `strip`
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

Yes. I tried you project in Azure DevOps build. Actually your cross platform compile does fail.
image

You can add set -e in the beginning or simply use && between these commands
image

<!-- gh-comment-id:1479888127 --> @bingzhangdai commented on GitHub (Mar 22, 2023): Yes. I tried you project in Azure DevOps build. Actually your cross platform compile does fail. ![image](https://user-images.githubusercontent.com/9895061/226971360-364f4dde-aec4-4d00-87d0-65a525c00335.png) You can add `set -e` in the beginning or simply use `&&` between these commands ![image](https://user-images.githubusercontent.com/9895061/226971864-b639a20a-48ee-411f-98b7-9bf940cbf257.png)
Author
Owner

@cbeuw commented on GitHub (Mar 22, 2023):

Ah yes you are right, it's been failing the whole time...

I'll fix the build script and make a new release

<!-- gh-comment-id:1479905504 --> @cbeuw commented on GitHub (Mar 22, 2023): Ah yes you are right, it's been failing the whole time... I'll fix the build script and make a new release
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

btw, I found the solution to "unknown plugin": https://github.com/shadowsocks/shadowsocks-android/issues/1428. It is not related to the x64 bit version.

<!-- gh-comment-id:1479906037 --> @bingzhangdai commented on GitHub (Mar 22, 2023): btw, I found the solution to "unknown plugin": https://github.com/shadowsocks/shadowsocks-android/issues/1428. It is not related to the x64 bit version.
Author
Owner

@bingzhangdai commented on GitHub (Mar 22, 2023):

@cbeuw Thank you. Another request, could you upload it to the play store? It will be more convenient, and the cellphone won't prompt the warning during installation.

<!-- gh-comment-id:1479909432 --> @bingzhangdai commented on GitHub (Mar 22, 2023): @cbeuw Thank you. Another request, could you upload it to the play store? It will be more convenient, and the cellphone won't prompt the warning during installation.
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#22
No description provided.