Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
328d5b2
Fixed some bugs
hwnl Jul 30, 2024
cf73927
Modified some styles and added combo key mapping function
hwnl Aug 4, 2024
b772049
Keystore: use plugin.keystore
foryoung2018 Aug 8, 2024
c7701dc
Modified some styles and added combo key mapping function
hwnl Aug 8, 2024
ad26926
Merge remote-tracking branch 'origin/dev' into dev
hwnl Aug 8, 2024
4bbbbd3
Modified some styles and added combo key mapping function
hwnl Aug 8, 2024
3bcdf8d
Zoom: key shortcut for zoom in and zoom out
foryoung2018 Aug 8, 2024
d612e25
Completed editing and application of scaling events
hwnl Aug 8, 2024
a626a5d
Implement import and export functions
hwnl Aug 14, 2024
2cfc0c6
Implemented mouse control
hwnl Aug 15, 2024
314ea24
Add zoom in option
hwnl Aug 16, 2024
55479e5
Completed long press continuous clicking, achieved exporting the file…
hwnl Aug 25, 2024
e8a7bda
Achieved localization
hwnl Aug 26, 2024
9f886fc
UI: adjust some padding and margin
foryoung2018 Aug 26, 2024
1bbe145
add res
foryoung2018 Aug 26, 2024
f85bced
UI: update icon
foryoung2018 Aug 26, 2024
6fb8a43
The empty button without adding mapping will not be saved, and the st…
hwnl Aug 29, 2024
4fd1b41
Framework: add activitytaskmanager
foryoung2018 Sep 3, 2024
2925492
UI: update key_mapping.xml
foryoung2018 Sep 4, 2024
6a36308
Completed application adaptive sizing, modified some interfaces, and …
hwnl Sep 4, 2024
63aae08
Merge remote-tracking branch 'origin/dev' into dev
hwnl Sep 4, 2024
f981e37
Completed application adaptive sizing, modified some interfaces, and …
hwnl Sep 4, 2024
b66001a
Completed application adaptive sizing, modified some interfaces, and …
hwnl Sep 4, 2024
139e0aa
Fixed some bugs and optimized the adaptive window
hwnl Sep 8, 2024
10af5ca
modify style
hwnl Sep 9, 2024
d36caf1
modify style
hwnl Sep 10, 2024
e4f8501
modify style
hwnl Sep 11, 2024
06ef70f
Fullscreen: update systemui visibility in ViewRootImpl
foryoung2018 Sep 12, 2024
a4acfb9
modify style
hwnl Sep 12, 2024
9a118dd
Merge remote-tracking branch 'origin/dev' into dev
hwnl Sep 12, 2024
4573ebd
modify style
hwnl Sep 12, 2024
11c5731
Modify configuration
hwnl Sep 12, 2024
640fb24
Fix "Dropped event because it is stale."
foryoung2018 Sep 23, 2024
68b6ec9
Modified the scope of scheme selection
hwnl Sep 24, 2024
f9f5adb
Added Chinese for hiding taskbar
hwnl Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 30 additions & 21 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ android {

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

signingConfigs {
debug {
applicationIdSuffix '.debug'
minifyEnabled false
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('plugin.keystore')
storePassword 'android'
}
}

Expand All @@ -31,29 +35,34 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

applicationVariants.all { variant ->
variant.outputs.each { output ->
def assembledTask = tasks.getByName("assemble${variant.name.capitalize()}")

assembledTask.doLast {
def buildDir = output.outputFile.parent
def unsignedApk = output.outputFile
def signedApk = new File(buildDir, "KeyAssist.apk")
exec {
commandLine 'java', '-Djava.library.path=.', '-jar', 'signapk.jar', 'platform.x509.pem', 'platform.pk8', unsignedApk, signedApk
}
copy {
from signedApk
into buildDir
rename { "app-debug.apk" }
}
android.applicationVariants.all { variant ->
variant.outputs.all {
if (outputFile != null && outputFileName.endsWith('.apk')) {
outputFileName = "KeyAssist.apk"
}
}
}
}

//gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// Set<File> fileSet = options.bootstrapClasspath.getFiles()
// List<File> newFileList = new ArrayList<>();
// newFileList.add(new File("libs/framework.jar"))
// newFileList.addAll(fileSet)
// options.bootstrapClasspath = files(
// newFileList.toArray()
// )
// }
//}

dependencies {
compileOnly files('libs/framework.jar')

implementation 'org.litepal.guolindev:core:3.2.3'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.google.code.gson:gson:2.8.9'


}
Binary file removed app/libconscrypt_openjdk_jni.so
Binary file not shown.
Binary file added app/libs/framework.jar
Binary file not shown.
Binary file removed app/platform.pk8
Binary file not shown.
27 changes: 0 additions & 27 deletions app/platform.x509.pem

This file was deleted.

Binary file added app/plugin.keystore
Binary file not shown.
20 changes: 20 additions & 0 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.fde.keyassist",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0.1",
"outputFile": "KeyAssist.apk"
}
],
"elementType": "File"
}
Binary file removed app/signapk.jar
Binary file not shown.
18 changes: 15 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,35 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.fde.keyassist"
android:sharedUserId="android.uid.system"
android:sharedUserMaxSdkVersion="32"
tools:targetApi="tiramisu">

<uses-permission
android:name="android.permission.INJECT_EVENTS"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>


<uses-permission android:name="android.permission.RESTART_PACKAGES" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RESTART_PACKAGES" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />


<!-- android:theme="@style/Theme.KeyAssist"-->


<application
android:name="org.litepal.LitePalApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.KeyAssist"
android:theme="@style/Theme.KeyAssist1"

tools:targetApi="31">
<activity
android:name=".MainActivity"
Expand Down
113 changes: 113 additions & 0 deletions app/src/main/assets/Honor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
[
[
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 31,
"keyValue": "1",
"keycode": 1,
"planId": 4,
"x": 890,
"y": 804,
"baseObjId": 31
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 32,
"keyValue": "2",
"keycode": 2,
"planId": 4,
"x": 975,
"y": 808,
"baseObjId": 32
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 33,
"keyValue": "3",
"keycode": 3,
"planId": 4,
"x": 1059,
"y": 808,
"baseObjId": 33
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 34,
"keyValue": "Q",
"keycode": 45,
"planId": 4,
"x": 1159,
"y": 797,
"baseObjId": 34
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 35,
"keyValue": "E",
"keycode": 33,
"planId": 4,
"x": 1228,
"y": 680,
"baseObjId": 35
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 36,
"keyValue": "R",
"keycode": 46,
"planId": 4,
"x": 1342,
"y": 613,
"baseObjId": 36
}
],
[
{
"downCombination": false,
"downCombinationKeyCode": 0,
"downKeyValue": "S",
"downKeycode": 47,
"eventType": 4,
"id": 6,
"leftCombination": false,
"leftCombinationKeyCode": 0,
"leftKeyValue": "A",
"leftKeycode": 29,
"planId": 4,
"rightCombination": false,
"rightCombinationKeyCode": 0,
"rightKeyValue": "D",
"rightKeycode": 32,
"upCombination": false,
"upCombinationKeyCode": 0,
"upKeyValue": "W",
"upKeycode": 51,
"x": 494,
"y": 727,
"baseObjId": 6
}
],
[],
[
{
"cursorSwitch": true,
"id": 6,
"planId": 4,
"baseObjId": 6
}
],
[],
[]
]
113 changes: 113 additions & 0 deletions app/src/main/assets/HonorofKings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
[
[
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 38,
"keyValue": "Q",
"keycode": 45,
"planId": 47,
"x": 1169,
"y": 601,
"baseObjId": 38
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 39,
"keyValue": "E",
"keycode": 33,
"planId": 47,
"x": 1213,
"y": 532,
"baseObjId": 39
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 40,
"keyValue": "R",
"keycode": 46,
"planId": 47,
"x": 1279,
"y": 492,
"baseObjId": 40
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 41,
"keyValue": "1",
"keycode": 1,
"planId": 47,
"x": 1012,
"y": 611,
"baseObjId": 41
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 42,
"keyValue": "2",
"keycode": 2,
"planId": 47,
"x": 1063,
"y": 608,
"baseObjId": 42
},
{
"combination": false,
"combinationKeyCode": 0,
"eventType": 1,
"id": 43,
"keyValue": "3",
"keycode": 3,
"planId": 47,
"x": 1113,
"y": 607,
"baseObjId": 43
}
],
[
{
"downCombination": false,
"downCombinationKeyCode": 0,
"downKeyValue": "S",
"downKeycode": 47,
"eventType": 4,
"id": 28,
"leftCombination": false,
"leftCombinationKeyCode": 0,
"leftKeyValue": "A",
"leftKeycode": 29,
"planId": 47,
"rightCombination": false,
"rightCombinationKeyCode": 0,
"rightKeyValue": "D",
"rightKeycode": 32,
"upCombination": false,
"upCombinationKeyCode": 0,
"upKeyValue": "W",
"upKeycode": 51,
"x": 708,
"y": 572,
"baseObjId": 28
}
],
[],
[
{
"cursorSwitch": true,
"id": 18,
"planId": 47,
"baseObjId": 18
}
],
[],
[]
]
Loading