chromeos-apk
chromeos-apk copied to clipboard
There is no "message" element for key extName.
I try npm update -g chromeos-apk After update --version still show 3.0.0
I try chromeos-apk mygame.apk I get error when load unpack ext ----> Failed to load extension from: D:...... There is no "message" element for key extName.
This is an easy fix.
$vim /path_to_com_dir/manifest.json Copy the "name" parameter: "name": "field text"
$vim /path_to_com_dir/_locale/language/message.json add the parameter to the "extName": "extName": { "description": "Extension name", "message": "field text" }
Don't forget the comma.
Hello wxvst2! I am trying to make the vmware horizon view apk work on a chromebook and and currently stuck with this same error. Can you be a little more descriptive. I tried to follow your instructions but i'm not sure what the final code should look like. here is what i have so far. please note "MSG_extName" was copied from com dir/manifest.json.
{ "appNotSupported": { "description": "Message displayed when the app is not supported.", "message": "This app is incompatible with your device. Check to make sure other Android apps work for you from the Chrome Web Store" }, "extName":{"MSG_extName" "description": "Extension name", "message":"" } }
When i try to load unpacked extensions in chrome with this i get syntax error. Before the copy paste i got the error there is no "message" element for key extName. any help is greatly appreciated. I'm sure it's simple but i'm not a programmer by any means! Thanks in advance!
Hey dhufford81 ,
I formatted my first answer wrong and it left out some details. So take a look again and it may be a little more clear.
Remember you need to edit the message.json file to fix the issue. Not the manifest.json file.
"enableExternalDirectory": false, "formFactor": "tablet", "name": "com.directv.sundayticket", <---- this is the name you need to take in manifest.json "orientation": "landscape", "packageName": "com.directv.sundayticket", "useGoogleContactsSyncAdapter": false, "usePlayServices": [ "gcm" ]
"extName": { "description": "Extension name", "message": "com.directv.sundayticket" <---- Add this line in your message.json file found in ../_locales/en/ directory }
Thanks very much for the information. I have corrected the issue, and now the extension gives me the option to launch. However there is a pink warning that says: There were warnings when trying to install this extension: Unrecognized manifest key 'arc_metadata'.
When i hit the launch link it opens a white window with a picture of Android in it and nothing else happens. Does that mean the horizon.apk won't run on a chromebook? Thanks again!
You can ignore that warning. It will show for all packages.
I just tried the app myself. It seems to crash on start up. You can check by selecting Inspect views: app_main.html under launch.
The log should show you something like this: Crash reporting not enabled in Chrome. Please enable it. FINISHED REPORTING CRASH
Please try another app that has been proven to work to make sure your setup is correct. NYC Bus & Subway Maps app works.
Just wanted to report back, i played around with it for most of the day today and ended up getting it to work. I was able to launch a virtual desktop on my chromebook. The only problem now is getting it to go fullscreen =) Thanks very much for your help wxvst2!!
Hello everybody,
I had this same error before, and i followed the steps given here. I resolved the error of "There is no 'message' element for key extName." but i get a new error saying "invalid locale file '/home/chronos/u-84674c466b6edd2e4de574185c16a8d60d1f91e7/Downloads/Random/APK/com.instagram.android.android/_locales/en/messages.json': Line: 8, column: 5, Syntax error."
I ran this in the chrome os shell, and this directory exists, but i do not have permission for it. is there a way to get permission.
here is a screenshot. any help will be greatly appreciated.
I got this message when tried to load an extension: 'import' extension is not installed. What is the 'import' extension?
I received this message when I fired the conversion with command:
chromeos-apk application.apk
The error was gone when I fired the conversion with all arguments:
chromeos-apk --tablet --scale --name ApplicationName application.apk
The problem for me was the locales messages.json:
_locales/en/messages.json
{ "appNotSupported": { "description": "Message displayed when the app is not supported.", "message": "This app is incompatible with your device. Check to make sure other Android apps work for you from the Chrome Web Store" }, "extName": { "description": "Extension name", "message": "ApplicationName" //THIS LINE WAS GONE WIHOUT "--name ApplicationName" argument } }
same error +1
I have the same issue.... I added the "message" key (used from the "name" key in manifest.json), but when i run the app, it start the emulator, have a blackscreen for 0.5 sec, then the program just ends...
I tried this on 2 different apps, with same results....
If you are able to launch the app, even partially, that means the modification to the message.json has worked. However, some apps just don't work with their given architecture. Some users over at Reddit are keeping a list of working, non-working, and partially working apps.
https://docs.google.com/a/genesismedia.com/spreadsheets/d/1iIbxaftAu_ho5rv9fUlXSLTzwU6MbKOldsWXyrYiyo8/edit#gid=0
If you would like to add your own testing to the spreadsheet fill out this form:
https://docs.google.com/a/genesismedia.com/forms/d/1UbSeFSNAPiS-nUiNZfI_rA_1GoAI2X931aXAs1wy5D8/viewform
I get the same message on everything I even try to load as an extension in Chrome. My specs are:
- Windows 8.1 64-bit
- Chrome
41.0.2251.0 dev-m
(64-bit) - node.js v0.10.34 (I'm actually updating it to v0.10.35 at this moment!)
I confirm, pass name parameter fix the issue for me.
chromeos-apk --tablet --scale --name ApplicationName application.apk
@postadelmaga It didn't fix it for me. What are you using for the application name? Is it the actual fully qualified package name (or whatever they call it on Android)? What I am trying to ask is whether the application name can be anything you choose, or if it has to be the thing like com.developername.blabla
.
thank you @postadelmaga it works. the name parameter is working. we just need to pass the package name (com.bla.bla.bla)
@postadelmaga: You are right! yeah
chromeos-apk -t -s -n Directv DIRECTV_4.0.5_1428466127059.apk Configures the apk to allow the loading of the unpacked extension!!
App launches fine on a chromebox trying to watch something (as tablet) crashes the app
Here are a couple js console messages.
0x68AA8C31 is not a valid instance ID.gen_index.min.js:34 ChildPlugin.remove
plugin crashed: captured minidumpgen_index.min.js:108 Plugin.showCrash_
Any insight?
@noahseis This obviously isn't the thread for your issue. Did you even read any of what is on this page?
The apk (Directv DIRECTV_4.0.5_1428466127059.apk) compiles with the Node.js 0.12.2 (ia32) and npm tool.
That's what being discussed here, correct, compiling apk's to provide portability to the chrome browser / OS "pc like" hardware instead vs android device app use only.
I was checking to see if there's some troubleshooting tips when an app is compiled through the tool but crashes on the chromebook / chromebox - how do you adjust for bugs. Or do you?
I've found the fix for this! :-D It's just a matter of changing the long option.
In chromeos-apk.js
it should be (for example):
.option('-n, --ext-name [value]', 'Extension display name')
instead of
.option('-n, --name [value]', 'Extension display name')
and
if (program.extName) {
messages.extName.message = program.extName;
instead of
if (program.name) {
messages.extName.message = program.name;
That's it. 8-)
@dardo82 cool thanks, will update
Then this shouldn't be closed now? (I'm not sure, that's my first time...)
Please help me, I don't even understand..
It shows this: Failed to load extension from: ~/Downloads/Game/com.ea.games.simsfreeplay_row_twerk 'import' extension is not installed.
{ "app": { "background": { "page": "app_main.html" } }, "arc_metadata": { "apkList": [ "custom-android-release-1400197.apk" ], "enableExternalDirectory": false, "formFactor": "tablet", "name": "com.ea.games.simsfreeplay_row", "orientation": "landscape", "packageName": "com.ea.games.simsfreeplay_row", "useGoogleContactsSyncAdapter": false, "usePlayServices": [ "gcm" ], "resize": "scale" }, "default_locale": "en", "icons": { "16": "icon.png", "128": "icon.png" }, "import": [ { "id": "mfaihdlpglflfgpfjcifdjdjcckigekc" } ], "manifest_version": 2, "name": "MSG_extName", "oauth2": { "client_id": "133701689125-jj0hr4gb0ff4ulsbrn0uk2i4th946d4c.apps.googleusercontent.com", "scopes": [] }, "offline_enabled": true, "permissions": [ "gcm", { "socket": [ "tcp-connect", "tcp-listen", "udp-bind", "udp-send-to", "resolve-host" ] }, "unlimitedStorage", "notifications", "clipboardRead", { "fileSystem": [ "write", "retainEntries", "directory" ] }, "https://clients2.google.com/", "videoCapture", "clipboardWrite", "identity.email", "alarms", "storage", "identity", "audioCapture" ], "requirements": { "3D": { "features": [ "webgl" ] } }, "update_url": "https://localhost", "version": "1337" }
what should I do?
Thanks in advance
Did you install the archon runtime, first?
Not yet before. But actually after download the Evernote now I can launch the app. Thanks! :)
Hello Everybody, I am currently trying to load external extensions, from apk files, but when I click launch, noting happens. I have tried 3 multiple games, including Minecraft, Growtopia, and Flappy bird. I would love to have some help. Thanks, Taro
Thank you very much man, this solve my problem. So, can you put in chromeos a app icon option?
Same error here
This is an easy fix.
$vim /path_to_com_dir/manifest.json Copy the "name" parameter: "name": "field text"
$vim /path_to_com_dir/_locale/language/message.json add the parameter to the "extName": "extName": { "description": "Extension name", "message": "field text" }
Don't forget the comma.
Note: the path should be _locales/$LANGUAGE/messages.json
rather than _locale/language/message.json
.