From 1690bdbd572a2a9960842b469cdad25d4c6405f8 Mon Sep 17 00:00:00 2001 From: n00byara Date: Tue, 23 Apr 2024 16:14:37 +0300 Subject: [PATCH] Update to version 3.0.0 Added variant use without root --- .idea/inspectionProfiles/Project_Default.xml | 9 ++ app/build.gradle.kts | 5 +- app/src/main/AndroidManifest.xml | 32 ++++- app/src/main/assets/xposed_init | 2 +- .../ru/n00byara/notificationcode/Constants.kt | 6 + .../application/ApplicationsList.kt | 37 ++++++ .../application}/HookedAppInfo.kt | 6 +- .../application}/InstalledAppInfo.kt | 10 +- .../{ => components}/clip/Clip.kt | 13 +- .../{ => components}/clip/RegExps.kt | 2 +- .../{ => components}/hook/Hook.kt | 4 +- .../components/hook/entity/SystemUIHooker.kt | 68 ++++++++++ .../components/permission/Permission.kt | 20 +++ .../permission/PermissionRequestActivity.kt | 22 ++++ .../components/service/NotificationService.kt | 47 +++++++ .../hook/entity/SystemUIHooker.kt | 62 --------- .../notificationcode/models/SettingsModel.kt | 4 +- .../ui/activities/GlobalSettingsActivity.kt | 38 ++++++ .../{MainActivity.kt => SettingsActivity.kt} | 54 ++++---- .../ApplicationInfoCheckBox.kt | 6 +- .../ApplicationInfoCheckBoxModel.kt | 4 +- .../bottomnavigationbar/BottomNavBar.kt | 8 ++ .../PermissionAlertDialog.kt | 88 +++++++++++++ .../PermissionAlertDialogModel.kt | 8 ++ .../ui/components/switcher/Switcher.kt | 6 +- .../ui/components/switcher/SwitcherModel.kt | 3 +- .../ui/components/topbar/TopBar.kt | 13 +- .../ui/components/topbar/TopBarModel.kt | 9 +- .../usecasealertdialog/UseCaseAlertDialog.kt | 94 ++++++++++++++ .../UseCaseAlertDialogModel.kt | 9 ++ .../ui/screens/ApplicationsScreen.kt | 14 +-- .../ui/screens/GlobalSettingsScreen.kt | 105 ++++++++++++++++ .../ui/screens/SettingsScreen.kt | 28 +++-- .../viewmodels/ApplicationsScreenViewModel.kt | 21 +--- .../GlobalSettingsActivityViewModel.kt | 44 +++++++ .../GlobalSettingsScreenViewModel.kt | 54 ++++++++ .../ui/viewmodels/MainActivityViewModel.kt | 24 ---- .../viewmodels/SettingsActivityViewModel.kt | 119 ++++++++++++++++++ .../ui/viewmodels/SettingsScreenViewModel.kt | 4 +- app/src/main/res/values-en/strings.xml | 6 + app/src/main/res/values-ru/strings.xml | 6 + app/src/main/res/values/strings.xml | 9 ++ .../main/resources/META-INF/yukihookapi_init | 2 +- 43 files changed, 939 insertions(+), 186 deletions(-) create mode 100644 app/src/main/java/ru/n00byara/notificationcode/components/application/ApplicationsList.kt rename app/src/main/java/ru/n00byara/notificationcode/{applicationinfo => components/application}/HookedAppInfo.kt (83%) rename app/src/main/java/ru/n00byara/notificationcode/{applicationinfo => components/application}/InstalledAppInfo.kt (56%) rename app/src/main/java/ru/n00byara/notificationcode/{ => components}/clip/Clip.kt (86%) rename app/src/main/java/ru/n00byara/notificationcode/{ => components}/clip/RegExps.kt (91%) rename app/src/main/java/ru/n00byara/notificationcode/{ => components}/hook/Hook.kt (78%) create mode 100644 app/src/main/java/ru/n00byara/notificationcode/components/hook/entity/SystemUIHooker.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/components/permission/Permission.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/components/permission/PermissionRequestActivity.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/components/service/NotificationService.kt delete mode 100644 app/src/main/java/ru/n00byara/notificationcode/hook/entity/SystemUIHooker.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/activities/GlobalSettingsActivity.kt rename app/src/main/java/ru/n00byara/notificationcode/ui/activities/{MainActivity.kt => SettingsActivity.kt} (57%) rename app/src/main/java/ru/n00byara/notificationcode/ui/components/{applicationinfocard => applicationinfocheckbox}/ApplicationInfoCheckBox.kt (97%) rename app/src/main/java/ru/n00byara/notificationcode/ui/components/{applicationinfocard => applicationinfocheckbox}/ApplicationInfoCheckBoxModel.kt (71%) create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/components/permissionalertdialog/PermissionAlertDialog.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/components/permissionalertdialog/PermissionAlertDialogModel.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/components/usecasealertdialog/UseCaseAlertDialog.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/components/usecasealertdialog/UseCaseAlertDialogModel.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/screens/GlobalSettingsScreen.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/GlobalSettingsActivityViewModel.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/GlobalSettingsScreenViewModel.kt delete mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/MainActivityViewModel.kt create mode 100644 app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/SettingsActivityViewModel.kt diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 103e00c..44ca2d9 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,30 +3,39 @@