Skip to content

Commit 92f18a5

Browse files
committedMar 12, 2023
新增 hidden-api
1 parent caf21db commit 92f18a5

File tree

7 files changed

+85
-0
lines changed

7 files changed

+85
-0
lines changed
 

‎app/build.gradle

+13
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ repositories {
7373

7474
dependencies {
7575

76+
compileOnly(project(":hidden-api"))
77+
compileOnly("de.robv.android.xposed:api:82")
78+
7679
compileOnly files('libs/miui.jar')
7780
compileOnly files("libs/miui-framework.jar")
7881

@@ -83,6 +86,16 @@ dependencies {
8386
implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"
8487
implementation "org.lsposed.hiddenapibypass:hiddenapibypass:4.3"
8588

89+
implementation "androidx.appcompat:appcompat:1.6.0"
90+
implementation "androidx.core:core:1.9.0"
91+
implementation "androidx.collection:collection:1.2.0"
92+
implementation "androidx.fragment:fragment:1.5.5"
93+
implementation "androidx.lifecycle:lifecycle-common:2.5.1"
94+
implementation "androidx.vectordrawable:vectordrawable:1.1.0"
95+
implementation "androidx.vectordrawable:vectordrawable-animated:1.1.0"
96+
implementation "androidx.customview:customview:1.1.0"
97+
implementation "androidx.customview:customview-poolingcontainer:1.0.0"
98+
8699
implementation roots.AndroidXCore
87100
implementation roots.AndroidXCollection
88101
implementation roots.AndroidXRecyclerview

‎hidden-api/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

‎hidden-api/build.gradle.kts

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
plugins {
2+
id("com.android.library")
3+
id("org.jetbrains.kotlin.android")
4+
}
5+
6+
android {
7+
compileSdk = 33
8+
namespace = "com.android.internal"
9+
buildTypes {
10+
release {
11+
isMinifyEnabled = false
12+
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
13+
}
14+
}
15+
compileOptions {
16+
sourceCompatibility = JavaVersion.VERSION_11
17+
targetCompatibility = JavaVersion.VERSION_11
18+
}
19+
kotlinOptions {
20+
jvmTarget = JavaVersion.VERSION_11.majorVersion
21+
}
22+
}
23+
24+
dependencies {
25+
implementation("androidx.annotation:annotation:1.5.0")
26+
}

‎hidden-api/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package android.view;
2+
3+
import android.os.Build;
4+
5+
import androidx.annotation.RequiresApi;
6+
7+
import com.android.internal.graphics.drawable.BackgroundBlurDrawable;
8+
9+
public class ViewRootImpl {
10+
@RequiresApi(Build.VERSION_CODES.S)
11+
public BackgroundBlurDrawable createBackgroundBlurDrawable() {
12+
throw new RuntimeException("Stub!");
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.android.internal.graphics.drawable;
2+
3+
import android.graphics.drawable.Drawable;
4+
import android.os.Build;
5+
6+
import androidx.annotation.RequiresApi;
7+
8+
@RequiresApi(Build.VERSION_CODES.S)
9+
public abstract class BackgroundBlurDrawable extends Drawable { }

‎settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ dependencyResolutionManagement {
2121
}
2222
rootProject.name = "Cemiuiler"
2323
include ':app'
24+
include ':hidden-api'

0 commit comments

Comments
 (0)
Please sign in to comment.