breautek commented on issue #1625:
URL: 
https://github.com/apache/cordova-android/issues/1625#issuecomment-1589155595

   The app install is a read-only directly. The only process that has access to 
write to it are privileged apps with root access. These apps are usually 
preinstalled on your device and is part of the shipped Android OS by the phone 
manufacturer, like the `Google Play` app for example. This means you can only 
update the app core via the existing update mechanisms.
   
   For Google Play, that means uploading a new android bundle (aab file) to the 
Google Play store.
   
   Because Cordova primarily runs in a webview environment, it is possible to 
download web assets and store them locally in your app's data container and run 
them, however, this may be against the app store policies. Each app store may 
have different policies, but [Google 
Play](https://support.google.com/googleplay/android-developer/answer/9888379)   
states an app must not update itself using any method other than Google Play's 
update mechanism. It does state an exception on code that runs in a virtual 
environment (like JavaScript) where it provides indirect access to Android 
APIs, however Cordova provide a native bridge for JS to call on native code 
outside of standard webview features. Therefore this is a gray area.
   
   For this reason, Cordova doesn't provide any such feature out of the box. An 
update feature could be implemented at the app level at your own risk.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to