Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
34b2f525
Commit
34b2f525
authored
Jun 05, 2022
by
vvb2060
Committed by
John Wu
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update proguard-rules.pro
parent
569e9ad9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
proguard-rules.pro
app/proguard-rules.pro
+8
-18
SignBoot.java
app/src/main/java/com/topjohnwu/magisk/signing/SignBoot.java
+0
-2
No files found.
app/proguard-rules.pro
View file @
34b2f525
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/topjohnwu/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# 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 *;
#}
# Parcelable
# Parcelable
-
keepclassmembers
class
*
implements
android
.
os
.
Parcelable
{
-
keepclassmembers
class
*
implements
android
.
os
.
Parcelable
{
public
static
final
**
CREATOR
;
public
static
final
**
CREATOR
;
...
@@ -26,6 +8,9 @@
...
@@ -26,6 +8,9 @@
public
static
void
check
*
(...);
public
static
void
check
*
(...);
public
static
void
throw
*
(...);
public
static
void
throw
*
(...);
}
}
-
assumenosideeffects
class
java
.
util
.
Objects
{
public
static
**
requireNonNull
(...);
}
# Stub
# Stub
-
keep
class
com
.
topjohnwu
.
magisk
.
core
.
App
{
<
init
>
(
java
.
lang
.
Object
);
}
-
keep
class
com
.
topjohnwu
.
magisk
.
core
.
App
{
<
init
>
(
java
.
lang
.
Object
);
}
...
@@ -34,6 +19,11 @@
...
@@ -34,6 +19,11 @@
boolean
mActivityHandlesUiMode
;
boolean
mActivityHandlesUiMode
;
}
}
# main
-
keep
,
allowoptimization
public
class
com
.
topjohnwu
.
magisk
.
signing
.
SignBoot
{
public
static
void
main
(
java
.
lang
.
String
[]);
}
# Strip Timber verbose and debug logging
# Strip Timber verbose and debug logging
-
assumenosideeffects
class
timber
.
log
.
Timber
$
Tree
{
-
assumenosideeffects
class
timber
.
log
.
Timber
$
Tree
{
public
void
v
(
**
);
public
void
v
(
**
);
...
...
app/src/main/java/com/topjohnwu/magisk/signing/SignBoot.java
View file @
34b2f525
package
com
.
topjohnwu
.
magisk
.
signing
;
package
com
.
topjohnwu
.
magisk
.
signing
;
import
androidx.annotation.Keep
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.NonNull
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
...
@@ -33,7 +32,6 @@ import java.security.cert.CertificateFactory;
...
@@ -33,7 +32,6 @@ import java.security.cert.CertificateFactory;
import
java.security.cert.X509Certificate
;
import
java.security.cert.X509Certificate
;
import
java.util.Arrays
;
import
java.util.Arrays
;
@Keep
public
class
SignBoot
{
public
class
SignBoot
{
private
static
final
int
BOOT_IMAGE_HEADER_V1_RECOVERY_DTBO_SIZE_OFFSET
=
1632
;
private
static
final
int
BOOT_IMAGE_HEADER_V1_RECOVERY_DTBO_SIZE_OFFSET
=
1632
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment