lime icon indicating copy to clipboard operation
lime copied to clipboard

No way to disable the `-d` downgrade flag on Android installation`

Open jgranick opened this issue 8 years ago • 2 comments

This flag is not supported by old Android devices, we should make a flag to disable this, or try and improve the device SDK version detection script

http://community.openfl.org/t/android-apk-installation-error-unknown-option-d/29/5

jgranick avatar Oct 09 '17 20:10 jgranick

The longer we go without solving this, the less of a difference it makes. Android devices that old are only going to get rarer, and the thread you linked provides enough hints to allow devs to toggle it themselves.

My only suggestion is to update your comment to point to the new location.

player-03 avatar Oct 28 '21 22:10 player-03

In case the forum thread gets deleted or something, here's what worked for multiple people there:

  1. Re-enable the if block in AndroidManifest.hx.
  2. Run lime rebuild tools.

If the getDeviceSDKVersion function causes your build to break:

  1. Comment args.push("-d").
  2. Run lime rebuild tools.

player-03 avatar Oct 28 '21 22:10 player-03