Custom Kernel 開啟 logcat - Android

Table of Contents

因為修改 APK 的關係,我需要用到 logcat 來查閱除錯紀錄

以下是測試到的 Kernel ,與如何開啟 Logcat 的方法

Jeboo 預設開啟 http://forum.xda-developers.com/showthread.php?t=2062208

Dorimanx 預設開啟 http://forum.xda-developers.com/showthread.php?t=1617219

Philz 預設開啟 http://forum.xda-developers.com/showthread.php?t=1877270

Apolo JB 預設關閉 http://forum.xda-developers.com/showthread.php?t=2291756

/data 下建立檔名為 .enable_logs 的檔案後,重新開機。

HiroX 預設關閉  http://forum.xda-developers.com/showthread.php?t=1601520

/system/etc/tweaks.conf 內加入一行 ANDROIDLOGGER 後,重新開機。

若無此檔案則自己建立。


ps. 部份 kernel 自帶的 /default.prop 內 property value 可能會
跟 /system/build.prop 的 property value 相同,但是大小寫不同。

而使某些對手機的 property value 用 string.equals() 來驗證的 APP
發生裝置驗證失敗。

EX: 導航王 N3

若你有能力改 smali code, 解法是改用 string.equalsIgnoreCase() 即可。

--

All Comments