Enabling camera in Lockdown

Solved Locked

Hi,

I've got a device which is in Lockdown, but it also needs access to the camera. Currently, the camera isn't working.

First I tried issuing the following script command:

enable_system_app com.sec.android.app.camera

Then I tried to take the steps shown here:

https://discussions.soti.net/thread/enable-built-in-camera-within-kiosk-mode/

and I've also ensured that "Lockdown type" is not set to "Activity suppression".

However, this doesn't work. Also, if I enable the camera option in the lockdown screen and click the camera, I get a "package not found" message. Furthermore, the log will get a new entry with the following text: 

Error message received from device (Package [com.sec.android.app.camera] does not contain default activity)

Any idea what could be the culprit?

Regards,

Daníel

4 years ago
SOTI MobiControl
ANSWERS
DS

Hi,

yes this has been resolved.

In our case, the steps needed were the following:

use the enable_system_app command for both the built-in camera, AND the Zebra one:

enable_system_app com.sec.android.app.camera

enable_system_app org.codeaurora.snapcam

Then, on the Lockscreen, we had to add "Launch://org.codeaurora.snapcam" to the Custom Home Screen, but then edited the HTML template to ensure it isn't displayed.

Regards,

Daníel

Solution
C
Christophe
4 years ago (edited 4 years ago)

Hello,

tell us witch device you use and what type of enroll you use (android + / android entreprise)

Also are you sure about the name of the activity ?

remote connexion on a device -> open camera -> and type this script -> identify_activity 

and try with the result 

If i do this for my device -> zebra tc75x i have this 

org.codeaurora.snapcam/com.android.camero.cameraActivity 

Hope this help, i'm not expert :)

best wishs

JB
Jay Bruins
4 years ago

i just did the same on a Samsung A10

i used com.sec.android.app.camera/.camera 

also make sure that the camera is not disabled via feature control

J
JSMOD@SOTI
4 years ago

Hi Daniel,

Thank you for your post on SOTI Central.

Were you able to resolve this issue? If so, please mark the appropriate comment as 'Solution' to help others find the answer.

Adding to what Christophe has suggested, you can also access ADB on the device either via Remote Control Shell or USB and use the command "pm list packages". This should return a list of all packages on the device, which you can use to find the bundle ID for the camera app. Once you have this, you can place it on your Lockdown with the "Launch://<bundle ID>" syntax.

Kind regards,