Redirect stdout to logcat in Android NDK

前端 未结 6 961
遇见更好的自我
遇见更好的自我 2020-12-08 19:53

I can\'t get my Nexus S (running Android 4.0) to redirect native stdout message to logcat. I\'ve read that I need to do this:

$ adb shell stop
$ adb shell se         


        
6条回答
  •  离开以前
    2020-12-08 20:12

    This was not obvious to me from the previous answers. Even on rooted devices you need to run:

    adb root
    adb shell stop
    adb shell setprop log.redirect-stdio true
    adb shell start
    

提交回复
热议问题