-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from SimpleAppProjects/develop
v1.13.1
- Loading branch information
Showing
57 changed files
with
1,920 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
plugins { | ||
id 'com.android.library' | ||
id 'org.jetbrains.kotlin.android' | ||
} | ||
|
||
android { | ||
compileSdk rootProject.compileSdkVersion | ||
|
||
defaultConfig { | ||
minSdkVersion rootProject.minSdkVersion | ||
targetSdkVersion rootProject.targetSdkVersion | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles "consumer-rules.pro" | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
minifyEnabled false | ||
} | ||
release { | ||
minifyEnabled true | ||
} | ||
} | ||
|
||
compileOptions { | ||
// Sets Java compatibility to Java 8 | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(17) | ||
} | ||
|
||
namespace 'com.thewizrd.wearsettings.hidden_api' | ||
} | ||
|
||
dependencies { | ||
annotationProcessor 'dev.rikka.tools.refine:annotation-processor:4.3.0' | ||
compileOnly 'dev.rikka.tools.refine:annotation:4.3.0' | ||
implementation 'androidx.annotation:annotation:1.7.0' | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest /> |
23 changes: 23 additions & 0 deletions
23
hidden-api/src/main/java/android/net/wifi/IWifiManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package android.net.wifi; | ||
|
||
import android.os.Binder; | ||
import android.os.Build; | ||
import android.os.IBinder; | ||
import android.os.IInterface; | ||
|
||
import androidx.annotation.DeprecatedSinceApi; | ||
import androidx.annotation.RequiresApi; | ||
|
||
public interface IWifiManager extends IInterface { | ||
@DeprecatedSinceApi(api = Build.VERSION_CODES.N_MR1) | ||
boolean setWifiEnabled(boolean enable); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.N_MR1) | ||
boolean setWifiEnabled(String packageName, boolean enable); | ||
|
||
abstract class Stub extends Binder implements IWifiManager { | ||
public static IWifiManager asInterface(IBinder obj) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
hidden-api/src/main/java/com/android/internal/telephony/ITelephony.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.android.internal.telephony; | ||
|
||
import android.os.Binder; | ||
import android.os.Build; | ||
import android.os.IBinder; | ||
import android.os.IInterface; | ||
|
||
import androidx.annotation.DeprecatedSinceApi; | ||
import androidx.annotation.RequiresApi; | ||
|
||
public interface ITelephony extends IInterface { | ||
@DeprecatedSinceApi(api = Build.VERSION_CODES.P) | ||
void setDataEnabled(int subId, boolean enable); | ||
|
||
@DeprecatedSinceApi(api = Build.VERSION_CODES.P) | ||
boolean getDataEnabled(int subId); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.P) | ||
@DeprecatedSinceApi(api = Build.VERSION_CODES.S) | ||
void setUserDataEnabled(int subId, boolean enable); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.P) | ||
@DeprecatedSinceApi(api = Build.VERSION_CODES.S) | ||
boolean isUserDataEnabled(int subId); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.S) | ||
@DeprecatedSinceApi(api = Build.VERSION_CODES.TIRAMISU) | ||
void setDataEnabledForReason(int subId, int reason, boolean enable); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.S) | ||
boolean isDataEnabledForReason(int subId, int reason); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.TIRAMISU) | ||
void setDataEnabledForReason(int subId, int reason, boolean enable, String callingPackage); | ||
|
||
@DeprecatedSinceApi(api = Build.VERSION_CODES.TIRAMISU) | ||
boolean enableDataConnectivity(); | ||
|
||
@DeprecatedSinceApi(api = Build.VERSION_CODES.TIRAMISU) | ||
boolean disableDataConnectivity(); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.TIRAMISU) | ||
boolean enableDataConnectivity(String callingPackage); | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.TIRAMISU) | ||
boolean disableDataConnectivity(String callingPackage); | ||
|
||
abstract class Stub extends Binder implements ITelephony { | ||
public static ITelephony asInterface(IBinder obj) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.