LoginSignup
4
3

More than 5 years have passed since last update.

Huawei製Android端末でLogcatへのログ出力をする方法

Last updated at Posted at 2018-06-23

テスト機として購入したHuawei P9 LiteがLogcatにログ出力が出来なくて困った。
対処法のメモ。

環境&状況

  • Huawei P9 Lite(開発者向けオプションは設定済み)
  • Android Studio 2.3.1
  • Log.dでlogcatへログ出力が出来ない

原因

どうやらHuawei端末にはログレベルを変更する隠しメニューがあるらしい。

参考
http://stackoverflow.com/questions/2250112/why-doesnt-logcat-show-anything-in-my-android/10963065#10963065

設定方法

  1. 通話アプリを起動
  2. [*#*#2846579#*#*]にダイヤルする
  3. 隠しメニューが開く
  4. Background Settings > LOG Settingsを選択
  5. 全てのチェックボックスにチェックを入れてClose

これでlogcatへの出力がようやく出来るようになる!

備考

隠しメニューはLOG Settings以外にも色々あるので他にも何かあるかも・・・。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3