Code Monkey home page Code Monkey logo

ane-packagemanager's Introduction

built by distriqt //

PackageManager

The PackageManager extension gives access to certain features of the Android package manager.

Features:

  • Receive package added and removed events when other applications are installed or removed from the device
  • Single API interface - your code works across supported platforms with no modifications
  • Sample project code and ASDocs reference

Documentation

The documentation site forms the best source of detailed documentation for the extension along with the asdocs.

Quick Example:

PackageManager.service.addEventListener( PackageManagerEvent.PACKAGE_REMOVED, packageRemovedHandler );
		
function packageRemovedHandler( event:PackageManagerEvent ):void
{
	trace( "Package Removed::"+ event.packageName );
}

More information here:

com.distriqt.PackageManager

License

You can purchase a license for using this extension:

airnativeextensions.com

distriqt retains all copyright.

ane-packagemanager's People

Contributors

marchbold avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ane-packagemanager's Issues

Can I check if my app has been installed from the Play Store?

I'd like to limit the number of fraudulent purchases but I can't use a server validation system for the moment. I've seen on the net some ways to detect if an app has been downloaded from the Play Store or not. Does this ANE helps with that? If yes, is it relevant to block purchases from users that directly installed the APK from other sources, or may I block regular/legit users?
Thanks!

APP - different ANDROID versions, different behavior

AIR SDK 50.2.4.3
ANIMATE 2024
ANDROID SDK 33 / BUILD TOOLS 33

ANDROID 11

After displaying the SYSTEM authorization screen - and switching to "ON" - APP restarts - but "installing unknown apps" is granted.

ANDROID 13

SYSTEM authorization screen is showing up, but app runs and goes forwards without waiting or checking response.

What is the minimum Android version supported?

If you are reporting a bug please make sure you fill out the following information, otherwise delete this packagemanager and ask your question.

I tested on Android 4.4.2 (SM-T530) and 6.0.1 (SM-T536), but it does not run normally. As soon as the app is launched, it quits.
I confirmed that it runs normally in Android 8.0.1.

Expected behaviour

It should run normally on Android 4.4.2 and 6.0.1.

Actual behaviour

It does not run normally on Android 4.4.2 and 6.0.1.
As soon as the app is launched, it quits.

Environment
  • AIR SDK version: 33.1.1.144
  • Device OS: Anroid
  • Device version: 4.4.2 / 6.0.1
  • Development IDE: FlashBuilder 4.7
  • Development OS: Windows 10
Logs

Device logs if relevant

Main app shutdown when I check install from unknown source in app settings

It happens when I target app to sdk 30 in android manifest and install it on android 11(sdk30) device.
Targeting to sdk 30 and installing on android 10 and lower devices works fine.
Targeting to sdk 29 all seems to work fine in every way.

Expected behaviour

Open app settings to check install from unknown source. After that it needs to jump back to main app.

Actual behaviour

Open app settings to check install from unknown source. App shutdown itself just after I press the install unknown source button.

Environment

I have harmann licence, sdk 33.1.1.633, Adobe Animate.

Logs

No logs, just silent shutdown

Device logs if relevant

PackageManager Android 64bit support

Update the extension to include support for Android 64bit

Starting August 1, 2019, your apps published on Google Play will need to support 64-bit architectures. 64-bit CPUs deliver faster, richer experiences for your users. Adding a 64-bit version of your app provides performance improvements, makes way for future innovation, and sets you up for devices with 64-bit-only hardware.

Error # Need to declare android.permission.REQUEST_INSTALL_PACKAGES to call this api

I only use this call in Package Manager:
PackageManager.service.getInstallerPackageName();

Question: is the "REQUEST_INSTALL_PACKAGES" permission really needed
to use in this call?

I ask this because now Google is more annoying with apps that need the permission : REQUEST_INSTALL_PACKAGES
And I would even take out this permission, but I get this error when using this function of this ANE.

Can I continue to use this call even without this permission? (and returning this error, but working)
Or I need this permission?

Thanks a lot. =)

Feature request

Hi,

we did an ANE like the PackageManager before - but we did never update it and today - it's just "old".
To simplify our work, we would appreciate - if we can use ANEs - just from one source.

For some reason we needed two (3) functions in the past - which was not or not easy made by AIR itself.

start another app (can be done by intent, but we did it over ANE by sending package and name)
(MyANE.startApp("com.myapps.theme.myspecialapp");

restart app (kill process and start package again)
(MyANE.restartApp("com.myapps.theme.myspecialapp");

stop app (by sending package and name, kill process)
(MyANE.stopApp("com.myapps.theme.myspecialapp");

The restart is the most wanted function - what we need.

Issue when trying to install an apk on older devices

Hello.
I'm using your ANE to install an additional java apk from my adobe air application on android devices.
It's working fine on samsung s8(android 9), lenovo tab p10(android 9), but no success on my older devices: samsung note p600(android 5.1.1), huawei mediapad m2 10(android 5.1.1) or even on samsung s8 (android 7.0).

On the working devices settings can be opened to check "install unknown app"-"allow from this source" and after that my secondary app can be installed, but nothing happens on the older android versions devices. My samsung s8(android 7.0) displays an error: "Package installer has stopped".

I develop app with air sdk 32, starling 2.5.1, feathers 4.0, also i'm using your permission ANE.
Min sdk target 17, target sdk 27.

Thank you,

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.