diff options
Diffstat (limited to 'en/devices/audio/debugging.html')
-rw-r--r-- | en/devices/audio/debugging.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/en/devices/audio/debugging.html b/en/devices/audio/debugging.html index c2b7cd73..26f77314 100644 --- a/en/devices/audio/debugging.html +++ b/en/devices/audio/debugging.html @@ -45,11 +45,11 @@ done debugging; the tee sink should not be left enabled in production builds. </p> <p> -The instructions in the remainder of this section are for Android 5.x and 6.x. -For Android 7.x, replace <code>/data/misc/media</code> with -<code>/data/misc/audioserver</code>. -Additionally, you must use a userdebug or eng build. -If you use a userdebug build, then disable verity with:</p> + The instructions in this section are for Android 7.x and higher. For Android + 5.x and 6.x, replace <code>/data/misc/audioserver</code> with + <code>/data/misc/media</code>. Additionally, you must use a userdebug or + eng build. If you use a userdebug build, then disable verity with: +</p> <pre class="devsite-terminal devsite-click-to-copy"> adb root && adb disable-verity && adb reboot @@ -74,7 +74,7 @@ adb root && adb disable-verity && adb reboot <br />Confirm that the output is: <code>[ro.debuggable]: [1]</code> </li> <li><code class="devsite-terminal">adb shell</code></li> -<li><code class="devsite-terminal">ls -ld /data/misc/media</code> +<li><code class="devsite-terminal">ls -ld /data/misc/audioserver</code> <br /> <p> Confirm that the output is: @@ -86,8 +86,8 @@ drwx------ media media ... media If the directory does not exist, create it as follows: </p> <pre class="devsite-click-to-copy"> -<code class="devsite-terminal">mkdir /data/misc/media</code> -<code class="devsite-terminal">chown media:media /data/misc/media</code> +<code class="devsite-terminal">mkdir /data/misc/audioserver</code> +<code class="devsite-terminal">chown media:media /data/misc/audioserver</code> </pre> </li> <li><code class="devsite-terminal">echo af.tee=# > /data/local.prop</code> @@ -122,13 +122,13 @@ but you can get similar results using "4." <li>Run your audio test.</li> <li><code class="devsite-terminal">adb shell dumpsys media.audio_flinger</code></li> <li>Look for a line in <code>dumpsys</code> output such as this:<br /> -<code>tee copied to /data/misc/media/20131010101147_2.wav</code> +<code>tee copied to /data/misc/audioserver/20131010101147_2.wav</code> <br />This is a PCM .wav file. </li> -<li>Then <code>adb pull</code> any <code>/data/misc/media/*.wav</code> files of interest; +<li>Then <code>adb pull</code> any <code>/data/misc/audioserver/*.wav</code> files of interest; note that track-specific dump filenames do not appear in the <code>dumpsys</code> output, -but are still saved to <code>/data/misc/media</code> upon track closure. +but are still saved to <code>/data/misc/audioserver</code> upon track closure. </li> <li>Review the dump files for privacy concerns before sharing with others.</li> </ol> @@ -168,7 +168,7 @@ to the device's <code>/system/lib</code>. </li> <li><code class="devsite-terminal">adb shell</code></li> <li><code class="devsite-terminal">rm /data/local.prop</code></li> -<li><code class="devsite-terminal">rm /data/misc/media/*.wav</code></li> +<li><code class="devsite-terminal">rm /data/misc/audioserver/*.wav</code></li> <li><code class="devsite-terminal">reboot</code></li> </ol> |