private void writeProductinfo_model(byte logo_choice) {
byte BufToWrite[] = new byte[1];
BufToWrite[0] = logo_choice;
File logo_choiceFile = new File("/productinfo/", "device_model");
try {
FileOutputStream fos = new FileOutputStream(logo_choiceFile, false);
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(
fos);
bufferedOutputStream.write(BufToWrite, 0, BufToWrite.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
} catch (Exception e) {
Log.e(TAG, "Exception Occured: Trying to write device_model.file "
+ e.toString());
}
}
读写proinfo分区
最新推荐文章于 2023-09-21 17:32:13 发布