Back to project page BluetoothHidEmu.
The source code is released under:
Apache License
If you think the Android project BluetoothHidEmu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package andraus.bluetoothhidemu.spoof.jni; // www.java2s . c o m /** * JNI Calls for bluetooth unorthodox calls */ public class BluetoothSocketJni { /** * Creates a l2CAP Bluetooth Socket file descriptor properly configured * @param auth * @param encrypt * @return */ public static native int createL2capFileDescriptor(boolean auth, boolean encrypt); /** * Read Bluetooth Device class * @return */ public static native int[] readBluetoothDeviceClass(); /** * Spoofs the bluetooth device class * * @param newDeviceClazz * @return */ public static native int spoofBluetoothDeviceClass(String newDeviceClazz); static { System.loadLibrary("bluetoothsocket"); } }