Skip to content

Instantly share code, notes, and snippets.

@dongchao-cn
dongchao-cn / patch.diff
Created July 23, 2014 13:36
Add `Package-Name` and `Package-Sig` in HTTP Header for Android(KitKat - 4.4)
diff --git a/frameworks/webview/chromium/java/com/android/webview/chromium/WebViewChromium.java b/frameworks/webview/chromium/java/com/android/webview/chromium/WebViewChromium.java
index efeabf9..064ebb0 100644
--- a/frameworks/webview/chromium/java/com/android/webview/chromium/WebViewChromium.java
+++ b/frameworks/webview/chromium/java/com/android/webview/chromium/WebViewChromium.java
@@ -16,6 +16,9 @@
package com.android.webview.chromium;
+import android.app.ActivityThread;
+import android.content.pm.IPackageManager;
#!/bin/env python
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import tornado.httpclient
import tornado.gen
from tornado.concurrent import run_on_executor
from concurrent.futures import ThreadPoolExecutor