Code Monkey home page Code Monkey logo

Comments (10)

marchbold avatar marchbold commented on July 1, 2024

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.

rzv86 avatar rzv86 commented on July 1, 2024

So, I've made 2 logcats, one on the samsung p600(android5.1.1) and one on samsung s8(android 7.0)

logcat p600.docx

logcat samsung s8.docx

can you take a look?

thanks

from ane-packagemanager.

marchbold avatar marchbold commented on July 1, 2024

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.

rzv86 avatar rzv86 commented on July 1, 2024

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.

logcat 2 samsung s8.docx

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.

rzv86 avatar rzv86 commented on July 1, 2024

Hello again. Do you have any news on this?

from ane-packagemanager.

marchbold avatar marchbold commented on July 1, 2024

We are still looking into this one.

from ane-packagemanager.

marchbold avatar marchbold commented on July 1, 2024

Can you try this build:

https://www.dropbox.com/s/zviif5547x363wv/com.distriqt.PackageManager.v2.0.014.zip?dl=0

from ane-packagemanager.

marchbold avatar marchbold commented on July 1, 2024

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.

rzv86 avatar rzv86 commented on July 1, 2024

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.

marchbold avatar marchbold commented on July 1, 2024

Great, glad to hear it's working now, will push this update into release later today.

from ane-packagemanager.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.