Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
DeviceAdminReceiverを復元
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Apr 15, 2023
1 parent 2120dd8 commit ed402fa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId 'jp.co.benesse.touch.setuplogin'
minSdk 28
targetSdk 28
versionCode 16
versionName "2.0.1"
versionCode 17
versionName "2.1"
}

signingConfigs {
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
</intent-filter>
</activity>

<receiver
android:name=".DeviceAdminReceiver"
android:exported="false"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin" />
</receiver>

</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package jp.co.benesse.touch.setuplogin;

public class DeviceAdminReceiver extends android.app.admin.DeviceAdminReceiver {
}
2 changes: 2 additions & 0 deletions app/src/main/res/xml/device_admin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<device-admin />

0 comments on commit ed402fa

Please sign in to comment.