Skip to content

Commit

Permalink
Merge pull request #225 from GantMan/remove-package-manifest
Browse files Browse the repository at this point in the history
Remove `package` name from AndroidManfiest.xml to support AGP 8
  • Loading branch information
levibuzolic authored Apr 4, 2024
2 parents 7ace9e7 + 7025fcb commit aecc65d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 1 addition & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ def safeExtGet(prop, fallback) {
apply plugin: 'com.android.library'

android {
namespace 'com.gantix.JailMonkey'
compileSdkVersion safeExtGet('compileSdkVersion', 31)
buildToolsVersion safeExtGet('buildToolsVersion', "31.0.0")

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
if (agpVersion >= 7) {
namespace 'com.gantix.JailMonkey'
}

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 21)
targetSdkVersion safeExtGet('targetSdkVersion', 31)
Expand Down
3 changes: 1 addition & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gantix.JailMonkey">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public static boolean hookDetected(Context context) {
PackageManager packageManager = context.getPackageManager();
List<ApplicationInfo> applicationInfoList = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
String[] dangerousPackages = {
"de.robv.android.xposed.installer",
"com.saurik.substrate",
"de.robv.android.xposed"
"de.robv.android.xposed.installer",
"com.saurik.substrate",
"de.robv.android.xposed",
"com.noshufou.android.su.elite",
"eu.chainfire.supersu",
"com.koushikdutta.superuser",
Expand All @@ -45,7 +45,7 @@ public static boolean hookDetected(Context context) {
"eu.chainfire.supersu.pro",
"com.kingouser.com",
"com.topjohnwu.magisk"
};
};

if (applicationInfoList != null) {
for (ApplicationInfo applicationInfo : applicationInfoList) {
Expand Down

0 comments on commit aecc65d

Please sign in to comment.