MT6575平台怎么启动FM服务,想做工厂测试模式的apk
“FMRadioActivity” 这个Activity Intent不过来。
IFMRadioService也调用不了。
Android.mk加了
LOCAL_SRC_FILES += src/com/mediatek/FMRadio/IFMRadioService.aidl
LOCAL_JNI_SHARED_LIBRARIES := libfmjni
虚拟按键灯发现的这个值怎么写到/sys/class/leds/button-backlight/brightness这里面才能保存。?
private void setKeypadBacklight(boolean on) {
if (on) {
writeLedFile("/sys/class/leds/button-backlight/brightness", "255");//亮
} else {
writeLedFile("/sys/class/leds/button-backlight/brightness", "0");//灭
}
}
private void writeLedFile(String filename,String value) {
try {
FileWriter writer=new FileWriter(filename);
writer.write(value);
writer.close();
} catch (Exception e) {
Log.e(TAG, "IOException caught while writting stream", e);
}
}