Last active
January 28, 2025 14:56
-
-
Save wgetge/bd0feb0f247adbc63d399419a89d5feb to your computer and use it in GitHub Desktop.
cryptomator lite https://gist.github.com/kotx/28d7f95a811167e6c875595947fee150
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -e '/dependencies.googlePlayServicesAuth/,+41d' -e '/msgraphAuth/,+5d' ./data/build.gradle | |
sed -i -e '/\/\/ needed for '\''com.microsoft.device.display'\'' required by '\''com.microsoft.graph:microsoft-graph'\''/,+12d' ./buildsystem/dependencies.gradle | |
sed -i -e '/prebuild.gradle/d' -e '/msgraphAuth/,+5d' build.gradle | |
/root/Cryptomator/domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java | |
public LicenseCheck execute() throws BackendException { | |
return new LicenseCheck() { | |
public String mail() { | |
return ""; | |
} | |
}; | |
} | |
/root/Cryptomator/presentation/src/main/res/values/strings.xml | |
<string name="app_name" translatable="false">Cryptomator Lite</string> | |
/root/Cryptomator/buildsystem/ | |
docker build -t cryptomator-android . | |
/root/Cryptomator/ | |
git apply licenses.patch && git apply name.patch | |
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/project -w /project cryptomator-android ./gradlew clean assembleLiteRelease | |
/root/Cryptomator/presentation/build/outputs/apk/lite/release/presentation-lite-release-unsigned.apk | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java b/domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java | |
--- a/domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java | |
+++ b/domain/src/main/java/org/cryptomator/domain/usecases/DoLicenseCheck.java | |
@@ -44,20 +44,11 @@ public class DoLicenseCheck { | |
} | |
public LicenseCheck execute() throws BackendException { | |
- license = useLicenseOrRetrieveFromDb(license); | |
- try { | |
- Algorithm algorithm = Algorithm.ECDSA512(getPublicKey(ANDROID_PUB_KEY), null); | |
- JWTVerifier verifier = JWT.require(algorithm).build(); | |
- DecodedJWT jwt = verifier.verify(license); | |
- return jwt::getSubject; | |
- } catch (SignatureVerificationException | JWTDecodeException | FatalBackendException e) { | |
- if (e instanceof SignatureVerificationException && isDesktopSupporterCertificate(license)) { | |
- throw new DesktopSupporterCertificateException(license); | |
- } | |
- throw new LicenseNotValidException(license); | |
- } catch (NoSuchAlgorithmException | InvalidKeySpecException e) { | |
- throw new FatalBackendException(e); | |
- } | |
+ return new LicenseCheck() { | |
+ public String mail() { | |
+ return ""; | |
+ } | |
+ }; | |
} | |
private String useLicenseOrRetrieveFromDb(String license) throws NoLicenseAvailableException { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml | |
--- a/presentation/src/main/res/values/strings.xml | |
+++ b/presentation/src/main/res/values/strings.xml | |
@@ -4,7 +4,7 @@ | |
<string name="empty" translatable="false"></string> | |
<!-- # app --> | |
- <string name="app_name" translatable="false">Cryptomator</string> | |
+ <string name="app_name" translatable="false">Cryptomator Lite</string> | |
<string name="download_subdirectory_name" translatable="false">@string/app_name</string> | |
<string name="vault_cryptomator" translatable="false">vault.cryptomator</string> | |
<string name="masterkey_cryptomator" translatable="false">masterkey.cryptomator</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment