top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

How to disable devices like bluetooth or wifi at the system level in C code for Android Phone?

+2 votes
140 views
posted Aug 29, 2013 by Anderson

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
+3 votes

I found a config value in packages/app/Bluetooth/res/values/config.xml and a hide class

  • false
  • android.bluetooth.BluetoothHeadsetClient, this provides HFP client API, such as dial, accept call.

I set profile_supported_hfpclient to true, and remake and flash the system. I write a test app to using BluetoothHeadsetClient API, and it can dial and accept call. However, the voice is not working when calling. The speaker doesn't make sound, and the voice received by mic isn't transferred by Bluetooth SCO.

So does android support HFP client fully? How can I make voice works well

0 votes

I want to convert my android phone to a wifi repeater programatically and without rooting the phone. Can anyone help me with this?

Any help would be great (not looking for manual change of phone to HotSpot, or adding network but to do it programatically)

+3 votes

I need to change the Wifi channel programmatically (Of course, I will enable the Wifi to function as Hotsopt first).
Is there any API/Driver in the source code that I can use?

0 votes

There are two connection, ethernet and WiFi. Ethernet has higher priority than wifi, so connectivity service tears down the lower priority connection. The result is in wifi setting UI, the wifi shows "on", but no APs can be shown and mirracast also can not be used, as both wifi and p2p interface are disabled.

Are there some ways to keep both ethernet and wifi connection?

+1 vote

The Settings application takes care of showing up an interface which helps to connect to a WIFI. Switching off the router will disconnect the phone from WIFI.
Now, on switching the router back on, who takes care of reconnecting to this WIFI automatically? Is it the Settings application or is it done at the framework level?


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...