diff --git a/manager/src/main/ic_launcher-playstore.png b/manager/src/main/ic_launcher-playstore.png
index 0a81553..90798ee 100644
Binary files a/manager/src/main/ic_launcher-playstore.png and b/manager/src/main/ic_launcher-playstore.png differ
diff --git a/manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchPage.kt b/manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchPage.kt
index 5adb0f5..560c26b 100644
--- a/manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchPage.kt
+++ b/manager/src/main/java/org/lsposed/lspatch/ui/page/NewPatchPage.kt
@@ -193,7 +193,7 @@ private fun PatchOptionsBody(modifier: Modifier) {
desc = viewModel.sign.mapIndexedNotNull { index, on -> if (on) "V" + (index + 1) else null }.joinToString(" + ").ifEmpty { "None" }
)
DropdownMenu(expanded = expanded, onDismissRequest = { expanded = false }) {
- repeat(3) { index ->
+ repeat(2) { index ->
DropdownMenuItem(
text = {
Row(verticalAlignment = Alignment.CenterVertically) {
@@ -322,15 +322,20 @@ private fun DoPatchBody(modifier: Modifier) {
val shizukuUnavailable = stringResource(R.string.shizuku_unavailable)
val installSuccessfully = stringResource(R.string.patch_install_successfully)
val installFailed = stringResource(R.string.patch_install_failed)
+ val copyError = stringResource(R.string.patch_copy_error)
var installing by rememberSaveable { mutableStateOf(false) }
if (installing) InstallDialog(viewModel.patchApp!!) { status, message ->
- installing = false
scope.launch {
+ installing = false
if (status == PackageInstaller.STATUS_SUCCESS) {
lspApp.globalScope.launch { snackbarHost.showSnackbar(installSuccessfully) }
navController.popBackStack()
} else {
- snackbarHost.showSnackbar(installFailed)
+ val result = snackbarHost.showSnackbar(installFailed, copyError)
+ if (result == SnackbarResult.ActionPerformed) {
+ val cm = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
+ cm.setPrimaryClip(ClipData.newPlainText("LSPatch", message))
+ }
}
}
}
@@ -383,7 +388,6 @@ private fun DoPatchBody(modifier: Modifier) {
@Composable
private fun InstallDialog(patchApp: AppInfo, onFinish: (Int, String?) -> Unit) {
val scope = rememberCoroutineScope()
-
var uninstallFirst by remember { mutableStateOf(ShizukuApi.isPackageInstalled(patchApp.app.packageName)) }
var installing by remember { mutableStateOf(0) }
val doInstall = suspend {
diff --git a/manager/src/main/res/drawable-zh-rCN/ic_launcher_background.xml b/manager/src/main/res/drawable-zh-rCN/ic_launcher_background.xml
index 0498ca8..174257f 100644
--- a/manager/src/main/res/drawable-zh-rCN/ic_launcher_background.xml
+++ b/manager/src/main/res/drawable-zh-rCN/ic_launcher_background.xml
@@ -23,33 +23,33 @@
android:viewportWidth="108"
android:viewportHeight="108">
+ android:scaleX="0.12397959"
+ android:scaleY="0.12397959"
+ android:translateX="-20.387754"
+ android:translateY="13.5">
+ android:pathData="M280,0h640v640h-640z" />
-
+
+ android:pathData="M600,1080m-600,0a600,600 0,1 1,1200 0a600,600 0,1 1,-1200 0" />
+ android:pathData="M504.4,556.3l3.8,-21.8 -7.2,5.7 -0.7,-0.8c2.9,-3 5.8,-6.3 8.7,-9.7l0.2,-1.1 0.5,0.3c5,-5.9 9.9,-12.1 14.6,-18.6l5.1,6.2c-1.3,1.3 -2.7,2.4 -4.1,3.5h16.2c0.9,-0.9 1.8,-1.8 2.6,-2.7l4.3,6.5c-4.7,3 -9.6,5.8 -14.7,8.4h14.3l6.7,-3 -4.6,25.9 -5,-5.4h-9.7l2,2.2 -2.8,16.2h5.9l-0.1,0.3h7.8l10.4,-14.8 1.4,1.4 -12.9,18 -0.2,-0.3 -0.1,0.3h-11.3l0.1,-0.3c-3.5,0.5 -6.5,2.4 -9.1,5.7l1,-5.7 -0.3,0.3 4.1,-23.2h-0.5c-0.7,3.8 -2.7,6.9 -6,9.4 -4.3,3.8 -9.1,7.2 -14.5,10.2s-10.6,5.7 -15.7,8.1l-0.5,-1.6c4.4,-2.3 9.1,-5.3 14.2,-8.8 5.1,-3.5 9.3,-7 12.6,-10.6 1.8,-2 3,-4.2 3.6,-6.7h-12.9l-0.4,2.2 -7,4.6ZM512.3,546.6h12.9l2,-11.6h-12.9l-2,11.6ZM514.8,532.1h14.3c3.2,-3 6.4,-6.1 9.4,-9.2h-16.7c-3,2.7 -6.1,5.3 -9.2,7.8l2.2,1.4ZM532.7,539.4l-1.3,7.3h0.5l0.1,-0.5 0.4,0.5h12.9l2,-11.6h-18.6l3.8,4.3Z" />
+ android:pathData="M573.1,523.2h16.2c9.5,0 16.8,3.3 14.9,14 -1.8,10.3 -10.4,14.8 -20,14.8h-6l-2.8,16.2h-10.2l7.9,-44.9ZM584.9,543.9c5.3,0 8.6,-2.3 9.4,-6.7 0.8,-4.4 -1.8,-5.9 -7.2,-5.9h-5.2l-2.2,12.6h5.2ZM582.9,549.3l8.2,-6.5 9.9,25.4h-11.4l-6.7,-18.9Z" />
+ android:pathData="M607,551.1c2,-11.4 11.2,-17.9 19.8,-17.9s15.5,6.6 13.5,17.9c-2,11.4 -11.2,17.9 -19.8,17.9s-15.5,-6.6 -13.5,-17.9ZM629.9,551.1c1,-5.9 -0.4,-9.8 -4.6,-9.8s-6.9,3.8 -8,9.8c-1,5.9 0.4,9.7 4.6,9.7s6.9,-3.8 8,-9.7Z" />
+ android:pathData="M645.2,551.1c2,-11.4 11.2,-17.9 19.8,-17.9s15.5,6.6 13.5,17.9c-2,11.4 -11.2,17.9 -19.8,17.9s-15.5,-6.6 -13.5,-17.9ZM668.2,551.1c1,-5.9 -0.4,-9.8 -4.6,-9.8s-6.9,3.8 -8,9.8c-1,5.9 0.4,9.7 4.6,9.7s6.9,-3.8 8,-9.7Z" />
+ android:pathData="M684.2,555.7l2.4,-13.8h-4.7l1.3,-7.6 5.3,-0.4 2.8,-9.1h8.4l-1.6,9.1h8.2l-1.4,7.9h-8.2l-2.4,13.7c-0.7,3.9 0.8,5.4 3.5,5.4 1.1,0 2.4,-0.3 3.4,-0.6l0.3,7.4c-1.9,0.6 -4.5,1.2 -7.8,1.2 -8.4,0 -10.9,-5.3 -9.5,-13.3Z" />
diff --git a/manager/src/main/res/drawable/ic_launcher_background.xml b/manager/src/main/res/drawable/ic_launcher_background.xml
index 04f7a29..229cb10 100644
--- a/manager/src/main/res/drawable/ic_launcher_background.xml
+++ b/manager/src/main/res/drawable/ic_launcher_background.xml
@@ -23,42 +23,42 @@
android:viewportWidth="108"
android:viewportHeight="108">
+ android:scaleX="0.12397959"
+ android:scaleY="0.12397959"
+ android:translateX="-20.387754"
+ android:translateY="13.5">
+ android:pathData="M280,0h640v640h-640z" />
-
+
+ android:pathData="M600,1080m-600,0a600,600 0,1 1,1200 0a600,600 0,1 1,-1200 0" />
+ android:pathData="M485.6,524.2h14.1c8.8,0 15.4,3.1 15.4,11.5 0,11.8 -9.6,17 -20,17h-5.7l-3.3,16.5h-9.4l9,-44.9ZM495.6,545.2c6.7,0 10.1,-3.2 10.1,-8.1 0,-3.8 -2.7,-5.4 -7.5,-5.4h-4.7l-2.6,13.5h4.8ZM494,550.5l6.8,-6.1 9.7,24.7h-10l-6.6,-18.7Z" />
+ android:pathData="M517,555.9c0,-13.2 9.8,-21.8 19.2,-21.8 8,0 13.3,5.6 13.3,14.1 0,13.2 -9.8,21.8 -19.2,21.8 -8,0 -13.3,-5.6 -13.3,-14.1ZM539.9,548.4c0,-4.2 -1.6,-6.7 -4.8,-6.7 -4.6,0 -8.6,6 -8.6,14 0,4.2 1.6,6.7 4.8,6.7 4.6,0 8.6,-6 8.6,-14Z" />
+ android:pathData="M553.8,555.9c0,-13.2 9.8,-21.8 19.2,-21.8 8,0 13.3,5.6 13.3,14.1 0,13.2 -9.8,21.8 -19.2,21.8 -8,0 -13.3,-5.6 -13.3,-14.1ZM576.7,548.4c0,-4.2 -1.6,-6.7 -4.8,-6.7 -4.6,0 -8.6,6 -8.6,14 0,4.2 1.6,6.7 4.8,6.7 4.6,0 8.6,-6 8.6,-14Z" />
+ android:pathData="M592.8,561c0,-1.5 0.3,-2.9 0.5,-4.3l3,-14.3h-4.6l1.4,-7 5,-0.4 2.9,-8.9h7.9l-1.7,8.9h7.7l-1.4,7.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,-3.2c0,-2 -2,-2.9 -5.9,-5.1 -3.9,-2.2 -6.9,-5.2 -6.9,-9.5 0,-6.4 5.9,-11.1 13.3,-11.1 4.7,0 8.4,2.3 11.2,5.2l-5.1,4.9c-1.7,-1.7 -3.7,-3.1 -6.1,-3.1 -2.6,0 -4.4,1.5 -4.4,3.3 0,2.2 2.9,3.2 5.6,4.7 4.1,2.2 7.2,4.9 7.2,9.6 0,6.7 -6,11.2 -14.2,11.2 -4.1,0 -9.4,-2.4 -12.3,-6.6Z" />
diff --git a/manager/src/main/res/drawable/ic_launcher_foreground.xml b/manager/src/main/res/drawable/ic_launcher_foreground.xml
index 7b32074..5cf924c 100644
--- a/manager/src/main/res/drawable/ic_launcher_foreground.xml
+++ b/manager/src/main/res/drawable/ic_launcher_foreground.xml
@@ -18,17 +18,19 @@
-->
+ android:scaleX="1.2375"
+ android:scaleY="1.2375"
+ android:translateX="24.3"
+ android:translateY="24.3">
+ android:fillColor="#FFFFFFFF"
+ android:pathData="M24.1,27.6l-6.7,6.7c-0.4,0.5 -1,0.7 -1.6,0.7c-0.6,0 -1.2,-0.2 -1.6,-0.7l-4.4,-4.4C9.3,29.4 9,28.9 9,28.3c0,-0.6 0.2,-1.2 0.7,-1.6l6.6,-6.7l-6.6,-6.7c-0.4,-0.4 -0.7,-0.9 -0.7,-1.5c-0.1,-0.6 0.1,-1.1 0.5,-1.5l4.6,-4.6c0.4,-0.4 1,-0.7 1.6,-0.7c0.6,0 1.2,0.2 1.6,0.7l6.7,6.7l6.7,-6.7c0.4,-0.4 1,-0.7 1.6,-0.7c0.6,0 1.2,0.2 1.6,0.7l4.4,4.4c0.4,0.4 0.6,1 0.7,1.6c0,0.6 -0.2,1.2 -0.7,1.6L31.7,20l6.7,6.7c0.4,0.4 0.7,1 0.7,1.6c0,0.6 -0.2,1.2 -0.7,1.6l-4.6,4.6c-0.4,0.4 -0.9,0.6 -1.5,0.5c-0.6,-0.1 -1.1,-0.3 -1.5,-0.7L24.1,27.6zM24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