Add an Enterprise Browser link into Lockdown

Hi,

our customer needs to add a Zebra Enteprise Browser into lockdown scrren.

Zebra provided me the intent to launch and it works correctly if I use ADB.

When i launch the intent command, Enterprise Browser is launched with the configured webpage.

The ADB command is the follwing:

adb shell am start -a com.rho.rhoelements.SHORTCUT_ACTION -c android.intent.category.DEFAULT -n "com.zebra.mdna.enterprisebrowser/com.rhomobile.rhodes.RhodesActivity" -d http://www.google.com -t "com.rho.rhoelements/application" --ei "id" -702889725

How can I use it to add an Home Screen item using SOTI syntax?

Thank you very much.

Nicolò

2 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

I currently don't have any Zebra hardware to do any test.  You have to try it out yourself.

Add a custom lockdown item with script://%sdcard%/Download/abc.cmd  (or whatever folder or script filename appropriate to your case), and deploy the script file (i.e. "abc.cmd" above) with the following content onto the targeted device:

sendintent -a  "intent:http://www.google.com#Intent;com.rho.rhoelements/application;action=com.rho.rhoelements.SHORTCUT_ACTION;component=com.zebra.mdna.enterprisebrowser/com.rhomobile.rhodes.RhodesActivity;category=android.intent.category.DEFAULT;i.id=-702889725;end"

I am not quite sure whether MobiControl device agent accepts NEGATIVE argument -702889725 for the extra key "id" of type "integer".  If not, maybe there is a need to specify it in hex number format, or use some other way.   Anyway,  please let us know whether the above script works.   If not, please capture screenshot(s) or log entries for any warning/error message(s).

M
MiKe
8 months ago

Hi,

if anyone would be interested in this. I've looked into Raymond's suggested command and there was one thing missing - "type=" so fixed command is:

sendintent -a  "intent:http://www.google.com#Intent;type=com.rho.rhoelements/application;action=com.rho.rhoelements.SHORTCUT_ACTION;component=com.zebra.mdna.enterprisebrowser/com.rhomobile.rhodes.RhodesActivity;category=android.intent.category.DEFAULT;i.id=-702889725;end"

I've successfully tested on Zebra MC93 A13 with EB 5.0.0.13

EDIT: for multiple sites is needed to change i.id value (last digit should be sufficient) for each otherwise it will open previous session.

Hi Raymond, I tried to follow your procedure but I obtain the following error into device logs:

Custom log (Errore di sintassi dello script: unknown EXTRA type at index 36: intent:http://www.google.com#Intent;com.rho.rhoelements/application;action=com.rho.rhoelements.SHORTCUT_ACTION;component=com.zebra.mdna.enterprisebrowser/com.rhomobile.rhodes.RhodesActivity;category=android.intent.category.DEFAULT;i.id=-702889725;end)

It says that there is a syntax error.

Any suggestion?

Thank you.

Nicolò

ZC
Zafer Cigdem
2 years ago

Hi Nicolò,

What do you see for a bundle ID for this browser, can you please confirm from Device > Applications > Search for the browser name, similar to below. 

As I don't have that device as well, I can't test it by myself, but your bundle ID would be an issue. You may use com.rho.rhoelements instead of "com.rho.rhoelements/application " for the #Intent; section. Please let us know what you see above section, and then we'll do our best. I hope it helps. Thank you

Zafer

Hi Zafer,

bundle ID is correct

A
AMMOD@SOTI
a year ago

Hi Nicolò Venchierutti,

Thanks for posting on SOTI Pulse, Thanks Rafael, and Raymond for responding to the post, your expertise and willingness to help are greatly appreciated!

Have you had an opportunity to test the suggested solutions by Raymond and Rafael, and has it successfully addressed your query?

If you have found other solutions then please do share them as well 

If not, or If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.

Hi, I haven't found a solution yet, but I changed approach by using Tabbar functionality into Enterprise Home Screen.

M
MiKe
8 months ago

Hi,

I posted solution here as an answer to Raymond post if you are still interested (you could also mark it as a solution if it works for you).

Dear Mike,

the solution still doesn't exist, so it's better to keep the post open in case someone wants to contribute .

Thank you.

Nicolò

M
MiKe
8 months ago

Dear Nicolo,

what's wrong with suggested command? (I've updated it again after trying to open different urls)

Dear Mike,

sorry I didn't see your post as answer.

I cannot try the solution but I suppose you did, so for me it can be marked as SOLVED.

Thank you.

M
MiKe
8 months ago

Repost (from answer to Raymond higher in this thread):

Hi,

if anyone would be interested in this. I've looked into Raymond's suggested command and there was one thing missing - "type=" so fixed command is:

sendintent -a  "intent:http://www.google.com#Intent;type=com.rho.rhoelements/application;action=com.rho.rhoelements.SHORTCUT_ACTION;component=com.zebra.mdna.enterprisebrowser/com.rhomobile.rhodes.RhodesActivity;category=android.intent.category.DEFAULT;i.id=-702889725;end"

I've successfully tested on Zebra MC93 A13 with EB 5.0.0.13

EDIT: for multiple sites is needed to change i.id value (last digit should be sufficient) for each otherwise it will open previous session.