Bluetooth default device name is modified in:
frameworks \ base \ core \ JNI \ Android _ bluetooth _ common . h
Mainly to modify the value of btmtk _ Android _ default _ local _ name.
# define BT MTK _ ANDROID _ DEFAULT _ LOCAL _ NAME " ANDROID BT "
Looking at the related mk file, we can know that the file was finally compiled into libandroid_runtime.so, so we found the compiled libandroid _ runtime.so directly.
tool
WinHex
This tool is a very good 16 basic editor, which has won the highest five-star evaluation from ZDNetSoftwareLibrary, and the system is very practical.
(PS: Press F3 to find the next one)
way
Load libandroid_runtime.so into WinHex, and then search ANDROID BT in full text. Theoretically, there will only be one place, and of course there can't be many places. The final positioning code is as follows:
00684736 | 73 3135 00 48 49 4b65 20 37 3136 00 5b47 41| s15 Android BT.
We can only find one definition in WinHex, so we can directly change it to the name we want to define, click Save when finished, and then push it back to the device, which will take effect after restarting the device.