Hi, Had to make changes to ApplicationContext.java file in frameworks/base/core/java/android/app
Praneeth On Tue, Oct 12, 2010 at 3:17 PM, Praneeth <praneethoc...@gmail.com> wrote: > Hi, > > I am not sure why the above conveys that opening L2CAP socket is not > permitted. > > But I am able to use bluetooth functionality from adb shell. > > I am not able to Turn ON BT from UI. > > Bluetooth Adapter is not been initialized. > > The below code is from BluetoothService,java > > public synchronized void initAfterRegistration() { > mAdapter = (BluetoothAdapter) > mContext.getSystemService(Context.BLUETOOTH_SERVICE); > if(mAdapter!=null) > System.out.println("Bluetooth Adapter successfully > initiallized"); > else > System.out.println("Bluetooth Adapter failed to be > initialized"); > > From the logs, I could find that mAdapter remains to be null.. > > Any clues on what I might be missing would be helpful. > > Thanks > Praneeth > On Oct 4, 4:27 pm, Praneeth <praneethoc...@gmail.com> wrote: > > Hi, > > > > I am not able to Turn ON BT on my device. > > When I try this in command line bluetoothd -n /etc/bluez/main.conf > > bluetoothd[2528]: Bluetooth daemon 4.47 > > bluetoothd[2528]: Starting SDP server > > bluetoothd[2528]: openingL2CAPsocket: Operation not permitted > > bluetoothd[2528]: Server initialization failed > > bluetoothd[2528]: Can't open HCI socket: Operation not permitted (1) > > bluetoothd[2528]: adapter_ops_setup failed > > > > I get the above output. > > Any inputs on where I am going wrong would be helpful. > > > > Thanks > > Praneeth > > -- > unsubscribe: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting