Skip to content

Commit cf80962

Browse files
committed
chore: rename project and application identifier from ADB Kit to HDB and optimize Gradle caching
1 parent fd9eba8 commit cf80962

12 files changed

Lines changed: 27 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
distribution: temurin
2828
java-version: 17
29+
cache: 'gradle'
2930

3031
- name: Set up Android SDK
3132
uses: android-actions/setup-android@v3
@@ -54,12 +55,12 @@ jobs:
5455
- name: Rename Signed APK
5556
run: |
5657
mv app/build/outputs/apk/release/app-release.apk \
57-
app/build/outputs/apk/release/adbkit-${{ steps.vars.outputs.version }}.apk
58+
app/build/outputs/apk/release/hdb-${{ steps.vars.outputs.version }}.apk
5859
5960
- name: Create Release
6061
uses: softprops/action-gh-release@v2
6162
with:
6263
tag_name: ${{ steps.vars.outputs.version }}
63-
name: ADB Kit ${{ steps.vars.outputs.version }}
64+
name: HDB ${{ steps.vars.outputs.version }}
6465
generate_release_notes: true
65-
files: app/build/outputs/apk/release/adbkit-${{ steps.vars.outputs.version }}.apk
66+
files: app/build/outputs/apk/release/hdb-${{ steps.vars.outputs.version }}.apk

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ADB Kit
1+
# HDB
22

33
[中文版 README](README.zh_TW.md)
44

@@ -8,7 +8,7 @@ A minimal, ultra-lightweight (~61 KB) Android app that easily manages adb_enable
88

99
Many financial/banking apps check Settings.Global.ADB_ENABLED == 1 to detect USB debugging. By setting the value to 2, these simple equality checks fail — the app thinks ADB is off, while Android still treats any non-zero value as enabled.
1010

11-
ADB Kit provides a quick and native way to manage this setting.
11+
HDB provides a quick and native way to manage this setting.
1212

1313
## Features
1414

@@ -38,7 +38,7 @@ adb install app/build/outputs/apk/release/app-release.apk
3838
WRITE_SECURE_SETTINGS cannot be granted through normal installation. You must grant it via ADB (one-time):
3939

4040
```bash
41-
adb shell pm grant dev.e88e89.adbkit android.permission.WRITE_SECURE_SETTINGS
41+
adb shell pm grant dev.e88e89.hdb android.permission.WRITE_SECURE_SETTINGS
4242
```
4343

4444

README.zh_TW.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ADB Kit
1+
# 荷包蛋
22

33
[English README](README.md)
44

@@ -8,7 +8,7 @@
88

99
許多金融與銀行 APP 透過 Settings.Global.ADB_ENABLED == 1 偵測 USB 偵錯模式。將值設為 2,這些簡單的相等檢查就會失敗,APP 認為 ADB 已關閉,但 Android 系統仍將非零值視為啟用。
1010

11-
ADB Kit 提供最簡單原生的方式來切換此狀態。
11+
荷包蛋 (HDB) 提供最簡單原生的方式來切換此狀態。
1212

1313
## 功能
1414

@@ -38,7 +38,7 @@ adb install app/build/outputs/apk/release/app-release.apk
3838
WRITE_SECURE_SETTINGS 無法透過一般安裝取得,必須透過 ADB 授權 (一次性):
3939

4040
```bash
41-
adb shell pm grant dev.e88e89.adbkit android.permission.WRITE_SECURE_SETTINGS
41+
adb shell pm grant dev.e88e89.hdb android.permission.WRITE_SECURE_SETTINGS
4242
```
4343

4444

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ plugins {
44
}
55

66
android {
7-
namespace = "dev.e88e89.adbkit"
7+
namespace = "dev.e88e89.hdb"
88
compileSdk = 35
99

1010
defaultConfig {
11-
applicationId = "dev.e88e89.adbkit"
11+
applicationId = "dev.e88e89.hdb"
1212
minSdk = 26
1313
targetSdk = 35
1414
versionCode = 1

app/proguard-rules.pro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Proguard rules for AdbKit
2-
-keep class dev.e88e89.adbkit.BootReceiver { *; }
1+
# Proguard rules for HDB
2+
-keep class dev.e88e89.hdb.BootReceiver { *; }

app/src/main/java/dev/e88e89/adbkit/AdbSettingsManager.kt renamed to app/src/main/java/dev/e88e89/hdb/AdbSettingsManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dev.e88e89.adbkit
1+
package dev.e88e89.hdb
22

33
import android.Manifest
44
import android.content.Context
@@ -9,7 +9,7 @@ import androidx.core.content.ContextCompat
99

1010
object AdbSettingsManager {
1111
private const val TAG = "AdbSettingsManager"
12-
const val PREFS_NAME = "adbkit_prefs"
12+
const val PREFS_NAME = "hdb_prefs"
1313
const val KEY_ADB_VALUE = "adb_value"
1414
const val DEFAULT_ADB_VALUE = 2
1515

app/src/main/java/dev/e88e89/adbkit/AdbTileService.kt renamed to app/src/main/java/dev/e88e89/hdb/AdbTileService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dev.e88e89.adbkit
1+
package dev.e88e89.hdb
22

33
import android.app.PendingIntent
44
import android.content.Intent

app/src/main/java/dev/e88e89/adbkit/DialogActivity.kt renamed to app/src/main/java/dev/e88e89/hdb/DialogActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dev.e88e89.adbkit
1+
package dev.e88e89.hdb
22

33
class DialogActivity : MainActivity() {
44
override val layoutResId: Int = R.layout.activity_dialog

app/src/main/java/dev/e88e89/adbkit/MainActivity.kt renamed to app/src/main/java/dev/e88e89/hdb/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dev.e88e89.adbkit
1+
package dev.e88e89.hdb
22

33
import android.os.Bundle
44
import android.widget.RadioButton

app/src/main/res/values-zh-rTW/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="app_name">ADB Kit</string>
3+
<string name="app_name">荷包蛋</string>
44
<string name="subtitle">繞過金融 APP 的偵錯偵測</string>
55

66
<!-- Settings cards -->
@@ -24,11 +24,11 @@
2424
<string name="btn_apply_now">立即套用</string>
2525

2626
<!-- Hint -->
27-
<string name="perm_grant_hint">adb shell pm grant dev.e88e89.adbkit\n android.permission.WRITE_SECURE_SETTINGS</string>
27+
<string name="perm_grant_hint">adb shell pm grant dev.e88e89.hdb\n android.permission.WRITE_SECURE_SETTINGS</string>
2828

2929
<!-- Toast -->
3030
<string name="applied_toast">已套用設定</string>
3131

32-
<string name="tile_label">ADB Kit</string>
32+
<string name="tile_label">荷包蛋</string>
3333
<string name="tile_subtitle">點擊打開設定</string>
3434
</resources>

0 commit comments

Comments
 (0)