package andraus.bluetoothhidemu.spoof;

import android.bluetooth.BluetoothAdapter;
import android.content.Context;

public final class BluetoothAdapterSpooferFactory {
    
    private static BluetoothAdapterSpoofer mInstance = null;
    
    /**
     * 
     * @param appContext
     * @param adapter
     * @return
     */
    public static BluetoothAdapterSpoofer getInstance(Context appContext, BluetoothAdapter adapter) {
        if (mInstance == null) {
            //mInstance = new BluetoothAdapterSpooferMotoReflect(adapter);
            mInstance = new BluetoothAdapterSpooferGeneric(appContext, adapter);
        }
        
        return mInstance;
    }

}

package andraus.bluetoothhidemu.spoof;

import android.bluetooth.BluetoothAdapter;
import android.content.Context;

public final class BluetoothAdapterSpooferFactory {
    
    private static BluetoothAdapterSpoofer mInstance = null;
    
    /**
     * 
     * @param appContext
     * @param adapter
     * @return
     */
    public static BluetoothAdapterSpoofer getInstance(Context appContext, BluetoothAdapter adapter) {
        if (mInstance == null) {
            mInstance = new BluetoothAdapterSpooferMotoReflect(adapter);
            //mInstance = new BluetoothAdapterSpooferGeneric(appContext, adapter);
        }
        
        return mInstance;
    }

}

--- 
+++ 
@@ -15,8 +15,8 @@
      */
     public static BluetoothAdapterSpoofer getInstance(Context appContext, BluetoothAdapter adapter) {
         if (mInstance == null) {
-            mInstance = new BluetoothAdapterSpooferMotoReflect(adapter);
-            //mInstance = new BluetoothAdapterSpooferGeneric(appContext, adapter);
+            //mInstance = new BluetoothAdapterSpooferMotoReflect(adapter);
+            mInstance = new BluetoothAdapterSpooferGeneric(appContext, adapter);
         }
         
         return mInstance;
Switch to hid_emu generic implementation for spoofing
