Hi all,
I am updating an old library of mine (pure B4A code, no java), and following
@Erel directions on how to
safely update an apk I placed the following lines in
my lib's Manifest file
'GetSafeDirDefaultExternal needs this for older versions
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
while those about the FileProvider went to
the app's Manifest.
Everything seems to work ok whether I keep these permission-related lines only in lib, only in app, both in lib and app.
Why I'd like to keep permissions lines in my lib's manifest? Because a class in it makes use of GetSafeDirDefaultExternal to find a place where to save a temporary file which is later used to update an apk. And I feel more comfortable to keep them close to where they are needed.
My question is: should I necessarily have to move those lines to the app's Manifest or it's ok to keep them within the lib, letting the user to cope just with FileProvider lines as per the link showed above?
TIA