Skip to content

Commit

Permalink
Merge pull request #51 from firmianay/dev2
Browse files Browse the repository at this point in the history
add more protectionLevel
  • Loading branch information
nkbai committed Nov 3, 2023
2 parents ee56540 + 68f84e6 commit 169459c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/kotlin/net/bytedance/security/app/PLUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ import java.io.PrintWriter
import java.util.concurrent.atomic.AtomicInteger

object PLUtils {
const val LevelNormal = "normal"
const val LevelDanger = "dangerous"
const val LevelSig = "signature"
const val LevelSigOrSys = "signatureOrSystem"
const val LevelNormal = "normal" // 0x0
const val LevelDanger = "dangerous" // 0x1
const val LevelSig = "signature" // 0x2
const val LevelSigOrSys = "signatureOrSystem" // 0x3
const val LevelInternal = "internal" // 0x4
const val LevelSigAndPri = "signature|privileged" // 0x2+0x10

var JAVA_SRC = "/java/"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ object AndroidUtils {
1 -> protection = PLUtils.LevelDanger
2 -> protection = PLUtils.LevelSig
3 -> protection = PLUtils.LevelSigOrSys
4 -> protection = PLUtils.LevelInternal
18 -> protection = PLUtils.LevelSigAndPri
}
tmpPermissionMap[permission] = protection
} else {
Expand Down

0 comments on commit 169459c

Please sign in to comment.