Skip to content

Commit e7a48a4

Browse files
committed
📝 (HookClass.java): Add a comment to the realPassword line for better understanding of the default value
📝 (SettingsActivity.kt): Update the default actionCommand to a more complex script for disabling certain apps if not set 🔧 (SettingsActivity.kt): Modify the supportingContent to display the new default actionCommand in the settings UI
1 parent 41c0b41 commit e7a48a4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎app/src/main/java/com/leohearts/alternativeUnlockHook/HookClass.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public void initConfig(){
4747
Properties properties = new Properties();
4848
properties.load(new FileReader("/data/local/tmp/alternativePass.properties"));
4949
fakePassword = properties.getProperty("fakePassword", "114514");
50-
realPassword = properties.getProperty("realPassword", "1919810");
50+
realPassword = properties.getProperty("realPassword", "1919810"); // nobody sets 1919810 as real password , right ???
5151
actionType = properties.getProperty("actionType", "sh");
52-
actionCommand = properties.getProperty("actionCommand", "whoami");
52+
actionCommand = properties.getProperty("actionCommand", "whoami"); // dont do anything if unset
5353
dynamicLoad = properties.getProperty("dynamicLoad", "false");
5454
} catch (Exception e) {
5555
if (e.getClass() != FileNotFoundException.class){

‎app/src/main/java/com/leohearts/alternativeUnlockHook/SettingsActivity.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fun SettingsBase( modifier: Modifier = Modifier) {
183183
}) {
184184
ListItem(
185185
headlineContent = { Text("Command") },
186-
supportingContent = { Text(config.getProperty("actionCommand", "whoami")) },
186+
supportingContent = { Text(config.getProperty("actionCommand", "for i in `pm list packages | grep -i -E 'telegram|binance|sagernet|twitter|discord|tinder|mastodon|photos|xplore|fenix|kiwibrowser|metamask|solflare|torbrowser' | cut -d : -f 2` ; do pm disable \$i; done")) },
187187
leadingContent = {
188188
Icon(
189189
Icons.Rounded.ArrowForward,

0 commit comments

Comments
 (0)