Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82340186CE for ; Tue, 26 Jan 2016 06:30:40 +0000 (UTC) Received: (qmail 56609 invoked by uid 500); 26 Jan 2016 06:30:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 56580 invoked by uid 500); 26 Jan 2016 06:30:40 -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 56461 invoked by uid 99); 26 Jan 2016 06:30:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2016 06:30:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2A9782C1F57 for ; Tue, 26 Jan 2016 06:30:40 +0000 (UTC) Date: Tue, 26 Jan 2016 06:30:40 +0000 (UTC) From: "Nikhil Khandelwal (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10384) Marshmallow always request permissions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nikhil Khandelwal updated CB-10384: ----------------------------------- Labels: Android triaged (was: Android) > Marshmallow always request permissions > -------------------------------------- > > Key: CB-10384 > URL: https://issues.apache.org/jira/browse/CB-10384 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File > Affects Versions: 5.4.1 > Environment: Android 6.0, cordova-cli 5.4.1, cordova-plugin-file 4.1.0, cordova-android 5.0.0 > Reporter: Kirill Anoshin > Labels: Android, triaged > > Hi guys is there any sense in this code in FileUtils.java: > {code} > if(dirname.contains(cordova.getActivity().getPackageName()) || > hasReadPermission()) { > .... > } > {code} > dirname is always look like 'cdvfile://localhost...' this is why it never contains package name. So marshmallow will always request permissions to write to the external storage. > I'm trying to write to the cordova.file.dataDirectory folder. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org