-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default configurations for
rooting
and antipiracy
modules, …
…and pre-packaged DSLs. Now every Kevlar entry point requires a DSL: removed dfu config (so that users can intentionally choose which one to use). Documentation updates w.r.t. the configuration of libraries (wip). Cleaned up example code & website configuration. Polishing here&there.
- Loading branch information
1 parent
9a8b808
commit 632b2f4
Showing
19 changed files
with
375 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -75,7 +75,6 @@ private val rooting = KevlarRooting { | |
root() | ||
magisk() | ||
busybox() | ||
toybox() | ||
xposed() | ||
} | ||
|
||
|
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,42 @@ | ||
# Reference | ||
|
||
The complete rooting configuration is as follows. | ||
|
||
```kotlin title="Complete Rooting settings" | ||
private val rooting = KevlarRooting { | ||
targets { | ||
root() | ||
magisk() | ||
busybox() | ||
xposed() | ||
} | ||
|
||
status { | ||
testKeys() | ||
emulator() | ||
selinux { | ||
flagPermissive() | ||
} | ||
} | ||
|
||
allowExplicitRootCheck() | ||
} | ||
``` | ||
|
||
|
||
!!! warning | ||
Bear in mind, this kind of configuration is exhaustive and should be used just in a few cases where you *really* need to detect all of those conditions. | ||
Only including what your application's security environment requires is a key step in properly configuring the library. | ||
|
||
|
||
Unlike other Kevlar modules, here you can actually require two different types of attestation: you have `attestateTargets` and `attestateRooting`. | ||
Once you require the attestation through any of those two methods, any discrepancies between your expected configuration (w.r.t. the invoked attestation type) and the actual device status will be reported back to you. | ||
|
||
```kotlin | ||
withContext(externalDispatcher) { | ||
val targetAttestation = rooting.attestateTargets(context) | ||
val statusAttestation = rooting.attestateStatus() | ||
} | ||
``` | ||
|
||
|
Oops, something went wrong.