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

Commit a8b3d92

Browse files
committed
Add FLAG_COMPAT_MALWARE flag for future antivirus implementation.
1 parent 4fdacc8 commit a8b3d92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class AppUpdateManager {
2424
public static int FLAG_COMPAT_NO_EXT = 0x02;
2525
public static int FLAG_COMPAT_MAGISK_CMD = 0x04;
2626
public static int FLAG_COMPAT_NEED_32BIT = 0x08;
27+
public static int FLAG_COMPAT_MALWARE = 0x10;
2728
private static final String TAG = "AppUpdateManager";
2829
private static final AppUpdateManager INSTANCE = new AppUpdateManager();
2930
private static final String RELEASES_API_URL =
@@ -197,6 +198,9 @@ private void parseCompatibilityFlags(InputStream inputStream) throws IOException
197198
case "need32bit":
198199
value |= FLAG_COMPAT_NEED_32BIT;
199200
break;
201+
case "malware":
202+
value |= FLAG_COMPAT_MALWARE;
203+
break;
200204
}
201205
}
202206
compatDataId.put(line.substring(0, i), value);

0 commit comments

Comments
 (0)