0

I need to change my phone device name not the bluetooth name.

I need to change the one which we get by doing this,

android.os.Build.MODEL;

Current Output: H30-U10

Sailesh Sriram
  • 144
  • 2
  • 17
Ali Farhan
  • 11
  • 1
  • 4
  • 1
    Take a look here: http://stackoverflow.com/questions/13267429/which-properties-of-android-os-build-are-fixed – TheTanic Jun 26 '15 at 07:30
  • You need root permissions on your Phone. When you have it, you can follow this: http://stackoverflow.com/questions/15407289/programmatically-edit-the-properties-of-build-prop-on-android – TheTanic Jun 26 '15 at 08:23
  • thanx :) ... but m looking for a solution for all devices – Ali Farhan Jun 26 '15 at 09:45
  • Without the root permission there is no chance to do ist – TheTanic Jun 26 '15 at 09:46

2 Answers2

1

You can access the devices model name manufacturer but you are not supposed to change it.
The only way to do so is "ROOTING" the Device.

Axel
  • 3,331
  • 11
  • 35
  • 58
-2

Try to do below -

private BluetoothAdapter bluetoothAdapter = null;
bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

void ChangeDeviceName(){
     Log.i(LOG, "localdevicename before: "+bluetoothAdapter.getName(); //before
     bluetoothAdapter.setName("name_what_you_want");
     Log.i(LOG, "localdevicename after: "+bluetoothAdapter.getName(); //after

 }
Sunny Garg
  • 1,073
  • 1
  • 6
  • 13