Skip to content
Merged
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
31 changes: 11 additions & 20 deletions Bcore/black-fake/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
compileSdk rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdk
consumerProguardFiles "consumer-rules.pro"
}

Expand All @@ -25,23 +25,18 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}

testOptions {
unitTests.returnDefaultValues = true
}

lintOptions {
checkReleaseBuilds false
lint {
abortOnError false
warningsAsErrors false
disable "UnusedResources", 'RestrictedApi'
textOutput "stdout"
textReport false
checkOnly 'NewApi', 'InlinedApi'
checkReleaseBuilds false
disable 'UnusedResources', 'RestrictedApi'
textOutput file('stdout')
textReport false
warningsAsErrors false
}
}

Expand All @@ -56,7 +51,3 @@ dependencies {
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ public int describeContents() {
}

@Override
public void writeToParcel(Parcel dest, int flags) {
}
public void writeToParcel(Parcel dest, int flags) { }
}
35 changes: 13 additions & 22 deletions Bcore/black-hook/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
compileSdk rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
minSdkVersion rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdk

consumerProguardFiles "consumer-rules.pro"
}
Expand All @@ -26,23 +26,18 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}

testOptions {
unitTests.returnDefaultValues = true
}

lintOptions {
checkReleaseBuilds false
lint {
abortOnError false
warningsAsErrors false
disable "UnusedResources", 'RestrictedApi'
textOutput "stdout"
textReport false
checkOnly 'NewApi', 'InlinedApi'
checkReleaseBuilds false
disable 'UnusedResources', 'RestrictedApi'
textOutput file('stdout')
textReport false
warningsAsErrors false
}
}

Expand All @@ -53,12 +48,8 @@ tasks.withType(Javadoc) {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
50 changes: 19 additions & 31 deletions Bcore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion 32
compileSdk rootProject.ext.compileSdk

defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.targetSdkVersion
minSdkVersion rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdk

consumerProguardFiles "consumer-rules.pro"
ndk {
Expand Down Expand Up @@ -37,38 +39,29 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}

testOptions {
unitTests.returnDefaultValues = true
}

lint {
abortOnError false
checkOnly 'NewApi', 'InlinedApi'
checkReleaseBuilds false
disable 'UnusedResources', 'RestrictedApi'
textOutput file('stdout')
textReport false
warningsAsErrors false
}

defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
}

lintOptions {
checkReleaseBuilds false
abortOnError false
warningsAsErrors false
disable "UnusedResources", 'RestrictedApi'
textOutput "stdout"
textReport false
checkOnly 'NewApi', 'InlinedApi'
}

buildFeatures {
prefab true
}

packagingOptions {
exclude '**/libshadowhook.so'
}
}

tasks.withType(Javadoc) {
Expand All @@ -79,12 +72,11 @@ tasks.withType(Javadoc) {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.appcompat:appcompat:1.5.0'

implementation "com.github.CodingGay.BlackReflection:core:$rootProject.ext.blackReflection"
implementation 'org.lsposed.hiddenapibypass:hiddenapibypass:4.3'
implementation 'com.bytedance.android:shadowhook:1.0.3'
implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0'
implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.1.0'

implementation project(':Bcore:black-fake')
implementation project(':Bcore:black-hook')
Expand All @@ -96,7 +88,3 @@ dependencies {
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
18 changes: 7 additions & 11 deletions Bcore/pine-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion
ndkVersion rootProject.ext.ndkVersion

defaultConfig {
minSdkVersion 19
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
minSdkVersion rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdk

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down Expand Up @@ -49,7 +49,3 @@ dependencies {
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
22 changes: 10 additions & 12 deletions Bcore/pine-xposed-res/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk

defaultConfig {
minSdkVersion 19
targetSdkVersion rootProject.ext.targetSdkVersion
minSdkVersion rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdk

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand All @@ -33,11 +35,11 @@ android {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}*/
}

buildFeatures {
// prefab true
}
prefab true
}*/
}

dependencies {
Expand All @@ -48,7 +50,3 @@ dependencies {
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
18 changes: 7 additions & 11 deletions Bcore/pine-xposed/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileSdk rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 19
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
minSdkVersion rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdk

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand All @@ -35,7 +35,3 @@ dependencies {
implementation "androidx.core:core-ktx:$ktx_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

repositories {
mavenCentral()
}
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@ public static <T> T[] addAll(T[] array1, T... array2) {
* - safer, in case check turns out to be too strict
*/
final Class<?> type2 = array2.getClass().getComponentType();
if (!type1.isAssignableFrom(type2)){
if (!type1.isAssignableFrom(type2)) {
throw new IllegalArgumentException("Cannot store "+type2.getName()+" in an array of "
+type1.getName(), ase);
}
Expand Down Expand Up @@ -3711,7 +3711,7 @@ public static double[] addAll(double[] array1, double... array2) {
*/
public static <T> T[] add(T[] array, T element) {
Class<?> type;
if (array != null){
if (array != null) {
type = array.getClass();
} else if (element != null) {
type = element.getClass();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,7 @@ public static String removeStart(String str, String remove) {
if (isEmpty(str) || isEmpty(remove)) {
return str;
}
if (str.startsWith(remove)){
if (str.startsWith(remove)) {
return str.substring(remove.length());
}
return str;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ interface IBActivityManagerService {
void getIntentSender(in IBinder target, String packageName, int uid, int userId);
String getPackageForIntentSender(in IBinder target, int userId);
int getUidForIntentSender(in IBinder target, int userId);

void setServiceForeground(in ComponentName className, in IBinder token, int id, in Notification notification, int flags, int foregroundServiceType, int userId);
}
Loading