fix: Forgot to add the inject DP option and Remove redundant intent-filter
.
This commit is contained in:
parent
a2b9e529ca
commit
d843faa515
2
core
2
core
|
|
@ -1 +1 @@
|
|||
Subproject commit 797e27be8ff180d2d3fd5d39ccabad3fe23dc01f
|
||||
Subproject commit 92ea824eb669c4cc4f82f701b8896447c4d2c785
|
||||
|
|
@ -40,14 +40,6 @@
|
|||
android:exported="true"
|
||||
android:targetActivity="org.lsposed.lspatch.ui.activity.MainActivity">
|
||||
<intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
<data android:scheme="file" />
|
||||
<data android:scheme="content" />
|
||||
<data android:mimeType="application/vnd.android.package-archive" />
|
||||
</intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
|
|
|
|||
|
|
@ -352,7 +352,6 @@ private fun PatchOptionsBody(modifier: Modifier, onAddEmbed: () -> Unit) {
|
|||
title = stringResource(R.string.patch_override_version_code),
|
||||
desc = stringResource(R.string.patch_override_version_code_desc)
|
||||
)
|
||||
|
||||
SettingsCheckBox(
|
||||
modifier = Modifier.clickable { viewModel.injectDex = !viewModel.injectDex },
|
||||
checked = viewModel.injectDex,
|
||||
|
|
@ -360,7 +359,13 @@ private fun PatchOptionsBody(modifier: Modifier, onAddEmbed: () -> Unit) {
|
|||
title = stringResource(R.string.patch_inject_dex),
|
||||
desc = stringResource(R.string.patch_inject_dex_desc)
|
||||
)
|
||||
|
||||
SettingsCheckBox(
|
||||
modifier = Modifier.clickable { viewModel.injectProvider = !viewModel.injectProvider },
|
||||
checked = viewModel.injectProvider,
|
||||
icon = Icons.Outlined.AddCard,
|
||||
title = stringResource(R.string.patch_inject_mt_provider),
|
||||
desc = stringResource(R.string.patch_inject_mt_provider_desc)
|
||||
)
|
||||
SettingsCheckBox(
|
||||
modifier = Modifier.clickable { viewModel.outputLog = !viewModel.outputLog },
|
||||
checked = viewModel.outputLog,
|
||||
|
|
@ -368,7 +373,6 @@ private fun PatchOptionsBody(modifier: Modifier, onAddEmbed: () -> Unit) {
|
|||
title = stringResource(R.string.patch_output_log_to_media),
|
||||
desc = stringResource(R.string.patch_output_log_to_media_desc)
|
||||
)
|
||||
|
||||
var bypassExpanded by remember { mutableStateOf(false) }
|
||||
AnywhereDropdown(
|
||||
expanded = bypassExpanded,
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ public class LSPApplication {
|
|||
try (InputStream is = baseClassLoader.getResourceAsStream(PROVIDER_DEX_ASSET_PATH)) {
|
||||
Files.copy(is, providerPath);
|
||||
}
|
||||
providerPath.toFile().setWritable(false);
|
||||
}catch (Exception e){
|
||||
Log.e(TAG, "Failed to inject provider:" + Log.getStackTraceString(e));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ dependencyResolutionManagement {
|
|||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://www.jitpack.io") }
|
||||
mavenLocal {
|
||||
content {
|
||||
includeGroup("io.github.libxposed")
|
||||
|
|
|
|||
Loading…
Reference in New Issue