From 9eaccf00ef62a9867f80a0b42a77c304511c9eef Mon Sep 17 00:00:00 2001 From: David Black Date: Fri, 3 Aug 2012 16:24:03 +0100 Subject: [PATCH] New app: OS Monitor as patched by pfalcon. This app hasn't been updated in ages so hopefully this will be a once-off. --- metadata/com.eolwral.osmonitor.txt | 29 ++++++ .../com.eolwral.osmonitor/name-no-gmaps.patch | 13 +++ metadata/com.eolwral.osmonitor/no-gmaps.patch | 96 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 metadata/com.eolwral.osmonitor.txt create mode 100644 metadata/com.eolwral.osmonitor/name-no-gmaps.patch create mode 100644 metadata/com.eolwral.osmonitor/no-gmaps.patch diff --git a/metadata/com.eolwral.osmonitor.txt b/metadata/com.eolwral.osmonitor.txt new file mode 100644 index 0000000000..eb79de0a5e --- /dev/null +++ b/metadata/com.eolwral.osmonitor.txt @@ -0,0 +1,29 @@ +Category:System +License:GPLv3 +Web Site:http://code.google.com/p/android-os-monitor/ +Source Code:http://code.google.com/p/android-os-monitor/source/checkout +Issue Tracker:http://code.google.com/p/android-os-monitor/issues/list + +Summary:Android OS Monitor +Description: +OSMonitor is an advanced tool which allows you to monitor many system +aspects of an Android device: + +Process: monitor all processes and display detail information about each. + +Network: show every physical or logical network interface with statistics. + +Connection: display every tcp or udp network connection, and query it via WHOIS + +Misc: monitor processor, battery and file system. + +Log: check dmesg or logcat in real-time. + +This version was patched to not require Google Maps. +. + +Repo Type:git +Repo:https://code.google.com/p/android-os-monitor.osmonitor/ + +Build Version:2.0.5,28,cee4327bfe56,buildjni=yes,subdir=OSMonitor,patch=no-gmaps.patch;name-no-gmaps.patch + diff --git a/metadata/com.eolwral.osmonitor/name-no-gmaps.patch b/metadata/com.eolwral.osmonitor/name-no-gmaps.patch new file mode 100644 index 0000000000..1277721438 --- /dev/null +++ b/metadata/com.eolwral.osmonitor/name-no-gmaps.patch @@ -0,0 +1,13 @@ +diff --git a/OSMonitor/res/values/strings.xml b/OSMonitor/res/values/strings.xml +index 3dc0b37..94a5b62 100644 +--- a/OSMonitor/res/values/strings.xml ++++ b/OSMonitor/res/values/strings.xml +@@ -2,7 +2,7 @@ + + + +-OS Monitor ++OS Monitor no-gmaps + OS Monitor 2.0.5 + + diff --git a/metadata/com.eolwral.osmonitor/no-gmaps.patch b/metadata/com.eolwral.osmonitor/no-gmaps.patch new file mode 100644 index 0000000000..812399ac3a --- /dev/null +++ b/metadata/com.eolwral.osmonitor/no-gmaps.patch @@ -0,0 +1,96 @@ +Don't use gmaps to display GeoIP data - first of all, not all devices have +gmaps, secondly, showing map-cartoons is not so required for system app, +separate app could do that. + +diff --git a/OSMonitor/AndroidManifest.xml b/OSMonitor/AndroidManifest.xml +index 22f89d9..bbb0f68 100644 +--- a/OSMonitor/AndroidManifest.xml ++++ b/OSMonitor/AndroidManifest.xml +@@ -39,7 +39,6 @@ + + +- + + + +diff --git a/OSMonitor/src/com/eolwral/osmonitor/networks/NetworkList.java b/OSMonitor/src/com/eolwral/osmonitor/networks/NetworkList.java +index 62adda4..d2dfe09 100644 +--- a/OSMonitor/src/com/eolwral/osmonitor/networks/NetworkList.java ++++ b/OSMonitor/src/com/eolwral/osmonitor/networks/NetworkList.java +@@ -30,11 +30,12 @@ import javax.xml.parsers.SAXParserFactory; + import org.xml.sax.InputSource; + import org.xml.sax.XMLReader; + +-import com.google.android.maps.GeoPoint; ++/*import com.google.android.maps.GeoPoint; + import com.google.android.maps.MapActivity; + import com.google.android.maps.MapController; +-import com.google.android.maps.MapView; ++import com.google.android.maps.MapView;*/ + ++import android.app.Activity; + import android.app.AlertDialog; + import android.app.Dialog; + import android.app.ProgressDialog; +@@ -78,7 +79,7 @@ import com.eolwral.osmonitor.*; + import com.eolwral.osmonitor.preferences.Preferences; + + +-public class NetworkList extends MapActivity implements OnGestureListener, OnTouchListener ++public class NetworkList extends Activity implements OnGestureListener, OnTouchListener + { + private JNIInterface JNILibrary = JNIInterface.getInstance(); + private NetworkListAdapter UpdateInterface = null; +@@ -95,7 +96,7 @@ public class NetworkList extends MapActivity implements OnGestureListener, OnTou + private boolean RDNS = false; + + private WeakReference MapBodyRef = null; +- private MapView GeoIPMap = null; ++// private MapView GeoIPMap = null; + + // Gesture + private GestureDetector gestureScanner = new GestureDetector(this);; +@@ -305,9 +306,9 @@ public class NetworkList extends MapActivity implements OnGestureListener, OnTou + // Use a custom layout file + setContentView(R.layout.networklayout); + +- GeoIPMap = new MapView(this, "0N4HYg91PN1-cGgp3exBmvC1AdzeiGYzp7C3V7g"); ++// GeoIPMap = new MapView(this, "0N4HYg91PN1-cGgp3exBmvC1AdzeiGYzp7C3V7g"); + //GeoIPMap = new MapView(this, "0N4HYg91PN19P2R67mtD2NGBl3ce5DxqXlmH6TA"); +- GeoIPMap.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 180)); ++// GeoIPMap.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 180)); + + ProcHandler = new EventHandler(); + +@@ -674,14 +675,14 @@ public class NetworkList extends MapActivity implements OnGestureListener, OnTou + FrameLayout MapBody = new FrameLayout(this); + MapBodyRef = new WeakReference(MapBody); + +- MapBody.addView(GeoIPMap); +- MapController GeoIPControl = GeoIPMap.getController(); ++// MapBody.addView(GeoIPMap); ++// MapController GeoIPControl = GeoIPMap.getController(); + +- GeoPoint MapPoint = new GeoPoint((int)Longitude,(int)Latitude); +- GeoIPControl.setZoom(8); +- GeoIPControl.animateTo(MapPoint); +- GeoIPControl.setCenter(MapPoint); +- GeoIPMap.getOverlays().add(new MapOverlay(this, MapPoint, R.drawable.point)); ++// GeoPoint MapPoint = new GeoPoint((int)Longitude,(int)Latitude); ++// GeoIPControl.setZoom(8); ++// GeoIPControl.animateTo(MapPoint); ++// GeoIPControl.setCenter(MapPoint); ++// GeoIPMap.getOverlays().add(new MapOverlay(this, MapPoint, R.drawable.point)); + + AlertDialog.Builder WhoisAlert = new AlertDialog.Builder(this); + WhoisAlert.setTitle("Whois"); +@@ -942,7 +943,7 @@ public class NetworkList extends MapActivity implements OnGestureListener, OnTou + } + } + +- @Override ++// @Override + protected boolean isRouteDisplayed() { + // TODO Auto-generated method stub + return false;