Skip to content

Commit

Permalink
bump to Dhizuku v2.0
Browse files Browse the repository at this point in the history
support bindService,unbindService
  • Loading branch information
iamr0s committed May 3, 2023
1 parent 0e63f38 commit 7f619d2
Show file tree
Hide file tree
Showing 37 changed files with 1,389 additions and 390 deletions.
2 changes: 1 addition & 1 deletion api
Submodule api updated 50 files
+29 −0 README.md
+12 −4 build.gradle
+1 −0 demo-user_service/.gitignore
+44 −0 demo-user_service/build.gradle
+21 −0 demo-user_service/proguard-rules.pro
+26 −0 demo-user_service/src/androidTest/java/com/rosan/dhizuku/demo_user_service/ExampleInstrumentedTest.java
+25 −0 demo-user_service/src/main/AndroidManifest.xml
+10 −0 demo-user_service/src/main/aidl/com/rosan/dhizuku/demo_user_service/IUserService.aidl
+13 −0 demo-user_service/src/main/java/com/rosan/dhizuku/demo_user_service/App.java
+96 −0 demo-user_service/src/main/java/com/rosan/dhizuku/demo_user_service/MainActivity.java
+36 −0 demo-user_service/src/main/java/com/rosan/dhizuku/demo_user_service/UserService.java
+30 −0 demo-user_service/src/main/res/drawable-v24/ic_launcher_foreground.xml
+170 −0 demo-user_service/src/main/res/drawable/ic_launcher_background.xml
+20 −0 demo-user_service/src/main/res/layout/main_activity.xml
+6 −0 demo-user_service/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+6 −0 demo-user_service/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+ demo-user_service/src/main/res/mipmap-hdpi/ic_launcher.webp
+ demo-user_service/src/main/res/mipmap-hdpi/ic_launcher_round.webp
+ demo-user_service/src/main/res/mipmap-mdpi/ic_launcher.webp
+ demo-user_service/src/main/res/mipmap-mdpi/ic_launcher_round.webp
+ demo-user_service/src/main/res/mipmap-xhdpi/ic_launcher.webp
+ demo-user_service/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
+ demo-user_service/src/main/res/mipmap-xxhdpi/ic_launcher.webp
+ demo-user_service/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
+ demo-user_service/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
+ demo-user_service/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
+16 −0 demo-user_service/src/main/res/values-night/themes.xml
+10 −0 demo-user_service/src/main/res/values/colors.xml
+3 −0 demo-user_service/src/main/res/values/strings.xml
+16 −0 demo-user_service/src/main/res/values/themes.xml
+17 −0 demo-user_service/src/test/java/com/rosan/dhizuku/demo_user_service/ExampleUnitTest.java
+5 −5 demo/build.gradle
+5 −0 dhizuku-aidl/src/main/aidl/com/rosan/dhizuku/aidl/IDhizuku.aidl
+3 −0 dhizuku-aidl/src/main/aidl/com/rosan/dhizuku/aidl/IDhizukuClient.aidl
+9 −0 dhizuku-aidl/src/main/aidl/com/rosan/dhizuku/aidl/IDhizukuUserServiceConnection.aidl
+1 −0 dhizuku-api-impl/.gitignore
+25 −0 dhizuku-api-impl/build.gradle
+8 −0 dhizuku-api-impl/src/main/AndroidManifest.xml
+98 −5 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/Dhizuku.java
+0 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuBinderWrapper.java
+14 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuClient.java
+0 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuRemoteProcess.java
+0 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuRequestPermissionListener.java
+44 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnection.java
+102 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuServiceConnections.java
+41 −0 dhizuku-api-impl/src/main/java/com/rosan/dhizuku/api/DhizukuUserServiceArgs.java
+4 −6 dhizuku-api/build.gradle
+6 −0 dhizuku-shared/src/main/java/com/rosan/dhizuku/shared/DhizukuVariables.java
+1 −1 gradle/wrapper/gradle-wrapper.properties
+3 −1 settings.gradle
8 changes: 6 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
applicationId = "com.rosan.dhizuku"
minSdk = 21
targetSdk = 33
versionCode = 2
versionName = "1.0.3"
versionCode = 3
versionName = "2.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -128,8 +128,12 @@ dependencies {
implementation(libs.accompanist.drawablepainter)
implementation(libs.accompanist.systemuicontroller)

implementation(libs.lsposed.hiddenapibypass)

implementation(libs.xxpermissions)

implementation(libs.rikka.shizuku.api)
implementation(libs.rikka.shizuku.provider)

implementation(libs.commons.cli)
}
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
-keep public class com.rosan.dhizuku.data.process.model.impl.** {
public static void main(java.lang.String[]);
}
#-keep public class com.rosan.installer.data.process.model.impl.** extends com.rosan.installer.data.process.repo.ProcessRepo {
#-keep public class com.rosan.installer.data.process.model.impl.** extends com.rosan.dhizuku.data.process.repo.ProcessRepo {
#public static void main(java.lang.String[]);
#}
#-keep public class com.rosan.installer.** extends android.app.Service
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@
</activity>

<provider
android:name="com.rosan.dhizuku.server.DhizukuProvider"
android:name=".server.DhizukuProvider"
android:authorities="com.rosan.dhizuku.server.provider"
android:directBootAware="true"
android:enabled="true"
android:exported="true"
android:permission="com.rosan.dhizuku.permission.API"
tools:ignore="UnusedAttribute" />

<receiver
Expand Down Expand Up @@ -107,8 +108,9 @@

<service
android:name=".server.DhizukuService"
android:enabled="true"
android:exported="true">
android:directBootAware="true"
android:exported="false"
tools:ignore="UnusedAttribute">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/aidl/android/content/IIntentReceiver.aidl

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/aidl/android/content/IIntentSender.aidl

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions app/src/main/aidl/android/content/pm/IPackageInstaller.aidl

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions app/src/main/aidl/android/content/pm/IPackageInstallerSession.aidl

This file was deleted.

Loading

0 comments on commit 7f619d2

Please sign in to comment.