app: merge :shared into :core and remove :shared

Consolidate ProviderInstaller and APKInstall into :core under matching
packages (com.topjohnwu.magisk and com.topjohnwu.magisk.utils).

- Move ProviderInstaller.java and APKInstall.java to :core
- Delete app/shared/ module and its build configuration
- Merge permissions and application attributes into :core manifest
- Remove :shared project dependency from :core build.gradle.kts
- Update app/settings.gradle.kts to only include :apk, :core, :test
- Update magisk-app skill documentation to remove obsolete references

Assisted-by: Gemini 4 Argon
This commit is contained in:
topjohnwu
2026-10-22 14:06:48 -07:00
committed by John Wu
parent d22fea2906
commit e31ef291d4
8 changed files with 14 additions and 36 deletions
-1
View File
@@ -37,7 +37,6 @@ android {
}
dependencies {
api(project(":shared"))
coreLibraryDesugaring(libs.jdk.libs)
api(libs.timber)
+11 -1
View File
@@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />
<uses-permission android:name="android.permission.HIDE_OVERLAY_WINDOWS" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.RUN_USER_INITIATED_JOBS" />
@@ -30,8 +35,13 @@
<application
android:name=".App"
android:allowBackup="false"
android:enableOnBackInvokedCallback="false"
android:icon="@drawable/ic_launcher"
android:label="Magisk"
android:requestLegacyExternalStorage="true"
android:supportsRtl="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
tools:ignore="UnusedAttribute,GoogleAppIndexingWarning"
tools:remove="android:appComponentFactory">
+1 -1
View File
@@ -31,4 +31,4 @@ pluginManagement {
}
rootProject.name = "Magisk"
include(":apk", ":core", ":shared", ":test")
include(":apk", ":core", ":test")
-10
View File
@@ -1,10 +0,0 @@
plugins {
alias(libs.plugins.android.library)
}
setupCommon()
android {
namespace = "com.topjohnwu.shared"
enableKotlin = false
}
-16
View File
@@ -1,16 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />
<application
android:allowBackup="false"
android:enableOnBackInvokedCallback="false"
android:label="Magisk"
android:supportsRtl="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
</manifest>