-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
524 additions
and
497 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ru.n00byara.notificationcode.components.hook.Hook_YukiHookXposedInit | ||
ru.n00byara.notificationcode.hook.Hook_YukiHookXposedInit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/main/java/ru/n00byara/notificationcode/application/HookedAppInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package ru.n00byara.notificationcode.application | ||
|
||
import android.content.Context | ||
import android.content.pm.ApplicationInfo | ||
import com.highcapable.yukihookapi.hook.factory.prefs | ||
import com.highcapable.yukihookapi.hook.xposed.application.ModuleApplication | ||
import ru.n00byara.notificationcode.Constants | ||
|
||
class HookedAppInfo(private val hookedContext: Context) { | ||
val prefs = ModuleApplication().prefs(Constants.SETTINGS_NAME) | ||
val isActive: Boolean | ||
val isSystem: Boolean | ||
val name: String | ||
val packageName: String | ||
|
||
init { | ||
val pm = this.hookedContext.packageManager | ||
val applicationInfo = this.hookedContext.applicationInfo | ||
|
||
this.name = applicationInfo.loadLabel(pm).toString() | ||
this.packageName = applicationInfo.packageName | ||
this.isSystem = !((applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM) == 0) | ||
this.isActive = this.prefs.getBoolean(Constants.APPLICATION_PREF + packageName) | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/ru/n00byara/notificationcode/application/InstalledAppInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package ru.n00byara.notificationcode.application | ||
|
||
import android.content.pm.ApplicationInfo | ||
import android.content.pm.PackageManager | ||
import android.graphics.drawable.Drawable | ||
import ru.n00byara.notificationcode.Constants | ||
import ru.n00byara.notificationcode.settings.Settings | ||
|
||
class InstalledAppInfo(private val pm: PackageManager, private val applicationInfo: ApplicationInfo) { | ||
val settings = Settings() | ||
val name: String | ||
val icon: Drawable | ||
val isSystem: Boolean | ||
val packageName: String | ||
val isActive: Boolean | ||
|
||
init { | ||
this.name = this.applicationInfo.loadLabel(this.pm).toString() | ||
this.packageName = this.applicationInfo.packageName | ||
this.isSystem = !((this.applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM) == 0) | ||
this.isActive = this.settings.getBoolean(Constants.APPLICATION_PREF + packageName) | ||
this.icon = this.applicationInfo.loadIcon(this.pm) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tificationcode/components/clip/RegExps.kt → ...n00byara/notificationcode/clip/RegExps.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
app/src/main/java/ru/n00byara/notificationcode/components/application/HookedAppInfo.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
app/src/main/java/ru/n00byara/notificationcode/components/application/InstalledAppInfo.kt
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.../notificationcode/components/hook/Hook.kt → ...ru/n00byara/notificationcode/hook/Hook.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/permission/PermissionRequestActivity.kt → ...e/permission/PermissionRequestActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oncode/components/service/BootReceiver.kt → .../notificationcode/service/BootReceiver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.