MDM - Android - How to push a fullscreen homepage bookmark via MDM or scripted

419 views
Skip to first unread message

Kenneth Thorman

unread,
Oct 7, 2015, 9:38:15 AM10/7/15
to Chromium-discuss
Hi

According to https://developer.chrome.com/multidevice/android/installtohomescreen you can add a bookmark to your homepage on an Android device, that will work more or less like a normal android app ( even if it is a normal webpage url ). This part is working great.

Question: How to automate this in order to push one specific url using a MDM system - so the bookmark results in a fullscreen bookmark?

I am trying to push a web based elderly-care solution to the homepage of a set of MDM controlled devices. All attempts so far has failed.

I have tried diving into the Google Chromium code to see if I could figure out what happening. These are my notes on this, but I have not found anything really tangible on this (or at least I am not aware of if I did ) . 

Any help to guide me on if this is possible to do automated would be greatly appreciated

Trying to figure out what is happening internally in Chromium when you add a homepage shortcut that forces the app to go fullscreen, to push this via MDM system Overall description https://developer.chrome.com/multidevice/android/installtohomescreen

Chromium code working backwards in the code (topmost to more detailed)

  1. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/renderer/web_apps.cc&q=mobile-web-app-capable&sq=package:chromium&l=177
  2. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/web_application_info.h&sq=package:chromium&l=52&rcl=1443756686
  3. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/web_application_info.cc&sq=package:chromium
  4. https://code.google.com/p/chromium/codesearch#search/&q=mobile_capable&sq=package:chromium&type=cs
  5. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc&q=mobile_capable&sq=package:chromium&type=cs&l=88
  6. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc&q=mobile_capable&sq=package:chromium&type=cs&l=102
  7. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc&q=mobile_capable&sq=package:chromium&type=cs&l=106
  8. https://chromium.googlesource.com/chromium/src/+/350ce8afc8e4a34c1bb2f51659a7ae9c329a7918/chrome/browser/android/shortcut_helper.cc#84
  9. https://chromium.googlesource.com/chromium/src/+/350ce8afc8e4a34c1bb2f51659a7ae9c329a7918/chrome/browser/android/shortcut_helper.cc#100

Now what happens when the person is actually manually adding the shortcut

  1. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc&sq=package:chromium&type=cs&l=140
  2. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc&sq=package:chromium&type=cs&l=159
  3. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/banners/app_banner_settings_helper.cc&q=AppBannerSettingsHelper&sq=package:chromium&type=cs&l=256
  4. https://code.google.com/p/chromium/codesearch#chromium/src/components/content_settings/core/browser/host_content_settings_map.cc&sq=package:chromium&type=cs&l=231&rcl=1443756686
  5. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/banners/app_banner_settings_helper.cc&q=AppBannerSettingsHelper&sq=package:chromium&type=cs&l=260
  6. https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/banners/app_banner_settings_helper.cc&q=AppBannerSettingsHelper&sq=package:chromium&type=cs&l=266
  7. https://code.google.com/p/chromium/codesearch#chromium/src/components/content_settings/core/browser/host_content_settings_map.cc&sq=package:chromium&type=cs&l=380&rcl=1443756686
  8. https://code.google.com/p/chromium/codesearch#chromium/src/base/prefs/pref_service.cc&sq=package:chromium&type=cs&l=109&rcl=1443756686
  9. https://code.google.com/p/chromium/codesearch#chromium/src/base/prefs/persistent_pref_store.h&sq=package:chromium&type=cs&l=71&rcl=1443756686
Reply all
Reply to author
Forward
0 new messages