forked from ReChronoRain/HyperCeiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: openbydefaultsetting hook failed on sc ver > 10.0
- Loading branch information
Showing
14 changed files
with
339 additions
and
160 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
377 changes: 218 additions & 159 deletions
377
...main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/app/OpenByDefaultSetting.kt
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,14 @@ | ||
plugins { | ||
alias(libs.plugins.androidLibrary) | ||
} | ||
|
||
android { | ||
namespace = "miui.os" | ||
compileSdk = 35 | ||
} | ||
|
||
dependencies { | ||
annotationProcessor(libs.annotation.processor) | ||
compileOnly(libs.refine.annotation) | ||
compileOnly(libs.androidx.preference) | ||
} |
10 changes: 10 additions & 0 deletions
10
miuistub/src/main/java/android/app/ActivityManagerHidden.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,10 @@ | ||
package android.app; | ||
|
||
import dev.rikka.tools.refine.RefineAs; | ||
|
||
@RefineAs(ActivityManager.class) | ||
public class ActivityManagerHidden { | ||
public static int getCurrentUser() { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package android.content; | ||
|
||
import android.os.UserHandle; | ||
|
||
import dev.rikka.tools.refine.RefineAs; | ||
|
||
@RefineAs(Context.class) | ||
public class ContextHidden { | ||
public void startActivityAsUser(Intent intent, | ||
UserHandle user) { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package android.os; | ||
|
||
public class SystemProperties { | ||
private SystemProperties() { | ||
|
||
} | ||
|
||
public static String get(String key) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static int getInt(String string, int i) { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package android.os; | ||
|
||
import dev.rikka.tools.refine.RefineAs; | ||
|
||
@RefineAs(UserHandle.class) | ||
public class UserHandleHidden { | ||
public static final int USER_ALL = -1; | ||
public static final int USER_CURRENT = -2; | ||
|
||
public static final UserHandle CURRENT = null /*new UserHandle(USER_CURRENT) */; | ||
|
||
public static UserHandle of(int userId) { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package miui.os; | ||
|
||
public class Build extends android.os.Build { | ||
public static boolean IS_INTERNATIONAL_BUILD; | ||
} |
18 changes: 18 additions & 0 deletions
18
miuistub/src/main/java/miuix/preference/TextPreference.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,18 @@ | ||
package miuix.preference; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.preference.Preference; | ||
|
||
public class TextPreference extends Preference { | ||
public TextPreference(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) { | ||
super(context, attrs, defStyleAttr, defStyleRes); | ||
} | ||
|
||
public void setText(String str) { | ||
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