Fix lint errors

This commit is contained in:
世界
2025-12-25 17:16:58 +08:00
parent 2046c202f2
commit 3672bbb251
5 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
package io.nekohasekai.sfa.vendor
class PrivilegedAccessRequiredException(message: String) : Exception(message)

View File

@@ -10,8 +10,6 @@ import io.nekohasekai.sfa.database.Settings
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
class PrivilegedAccessRequiredException(message: String) : Exception(message)
object PackageQueryManager {
private const val TAG = "PackageQueryManager"

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application>
<provider
@@ -11,7 +12,8 @@
<service
android:name=".vendor.RootPackageManagerService"
android:exported="false" />
android:exported="false"
tools:ignore="Instantiatable" />
</application>
</manifest>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application>
<service
android:name=".vendor.RootPackageManagerService"
tools:node="remove" />
</application>
</manifest>

View File

@@ -17,7 +17,8 @@
<service
android:name=".vendor.RootPackageManagerService"
android:exported="false" />
android:exported="false"
tools:ignore="Instantiatable" />
</application>
</manifest>