Enable adb locat stdout for Huawei Android Phones
It takes me some time to find out how to enable logcat output for Huawei Android devices.
The method is simple
There are a tempway and a permway
the temp way is :
echo 1 > /sys/kernel/logger/log_main/enable
echo 2 > /sys/kernel/logger/log_main/priority
and the perm way is to modify init.rc file which is located in ramdisk
This way is harder than the temp way.you need to unpack the boot.img to get the ramdisk.then unpack the ramdisk
and modify the init.rc file with this:
write /sys/kernel/logger/log_main/enable 1
write /sys/kernel/logger/log_main/priority 1
in the right place of the init.rc file.
then repack ramdisk --> repack boot.img
then flash the new boot.img to your phone.
That's it. all set.
sweet log cat is back to you.
Defy sbf_flash test result
I am trying to flash defy with a sbf firmware in linux using sbf_flash,but it seems the sbf_flash can not flash this sbf firmware.
it seems it can not read the cdt partition.any suggesttions?
I am too boring to flash sbf file in windows. I use Linux as my main OS for development
logs:
# sbf_flash-r -r ./JRDNEM_U3_2.21.0_SIGNED_UCAJRDNEMARAB1B80AA028.0R_USAJORDANRTGB_P026_A007_HWp3_Service1FF.sbf
SBF FLASH 1.11 (mbm)
Droid X found.
=== JRDNEM_U3_2.21.0_SIGNED_UCAJRDNEMARAB1B80AA028.0R_USAJORDANRTGB_P026_A007_HWp3_Service1FF.sbf ===
00: RDL03 0x82000000-0x8204CFFF C943 AP
01: CG31 0xB0280000-0xB02847FF 4972 Unknown
02: CG32 0xC7A00000-0xC7A207FF 4805 Unknown
03: CG33 0xB2000000-0xB2DC07FF 1ABC Unknown
04: CG34 0xB0700000-0xB07047FF D9D1 Unknown
05: CG35 0xB1000000-0xB17FFFFF 3E04 Unknown
06: CG39 0xB3300000-0xC79C07FF 35FC Unknown
07: CG40 0xC7B00000-0xC7D59FFF D196 Unknown
08: CG42 0xB0800000-0xB0842FFF C4B4 Unknown
09: CG45 0xB0C00000-0xB0F007FF 3664 Unknown
10: CG47 0xB1800000-0xB1FFFFFF 695F Unknown
11: CG53 0xB2F00000-0xB2F007FF FDFF Unknown
12: CG61 0xB0B00000-0xB0B7FFFF 538B Unknown
13: CG64 0xB0000000-0xB00047FF 85D0 Unknown
14: CG65 0xB0180000-0xB01847FF 2409 Unknown