« first day (1854 days earlier)      last day (1396 days later) » 

4:17 AM
Good Morning
 
5:03 AM
Good Morning All
 
morn' guys..
Jay Mahadev!
 
5:41 AM
HI
I am working on COSU app and manually we have to execute the command to set device owner so I was thinking to execute that command via programmatically so is there any other way so that I can share build with client because I can not ask client run that command manually?
 
5:55 AM
what error you have faced ?
 
@Radhey it's showing nothing
try {
ShellExecuter exe = new ShellExecuter();
String outp = exe.Executer("adb shell dpm set-device-owner com.regium.dssumup/.DeviceAdminReceiver");
Log.e("Error",""+outp);

}catch (Exception e){
@Radhey debug the code getting same permission issue
 
6:15 AM
have you set any meta tag in manifest file for the same?
 
I have one receiver

<receiver
android:name="com.regiumconsulting.donationssumup.DeviceAdminReceiver"
android:description="@string/app_name"
android:label="@string/app_name"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin_receiver" />
<intent-filter>
<action android:name="android.intent.action.DEVICE_ADMIN_ENABLED" />
<action android:name="android.intent.action.PROFILE_PROVISIONING_COMPLETE" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
 
@Ninja
 
exe.Executer("adb shell dpm set-device-owner com.regium.dssumup/.DeviceAdminReceiver") // compare package name with
android:name="com.regiumconsulting.donationssumup.DeviceAdminReceiver" // this
 
@Radhey yes I am using correct one actually I was trying to generate any exception
 
6:34 AM
Good Morning
@AshishJain have you found solution about that things ?
@SunishaSindhu YES
 
@Ninja No
 
ohh
have you checked that above question which was shared by Shailesh ?
 
@Ninja Yes, actually to make device admin I am trying to execute that command
I think that command is not executable because I have tried another one and its running
I think I should try this but confused which process I have to follow
https://developers.google.com/android/work/play/emm-api/prov-devices
 
7:05 AM
@AshishJain As i said that i have done this with another but not with Admin but i think you can go with google doc
 
 
6 hours later…
1:12 PM
 

« first day (1854 days earlier)      last day (1396 days later) »