Limiting Google Play Apps by Manufacturer
0 Comments Published by boris October 29th, 2013 in android, mobile, technologySometimes you might come upon a scenario where you want to limit the Google Play Apps you develop to a particular device manufacturer (*cough cough*). Play store doesn’t support this use case, but here’s a quick way to do it. Load your list of supported devices, then open your developer console (tested in chrome) and include jquery with the following code:
var jq = document.createElement('script'); jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); |
Hit enter and then run this line to disable all devices:
$('span[aria-checked=false]').click(); |
Last, enable just the device manufacturer you want with:
$("h3:contains('Samsung')").parent().find("span[aria-checked=true]").click(); |
It’s important to note that Google will automatically enable the app for all new devices that come on the market, so you’ll need to login and run this periodically.