title: Cordova WebView's localStorage not accessible in Android 7?
body: <p>I have build an Cordova App 
  (cordova -v 7.0.1, cordova-android 6.1.0).</p>
  
  <p>That includes autostart. Which means when DEFINED, in the app, Bluetooth devices are connected to, the app will start.</p>
  
  <p>The way this was done:</p>
  
  <ol>
  <li>Save bluetooths address in localStorage (file__0.localstorage).//JS side</li>
  <li>BroadcastReceiver, on bluetooth.device.action.ACL_CONNECTED. Retrieve localStorage (file__0.localstorage) if connected device match device in our LocalStorage Start app.// Native side</li>
  </ol>
  
  <p>This was compiled in the end of 2016. And it worked til now, even with newer, software wise, devices.</p>
  
  <p>I decided to do some app updates, and now it stopped working. After some debugging I saw I can't read file__0.localstorage. This is what I have so far:</p>
  
  <pre><code>    File dataDir = new File(context.getFilesDir().getParent());
      File appWebViewFilesDir = new File(dataDir, "app_webview/Local Storage/file__0.localstorage");
  
      Log.d(TAG, "Absolute path is " + appWebViewFilesDir.getAbsolutePath());
      //Result (rooted phone): path is given.
      //Result (UNrooted phone): path is given.
  
      Log.d(TAG, "Fine name is " + appWebViewFilesDir.getName());
      //Result (rooted phone): name is given.
      //Result (UNrooted phone): name is given.
  
      Log.d(TAG, "Is file Readable " + appWebViewFilesDir.canRead());
      //Result (rooted phone): true.
      //Result (UNrooted phone): false.
  
      Log.d(TAG, "Tring to set file to readable? " +appWebViewFilesDir.setReadable(true));
      //Result (rooted phone): true.
      //Result (UNrooted phone): false.
  
      Log.d(TAG, "Tring to set file to readable for all users? " + appWebViewFilesDir.setReadable(true, true));
      //Result (rooted phone): true.
      //Result (UNrooted phone): false.
  
      Log.d(TAG, "Is file Readable " + appWebViewFilesDir.canRead());
      //Result (rooted phone): true.
      //Result (UNrooted phone): false.
  
      Log.d(TAG, "Does this file exist " + appWebViewFilesDir.exists());
      //Result (rooted phone): true.
      //Result (UNrooted phone): false.
  </code></pre>
  
  <p>Any ideas when has this changed?</p>
  
  <p>Any ideas how can I make localStorage file__0.localstorage accessible without having to root the devices?</p>
  
  <p>Is possible to solve this without having to implement a new data storage system?</p>
  
  <p>P.S. Data Persistence is not that important in this case.</p>