Setting chrome policies on Android

1,343 views
Skip to first unread message

Kelvin Poon

unread,
Dec 30, 2014, 1:12:48 PM12/30/14
to Chromium-dev
Hi,

I am developing an android app that can set chrome policies on Android.
Does anyone know where on disk are chrome policies stored on Android?

Kelvin

Martin Kosiba

unread,
Dec 31, 2014, 10:52:42 AM12/31/14
to kel...@chromium.org, Chromium-dev
Hi Kevin,
  What kind of policies? You mean stuff like proxy configuration?
  The Android security model disallows one app from reading/writing another app's data (which is what it sounds like you're trying to do). Also, even if that were possible directly messing with configuration files sounds like a terrible idea - how are you going to deal with different versions or Chrome and your app writing at the same time?
  It sounds like this would need to be something Chrome itself exposes support for (perhaps by means of an Intent or Binder) that your app can invoke/use to deliver the functionality you want.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Anton Vayvod

unread,
Jan 5, 2015, 7:58:32 AM1/5/15
to mko...@chromium.org, kel...@chromium.org, Chromium-dev, Bernhard Bauer
Hi Kelvin,

AFAIK the right way to set policies to an Android app from another app is using the new setApplicationRestrictions API [1]
The detailed list of policies Chrome supports on Android is here [2]

Hope this helps,
Anton.


To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Bernhard Bauer

unread,
Jan 6, 2015, 6:36:17 AM1/6/15
to ava...@chromium.org, mko...@chromium.org, kel...@chromium.org, Chromium-dev
Also, note that the app needs to be a profile or device owner in order to be allowed to set policies. (The Google Device Policy app would be one such example).

Bernhard.
Reply all
Reply to author
Forward
0 new messages