New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 629912 link

Starred by 9 users

Issue metadata

Status: Assigned
Owner:
Working on ARC now
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature



Sign in to add a comment

Android Apps running on Chrome OS are not included in the chrome.windows or chrome.mangement APIs

Reported by ty...@goguardian.com, Jul 20 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Platform: 8481.2.0 

Steps to reproduce the problem:
Run a sample Chrome Extension:

var list = function () {
  chrome.windows.getAll({
    windowTypes: ['normal', 'app'],
    populate: true
  }, function(windows) {
    console.log('Window data');
    console.dir(windows);
  });

  chrome.management.getAll(function(result) {
    console.log('Management data');
    console.dir(result);
  });
};

list();

What is the expected behavior?
We would hope to see the running "slither.io" app listed under both the chrome.management.getAll result and the chrome.windows.getAll result

What went wrong?
Ther chrome.management.getAll result and the chrome.windows.getAll APIs do not list running Android Apps

Did this work before? N/A 

Chrome version: 53.0.2773.3  Channel: dev
OS Version: 53.0.2773.3
Flash Version:
 
Cc: elijahtaylor@chromium.org victorhsieh@chromium.org
Components: Platform>ARC
Something we've thought about?

Comment 2 by m...@goguardian.com, Jul 26 2016

Essential for utilization reporting in int'l ChromeBook deployments, specifically for EDU. Cyrusm@google.com and migue@google.com requested CC on hangout. 
Re: chrome.windows.getAll

chrome.windows.getAll() returns Window objects and Window objects use Tab objects to contain information about the contents.
The problem is that a Tab object in chrome extension API corresponds to an HTML contents, but for Android apps, there is no HTML or URL representing their contents.
To include Android apps to chrome.windows.getAll() result, we have to expand the API spec, which is shared among all platforms.

- Window object reference: https://developer.chrome.com/extensions/windows#type-Window
- Tab object reference: https://developer.chrome.com/extensions/tabs#type-Tab

Re: chrome.management.getAll

chrome.management.getAll() returns ExtensionInfo objects which basically carry information extracted from chrome extensions' manifest.json files.
With the current design, there is no way to put info about Android apps in an ExtensionInfo object.

- ExtensionInfo object reference: https://developer.chrome.com/extensions/management#type-ExtensionInfo

To let extensions get information about installed Android apps, we have to change the API spec shared among all platforms, or add a new Chrome OS-specific API which returns info about Android apps.
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 27 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Enterprise
Owner: bartfab@chromium.org
Status: Assigned (was: Archived)

Sign in to add a comment