Android management api - Setting default apps in work profile - android-management-api

I have a requirement to make Chrome the default browser in the work profile created with Android Management API. Currently the chrome app gets installed in the profile automatically on work profile provisioning. But it is not made the default app.
I have looked though the https://developers.google.com/android/management/reference/rest/v1/enterprises.policies document but have not come across any such settings.
Any guidance on how to achieve this would be appreciated.
Thanks

Persistent preferred activity management can be used to set up your default browser but unfortunately there is a related internal bug with the said functionality

Related

How to change visibility of G Suite Marketplace app?

We published an application in "My Domain" visibility to test it, but now want to switch it to become publicly available. However, it appears Google doesn't allow the visibility to be changed once it's been set. What is the right approach to handle this case?
Unpublishing the app or disabling then re-enabling the G Suite Marketplace SDK don't seem to help, and it's not apparent how to "wipe" the application and start a brand new one.
According to this comment by #Lucas, the only way to resolve this is to create an entirely new GCP project.

ChromeBox app does not use proxy settings in Kiosk mode

Using a chrome application on a Chromebox that displays a web page in Kiosk mode, the URL is not found in enterprise because the proxy settings are not taken into account. It works fine in regular browser without kiosk mode.
I may have missed a configuration step ?
Or is it possible in the application code to specify / force the usage of a proxy ?
(Can be tested with 'Kiosk' application : https://chrome.google.com/webstore/detail/kiosk/afhcomalholahplbjhnmahkoekoijban)
You may refer on this related thread. According to this support page, apps can't be added as kiosk apps when they are published privately. Just make sure that you're following the steps outlined here and here to enable Kiosk mode correctly.

Firefox extension app hosted on server

I managed to create a Chrome extension pretty easy and the main application is hosted on my server allowing me to provide updates to the app itself without having to update the whole extension. I like the idea and I just want to know if it's possible to create a similar extension for Firefox where the main application is hosted on a live server.
In creating my Chrome extension, I followed a tutorial. The code for Chrome is included on the linked page.
It's possible to create a simple extension that loads a web app either in a panel or a tab. You should read up on the Addon SDK documentation, including the panel, tabs and getting started docs.
There is nothing wrong with this, as the web app would not have direct access to internal Firefox APIs. If you read the Addon guidelines closely that #makyen links to above, none of it covers this implementation detail. In their defence, they seem to have misinterpreted what you want to do. It looks to me like you just want to integrate / launch your web app from the browser UI?
Web application:
After finding the tutorial (please provide a link next time) I surmise you are referring to in your question, I suspect that what you are actually attempting to convey is different than how I initially interpreted your question. I have edited the question to make this more clear to people reading it in the future.
That tutorial is explaining how to place a link to a web application into the Chrome user interface. Such is, to a large extent, just a bookmark that is able to be placed within other areas of the user interface than the bookmarks bar.
If that is what you are wanting to do, then, yes, you can easily do so in Firefox. Given that the extension is not running external content in the security context of an extension (you are effectively just navigating to and displaying a website), then that should be fine as a Firefox extension. Note that you need to be sure that you are not granting elevated permissions when you launch the web application.
If running a web application is what you are wanting to do, then I suggest you might want to use different semantics to refer to what you are doing. The above is not a "Firefox extension app hosted on server". Saying it that way strongly implies that you are hosting the actual extension code on your own server. The rest of your question implies that the extension dynamically loads external code and runs it. I would suggest that you refer to it as something like: a web application that is launched (navigated to) by a Firefox extension allowing the web application to be started from an icon in the toolbar.
Extension running web sourced code:
However, if what you are wanting to do is have external content running as a Firefox extension, then implementing that functionality is a large security hole for anyone installing the extension. Even assuming that your intentions are totally benign, there is a huge security hole for anyone who is intercepting your traffic, or gains control of your server to inject code into Firefox that runs at the level of an extension (i.e. the malware can have full control of the browser and then of the computer).
Yes, it is currently possible for you to write this for Firefox.
However, given that the extension pulls code from something not packaged within the extension, the extension will never be permitted to be hosted on AMO.
In addition, the plan is that later this year there will be mandatory signing of Firefox extensions through Mozilla. I doubt that an extension like this will be permitted at that time.
You can read a set of Add-on guidelines on MDN.

How to test IsMobileDevice

Build a site and using IsMobileDevice.
But how can I test without publish my site and browse to it with my mobile?
Have tried http://www.responsinator.com/ and others and it only looks at size.
Any ideas?
You can use Ripple Emulator or you can use the User Agent Override feature of Chrome Developer Tools to change your user agent. You can also find many other Chrome or Firefox extensions which help you change your user agent. IsMobileDevice works by checking the user agent, so this should help you get what you want.

How to create a custom app entry inside the Application Settings with Windows Phone SDK

Do you know if the Windows Phone SDK offers an API that allows to add a custom App entry inside the Application Settings page?
I would like to create a new entry "AppXYZ" that links the settings page of the application.
Is this view reserved just for "system" applications or could also be used to add a link to an external app's settings?
Although not well-known, there is a way to do that. In WMAppManifest.xml you can specify that your app belongs in HubType="268435456". That way, it will be integrated there. This is not an officially-supported approach and I am yet to see a third-party app approved in the Store that would handle this.
You can link to the settings page of your own application but not to the windows phone settings page you show us in the screenshot. Developers are only allowed to show some of these by using the corresponding URL schmemes.
Unfortuantely there is no possibility to integrate your app to the official settings hub as a third party developer. Adding HubType="268435456" in your WMAppManifest.xml file will prevent a successful sumbission.
Sorry for the bad news...

Resources