Questions tagged [cosu]
48 questions
1
vote
2 answers
Android Single-Use Devices (COSU) fails to enter lockTaskMode after the reboot
I'm trying to create a single-use devices (kiosk app) and follow tutorial below:
https://codelabs.developers.google.com/codelabs/cosu/index.html?index=..%2F..%2Findex#0
The code works very normal, except that "reboot" case.
Every after reboot, it…

paugoo
- 138
- 1
- 2
- 11
1
vote
1 answer
How to go back to InCallUI when user hit the back button in LockTask mode?
For one of my customer, I have an Android COSU app in LockTask mode.
On an incoming/outgoing call, the InCallUI is well displayed because the phone app of the device is whitelisted.
However, in LockTask mode, the back button is still enabled in the…

Doc_1faux
- 141
- 5
- 15
1
vote
2 answers
How to run ADB command programmatically on rooted android device
I need to run adb commands programmatically on rooted android device.
The following is not working, no exception just not working:
Process process = Runtime.getRuntime().exec(command);
process.waitFor();
Also, if I want to run command as a specific…

pratiti-systematix
- 792
- 11
- 28
1
vote
1 answer
Provisioning Device Owner and CosuApp
I setup a device owner application provisioning app as shown in google sample NFC Provisioning , with additional features to setup EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION and EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM. I…

lukaspp
- 1,059
- 10
- 15
1
vote
1 answer
How to enable task locking in Android 5.0 production devices
I have an app for my company(Enterprise) owned devices , which works as single use app, so it locks itself and becomes single use app, for that it needs to be enabled as device owner, for testing i am using adb shell command and it works.
my…

Vikas Pandey
- 1,115
- 1
- 15
- 25
1
vote
1 answer
Kiosk-Mode Bluetooth-Request
I´m programming a Kiosk-Mode/COSU/Single-Purpose/LockTaskMode App, which have to be possible to accept a bluetooth pairing request form another phone. The problem is as long as the app is in LockTaskMode the request doesn´t show up or you could say…

J. Hock
- 125
- 1
- 11
1
vote
1 answer
Android Kiosk Mode without lockscreen
I´m trying to configure a Android Single Use app. I´m using a Huawei P8 Lite with Android 6.0 and a Samsung Galaxy A3 2017 with Android 6.0. I´ve set the app to Device Owner and everything works well. I´ve deactivated Toast messages via adb and set…

J. Hock
- 125
- 1
- 11
1
vote
1 answer
Android/COSU: How is the app supposed to auto-run after install
My question is specifically about one line in Android documentation here. https://developers.google.com/android/work/prov-devices#set_up_device_owner_mode_google_account . Particularly item #2 where it says
The DPC is automatically downloaded to…

Gary Kumfert
- 225
- 1
- 2
- 11
1
vote
1 answer
Android: prevent user from interacting with OS
I'm building an android app for a custom android device bought for a business point-of-sale. We want customers to use our android device and app without being able to interact with the android system in any way. This means no navigation bar with…

Jenever
- 500
- 5
- 17
0
votes
0 answers
Android Management API - Access Device Settings Issue
I have an application that runs as a Kiosk app using the Android Management API. Inside the app is a hidden menu that is only accessible by pincode. Within this Hidden menu is an "Open Phone Settings" button which opens device settings.
I have…

Jamie
- 11
- 3
0
votes
1 answer
Is there any way to hide action bars after using an HTML5 color picker?
I have a webview-based Android app full-screen, running in COSU mode. Each time I pick a color using an HTML5 , the hidden action bars are shown again, and I can't hide them, unless I close the app and open it again.
Is there…

RDM
- 56
- 8
0
votes
1 answer
How to get the Location information of a device using android management API
@Fred,
Using Android Management API how can we get the Location information of a device. Do we need to install any 3rd party application to get the location? How Location modes impact Location information?
0
votes
0 answers
Preventing access to setting at startup when using COSU
We have created a COSU application using the method descried here: HOW TO TURN YOUR ANDROID APPLICATION INTO A KIOSK. We need a way to compeletly prevent the phone users from accessing anything but apps we authorize. It works very well but have one…
0
votes
1 answer
Android management API: find device in list of devices on android Q
We have a cosu app, that can manage its lock state with calls to Android management API. To do this, we receive a list of devices with devices.list query, compare each device's hardwareInfo.serialNumber with IMEI, received from Build.getSerial() and…

anro
- 1,300
- 16
- 30
0
votes
1 answer
How to create updateable COSU App on Android TV [STB]
I need some help with my app that I build for Android TV.
I already make a COSU app for Android TV, but the problem is I need to use adb shell to make my app as device owner. Is there a way to make my app as device owner programmatically? Because I…

GunSky7
- 25
- 8