Skip to content

Commit

Permalink
Fixed bug 4270 - Android HIDDeviceManager function needs to be public
Browse files Browse the repository at this point in the history
Sylvain

Can't run an android app without declaring the JNI interface function as public.
  • Loading branch information
slouken committed Sep 26, 2018
1 parent e236e84 commit d40657b
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -504,7 +504,7 @@ private HIDDevice getDevice(int id) {
////////// JNI interface functions
//////////////////////////////////////////////////////////////////////////////////////////////////////

boolean openDevice(int deviceID) {
public boolean openDevice(int deviceID) {
// Look to see if this is a USB device and we have permission to access it
for (HIDDeviceUSB device : mUSBDevices.values()) {
if (deviceID == device.getId()) {
Expand Down Expand Up @@ -539,7 +539,7 @@ boolean openDevice(int deviceID) {
return false;
}

int sendOutputReport(int deviceID, byte[] report) {
public int sendOutputReport(int deviceID, byte[] report) {
try {
Log.v(TAG, "sendOutputReport deviceID=" + deviceID + " length=" + report.length);
HIDDevice device;
Expand All @@ -556,7 +556,7 @@ int sendOutputReport(int deviceID, byte[] report) {
return -1;
}

int sendFeatureReport(int deviceID, byte[] report) {
public int sendFeatureReport(int deviceID, byte[] report) {
try {
Log.v(TAG, "sendFeatureReport deviceID=" + deviceID + " length=" + report.length);
HIDDevice device;
Expand All @@ -573,7 +573,7 @@ int sendFeatureReport(int deviceID, byte[] report) {
return -1;
}

boolean getFeatureReport(int deviceID, byte[] report) {
public boolean getFeatureReport(int deviceID, byte[] report) {
try {
Log.v(TAG, "getFeatureReport deviceID=" + deviceID);
HIDDevice device;
Expand All @@ -590,7 +590,7 @@ boolean getFeatureReport(int deviceID, byte[] report) {
return false;
}

void closeDevice(int deviceID) {
public void closeDevice(int deviceID) {
try {
Log.v(TAG, "closeDevice deviceID=" + deviceID);
HIDDevice device;
Expand Down

0 comments on commit d40657b

Please sign in to comment.