-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
189 additions
and
92 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.binbin.androidowner | ||
|
||
import android.app.admin.DevicePolicyManager | ||
import android.content.ComponentName | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.material3.Button | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
fun Security(myDpm:DevicePolicyManager,myComponent:ComponentName){ | ||
Column { | ||
Button(onClick = {myDpm.clearResetPasswordToken(myComponent)}) { | ||
Text("清除重置密码令牌") | ||
} | ||
Button(onClick = {myDpm.setResetPasswordToken(myComponent, byteArrayOf(32))}) { | ||
Text("设置重置密码令牌") | ||
} | ||
Text("不知道上面两个东西干啥用的") | ||
Button(onClick = {myDpm.resetPassword(null,0)}) { | ||
Text("清除密码") | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.
0a60aff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
打了个Security.kt的草稿,将会用于密码和证书相关操作