Wildcard for package name?

Solved
RB
Robbie Bordeaux
Border States Industries, Inc.

I have a conflict that I have a tedious workaround to right now that would like to solve with one action.

We have a backlog Android 7 devices and now with the new hardware using Android 9.

The difference in the camera app is in the package name org.codeaurora.snapcam vs org.codeaurora.snapcamera.

Is there a wildcard optioning for the Launch:// package name that would allow me to use either naming of the camera or is the only option here to have a second profile fully setup with that new camera name?

I was also interested in the Script File setup, but have found very little in helpful notes.

Would be something interesting to be if apilevel is 24/25, use snapcam; if 28, then use snapcamera?

4 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
4 years ago

While a wildcard might be helpful there I don't know if it would actually work. You could explore some complex javascripting in the lockdown itself to check the device for some property and then dynamically adjust the lockdown based on that context. However, I don't think its worth re-inventing the wheel when its just as easy to keep to different Lockdown Profiles and have then target different criteria. It is super easy to target Profiles by any criteria that you're looking for like OS version. Clone your existing Profile, modify the one line of the Lockdown configuration and then assign it with a filter criteria for the given OS version, then do the opposite to the other Profile. 

Solution
RB
Robbie Bordeaux
4 years ago

The conflict that comes with the multiple profiles is the innevitable issue with users that have to reset the device due to hardware conflicts that can arise or a user just doing so.

When they setup, most would not know what version they are on to appropriately scan in to the SOTI setup we have.

So though the double-profile is probably the only solution due to limitations, I would like to know more on what a script setup would be there? is it something that is running a specified file? would this be something like: file:///%sdcard%downloads/script.js ?

RC
Raymond Chan Diamond Contributor
4 years ago

"script://" rather than "file://" is used to reference scrpt file.