Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Adding device admin policy metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5ECF4ULT committed May 27, 2020
1 parent adbb14e commit 4bc075b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
<receiver
android:name=".listeners.DeviceAdminListener"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="at.tacticaldevc.oat"
android:resource="@xml/device_admin_policies" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
<action android:name="android.app.action.DEVICE_ADMIN_DISABLES" />
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/java/at/tacticaldevc/oat/utils/DA.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ public static void lockdown_deactivate(Context ctx, String phone) {
SMSCom.replyDeviceUnlocked(ctx, phone);
}
}

public static void request_deviceAdmin(Context ctx) {

}
}

0 comments on commit 4bc075b

Please sign in to comment.