This commit is contained in:
2025-08-15 23:24:31 +08:00
commit 3f69f7b5a3
31 changed files with 585 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
/build
+33
View File
@@ -0,0 +1,33 @@
plugins {
alias(libs.plugins.android.application)
}
android {
namespace = "top.littlew.dlsp"
compileSdk = 36
defaultConfig {
applicationId = "top.littlew.dlsp"
minSdk = 33
targetSdk = 36
versionCode = 1
versionName = "1.0"
}
buildTypes {
release {
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
compileOnly("de.robv.android.xposed:api:82")
}
+21
View File
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "top.littlew.dlsp",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File",
"minSdkVersionForDexing": 33
}
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:icon="@mipmap/ic_launcher"
android:label="Disable Lock Screen Pill">
<meta-data
android:name="xposedmodule"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="aka Customize Lock Screen." />
<meta-data
android:name="xposedminversion"
android:value="93" />
<meta-data
android:name="xposedscope"
android:resource="@array/xposed_scope" />
</application>
</manifest>
+1
View File
@@ -0,0 +1 @@
top.littlew.dlsp.XposedInit
@@ -0,0 +1,23 @@
package top.littlew.dlsp;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
public class XposedInit implements IXposedHookLoadPackage {
@Override
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
XposedHelpers.findAndHookMethod(
XposedHelpers.findClass("com.android.systemui.keyguard.ui.view.layout.sections.DefaultSettingsPopupMenuSection", lpparam.classLoader),
"bindData",
XposedHelpers.findClass("androidx.constraintlayout.widget.ConstraintLayout", lpparam.classLoader),
new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
param.setResult(null);
}
}
);
}
}
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<group
android:scaleX="0.4"
android:scaleY="0.4"
android:pivotX="480"
android:pivotY="480">
<path
android:fillColor="@android:color/white"
android:pathData="M694,584L638,528L718,448Q738,428 749,401Q760,374 760,345Q760,285 717.5,242.5Q675,200 615,200Q586,200 559,211Q532,222 512,242L432,322L376,266L456,186Q488,154 529,137Q570,120 615,120Q709,120 774.5,185.5Q840,251 840,345Q840,390 823,431Q806,472 774,504L694,584ZM345,760Q374,760 401,749Q428,738 448,718L525,641L319,435L242,512Q222,532 211,559Q200,586 200,615Q200,675 242.5,717.5Q285,760 345,760ZM792,908L581,697L504,774Q472,806 431,823Q390,840 345,840Q251,840 185.5,774.5Q120,709 120,615Q120,570 137,529Q154,488 186,456L263,379L56,172L112,116L848,852L792,908ZM422,538Q422,538 422,538Q422,538 422,538Q422,538 422,538Q422,538 422,538L422,538L422,538L422,538Q422,538 422,538Q422,538 422,538ZM535,425L535,425Q535,425 535,425Q535,425 535,425Q535,425 535,425Q535,425 535,425Q535,425 535,425Q535,425 535,425L535,425Z"/>
</group>
</vector>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background_color"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="xposed_scope">
<item>com.android.systemui</item>
</string-array>
</resources>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<color name="ic_launcher_background_color">#292524</color>
</resources>