From issues-return-98072-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Tue Feb 19 00:19:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9185118077A for ; Tue, 19 Feb 2019 01:19:04 +0100 (CET) Received: (qmail 13298 invoked by uid 500); 19 Feb 2019 00:19:03 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 13283 invoked by uid 99); 19 Feb 2019 00:19:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2019 00:19:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2AF5FC8D1D for ; Tue, 19 Feb 2019 00:19:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3ciL9diJHWjI for ; Tue, 19 Feb 2019 00:19:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B90595F1B3 for ; Tue, 19 Feb 2019 00:19:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 834B0E27D5 for ; Tue, 19 Feb 2019 00:19:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 14DEE24507 for ; Tue, 19 Feb 2019 00:19:00 +0000 (UTC) Date: Tue, 19 Feb 2019 00:19:00 +0000 (UTC) From: "Jose M (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13647) Incomplete plugin restoration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13647?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D167714= 45#comment-16771445 ]=20 Jose M commented on CB-13647: ----------------------------- Hi there! With new cordova versions unwanted plugins are systematically added to the = project while building android apps and cant find a way to get rid of them.= Result is creating apps with unnecessary user permissions. I just=C2=A0cre= ated one app which does not need any permission at all but=C2=A0cordova for= ced 10 permissions cos it inherited them from the former app i built that r= equired all those permissions. I tried some hooks, removed permissions from manifest.xml, android.json etc= . but it did not work Not sure if this issue has to do with this reported problem but i did not f= ind another way to place this issue. Sorry if I bother, I am new here. Any solution will be appreciated. Cheers, J > Incomplete plugin restoration > ----------------------------- > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android > Affects Versions: 7.0.0 > Reporter: Michael Goffioul > Assignee: Joe Bowser > Priority: Major > Labels: android-next > > I'm having a problem with plugin restoration since cordova-android 7.0.0,= when plugins use a mix of config-file and edit-config on the same file (e.= g. AndroidManifest.xml) and only edit-config uses the real path to the file= . I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p localplugins/test= plugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to ) > {code} > > > Test Plugin 1 > > > > > > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check platforms/android/app/src/main/AndroidManifes= t.xml, it'll contain the 2 changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the c= hanges defined in the plugin (the attribute to ). The other ch= ange is missing. > If you use the real path to AndroidManifest.xml for the definition of , then the problem does not occur. BUT, the problem can also occu= r when changes to AndroidManifest.xml are coming from multiple plugins, inc= luding the standard cordova plugin, most of which do not use the real path = to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomp= lete restoration of plugins trying to register themselves in res/xml/config= .xml. Only one plugin, out of 7, was using the real path app/src/main/res/x= ml/config.xml and I ended up with only one plugin defined in res/xml/config= .xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org