Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing BFU again. #84

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class DhizukuRoom : RoomDatabase() {
fun createInstance(): DhizukuRoom {
var context: Context = get()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
&& context.isDeviceProtectedStorage
&& !context.isDeviceProtectedStorage
) {
context = context.createDeviceProtectedStorageContext()
}
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/com/rosan/dhizuku/server/RunningService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import org.koin.core.component.inject
class RunningService : Service(), KoinComponent {
companion object {
fun start(context: Context) {
val intent = Intent(context, RunningService::class.java)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
context.startForegroundService(intent)
else context.startService(intent)
context.startService(Intent(context, RunningService::class.java))
}
}
Expand Down
17 changes: 17 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
English | [简体中文](README_zh_rCN.md) | [日本語](README_ja.md) | [Русский](README_ru.md)

# Fork description
This is a version of Dhizuku with some fixes to make it work in BFU mode and deletable version of an app.

## Apps versions:
Dhizuku-usual - can be installed as usual apk file. If you will install this app and grant owner rights, you will not be able to disable these rights and uninstall the app.

Dhizuku-ADB - requires installation via ADB. Can be uninstalled.

## Installation via ADB
1. Download [SDK Platform tools](https://developer.android.com/tools/releases/platform-tools) on your PC
2. Unzip the archive
3. Download the version of the application that requires installation via ADB to your computer
4. On your mobile device, [unlock developer settings](https://developer.android.com/studio/debug/dev-options)
5. Open the developer settings and allow debugging via USB
6. Connect devices and allow USB debugging for your PC
7. Open the command prompt and enter the command \<path to platform-tools folder\>/adb[.exe] install -t \<path to apk file\>.

# Dhizuku

[![Downloads](https://img.shields.io/github/downloads/iamr0s/Dhizuku/total?label=Downloads)](https://github.com/iamr0s/Dhizuku/releases)
Expand Down