chromeos-apk icon indicating copy to clipboard operation
chromeos-apk copied to clipboard

There is no "message" element for key extName.

Open nvcken opened this issue 10 years ago • 33 comments

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.

nvcken avatar Oct 22 '14 10:10 nvcken

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.

wxvst2 avatar Oct 22 '14 16:10 wxvst2

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!

dhufford81 avatar Oct 24 '14 12:10 dhufford81

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 }

wxvst2 avatar Oct 24 '14 14:10 wxvst2

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!

dhufford81 avatar Oct 24 '14 15:10 dhufford81

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.

wxvst2 avatar Oct 24 '14 15:10 wxvst2

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!!

dhufford81 avatar Oct 24 '14 19:10 dhufford81

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. screenshot 2014-11-19 at 9 02 09 pm

Osama21 avatar Nov 20 '14 02:11 Osama21

I got this message when tried to load an extension: 'import' extension is not installed. What is the 'import' extension?

Staine avatar Nov 21 '14 09:11 Staine

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 } }

kosiara avatar Nov 27 '14 12:11 kosiara

same error +1

sevk avatar Nov 28 '14 02:11 sevk

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....

jimmygranit avatar Dec 19 '14 22:12 jimmygranit

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

wxvst2 avatar Dec 22 '14 15:12 wxvst2

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!)

CoolOppo avatar Dec 29 '14 20:12 CoolOppo

I confirm, pass name parameter fix the issue for me.

chromeos-apk --tablet --scale --name ApplicationName application.apk

postadelmaga avatar Jan 02 '15 05:01 postadelmaga

@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.

CoolOppo avatar Jan 02 '15 16:01 CoolOppo

thank you @postadelmaga it works. the name parameter is working. we just need to pass the package name (com.bla.bla.bla)

mohhasbias avatar Mar 09 '15 13:03 mohhasbias

@postadelmaga: You are right! yeah

nguyendt214 avatar Mar 30 '15 04:03 nguyendt214

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 avatar Apr 08 '15 14:04 noahseis

@noahseis This obviously isn't the thread for your issue. Did you even read any of what is on this page?

CoolOppo avatar Apr 08 '15 20:04 CoolOppo

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?

noahseis avatar Apr 20 '15 22:04 noahseis

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 avatar Jun 15 '15 16:06 dardo82

@dardo82 cool thanks, will update

vladikoff avatar Jun 15 '15 17:06 vladikoff

Then this shouldn't be closed now? (I'm not sure, that's my first time...)

dardo82 avatar Jun 16 '15 07:06 dardo82

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

vitarahmi96 avatar Jul 06 '15 04:07 vitarahmi96

Did you install the archon runtime, first?

rocketinventor avatar Jul 06 '15 15:07 rocketinventor

Not yet before. But actually after download the Evernote now I can launch the app. Thanks! :)

vitarahmi96 avatar Jul 06 '15 18:07 vitarahmi96

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

jkcarraher avatar Jan 21 '16 17:01 jkcarraher

Thank you very much man, this solve my problem. So, can you put in chromeos a app icon option?

SalahAdDin avatar Mar 02 '16 21:03 SalahAdDin

Same error here

miguelogin avatar Oct 10 '18 08:10 miguelogin

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.

recolic avatar Oct 14 '19 04:10 recolic