Fix lint errors

This commit is contained in:
世界
2025-12-25 17:54:55 +08:00
parent 2046c202f2
commit 3672bbb251
5 changed files with 20 additions and 5 deletions
@@ -0,0 +1,3 @@
package io.nekohasekai.sfa.vendor
class PrivilegedAccessRequiredException(message: String) : Exception(message)
@@ -10,8 +10,6 @@ import io.nekohasekai.sfa.database.Settings
import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.StateFlow
class PrivilegedAccessRequiredException(message: String) : Exception(message)
object PackageQueryManager { object PackageQueryManager {
private const val TAG = "PackageQueryManager" private const val TAG = "PackageQueryManager"
+4 -2
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?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> <application>
<provider <provider
@@ -11,7 +12,8 @@
<service <service
android:name=".vendor.RootPackageManagerService" android:name=".vendor.RootPackageManagerService"
android:exported="false" /> android:exported="false"
tools:ignore="Instantiatable" />
</application> </application>
</manifest> </manifest>
+11
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>
+2 -1
View File
@@ -17,7 +17,8 @@
<service <service
android:name=".vendor.RootPackageManagerService" android:name=".vendor.RootPackageManagerService"
android:exported="false" /> android:exported="false"
tools:ignore="Instantiatable" />
</application> </application>
</manifest> </manifest>