My InterfaceKit 8/8/8 won't open

Supporting Android 4.1 Jellybean or Newer
monoloco
Fresh meat
Posts: 2
Joined: Thu Jun 25, 2020 9:56 pm

My InterfaceKit 8/8/8 won't open

Post by monoloco »

Hello,
I'm having trouble opening my InterfaceKit 8/8/8 application with the Kotlin version I created. The AI ​​tells me the following: You must download the latest version of Phidget22 for Android from the official Phidgets website. Older versions from 2022 or earlier do not work on Android 14/15. The new version already includes properly signed binaries (.so).

This is due to:

The 0x1c (Unexpected Error) in Android 15 confirms the most concerning diagnosis: The native library (.so) that phidget22.jar uses to communicate with USB hardware is blocked by Android 15's "W^X" security policy. Android 15 does not allow libraries to load native code that is not specifically signed and aligned with its new memory security rules, which is very common in older versions of phidget22.jar.

please help me
User avatar
Patrick
Lead Developer
Posts: 703
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary

Re: My InterfaceKit 8/8/8 won't open

Post by Patrick »

Hi,

Have a look here for info about using USB Phidgets on Android:
https://www.phidgets.com/docs/Language_ ... oid_Studio
You'll need:

Code: Select all

<uses-feature android:name="android.hardware.usb.host" />
and

Code: Select all

com.phidget22.usb.Manager.Initialize(this);
If you are still having issues, enable library logging and post any output. You can log to null to log to logcat.

Code: Select all

Log.enable(com.phidget22.LogLevel.INFO, null);
Also, make sure you are on the latest release, which moved to 16kb page size to support the latest Android.

-Patrick