华为Android Logcat没有显示日志

时间:2016-11-29 21:59:35

标签: android android-logcat huawei

我在网上找到的所有现有解决方案都建议您执行以下操作: https://www.xda-developers.com/huawei-phones-disable-logcat-heres-how-to-restore-access/

然而,在我的手机上,当我按下LOG设置时,它会带我到这个" MTKlogger"屏幕,这对应于我在网上看到的一切。我正在使用华为享受5(TIT-AL00)。

1 个答案:

答案 0 :(得分:0)

检查this answer以确保您的FW / ROM中未禁用它。如果是这样,您可以尝试:

=================================
:: PHP ini Settings::
=================================

default_charset = "utf-8"
mbstring.internal_encoding=utf-8
mbstring.http_output=UTF-8
mbstring.encoding_translation=On
mbstring.func_overload=6 

=================================
:: .htaccess Settings::
=================================

DefaultLanguage en-US
AddDefaultCharset UTF-8

=================================
:: HTML Header Page::
=================================

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

=================================
:: PHP Codeigniter index.php ::
=================================

header('Content-Type: text/html; charset=UTF-8');

=================================
:: Codeigniter config.php ::
=================================

$config['charset'] = 'UTF-8';

=================================
:: Codeigniter database.php ::
=================================

$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';

=================================
:: Codeigniter helper function (optional)
=================================

if(!function_exists('safe_utf_string')){
    function safe_utf_string($utf8string= ''){
        $utf8string = htmlspecialchars($utf8string, ENT_QUOTES, 'UTF-8');
        return mb_convert_encoding($utf8string, 'UTF-8');
    }
}

如果这不起作用,则需要刷新一个新的$ su # setprop logcat.live=enable 文件。