android device id confusion

IMEI The IMEI is the ‘MAC’ for the telephony module – the unique ID that the telephone uses when it connects via GSM/GPRS/HSPDA/etc. The GSM network uses it to route calls and data from the phone over the GSM network right up to the gateway into the Internet (which is an IP network). A telephony … Read more

How to debug on a real device (using Eclipse/ADT)

Note: This answer is a heavily modified version of this guide that used to exist at developer.android.com. Portions of it are quoted verbatim from the original text without attribution for the specific parts that are quoted. With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. … Read more

C# driver development?

You can not make kernel-mode device drivers in C# as the runtime can’t be safely loaded into ring0 and operate as expected. Additionally, C# doesn’t create binaries suitable for loading as device drivers, particularly regarding entry points that drivers need to expose. The dependency on the runtime to jump in and analyze and JIT the … Read more

Android Device Chooser — device not showing up

First, make sure that the Android ADB can “talk to” your device. Open a Windows Command Prompt (cmd.exe)/Mac Terminal. Go to the folder (via cd) where ADB.exe is in, e.g, C:\Android\android-sdk\platform-tools. Type adb devices If your device is listed (serial number is displayed), go to the second check. Otherwise, this means ADB currently can’t talk … Read more

android BluetoothDevice.getName() return null

Finally, i found out the solution: 1.For device connected: Read device name from gatt characteristic org.bluetooth.characteristic.gap.device_name of service org.bluetooth.service.generic_access. 2.For device no connected: /** * Get device name from ble advertised data */ private LeScanCallback mScanCb = new LeScanCallback() { @Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[] scanRecord) { final BleAdvertisedData badata … Read more

How to change device Volume on iOS – not music volume

To answer brush51’s question: How can i do that? just change the DEVICE volume? As 0x7fffffff suggested: You cannot change device volume programatically, however MPVolumeView (volume slider) is there to change device volume but only through user interaction. So, Apple recommends using MPVolumeView, so I came up with this: Add volumeSlider property: @property (nonatomic, strong) … Read more

Format of /dev/input/event*

A simple and raw reader can be just done using: #!/usr/bin/python import struct import time import sys infile_path = “/dev/input/event” + (sys.argv[1] if len(sys.argv) > 1 else “0”) “”” FORMAT represents the format used by linux kernel input event struct See https://github.com/torvalds/linux/blob/v5.5-rc5/include/uapi/linux/input.h#L28 Stands for: long int, long int, unsigned short, unsigned short, unsigned int “”” … Read more