From 4f4cb6bf0bd5c6f8aecc3965ff6eec7d13b53c1e Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 18 Jan 2011 13:03:42 -0500 Subject: allow dumping the nav cache from the browser Adding this about:debug flavor allows dumping the nav cache from a script over usb without user interaction. The script for me looks like: function pullnav() { adb shell am start about:debug.nav sleep 1 adb pull data/data/com.android.browser/navlog /android/$1.cpp adb shell rm data/data/com.android.browser/navlog kate -u /android/$1.cpp & } which pulls up the nav dump into a local editor. bug:3364574 Change-Id: Ie6b3491b4b9e4490d8229402f4f3770879eff36d --- src/com/android/browser/IntentHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index e4b3201..2a34aba 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -178,6 +178,8 @@ public class IntentHandler { current.getWebView().dumpRenderTree(true); } else if ("about:debug.display".equals(urlData.mUrl)) { current.getWebView().dumpDisplayTree(); + } else if ("about:debug.nav".equals(urlData.mUrl)) { + current.getWebView().debugDump(); } else { mSettings.toggleDebugSettings(); } -- cgit v1.1