Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 60e1a6a

Browse files
Reconfigure zip url to use Androidacy API
Signed-off-by: androidacybot <45006100+androidacybot@users.noreply.github.com>
1 parent 3ec397c commit 60e1a6a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/java/com/fox2code/mmm/ActionButtonType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public void doAction(ImageButton button, ModuleHolder moduleHolder) {
6464
String updateZipUrl = moduleHolder.getUpdateZipUrl();
6565
if (updateZipUrl == null) return;
6666
// Androidacy manage the selection between download and install
67-
if (updateZipUrl.startsWith("https://www.androidacy.com/")) {
67+
if (updateZipUrl.startsWith("https://www.androidacy.com/") ||
68+
updateZipUrl.startsWith("https://api.androidacy.com/magisk/info/?module=")) {
6869
IntentHelper.openUrlAndroidacy(
6970
button.getContext(), updateZipUrl, true,
7071
moduleInfo.name, moduleInfo.config);

app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ protected List<RepoModule> populate(JSONObject jsonObject) throws JSONException
129129
jsonObject.optString("zipUrl", ""));
130130
repoModule.notesUrl = filterURL(
131131
jsonObject.optString("notesUrl", ""));
132+
if (repoModule.zipUrl == null)
133+
repoModule.zipUrl = "https://api.androidacy.com/magisk/info/?module=" + moduleId;
132134
if (repoModule.zipUrl == null)
133135
repoModule.zipUrl = jsonObject.getString("url");
134136
if (repoModule.notesUrl == null) {

0 commit comments

Comments
 (0)