Comments (10)
Can you post some example code that replicates the issue and the log from the device?
https://airnativeextensions.github.io/tutorials/device-logs
Cheers
from ane-packagemanager.
So, I've made 2 logcats, one on the samsung p600(android5.1.1) and one on samsung s8(android 7.0)
can you take a look?
thanks
from ane-packagemanager.
Thanks for those, could you try this build for us:
https://www.dropbox.com/s/i90agjh772q9inr/com.distriqt.PackageManager.v2.0.010.zip?dl=0
from ane-packagemanager.
I've tried it on my devices, all are working fine except my samsung s8(android 7.0) wich gave me the same error like it did before: "Package installer has stopped".
Below you can find the logcat.
I read on this link- https://stackoverflow.com/questions/54128272/update-app-via-apk-download-with-url-not-showing-open-done-screen - that installing an app is different on newer devices (Build.VERSION.SDK_INT >= 24, meaning android 7.0 nougat ), and you need to ask user to grant permission from settings like we do on samsung 9(android 9) and lenovo tab(android 9).
Also, I've noticed in my new logcat:
Permission Denial: opening provider com.distriqt.extension.packagemanager.content.PackageManagerFileProvider from ProcessRecord{a4d5eae 27934:com.google.android.packageinstaller/u0a34} (pid=27934, uid=10034) that is not exported from uid 10248...
So my first thought was if you treated correctly sdk 24 on your ANE.
Thanks,
from ane-packagemanager.
Hello again. Do you have any news on this?
from ane-packagemanager.
We are still looking into this one.
from ane-packagemanager.
Can you try this build:
https://www.dropbox.com/s/zviif5547x363wv/com.distriqt.PackageManager.v2.0.014.zip?dl=0
from ane-packagemanager.
Regarding your question on requesting permissions you are following the docs on checking canRequestApplicationInstalls
and allowing unknown sources? This was only introduced in android 26 not 24.
https://github.com/distriqt/ANE-PackageManager/wiki/u.Installing-Apps
However there are other grant permissions that changed earlier.
from ane-packagemanager.
Yes, I check for "canRequestApplicationInstalls" first, if false then I use "PackageManager.service.showManageUnknownAppSourcesSettings();" , user checks unknown sources in settings, after that, in my app:
"if(PackageManager.service.canRequestApplicationInstalls == true){
..
PackageManager.service.installApplication( apkfile.nativePath );
}"
Now your last ANE build work's fine on all my devices.
Thank you.
from ane-packagemanager.
Great, glad to hear it's working now, will push this update into release later today.
from ane-packagemanager.
Related Issues (12)
- PackageManager Android 64bit support HOT 1
- PackageManager.service.validateSignature(signature) HOT 2
- APP - different ANDROID versions, different behavior HOT 4
- Error: uses-sdk:minSdkVersion 21 cannot be smaller than version 23 HOT 3
- AndroidX migration
- getUserApps get list of installed user apps HOT 4
- What is the minimum Android version supported? HOT 4
- Feature request HOT 3
- Main app shutdown when I check install from unknown source in app settings HOT 7
- Error # Need to declare android.permission.REQUEST_INSTALL_PACKAGES to call this api HOT 4
- Can I check if my app has been installed from the Play Store? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ane-packagemanager.