如何检查cordova android版本的cordova / phonegap项目? [英] How to check cordova android version of a cordova/phonegap project?

查看:737
本文介绍了如何检查cordova android版本的cordova / phonegap项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我本周收到Google的安全警示,通知我升级我的android版的cordova应用程式。来自google的电子邮件如下 -

I have received a Security Alert from Google this week that tells me to upgrade my android version of cordova app. The email from google is as below -


这是一则通知,表示您的--apps ids--建立在Apache版本上Cordova包含安全漏洞。这包括高度严重性的跨应用程序脚本(XAS)漏洞。在某些情况下,可以远程利用漏洞的应用窃取敏感信息,例如用户登录凭据。

This is a notification that your --apps ids--, is built on a version of Apache Cordova that contains security vulnerabilities. This includes a high severity cross-application scripting (XAS) vulnerability. Under certain circumstances, vulnerable apps could be remotely exploited to steal sensitive information, such as user login credentials.

您应该尽快升级到Apache Cordova 3.5.1或更高版本可能。有关这些漏洞的详细信息以及有关升级Apache Cordova的指南,请参阅 http:/ /cordova.apache.org/announcements/2014/08/04/android-351.html

You should upgrade to Apache Cordova 3.5.1 or higher as soon as possible. For more information about the vulnerabilities, and for guidance on upgrading Apache Cordova, please see http://cordova.apache.org/announcements/2014/08/04/android-351.html.

请注意,存在漏洞的应用程序会暴露用户

Please note, applications with vulnerabilities that expose users to risk of compromise may be considered "dangerous products" and subject to removal from Google Play.

因此,我需要检查当前版本的我的cordova应用程序。我可以升级我的cordova安装使用 npm update -g cordova 在Windows cmd。问题是如何检查我的cordova应用程序的当前版本?

So, I needed to check the current version of my cordova apps. I can upgrade my cordova installation by using npm update -g cordova on windows cmd. The question is how can I check the current version of my cordova app?

推荐答案

当前平台版本的cordova应用程序可以通过以下命令检查

The current platform version of a cordova app can be checked by the following command

cordova platform version android

使用命令升级

cordova platform update android

您可以使用任何平台选项(例如ios或其他平台)来替换Android。

You can replace android by any of your platform choice like "ios" or some else.

这只适用于Android平台。我还没有检查。您可以尝试在代码段中替换Android,以尝试其他平台。

This only applies to android platform. I have not checked. You can try replacing android in the code segments to try for other platforms.

这篇关于如何检查cordova android版本的cordova / phonegap项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆