diff --git a/README.md b/README.md
index 07069d5e84..3187ac8487 100644
--- a/README.md
+++ b/README.md
@@ -8,31 +8,34 @@ Pandora FMS is a monitoring software for IT infrastructure management which incl
For community support you can visit our forums at http://forums.pandorafms.org. Visit our community page at http://pandorafms.org and if you need commercial information or/and professional support visit http://pandorafms.com.
-
### How to install Pandora FMS
Installing Pandora FMS is a very easy task. Please visit our wiki and follow all the steps described for a quick and proper installation. http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Installing
### What is Pandora FMS?
-Pandora FMS is a monitoring application to watch systems and applications that allows to know the status of any element of the business systems. Pandora FMS watches your hardware, software, your multilayer system and, of course, your OS. Pandora FMS can detect if a network interface is down or the movement of any NASDAQ new technology market value. If you wish, Pandora FMS can send a SMS message when your system or your application fails or when Google stock value drops below 330 US$. Pandora FMS will fit your systems and requirements, because it has been designed to be open, modular, multiplattform and easy to customize.
+
+Pandora FMS is a monitoring application to watch systems and applications that allows to know the status of any element of the business systems. Pandora FMS watches your hardware, software, your multilayer system and, of course, your OS. Pandora FMS can detect if a network interface is down or the movement of any NASDAQ new technology market value. If you wish, Pandora FMS can send a SMS message when your system or your application fails or when Google stock value drops below 330 US\$. Pandora FMS will fit your systems and requirements, because it has been designed to be open, modular, multiplattform and easy to customize.
### Other things Pandora FMS can do
-Pandora FMS is a monitoring tool that not only measures if a parameter is right or wrong. Pandora FMS can quantify the state (right or wrong), or store a value (numeric or alphanumeric) for months if necessary. Pandora FMS can measure performances, compare values among different systems and set alarms over thresholds. Pandora FMS works against a Database so it can generate reports, statistics, SLA and meausre anything: OS, applications and hardware systems, such as firewalls, proxies, Databases, web servers, VPN, routers, switches, processes, services, remote accesses to servers, etc. Everything integrated in an open and distributed architecture. Pandora FMS can be deployed over any OS, with specific agents for each platform. There are agents for Windows (2000, XP, 2003), GNU/Linux, Solaris, HP-UX, BSD, AIX, IPSO and OpenWRT. Pandora FMS not only gathers information through its agents, but it can also monitor any hardware system with TCP/IP connectivity, such as load balancing systems, routers, switches or printers, through SNMP and TCP/ICMP checks.
+
+Pandora FMS is a monitoring tool that not only measures if a parameter is right or wrong. Pandora FMS can quantify the state (right or wrong), or store a value (numeric or alphanumeric) for months if necessary. Pandora FMS can measure performances, compare values among different systems and set alarms over thresholds. Pandora FMS works against a Database so it can generate reports, statistics, SLA and meausre anything: OS, applications and hardware systems, such as firewalls, proxies, Databases, web servers, VPN, routers, switches, processes, services, [remote accesses to servers](https://pandorafms.com/server-monitoring/), etc. Everything integrated in an open and distributed architecture. Pandora FMS can be deployed over any OS, with specific agents for each platform. There are agents for Windows (2000, XP, 2003), GNU/Linux, Solaris, HP-UX, BSD, AIX, IPSO and OpenWRT. Pandora FMS not only gathers information through its agents, but it can also monitor any hardware system with TCP/IP connectivity, such as load balancing systems, routers, switches or printers, through SNMP and TCP/ICMP checks.
### Main features
-* Network monitoring
-* WMI monitoring
-* Agent monitoring (for all OS)
-* Graphical reporting, based on it's own SQL backend
-* SLA, and ITIL KPI metrics on reporting
-* Status & Performance monitoring
-* GIS tracking and viewing
-* Inventory management (Local and remote)
-* User defined visual console screens and Dashboards WYSIWYG
-* Very high capacity (Thousands of devices)
-* Multiuser, several levels of ACL management.
+
+- Network monitoring
+- WMI monitoring
+- Agent monitoring (for all OS)
+- Graphical reporting, based on it's own SQL backend
+- SLA, and ITIL KPI metrics on reporting
+- Status & Performance monitoring
+- GIS tracking and viewing
+- Inventory management (Local and remote)
+- User defined visual console screens and Dashboards WYSIWYG
+- Very high capacity (Thousands of devices)
+- Multiuser, several levels of ACL management.
### Screenshots
+

diff --git a/extras/pandora_update_version.sh b/extras/pandora_update_version.sh
index edab1affeb..5fa5af91f0 100755
--- a/extras/pandora_update_version.sh
+++ b/extras/pandora_update_version.sh
@@ -29,6 +29,8 @@ $CODEHOME/pandora_console/pandora_console.redhat.spec \
$CODEHOME/pandora_console/pandora_console.rhel7.spec \
$CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec \
$CODEHOME/pandora_server/pandora_server.redhat.spec \
+$PANDHOME_ENT/pandora_agents/pandora_agent.spec \
+$PANDHOME_ENT/pandora_server/pandora_server_enterprise.redhat.spec \
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.redhat.spec \
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec \
$PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.redhat.spec"
@@ -36,7 +38,7 @@ DEBIAN_FILES="$CODEHOME/pandora_console/DEBIAN \
$CODEHOME/pandora_server/DEBIAN \
$CODEHOME/pandora_agents/unix/DEBIAN \
$PANDHOME_ENT/pandora_console/DEBIAN \
-$PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/DEBIAN"
+$PANDHOME_ENT/pandora_server/DEBIAN"
INSTALLER_FILES="$CODEHOME/pandora_console/pandora_console_install \
$CODEHOME/pandora_server/pandora_server_installer \
$CODEHOME/pandora_agents/unix/pandora_agent_installer"
diff --git a/pandora_agents/Dockerfile b/pandora_agents/Dockerfile
index 945a74b1c9..69117e2ca7 100644
--- a/pandora_agents/Dockerfile
+++ b/pandora_agents/Dockerfile
@@ -9,6 +9,7 @@ RUN yum -y install \
epel-release \
unzip \
perl \
+ python3 \
sed \
"perl(Sys::Syslog)"
diff --git a/pandora_agents/android/mobile/.classpath b/pandora_agents/android/mobile/.classpath
deleted file mode 100755
index 4013f7903e..0000000000
--- a/pandora_agents/android/mobile/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/mobile/.project b/pandora_agents/android/mobile/.project
deleted file mode 100755
index 4398da24f9..0000000000
--- a/pandora_agents/android/mobile/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- Pandroid Agent v1.0
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/pandora_agents/android/mobile/.settings/org.eclipse.jdt.core.prefs b/pandora_agents/android/mobile/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b080d2ddc8..0000000000
--- a/pandora_agents/android/mobile/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/pandora_agents/android/mobile/AndroidManifest.xml b/pandora_agents/android/mobile/AndroidManifest.xml
deleted file mode 100755
index 28574abf78..0000000000
--- a/pandora_agents/android/mobile/AndroidManifest.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/libs/commons-lang3-3.0.1.jar b/pandora_agents/android/mobile/libs/commons-lang3-3.0.1.jar
deleted file mode 100644
index 911e8d89f1..0000000000
Binary files a/pandora_agents/android/mobile/libs/commons-lang3-3.0.1.jar and /dev/null differ
diff --git a/pandora_agents/android/mobile/proguard.cfg b/pandora_agents/android/mobile/proguard.cfg
deleted file mode 100755
index 6c68c1e00c..0000000000
--- a/pandora_agents/android/mobile/proguard.cfg
+++ /dev/null
@@ -1,34 +0,0 @@
--optimizationpasses 5
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native ;
-}
-
--keepclasseswithmembers class * {
- public (android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembers class * {
- public (android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
diff --git a/pandora_agents/android/mobile/project.properties b/pandora_agents/android/mobile/project.properties
deleted file mode 100644
index d6659d5383..0000000000
--- a/pandora_agents/android/mobile/project.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-17
diff --git a/pandora_agents/android/mobile/res/drawable-hdpi/about.png b/pandora_agents/android/mobile/res/drawable-hdpi/about.png
deleted file mode 100644
index da5e23f072..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-hdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-hdpi/help.png b/pandora_agents/android/mobile/res/drawable-hdpi/help.png
deleted file mode 100644
index 948d8d16ba..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-hdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-hdpi/ic_launcher.png b/pandora_agents/android/mobile/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 9a01a88f89..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-hdpi/icon.png b/pandora_agents/android/mobile/res/drawable-hdpi/icon.png
deleted file mode 100644
index d721fa3962..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-hdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-hdpi/pandorafms_logo.png b/pandora_agents/android/mobile/res/drawable-hdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-hdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/about.png b/pandora_agents/android/mobile/res/drawable-ldpi/about.png
deleted file mode 100644
index efd4e3ca5f..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/help.png b/pandora_agents/android/mobile/res/drawable-ldpi/help.png
deleted file mode 100644
index 25e0708e47..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/ic_launcher.png b/pandora_agents/android/mobile/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index aab25d9373..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/icon.png b/pandora_agents/android/mobile/res/drawable-ldpi/icon.png
deleted file mode 100755
index c224228d64..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/logo.png b/pandora_agents/android/mobile/res/drawable-ldpi/logo.png
deleted file mode 100644
index 4cb625e292..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/pandorafms_logo.png b/pandora_agents/android/mobile/res/drawable-ldpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-ldpi/pandroid_large.png b/pandora_agents/android/mobile/res/drawable-ldpi/pandroid_large.png
deleted file mode 100644
index fe050b5d76..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-ldpi/pandroid_large.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-mdpi/about.png b/pandora_agents/android/mobile/res/drawable-mdpi/about.png
deleted file mode 100644
index 61a0e52eba..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-mdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-mdpi/help.png b/pandora_agents/android/mobile/res/drawable-mdpi/help.png
deleted file mode 100644
index 47a98073e7..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-mdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-mdpi/ic_launcher.png b/pandora_agents/android/mobile/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 3876a631f6..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-mdpi/icon.png b/pandora_agents/android/mobile/res/drawable-mdpi/icon.png
deleted file mode 100644
index 659d594568..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-mdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-mdpi/pandorafms_logo.png b/pandora_agents/android/mobile/res/drawable-mdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-mdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/about.png b/pandora_agents/android/mobile/res/drawable-xhdpi/about.png
deleted file mode 100644
index ba20ef46cc..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/help.png b/pandora_agents/android/mobile/res/drawable-xhdpi/help.png
deleted file mode 100644
index a928b3fa1e..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/ic_launcher.png b/pandora_agents/android/mobile/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index f1099df0a3..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/icon.png b/pandora_agents/android/mobile/res/drawable-xhdpi/icon.png
deleted file mode 100644
index bead0bbcf9..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/logo.png b/pandora_agents/android/mobile/res/drawable-xhdpi/logo.png
deleted file mode 100644
index 9552d3a0e4..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/pandorafms_logo.png b/pandora_agents/android/mobile/res/drawable-xhdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/drawable-xhdpi/pandroid_large.png b/pandora_agents/android/mobile/res/drawable-xhdpi/pandroid_large.png
deleted file mode 100644
index 6744648ef1..0000000000
Binary files a/pandora_agents/android/mobile/res/drawable-xhdpi/pandroid_large.png and /dev/null differ
diff --git a/pandora_agents/android/mobile/res/layout/about.xml b/pandora_agents/android/mobile/res/layout/about.xml
deleted file mode 100644
index 4dbb820113..0000000000
--- a/pandora_agents/android/mobile/res/layout/about.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/help.xml b/pandora_agents/android/mobile/res/layout/help.xml
deleted file mode 100644
index 064ff6d68b..0000000000
--- a/pandora_agents/android/mobile/res/layout/help.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/password_choose.xml b/pandora_agents/android/mobile/res/layout/password_choose.xml
deleted file mode 100644
index f09bb2beb2..0000000000
--- a/pandora_agents/android/mobile/res/layout/password_choose.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/password_create.xml b/pandora_agents/android/mobile/res/layout/password_create.xml
deleted file mode 100644
index 26ac76247b..0000000000
--- a/pandora_agents/android/mobile/res/layout/password_create.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/mobile/res/layout/password_entry.xml b/pandora_agents/android/mobile/res/layout/password_entry.xml
deleted file mode 100644
index 991a5f75cd..0000000000
--- a/pandora_agents/android/mobile/res/layout/password_entry.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/mobile/res/layout/setup.xml b/pandora_agents/android/mobile/res/layout/setup.xml
deleted file mode 100644
index 2922866f52..0000000000
--- a/pandora_agents/android/mobile/res/layout/setup.xml
+++ /dev/null
@@ -1,343 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/setupnosim.xml b/pandora_agents/android/mobile/res/layout/setupnosim.xml
deleted file mode 100644
index 8a6022da52..0000000000
--- a/pandora_agents/android/mobile/res/layout/setupnosim.xml
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/simple_spinner_item.xml b/pandora_agents/android/mobile/res/layout/simple_spinner_item.xml
deleted file mode 100644
index b12067c7c8..0000000000
--- a/pandora_agents/android/mobile/res/layout/simple_spinner_item.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/spinner.xml b/pandora_agents/android/mobile/res/layout/spinner.xml
deleted file mode 100644
index d0649eb378..0000000000
--- a/pandora_agents/android/mobile/res/layout/spinner.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/status.xml b/pandora_agents/android/mobile/res/layout/status.xml
deleted file mode 100644
index c3846fd194..0000000000
--- a/pandora_agents/android/mobile/res/layout/status.xml
+++ /dev/null
@@ -1,475 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/statusnosim.xml b/pandora_agents/android/mobile/res/layout/statusnosim.xml
deleted file mode 100644
index 7d6f8d23a5..0000000000
--- a/pandora_agents/android/mobile/res/layout/statusnosim.xml
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/layout/welcome.xml b/pandora_agents/android/mobile/res/layout/welcome.xml
deleted file mode 100644
index e388a48669..0000000000
--- a/pandora_agents/android/mobile/res/layout/welcome.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/menu/options_menu.xml b/pandora_agents/android/mobile/res/menu/options_menu.xml
deleted file mode 100644
index 1662c1c487..0000000000
--- a/pandora_agents/android/mobile/res/menu/options_menu.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-de/strings.xml b/pandora_agents/android/mobile/res/values-de/strings.xml
deleted file mode 100644
index 0c39027772..0000000000
--- a/pandora_agents/android/mobile/res/values-de/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Status"
- "Einrichten"
- "Pandroid Agenten"
- "Intervall"
- "Update-Konfiguration."
- "Standardwert übernehmen"
- "Server-Adresse:"
- "Serverport"
- "Pandroid Agent Configuration"
- "Verkäufer:"
- "GPS-Modus"
- "Aktuelle Position (hohe Akku Kosten)"
- "Aktuelle Konfiguration:"
- "Neu starten"
- "Letzte bekannte Position"
- "Ladevorgang läuft..."
- "Letzten Werte"
- "Breitengrad"
- "Längengrad"
- "Akkustand"
- "Ausrichtung"
- "Nähe"
- "Konnte nicht aktualisiert werden Optionen."
- "Aufgaben"
- "Speicher"
- "hilfe"
- "Über"
- "Lizenziert unter GPL v2"
- "Entwickler: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid Agenten"
- "Copyright © 2011 Artica"
- "Pandroid Agenten logo"
- "hilfe"
- "Avaliable:%iKb Total: %iKb"
- "Nie."
- "Jetzt."
- "Vor Sekunden"
- "Kontakt Fehler"
- "Letzter Kontakt:\n"
- "
- Pandroid Agent ist ein Android Pandora FMS Agent für Pandora FMS. <p> Pandora FMS ist ein Allzweck-Monitoring-System. Mit dem android Agent können Sie alle Arten von Informationen von Ihrem Gerät die GPS-Position, wie viel Akku gelassen wird, verfügbaren Speicher auf dem Gerät, die Überwachung zu erhalten, wenn ein Prozess aktiv ist, die Zeit, da das Gerät eingeschaltet wurde, ein HALLO-Signal die Überwachung von Anlagen der App, eine Bestandsaufnahme mit allen installierten Anwendungen aswell als Information für Android-Handys mit einer SIM-Karte, die SIM-Karte ID, die Anzahl der SMS / empfangen worden, ruft die Anzahl der eingehenden / entgangenen / outgoing, das Netzwerk Betreiber und Typ, die Klinke, die mobile Signalstärke, die Anzahl von Bytes / über das Mobilfunknetz gesendet wird. Der komplette Quellcode bereitgestellt. <p> Sehen Sie mehr über Pandora FMS unter <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "anfang"
- "Verbindung erfolgreich"
- "Konfiguration erfolgreich gespeichert"
- "Agent angehalten"
- "Sekunden"
- "Laufen"
- "Gestoppt"
-
-
-
- "Sim ID:"
- ""
- "Gerät bis Zeit:"
- ""
- "Empfangene SMS: "
- ""
- "Gesendete SMS: "
- ""
- "Netzbetreiber:"
- ""
- "Netzwerktyp:"
- ""
- "Handytyp:"
- ""
- "Signalstärke:"
- ""
- "Eingehende Anrufe:"
- ""
- "Entgangene Anrufe"
- ""
- "Abgehende Anrufe:"
- ""
- "Empfangene Bytes:"
- ""
- "Bytes übertragen:"
- ""
- "Roaming:"
- ""
-
-
- "Passwort eingeben"
- "Die Passwörter stimmen nicht überein."
- "Fehler"
- "passwort"
- "Kennwort muss länger als 6 Zeichen lang sein!"
- "Falsches Passwort"
- "Set Password (leer lassen für keine)"
- "Passwort eingeben:"
- "Kennwort bestätigen:"
- "Wollen Sie ein Passwort einrichten?"
- "Dont wieder fragen"
- "Kennwort erfolgreich erstellt"
- "Kein Passwort gesetzt"
- "Erstellen/Passwort ändern"
-
- "Mobile-Server URL:"
- "Zur mobilen Website"
-
- XML Puffergröße(KB)
-
- "Eingangsbereich"
- "zurück"
- "ja"
- "nein"
-
- "Bericht Sim ID"
- "Bericht GPS-Daten"
- "Bericht verfügbaren Speicher"
- Wählen Aufgabe zu berichten:
- "Bericht Aufgabe"
- "Bericht Gerät up-Zeit"
- "Bericht Netzbetreiber"
- "Bericht Netztyp"
- "Bericht Telefontyp"
- "Bericht Signalstärke"
- "Bericht Anzahl der empfangenen SMS"
- "Bericht Anzahl der gesendeten SMS"
- "Bericht Anzahl der eingehenden Anrufe"
- "Bericht Anzahl der entgangenen Anrufe"
- "Bericht Anzahl der ausgehenden Anrufe"
- "Bericht Menge der empfangenen mobilen Daten"
- "Bericht Menge der gesendeten mobile Daten"
- "Bericht hallo Signal"
- "Bericht Akkustand"
- "Melden, wenn Roaming"
- Bericht Bestandsaufnahme der installierten Apps
-
- Pandroid
- Agent ausgeführt wird
- Verbindend…
- Stopp Agent
- Starten Agent
- anzeigen Benachrichtigung, wenn läuft?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-en/strings.xml b/pandora_agents/android/mobile/res/values-en/strings.xml
deleted file mode 100755
index 92837ff2a9..0000000000
--- a/pandora_agents/android/mobile/res/values-en/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Status
- Setup
- Pandroid Agent
- Interval:
- Update configuration.
- Set default
- Server Address:
- Server Port:
- Pandroid Agent Configuration
- Agent name:
- GPS Mode
- Current position (high battery cost)
- Current configuration:
- Restart
- Last known position
- Loading…
- Last values
- Latitude
- Longitude
- Battery Level
- Orientation
- Proximity
- Could not update options.
- Task
- Memory
- Help
- About
- Licensed under GPL v2
- Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Pandroid Agent
- Copyright © 2011 Artica
- Pandroid Agent logo
- Help
- Available: %iKb Total: %iKb
- Never.
- Now.
- seconds ago.
- Contact error
- Last Contact:\n
-
- Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. <p>
- Pandora FMS is a general purpose monitoring system. With the android agent you can get all sorts of information from your device,
- the gps location, how much battery is left, available memory on the device, monitoring if a process is active, the time since the device was turned on, a HELLO signal for monitoring installations of the app,
- an inventory with all the installed apps as well as information for android phones with a sim card; the sim card ID, the number of SMS sent/received, the number of calls
- incoming/missed/outgoing, the network operator and type, the phone type, the mobile signal strength, the number of bytes sent/received
- over the mobile network. Complete source code is provided.<p>See more about Pandora FMS at <a href="http://pandorafms.com">http://pandoraFMS.com</a></p>
-
- Start
- Connection successful
- Configuration saved successfully
- Agent Stopped
- Seconds
- Running
- Stopped
-
-
- Sim ID:
-
- Device up time:
-
- Received SMS:
-
- Sent SMS:
-
- Network operator:
-
- Network type:
-
- Phone type:
-
- Signal strength:
-
- Incoming calls:
-
- Missed calls:
-
- outgoing calls:
-
- Bytes received:
-
- Bytes transmitted:
-
- Roaming:
-
-
-
- Enter password
- Passwords do not match!
- error
- password
- password must be longer than 6 characters!
- Wrong password!
- Set Password(leave blank for none)
- Enter Password
- Repeat Password
- Do you want to set a password?
- Don\'t ask again
- Password successfully created
- No password set
- Create/Change password
-
-
- Mobile server URL:
- View Mobile site
-
- XML Buffer Size (KB) (Enterprise Only)
-
- enter
- back
- yes
- no
-
- Report Sim ID
- Report GPS data
- Report available memory
- Choose task to report:
- Report task
- Report device up time
- Report network operator
- Report network type
- Report phone type
- Report signal strength
- Report number of received SMS
- Report number of sent SMS
- Report number of incoming calls
- Report number of missed calls
- Report number of outgoing calls
- Report amount of received mobile data
- Report amount of sent mobile data
- Report Hello Signal
- Report battery level
- Report if roaming
- Report inventory of installed apps
-
-
- Pandroid
- Agent is running
- Connecting…
- Stop Agent
- Restart Agent
- Show notification when running?
-
-
diff --git a/pandora_agents/android/mobile/res/values-es/strings.xml b/pandora_agents/android/mobile/res/values-es/strings.xml
deleted file mode 100755
index d91b7e09cc..0000000000
--- a/pandora_agents/android/mobile/res/values-es/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Estado
- Configuración
- Agente Pandroid
- Intervalo:
- Actualiza conf.
- Por defecto
- Url del server:
- Puerto del server:
- Configuración del Agente Pandroid
- Nombre Agente:
- Modo GPS
- Actual posición (alto consumo de batería)
- Configuración actual:
- Reiniciar
- Última posición conocida
- Cargando…
- Últimos valores
- Latitud
- Longitud
- Nivel de batería
- Orientación
- Proximidad
- Incorrecta actulización configuración.
- Tarea
- Memoria
- Ayuda
- Sobre
- Licenciado bajo GPL v2
- Desarrolladores: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Agente Pandroid
- Copyright © 2011 Artica
- Pandroid Agent logotipo
- Ayuda
- Disponible: %iKb Total: %iKb
- Nunca.
- Ahora.
- segundos
- Error contacto
- Último contacto:\n
-
- Pandroid Agent es un agente en Android para Pandora FMS. <p>
- Pandora FMS es un sistema de monitorización de propósito general. Con el agente en Android puedes monitorizar todo tipo de cosas,
- GPS, cuanta batería le queda al dispositivo, memoria disponible, si un proceso está activo, El tiempoe que lleva encendido el dispositivo,
- un señal de saludo para monotrorizar instalaciones de pandroid, un inventario con información de todos los apps instalados. También
- datos de moviles, la ID del sim, número de SMS enviados/recibidos, número de llamadas entrantes/perdidas/recibidas, el nombre del operador
- y el tipo, el tipo de móvil, la potencia de señal, el número de bytes enviados/recibidos por la red móvil.
- El código fuente esta disponible.<p>Puedes informarte de esto y mas en Pandora FMS en <a href="http://pandorafms.com">http://pandorafms.com</a></p>
-
- Iniciar
- Conexion con éxito
- Configuración guardado con éxito
- Agente parado
- Segundos
- En marcha
- Parado
-
-
- Sim ID:
-
- Tiempo encendido:
-
- SMS recibido:
-
- SMS enviado:
-
- Operador:
-
- Tipo red:
-
- Tipo móvil:
-
- Potencia señal:
-
- Llamadas recibidas:
-
- Llamadas perdidas:
-
- Llamadas enviadas:
-
- Bytes recibidos:
-
- Bytes transmitidos:
-
- Roaming:
-
-
-
- Introducir contraseña
- Las contraseñas son diferentes!
- error
- contraseña
- La contraseña debe contener mas de 6 carácteres!
- Contraseña incorrecta
- Crear contraseña
- Introducir contraseña
- Repetir contraseña
- Quieres poner una contraseña?
- No vuelves a preguntar
- Contraseña creada
- Sin contraseña
- Crear/Cambiar contraseña
-
- URL de servidor móvil:
- Ver sitio móvil
-
- Tamaño de búfer XML (KB) (Enterprise solamente)
-
- Intro
- Volver
- si
- no
-
- Reporta Sim ID
- Reporta datos GPS
- Reporta estado memoria
- Elegir tarea a reportar:
- Reporta tarea
- Reporta tiempo encendido
- Reporta operador de red
- Reporta tipo de red
- Reporta tipo de móvil
- Reporta potencia de señal
- Reporta numero de SMS recibido
- Reporta numero de SMS enviado
- Reporta numero de llamadas recibidas
- Reporta numero de llamadas perdidas
- Reporta numero de llamadas salientes
- Reporta bytes recibidos
- Reporta bytes enviados
- Reporta señal de saludo
- Reporta nivel de bateria
- Reporta si Roaming
- Reporta inventario de las aplicaciones instaladas
-
- Pandroid
- Agente en ejecución
- Conectando…
- Detener Agente
- Reiniciar Agente
- Mostrar notificación mientras en ejecución?
-
-
-
diff --git a/pandora_agents/android/mobile/res/values-fr/strings.xml b/pandora_agents/android/mobile/res/values-fr/strings.xml
deleted file mode 100644
index 730f1761b3..0000000000
--- a/pandora_agents/android/mobile/res/values-fr/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "État"
- "Paramétrer"
- "Agent Pandroid"
- "Fréquence :"
- "Paramètres de mise à jour"
- "Définir par Défaut"
- "Adresse du serveur:"
- "Server Port:"
- "Configuration de l'agent Pandroid"
- "Nom de l'agent:"
- "Mode GPS"
- "Position actuelle (coût de la batterie élevée)"
- "Configuration actuelle:"
- "Redém."
- "Dernière position connue"
- "Chargement…"
- "Dernières valeurs"
- "Latitude"
- "Longitude"
- "Niveau de charge de la batterie"
- "Orientation"
- "proximité"
- "Impossible de mettre à jour les options."
- "Tâche"
- "Lecteur"
- "aide"
- "Sur"
- "Sous licence GPL v2"
- "Développeurs: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Agent Pandroid"
- "Copyright © 2011 Artica"
- "Logo Agent Pandroid"
- "aide"
- "Disponible: %iKb Total: %iKb"
- "Jamais."
- "Maintenant."
- "secondes"
- "Contactez erreur"
- "dernier Contact:\n"
- "
- Agent Pandroid est un Android Pandora FMS agent de Pandora FMS. <p> Pandora FMS est un système de surveillance à usage général. Avec l'agent android vous pouvez obtenir toutes sortes d'informations à partir de votre appareil, l'emplacement gps, combien de batterie est laissée, la mémoire disponible sur l'appareil, suivi si un processus est actif, le temps écoulé depuis l'appareil a été mis sous tension, un signal BONJOUR pour la surveillance des installations de l'application, un inventaire de toutes les applications installées aswell titre d'information pour les téléphones Android avec une carte sim, l'ID de carte SIM, le nombre de SMS envoyés / reçus, le nombre d'appels entrants / manqués / sortant, le réseau l'opérateur et le type, le type de téléphone, le niveau de signal mobile, le nombre d'octets envoyés / reçus sur le réseau mobile. Le code source complet est fourni. <p> Voir plus sur Pandora FMS à <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </ a> </ p>
- "
- "Commence"
- "Connexion réussie"
- "Configuration sauvegardée avec succès"
- "Agent arrêté"
- "Secondes"
- "En marche"
- "Arrêté"
-
-
-
- "Sim ID:"
- ""
- "Dispositif le temps de:"
- ""
- "SMS reçus: "
- ""
- "SMS envoyés: "
- ""
- "Opérateur de réseau:"
- ""
- "Type de réseau :"
- ""
- "Type de téléphone:"
- ""
- "Intensité du signal :"
- ""
- "Appels entrants:"
- ""
- "Appels manqués"
- ""
- "Appels sortants:"
- ""
- "Octets reçus :"
- ""
- "Octets transmis:"
- ""
- "Itinérance :"
- ""
-
-
- "Saisir votre mot de passe"
- "Les mots de passe diffèrent."
- "Erreur."
- "mot de passe"
- "mot de passe doit être plus long que 6 caractères!"
- "Mot de passe incorrect"
- "Définir mot de passe (laisser vide pour aucun)"
- "Saisir le mot de passe"
- "Répéter mot de passe"
- "Ne vous souhaitez définir un mot de passe?"
- "Ne pas demander à nouveau"
- "Mot de passe créé avec succès"
- "Aucun mot de passe défini"
- "Créer/Modifier le mot de passe"
-
- "URL du serveur Mobile:"
- "Voir le site mobile"
-
- taille du buffer XML(KB)
-
- "Entrer…"
- "arrière"
- "oui"
- "no"
-
- "Rapport Sim ID"
- "Rapport de données GPS"
- "Signaler mémoire disponible"
- Choisissez tâche de rendre compte:
- "Tâche de rapport"
- "Signaler appareil le temps"
- "Signaler opérateur de réseau"
- "Rapport type de réseau"
- "Rapport type de téléphone"
- "Rapport puissance du signal"
- "Rapport du nombre de SMS reçus"
- "Indiquer le nombre de SMS envoyés"
- "Rapport numéro des appels entrants"
- "Rapport numéro des appels manqués"
- "Numéro de rapport des appels sortants"
- "Rapport du montant reçu données mobiles"
- "Rapport du montant envoyé des données mobiles"
- "Rapport Signal Bonjour"
- "Signaler niveau de la batterie"
- "Signaler roaming"
- Inventaire Rapport d\'applications installées
-
-
- Pandroid
- Agent est exécuté
- Connexion en cours…
- Cesser Agent
- Redémarrez l\'Agent
- Afficher la notification lors de l\'exécution?
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-it/strings.xml b/pandora_agents/android/mobile/res/values-it/strings.xml
deleted file mode 100644
index 067b042d27..0000000000
--- a/pandora_agents/android/mobile/res/values-it/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Stato"
- "Setup"
- "Agente Pandroid"
- "Periodicità"
- "Aggiornare la configurazione."
- "Imposta predefinito"
- "Indirizzo server:"
- "Porta Server"
- "Configurazione dell'agente Pandroid"
- "Venditore:"
- "Modalità GPS"
- "Posizione attuale (costo batteria alto)"
- "La configurazione attuale:"
- "Riavviare"
- "Ultima posizione nota"
- "Caricamento…"
- "Ultimi valori"
- "Latitudine"
- "Longitudine"
- "Livello batteria:"
- "Orientamento"
- "Prossimità"
- "Impossibile aggiornare le opzioni."
- "Attività:"
- "Memoria"
- "guida"
- "Circa"
- "Distribuito sotto licenza GPL v2"
- "Sviluppatori: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Agente Pandroid"
- "Copyright © 2011 Artica"
- "Agente logo Pandroid"
- "guida"
- "Disponibile: %iKb Total: %iKb"
- "Mai"
- "Ora."
- "secondi fa"
- "Contatto errore"
- "Ultimo contatto:\n"
- "
- Agente Pandroid è un Android Pandora FMS agente di Pandora FMS. <p> Pandora FMS è un generale sistema di monitoraggio scopo. Con l'agente di Android si possibile ottenere tutti i tipi di informazioni dal dispositivo, la posizione gps, quanta batteria rimane, la memoria disponibile sul dispositivo di monitoraggio, se un processo è attivo, il tempo in quanto il dispositivo è stato acceso, un segnale CIAO per il monitoraggio installazioni di app, un inventario con l'all Applicazioni installate cosí come informazioni per i telefoni Android con una sim card, l'ID scheda SIM, il numero di SMS inviati / ricevuti, il numero di chiamate in arrivo / perse / in uscita, la rete dall'operatore e dal tipo, il tipo di telefono, la potenza del segnale cellulare, il numero di byte inviati / ricevuti tramite la rete mobile. Codice sorgente completo è fornito. <p> Vedi di più su Pandora FMS all'indirizzo <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "inizio"
- "Collegamento riuscito!"
- "Configurazione salvata con successo"
- "Agente Arrestato"
- "secondi"
- "In esecuzione"
- "Arrestato"
-
-
-
- "Sim ID:"
- ""
- "Dispositivo Tempo:"
- ""
- "SMS ricevuti: "
- ""
- "SMS Inviati: "
- ""
- "Operatore di rete:"
- ""
- "Tipo di rete:"
- ""
- "Tipo di telefono:"
- ""
- "Intensità segnale:"
- ""
- "Chiamate entranti"
- ""
- "Chiamate senza risposta"
- ""
- "Chiamate in uscita:"
- ""
- "Byte ricevuti:"
- ""
- "Byte trasmessi:"
- ""
- "Roaming in corso:"
- ""
-
-
- "Inserisci password"
- "Le password non corrispondono"
- "errore"
- "Password"
- "password deve essere più lungo di 6 caratteri!"
- "Password errata"
- "Imposta password (lasciare in bianco per nessuno)"
- "Inserire il password:"
- "Conferma password:"
- "Vuoi impostare una password?"
- "Non chiedere più"
- "Password con successo creato"
- "Nessuna password impostata"
- "Crea / Modifica password"
-
- "URL del server Mobile:"
- "Visualizza sito Mobile"
-
- Dimensione buffer XML(KB)
-
- "Invio"
- "indietro"
- "sì"
- "no"
-
- "Report Sim ID"
- "Report dati GPS"
- "Report memoria disponibile"
- Scegli compito di segnalare:
- "Relazione della task"
- "Report dispositivo Tempo"
- "Protocollo operativo di rete"
- "Tipo di rapporto di rete"
- "Report tipo di telefono"
- "Report potenza del segnale"
- "Numero del rapporto della SMS ricevuti"
- "Numero del rapporto di SMS inviati"
- "Numero del rapporto delle chiamate in arrivo"
- "Numero del rapporto di chiamate perse"
- "Numero del rapporto delle chiamate in uscita"
- "Quantità Relazione ricevuti dati mobili"
- "Quantità Relazione inviati dati mobili"
- "Report Ciao segnale"
- "Livello segnala batteria"
- "Segnalare se il roaming"
- Rapporto inventario delle applicazioni installate
-
-
- Pandroid
- Agente è in esecuzione
- Connessione in corso…
- arresto Agente
- Riavviare Agente
- Mostra notifica durante l\'esecuzione?
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-ja/strings.xml b/pandora_agents/android/mobile/res/values-ja/strings.xml
deleted file mode 100755
index ffb51cab1a..0000000000
--- a/pandora_agents/android/mobile/res/values-ja/strings.xml
+++ /dev/null
@@ -1,152 +0,0 @@
-
- "PANDROID_DATA"
-
- "状態"
- "設定"
- "Pandroid エージェント"
- "間隔"
- "設定更新"
- "デフォルトの設定"
- "サーバーアドレス:"
- "サーバーポート:"
- "Pandroid エージェントの設定"
- "エージェント名:"
- "GPSモード"
- "現在位置(高バッテリ消費)"
- "現在の設定"
- "再起動"
- "最後の既知の位置"
- "ロード中…"
- "最新の値"
- "緯度"
- "経度"
- "バッテリー残量"
- "向き"
- "近接"
- "オプションを更新できませんでした。"
- "タスク"
- "メモリー"
- "ヘルプ"
- "情報"
- "GPL v2の下でライセンス"
- "開発者:Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid エージェント"
- "著作権 © 2011 Artica"
- "Pandroid エージェントロゴ"
- "ヘルプ"
- "空き容量:%iKb 合計容量:%iKb"
- "なし"
- "今すぐ。"
- "秒前"
- "接続エラー"
- "最近の接続\n"
- "PandroidエージェントはPandora FMSのためのAndroid向けエージェントです。 <p> Pandora FMSは、統合監視システムです。Androidエージェントでは、あなたのAndroidデバイスからあらゆる情報を取得することができます。GPSの位置情報、バッテリーの残量、メモリの空き容量、プロセスが動作しているかどうか、デバイスの起動してからの経過時間、アプリの動作を確認するためのHELLOシグナル、インストールされている全てのアプリケーションのインベントリ情報を取得できます。また、Android携帯では、SIMカードのID情報、SMSの送受信数、着信/不在着信/発信数、ネットワークオペレータとタイプ、電話機タイプ、携帯電波強度、携帯送受信データバイト数を取得できます。全ソースコードは公開されています。<p>Pandora FMS に関する詳細は以下を参照してください。<a href="http://pandorafms.com">http://pandoraFMS.com</a></p>"
- "開始"
- "接続成功"
- "設定を保存しました"
- "エージェント停止"
- "秒"
- "実行中"
- "停止"
-
-
-
- "SIM ID:"
- ""
- "起動時間:"
- ""
- "受信 SMS:"
- ""
- "送信 SMS:"
- ""
- "ネットワークオペレータ:"
- ""
- "ネットワークの種類"
- ""
- "携帯電話の種類:"
- ""
- "電波強度:"
- ""
- "着信履歴"
- ""
- "不在着信:"
- ""
- "発信履歴"
- ""
- "受信バイト数:"
- ""
- "送信バイト数"
- ""
- "ローミング:"
- ""
-
-
- "パスワードを入力"
- "パスワードが一致しません"
- "エラー"
- "パスワード"
- "パスワードは6文字以上でなければなりません!"
- "パスワードが間違っています。"
- "パスワードを設定(なしの場合は空白のままにします)"
- "パスワード入力"
- "パスワード再入力"
- "パスワードを設定しますか?"
- "再確認しない"
- "パスワードが作成されました"
- "パスワードが設定されていません"
- "パスワードの作成/変更"
-
- "モバイル·サーバーのURL:"
- "携帯サイトを見る"
-
- XML バッファサイズ(KB)
-
- "入力"
- "戻る"
- "はい"
- "いいえ"
-
- "SIM番号をレポート"
- "GPSデータをレポート"
- "利用可能メモリをレポート"
- 報告するには、タスクを選択してください:
- "タスクをレポート"
- "起動時間をレポート"
- "ネットワークオペレータをレポート"
- "ネットワークタイプをレポート"
- "電話機タイプをレポート"
- "電波強度をレポート"
- "受信SMS数をレポート"
- "送信SMS数をレポート"
- "着信数をレポート"
- "不在着信をレポート"
- "発信数をレポート"
- "受信データ量をレポート"
- "送信データ量をレポート"
- "Helloシグナルをレポート"
- "バッテリー残量をレポート"
- "ローミング中かどうかをレポート"
- インストールされているアプリのレポート
-
- Pandroid
- エージェント実行中
- 接続中…
- エージェント停止
- エージェント再起動
- 実行時に警告を表示しますか?
-
-
diff --git a/pandora_agents/android/mobile/res/values-pt/strings.xml b/pandora_agents/android/mobile/res/values-pt/strings.xml
deleted file mode 100644
index 562ce74bd0..0000000000
--- a/pandora_agents/android/mobile/res/values-pt/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Estado"
- "Configuração:"
- "Agente Pandroid"
- "Intervalo"
- "Atualizar a configuração."
- "Definir padrão"
- "Endereço do Servidor:"
- "Porta do Servidor:"
- "Configuração do agente Pandroid"
- "Nome do agente:"
- "Modo de GPS"
- "Posição atual (custo de baterias de alta)"
- "Configuração atual:"
- "Reiniciar"
- "Última posição conhecida"
- "A carregar…"
- "Os últimos valores"
- "Latitude"
- "Longitude"
- "Nível de Bateria"
- "Orientação"
- "Proximidade"
- "Não foi possível atualizar opções."
- "Funções:"
- "Memória"
- "Help (Ajuda)"
- "Acerca de"
- "Licenciado sob a GPL v2"
- "Desenvolvedores: Sergio M. Zarzuelo, Miguel de Dios, Marcos Holanda"
- "Agente Pandroid"
- "Copyright © 2011 Artica"
- "Logotipo Agente Pandroid"
- "Help (Ajuda)"
- "Avaliable: %iKb Total: %iKb"
- "Nunca."
- "Ja! "
- "segundo atrás."
- "Fale erro"
- "Último Contato:\n"
- "
- Agente Pandroid é um Android Pandora agente de Pandora. <p> Pandora FMS é um sistema de monitoramento de propósito geral. Com o agente Android você pode obter todos os tipos de informações do seu dispositivo, a localização GPS, o quanto de bateria é deixado de memória, disponível no dispositivo de monitorização, se um processo está ativo, o tempo desde que o dispositivo foi ligado, um sinal OLÁ para monitorar as instalações do app, um inventário com todos os aplicativos instalados aswell como informação para telefones Android com um cartão SIM, a identificação do cartão SIM, o número de SMS enviadas / recebidas, o número de chamadas recebidas / perdidas / saída, a rede operador e do tipo, o tipo de telefone, a intensidade do sinal celular, o número de bytes enviados / recebidos através da rede móvel. Código-fonte completo é fornecido. <p> Veja mais sobre Pandora em <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "Início"
- "Conexão bem-sucedida"
- "Configuração salva com sucesso"
- "Agente Parado"
- "Segundos"
- "Executar"
- "Parado"
-
-
-
- "Sim ID:"
- ""
- "Dispositivo o tempo:"
- ""
- "SMS recebidos: "
- ""
- "SMS enviado: "
- ""
- "Operador de rede:"
- ""
- "Tipo de rede:"
- ""
- "Tipo de telefone:"
- ""
- "Intensidade do sinal"
- ""
- "As chamadas recebidas:"
- ""
- "Chamadas perdidas:"
- ""
- "Chamadas de saída:"
- ""
- "Bytes recebidos:"
- ""
- "Bytes transmitidos:"
- ""
- "Roaming:"
- ""
-
-
- "Digite a passe"
- "As senhas não combinam!"
- "error"
- "Palavra-passe: "
- "senha deve ter mais de 6 caracteres!"
- "Passe errada"
- "Definir senha (deixe em branco para nenhum)"
- "Digite a passe"
- "Repita Senha"
- "Você quer definir uma senha?"
- "Não pergunte novamente"
- "Senha com sucesso criado"
- "Nenhum conjunto senha"
- "Criar / Alterar senha"
-
- "URL do servidor móvel:"
- "Veja o site móvel"
-
- Tamanho do buffer XML(KB)
-
- "Enter"
- "voltar"
- "SIM"
- "não"
-
- "Relatório Sim ID"
- "Relatório de dados GPS"
- "Relatório memória disponível"
- Escolha tarefa de relatar:
- "Tarefa de relatório"
- "Relatório dispositivo o tempo"
- "Relatório operador de rede"
- "Tipo de rede relatório"
- "Tipo de telefone relatório"
- "Relatam a intensidade do sinal"
- "Número do relatório de SMS recebidas"
- "Número do relatório de SMS enviados"
- "Número do relatório de chamadas recebidas"
- "Número do relatório de chamadas não atendidas"
- "Número do relatório de chamadas de saída"
- "Relatório do montante recebido dados móveis"
- "Relatório do montante enviado dados móveis"
- "Relatório Olá sinal"
- "Relatório de nível da bateria"
- "Relatar se de roaming"
- Relatório de inventário de aplicativos instalados
-
- Pandroid
- Agente está em execução
- Ligar…
- pare de Agente
- reinicie Agente
- Mostrar notificação quando a correr?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-v11/themes.xml b/pandora_agents/android/mobile/res/values-v11/themes.xml
deleted file mode 100644
index b63de87cc9..0000000000
--- a/pandora_agents/android/mobile/res/values-v11/themes.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values-zh/strings.xml b/pandora_agents/android/mobile/res/values-zh/strings.xml
deleted file mode 100644
index 0d400a70d9..0000000000
--- a/pandora_agents/android/mobile/res/values-zh/strings.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-
- "PANDROID_DATA"
-
- "*状态*"
- "设置"
- "Pandroid代理"
- "周期"
- "更新配置。"
- "设置默认值"
- "服务器地址:"
- "服务器端口:"
- "Pandroid代理配置"
- "机构名称:"
- "GPS模式"
- "当前位置(电池成本高)"
- "配置:"
- "重新启动(Restart)"
- "最后已知的位置"
- "载入中…"
- "最后一个值"
- "纬度"
- "经度"
- "电池电量:"
- "位置和方向"
- "n.接近,接近度"
- "无法更新选项。"
- "人物"
- "内存"
- "愿意帮助"
- "关于"
- "根据GPL v2的许可"
- "开发商:Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid代理"
- "版权所有 © 2011 Artica"
- "Pandroid代理标志"
- "愿意帮助"
- "可供选择:%iKb 总计:%iKb"
- "从来没有。"
- "现在,。"
- "秒前。"
- "联系错误"
- "最后联系方式\n"
- "Pandroid代理是一个Android潘多拉潘多拉柔性制造系统FMS代理。 <P>潘多拉FMS是一个通用的监控系统。随着Android代理,你可以得到各种信息设备,GPS定位,电池留多少,可用内存设备,监控,如果一个进程处于活动状态的时间,因为该装置被打开,一个HELLO信号监测装置的应用程序,清点所有已安装的应用程序以及Android手机的SIM卡的SIM卡ID的信息,发送/接收的短信数量,呼叫来电/未接/输出,网络运营商和类型,手机类型,在手机信号强度,通过移动网络发送/接收的字节数。提供完整的源代码。<p>查看更多关于潘多拉FMS <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>"
- "开始"
- "连接成功"
- "配置保存成功"
- "代理停止"
- "秒"
- "运行"
- "已停止"
-
-
-
- "辛ID:"
- ""
- "设备时间:"
- ""
- "收到短信:"
- ""
- "发送短信:"
- ""
- "网络运营商:"
- ""
- "网络类型:"
- ""
- "手机类型:"
- ""
- "信号强度:"
- ""
- "来电:"
- ""
- "未接来电:"
- ""
- "拨出电话:"
- ""
- "接收的字节数:"
- ""
- "传输字节数:"
- ""
- "漫游:"
- ""
-
-
- "“输入密码”;
-"
- "“密码不相符”;"
- "錯誤"
- "密码"
- "密码长度必须大于6个字符!"
- "密码错误"
- "设置密码(留空为空)"
- "输入密码"
- "密码重复"
- "你要设置的密码?"
- "不要再问"
- "成功地创建密码"
- "没有设置密码"
- "创建/更改密码"
-
- "Mobile服务器的URL:"
- "查看手机网站"
-
- XML 緩衝區大小(KB)
-
- "进入"
- "背面"
- "是"
- "没有"
-
- "报告SIM卡ID"
- "报告GPS数据"
- "报告可用内存"
- 選擇任務報告:
- "报告任务"
- "报告设备的正常运行时间"
- "报告网络运营商"
- "报告网络类型"
- "举报电话类型"
- "报告的信号强度"
- "报告数收到的短信"
- "报告编号发送短信"
- "报告的来电"
- "报告的未接来电"
- "报告编号拨出电话"
- "收到的移动台的数据的量是"
- "报告发送的移动数据量"
- "报告hello信号"
- "报告电池电量"
- "报告如果漫游"
- 报告库存安装的应用程序
-
- Pandroid
- 代理正在运行
- 连…
- 停止代理
- 重新启动代理
- 运行时显示通知?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/res/values/strings.xml b/pandora_agents/android/mobile/res/values/strings.xml
deleted file mode 100755
index 33b8aff13b..0000000000
--- a/pandora_agents/android/mobile/res/values/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Status
- Setup
- Pandroid Agent
- Interval:
- Update configuration.
- Set default
- Server Address:
- Server Port:
- Pandroid Agent Configuration
- Agent name:
- GPS Mode
- Current position (high battery cost)
- Current configuration:
- Restart
- Last known position
- Loading…
- Last values
- Latitude
- Longitude
- Battery Level
- Orientation
- Proximity
- Could not update options.
- Task
- Memory
- Help
- About
- Licensed under GPL v2
- Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Pandroid Agent
- Copyright © 2011 Artica
- Pandroid Agent logo
- Help
- Available: %iKb Total: %iKb
- Never.
- Now.
- seconds ago.
- Contact error
- Last Contact:\n
-
- Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. <p>
- Pandora FMS is a general purpose monitoring system. With the android agent you can get all sorts of information from your device,
- the gps location, how much battery is left, available memory on the device, monitoring if a process is active, the time since the device
- was turned on, a HELLO signal for monitoring installations of the app, an inventory with all the installed apps as well as information
- for android phones with a sim card; the sim card ID, the number of SMS sent/received, the number of calls incoming/missed/outgoing,
- the network operator and type, the phone type, the mobile signal strength, the number of bytes sent/received over the mobile network.
- Complete source code is provided.<p>See more about Pandora FMS at <a href="http://pandorafms.com">http://pandoraFMS.com</a></p>
-
- Start
- Connection successful
- Configuration saved successfully
- Agent Stopped
- Seconds
- Running
- Stopped
-
-
-
- Sim ID:
-
- Device up time:
-
- Received SMS:
-
- Sent SMS:
-
- Network operator:
-
- Network type:
-
- Phone type:
-
- Signal strength:
-
- Incoming calls:
-
- Missed calls:
-
- Outgoing calls:
-
- Bytes received:
-
- Bytes transmitted:
-
- Roaming:
-
-
-
- Enter password
- Passwords do not match!
- error
- password
- password must be longer than 6 characters!
- Wrong password
- Set Password(leave blank for none)
- Enter Password
- Repeat Password
- Do you want to set a password?
- Don\'t ask again
- Password successfully created
- No password set
- Create/Change password
-
- Mobile server URL:
- View Mobile site
-
- XML Buffer Size (KB) (Enterprise Only)
-
- enter
- back
- yes
- no
-
- Report Sim ID
- Report GPS data
- Report available memory
- Choose task to report:
- Report task
- Report device up time
- Report network operator
- Report network type
- Report phone type
- Report signal strength
- Report number of received SMS
- Report number of sent SMS
- Report number of incoming calls
- Report number of missed calls
- Report number of outgoing calls
- Report amount of received mobile data
- Report amount of sent mobile data
- Report Hello Signal
- Report battery level
- Report if roaming
- Report inventory of installed apps
-
- Pandroid
- Agent is running
- Connecting…
- Stop Agent
- Restart Agent
- Show notification when running?
-
-
diff --git a/pandora_agents/android/mobile/res/values/themes.xml b/pandora_agents/android/mobile/res/values/themes.xml
deleted file mode 100644
index 4a7fe079d0..0000000000
--- a/pandora_agents/android/mobile/res/values/themes.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/About.java b/pandora_agents/android/mobile/src/pandroid/agent/About.java
deleted file mode 100644
index 507ecb605c..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/About.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.text.Html;
-import android.text.method.LinkMovementMethod;
-import android.widget.TextView;
-
-public class About extends Activity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- setContentView(R.layout.about);
-
- TextView text = (TextView) findViewById(R.id.url_pandora);
- text.setText(Html.fromHtml("PandoraFMS.com "));
- text.setMovementMethod(LinkMovementMethod.getInstance());
- }
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/Core.java b/pandora_agents/android/mobile/src/pandroid/agent/Core.java
deleted file mode 100644
index 118af6672b..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/Core.java
+++ /dev/null
@@ -1,469 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.app.AlarmManager;
-import android.app.PendingIntent;
-import android.content.Context;
-import android.content.Intent;
-import android.content.SharedPreferences;
-
-//import android.util.Log;
-
-public class Core {
-
- // //
- // CONSTANTS //
- // //
-
- //The 181 is the first invalid value between 180 and -180 values.
- static final float CONST_INVALID_COORDS = 181;
- static final int CONST_INVALID_BATTERY_LEVEL = -1;
- //The -361 is the first invalid value between 360 and -360 values.
- static final int CONST_INVALID_ORIENTATION = -361;
- static final float CONST_INVALID_PROXIMITY = -1;
- static final long CONST_INVALID_CONTACT = -1;
- static final int CONST_CONTACT_ERROR = 0;
-
- // //
- // DEFAULT CONFIGURATION MODULES //
- // //
-
- static volatile public String defaultServerAddr = "firefly.artica.es"; //master address
- static volatile public String defaultServerPort = "41121";
- static volatile public int defaultInterval = 300;
- static volatile public String defaultAgentName = "pandroid";
- static volatile public long defaultBufferSize = 256;
- static volatile public String defaultmobileWebURL = "firefly.artica.es/pandora_demo/mobile";
- static volatile public String defaultTaskStatus = "disabled"; // "disabled" or "enabled"
- static volatile public String defaultGpsStatus = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBatteryLevelReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultMemoryStatus = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultPasswordCheck = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultDeviceUpTimeReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultInventoryReport = "disabled"; // "disabled" or "enabled"
- static volatile public String defaultHelloSignalReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultNotificationCheck = "enabled"; // "disabled" or "enabled"
-
- static volatile public boolean defaultHasSim = false;
-
- //hasSim values
-
- static volatile public String defaultSimIDReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultNetworkOperatorReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultNetworkTypeReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultPhoneTypeReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultSignalStrengthReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultReceivedSMSReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultSentSMSReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultIncomingCallsReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultMissedCallsReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultOutgoingCallsReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBytesReceivedReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBytesSentReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultRoamingReport = "enabled"; // "disabled" or "enabled"
-
-
- // //
- // DEFAULT MODULE VALUES //
- // //
-
- static volatile public String defaultTask = "";
- static volatile public String defaultTaskHumanName = "";
- static volatile public String defaultTaskRun = "false";
- static volatile public long defaultRam = 0;
- static volatile public long defaultContact = 0;
- static volatile public int defaultContactError = 0;
- static volatile public long defaultUpTime = 0;
- static volatile public int defaultHelloSignal = 2;
-
-
- //hasSim values
- static volatile public String defaultSimID = "";
- static volatile public String defaultNetworkOperator = "";
- static volatile public String defaultNetworkType = "";
- static volatile public String defaultPhoneType = "";
- static volatile public int defaultSignalStrength = 0;
- static volatile public int defaultSMSReceived = 0;
- static volatile public int defaultSMSSent = 0;
- static volatile public int defaultIncomingCalls = 0;
- static volatile public int defaultMissedCalls = 0;
- static volatile public int defaultOutgoingCalls = 0;
- static volatile public long defaultReceiveBytes = 0;
- static volatile public long defaultTransmitBytes = 0;
- static volatile public int defaultRoaming = 0;
-
-
- static volatile public String defaultPassword = "";
-
- static volatile public Context con = null;
- static volatile public AlarmManager am = null;
- static volatile public PendingIntent sender = null;
- static volatile public boolean alarmEnabled = false;
-
- // //
- // CONFIGURATION VALUES //
- // //
-
- static volatile public String serverAddr = defaultServerAddr;
- static volatile public String serverPort = defaultServerPort;
- static volatile public int interval = defaultInterval;
- static volatile public String agentName = defaultAgentName;
- static volatile public long bufferSize = defaultBufferSize;
- static volatile public String mobileWebURL = defaultmobileWebURL;
- static volatile public String taskStatus = defaultTaskStatus;
- static volatile public String task = defaultTask;
- static volatile public String taskHumanName = defaultTaskHumanName;
- static volatile public String gpsStatus = defaultGpsStatus;
- static volatile public String BatteryLevelReport = defaultHelloSignalReport;
- static volatile public String memoryStatus = defaultMemoryStatus;
- static volatile public String passwordCheck = defaultPasswordCheck;
- static volatile public String DeviceUpTimeReport = defaultDeviceUpTimeReport;
- static volatile public String InventoryReport = defaultInventoryReport;
- static volatile public String HelloSignalReport = defaultHelloSignalReport;
- static volatile public String RoamingReport = defaultRoamingReport;
- static volatile public String NotificationCheck = defaultNotificationCheck;
-
- //hasSim values
-
- static volatile public boolean hasSim = defaultHasSim;
- static volatile public String simIDReport = defaultSimIDReport;
- static volatile public String NetworkOperatorReport = defaultNetworkOperatorReport;
- static volatile public String NetworkTypeReport = defaultNetworkTypeReport;
- static volatile public String PhoneTypeReport = defaultPhoneTypeReport;
- static volatile public String SignalStrengthReport = defaultSignalStrengthReport;
- static volatile public String ReceivedSMSReport = defaultReceivedSMSReport;
- static volatile public String SentSMSReport = defaultSentSMSReport;
- static volatile public String IncomingCallsReport = defaultIncomingCallsReport;
- static volatile public String MissedCallsReport = defaultMissedCallsReport;
- static volatile public String OutgoingCallsReport = defaultOutgoingCallsReport;
- static volatile public String BytesReceivedReport = defaultBytesReceivedReport;
- static volatile public String BytesSentReport = defaultBytesSentReport;
-
- static volatile public String password = defaultPassword;
-
- // //
- // MODULES VALUES //
- // //
-
- static volatile public float latitude = CONST_INVALID_COORDS;
- static volatile public float longitude = CONST_INVALID_COORDS;
- static volatile public int batteryLevel = CONST_INVALID_BATTERY_LEVEL;
- static volatile public float orientation = CONST_INVALID_ORIENTATION;
- static volatile public float proximity = CONST_INVALID_PROXIMITY;
- static volatile public String taskRun = defaultTaskRun;
- static volatile public long availableRamKb = defaultRam;
- static volatile public long totalRamKb = defaultRam;
- static volatile public long upTime = defaultUpTime;
- static volatile public int helloSignal = defaultHelloSignal;
- static volatile public int roaming = defaultRoaming;
-
-
- static volatile public long lastContact = CONST_INVALID_CONTACT;
- static volatile public int contactError = CONST_CONTACT_ERROR;
- static volatile public String simID = defaultSimID;
-
- //hasSim values
-
- static volatile public int SMSReceived = defaultSMSReceived;
- static volatile public int SMSSent = defaultSMSSent;
- static volatile public String networkOperator = defaultNetworkOperator;
- static volatile public String networkType = defaultNetworkType;
- static volatile public String phoneType = defaultPhoneType;
- static volatile public int signalStrength = defaultSignalStrength;
- static volatile public int incomingCalls = defaultIncomingCalls;
- static volatile public int missedCalls = defaultMissedCalls;
- static volatile public int outgoingCalls = defaultOutgoingCalls;
- static volatile public long receiveBytes = defaultReceiveBytes;
- static volatile public long transmitBytes = defaultTransmitBytes;
-
- public Core() {
-
- }
-
- static synchronized public void startAgentListener(Context context) {
- if (con == null) {
- con = context;
- }
- loadConf(con);
-
- Intent intentReceiver = new Intent(con, EventReceiver.class);
-
- sender = PendingIntent.getBroadcast(con, 0, intentReceiver, 0);
-
- am = (AlarmManager)con.getSystemService(Context.ALARM_SERVICE);
-
- alarmEnabled = true;
- am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), (interval * 1000), sender);
-
- }// end startAgentListener
-
- static synchronized public void stopAgentListener() {
- if (am != null){
- am.cancel(sender);
- alarmEnabled = false;
- }
- }
-
- static synchronized public void restartAgentListener(Context context) {
- stopAgentListener();
- startAgentListener(context);
- }
-
- static synchronized public void loadLastValues(Context context) {
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- lastContact = agentPreferences.getLong("lastContact", defaultContact);
- latitude = agentPreferences.getFloat("latitude", CONST_INVALID_COORDS);
- longitude = agentPreferences.getFloat("longitude", CONST_INVALID_COORDS);
- batteryLevel = agentPreferences.getInt("batteryLevel", CONST_INVALID_BATTERY_LEVEL);
- // orientation = agentPreferences.getFloat("orientation", CONST_INVALID_ORIENTATION);
- // proximity = agentPreferences.getFloat("proximity", CONST_INVALID_PROXIMITY);
- taskStatus = agentPreferences.getString("taskStatus", defaultTaskStatus);
- task = agentPreferences.getString("task", defaultTask);
- taskHumanName = agentPreferences.getString("taskHumanName", defaultTaskHumanName);
- taskRun = agentPreferences.getString("taskRun", defaultTaskRun);
- memoryStatus = agentPreferences.getString("memoryStatus", defaultMemoryStatus);
- availableRamKb = agentPreferences.getLong("availableRamKb", defaultRam);
- totalRamKb = agentPreferences.getLong("totalRamKb", defaultRam);
- upTime = agentPreferences.getLong("upTime", Core.defaultUpTime);
- helloSignal = agentPreferences.getInt("helloSignal", defaultHelloSignal);
- contactError = agentPreferences.getInt("contactError", defaultContactError);
-
-
-
- //hasSim values
-
- simID = agentPreferences.getString("simID", defaultSimID);
- networkOperator = agentPreferences.getString("networkOperator", defaultNetworkOperator);
- networkType = agentPreferences.getString("networkType", defaultNetworkType);
- phoneType = agentPreferences.getString("phoneType", defaultPhoneType);
- signalStrength = agentPreferences.getInt("signalStrength", defaultSignalStrength);
- SMSReceived = agentPreferences.getInt("SMSReceived", defaultSMSReceived);
- SMSSent = agentPreferences.getInt("SMSSent", defaultSMSSent);
- incomingCalls = agentPreferences.getInt("incomingCalls", defaultIncomingCalls);
- missedCalls = agentPreferences.getInt("missedCalls", defaultMissedCalls);
- outgoingCalls = agentPreferences.getInt("outgoingCalls", defaultOutgoingCalls);
- receiveBytes = agentPreferences.getLong("receiveBytes", defaultReceiveBytes);
- transmitBytes = agentPreferences.getLong("transmitBytes", defaultTransmitBytes);
- roaming = agentPreferences.getInt("roaming", defaultRoaming);
-
- }// end loadLastValues
-
- static synchronized public void loadConf(Context context) {
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- serverAddr = agentPreferences.getString("serverAddr", defaultServerAddr);
- serverPort = agentPreferences.getString("serverPort", defaultServerPort);
- interval = agentPreferences.getInt("interval", defaultInterval);
- agentName = agentPreferences.getString("agentName", defaultAgentName+"_"+Installation.id(context));
- bufferSize = agentPreferences.getLong("bufferSize", defaultBufferSize);
- mobileWebURL = agentPreferences.getString("mobileWebURL", defaultmobileWebURL);
- taskStatus = agentPreferences.getString("taskStatus", defaultTaskStatus);
- task = agentPreferences.getString("task", defaultTask);
- taskHumanName = agentPreferences.getString("taskHumanName", defaultTaskHumanName);
- taskRun = agentPreferences.getString("taskRun", defaultTaskRun);
- gpsStatus = agentPreferences.getString("gpsStatus", defaultGpsStatus);
- BatteryLevelReport = agentPreferences.getString("BatteryLevelReport", defaultBatteryLevelReport);
- memoryStatus = agentPreferences.getString("memoryStatus", defaultMemoryStatus);
- DeviceUpTimeReport = agentPreferences.getString("DeviceUpTimeReport", defaultDeviceUpTimeReport);
- InventoryReport = agentPreferences.getString("InventoryReport", defaultInventoryReport);
- HelloSignalReport = agentPreferences.getString("HelloSignalReport", defaultHelloSignalReport);
- password = agentPreferences.getString("password", defaultPassword);
- passwordCheck = agentPreferences.getString("passwordCheck", defaultPasswordCheck);
- NotificationCheck = agentPreferences.getString("NotificationCheck", defaultNotificationCheck);
- hasSim = agentPreferences.getBoolean("hasSim", defaultHasSim);
- //hasSim values
-
- simIDReport = agentPreferences.getString("simIDReport", defaultSimIDReport);
- NetworkOperatorReport = agentPreferences.getString("NetworkOperatorReport", defaultNetworkOperatorReport);
- NetworkTypeReport = agentPreferences.getString("NetworkTypeReport", defaultNetworkTypeReport);
- PhoneTypeReport = agentPreferences.getString("PhoneTypeReport", defaultPhoneTypeReport);
- SignalStrengthReport = agentPreferences.getString("SignalStrengthReport", defaultSignalStrengthReport);
- ReceivedSMSReport = agentPreferences.getString("ReceivedSMSReport", defaultReceivedSMSReport);
- SentSMSReport = agentPreferences.getString("SentSMSReport", defaultSentSMSReport);
- IncomingCallsReport = agentPreferences.getString("IncomingCallsReport", defaultIncomingCallsReport);
- MissedCallsReport = agentPreferences.getString("MissedCallsReport", defaultMissedCallsReport);
- OutgoingCallsReport = agentPreferences.getString("OutgoingCallsReport", defaultOutgoingCallsReport);
- BytesReceivedReport = agentPreferences.getString("BytesReceivedReport", defaultBytesReceivedReport);
- BytesSentReport = agentPreferences.getString("BytesSentReport", defaultBytesSentReport);
- RoamingReport = agentPreferences.getString("RoamingReport", defaultRoamingReport);
-
-
-
- }// end loadConf
-
- static synchronized public boolean updateConf(Context context) {
- return updateConf(context, serverAddr, serverPort, interval, agentName, bufferSize, mobileWebURL,
- taskStatus, task, taskHumanName, gpsStatus, BatteryLevelReport, memoryStatus, upTime, DeviceUpTimeReport,
- InventoryReport, helloSignal, HelloSignalReport, password, passwordCheck, hasSim, simID, simIDReport,
- networkOperator, NetworkOperatorReport, networkType, NetworkTypeReport, phoneType, PhoneTypeReport,
- signalStrength, SignalStrengthReport, SMSReceived, ReceivedSMSReport, SMSSent, SentSMSReport,
- incomingCalls, IncomingCallsReport, missedCalls, MissedCallsReport, outgoingCalls, OutgoingCallsReport,
- receiveBytes, BytesReceivedReport, transmitBytes, BytesSentReport, RoamingReport, roaming,
- NotificationCheck
- );
-
- }// end updateConf
-
- static synchronized public boolean updateConf(Context context, String _serverAddr,
- String _serverPort, int _interval, String _agentName, long _bufferSize, String _mobileWebURL,
- String _taskStatus, String _task, String _taskHumanName, String _gpsStatus, String _BatteryLevelReport,
- String _memoryStatus, long _upTime, String _DeviceUpTimeReport, String _InventoryReport, int _helloSignal,
- String _HelloSignalReport, String _password, String _passwordCheck, boolean _hasSim, String _simID, String _simIDReport,
- String _networkOperator, String _NetworkOperatorReport, String _networkType, String _NetworkTypeReport, String _phoneType,
- String _PhoneTypeReport, int _signalStrength, String _SignalStrengthReport, int _smsReceived, String _ReceivedSMSReport,
- int _smsSent, String _SentSMSReport, int _incomingCalls, String _IncomingCallsReport, int _missedCalls, String _MissedCallsReport,
- int _outgoingCalls, String _OutgoingCallsReport, long _receiveBytes, String _BytesReceivedReport, long _transmitBytes,
- String _BytesSentReport, String _RoamingReport, int _roaming,
- String _NotificationCheck ) {
-
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
- SharedPreferences.Editor editor = agentPreferences.edit();
-
- editor.putString("serverAddr", _serverAddr);
- editor.putString("serverPort", _serverPort);
- editor.putInt("interval", _interval);
- editor.putString("agentName", _agentName);
- editor.putLong("bufferSize", _bufferSize);
- editor.putString("mobileWebURL", _mobileWebURL);
- editor.putString("taskStatus", _taskStatus);
- editor.putString("task", _task);
- editor.putString("taskHumanName", _taskHumanName);
- editor.putString("gpsStatus", _gpsStatus);
- editor.putString("BatteryLevelReport", _BatteryLevelReport);
- editor.putString("memoryStatus", _memoryStatus);
- editor.putLong("UpTime", _upTime);
- editor.putString("DeviceUpTimeReport", _DeviceUpTimeReport);
- editor.putString("InventoryReport", _InventoryReport);
- editor.putInt("helloSignal", _helloSignal);
- editor.putString("HelloSignalReport", _HelloSignalReport);
- editor.putString("password", _password);
- editor.putString("passwordCheck", _passwordCheck);
- editor.putBoolean("hasSim", _hasSim);
-
- //hasSim values
- editor.putString("simID", _simID);
- editor.putString("simIDReport", _simIDReport);
- editor.putString("networkOperator", _networkOperator);
- editor.putString("NetworkOperatorReport", _NetworkOperatorReport);
- editor.putString("networkType", _networkType);
- editor.putString("NetworkTypeReport", _NetworkTypeReport);
- editor.putString("phoneType", _phoneType);
- editor.putString("PhoneTypeReport", _PhoneTypeReport);
- editor.putInt("signalStrength", _signalStrength);
- editor.putString("SignalStrengthReport", _SignalStrengthReport);
- editor.putInt("SMSReceived", _smsReceived);
- editor.putString("ReceivedSMSReport", _ReceivedSMSReport);
- editor.putInt("SMSSent", _smsSent);
- editor.putString("SentSMSReport", _SentSMSReport);
- editor.putInt("incomingCalls", _incomingCalls);
- editor.putString("IncomingCallsReport", _IncomingCallsReport);
- editor.putInt("missedCalls", _missedCalls);
- editor.putString("MissedCallsReport", _MissedCallsReport);
- editor.putInt("outgoingCalls", _outgoingCalls);
- editor.putString("OutgoingCallsReport", _OutgoingCallsReport);
- editor.putLong("receiveBytes", _receiveBytes);
- editor.putString("BytesReceivedReport", _BytesReceivedReport);
- editor.putLong("transmitBytes", _transmitBytes);
- editor.putString("BytesSentReport", _BytesSentReport);
- editor.putString("RoamingReport", _RoamingReport);
- editor.putInt("roaming", _roaming);
- editor.putString("NotificationCheck", _NotificationCheck);
-
-
- if (editor.commit()) {
- return true;
- }
- return false;
- }// end updateConf
-
-
- public synchronized static void putSharedData(String preferenceName, String tokenName, String data, String type) {
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
- SharedPreferences.Editor editor = agentPreferences.edit();
-
-
- if(type == "boolean") {
- editor.putBoolean(tokenName, Boolean.parseBoolean(data));
- }
- else if(type == "float") {
- editor.putFloat(tokenName, Float.parseFloat(data));
- }
- else if(type == "integer") {
- editor.putInt(tokenName, Integer.parseInt(data));
- }
- else if(type == "long") {
- editor.putLong(tokenName, Long.parseLong(data));
- }
- else if(type == "string") {
- editor.putString(tokenName, data);
- }
-
- editor.commit();
- }
-
- public synchronized static String getSharedData(String preferenceName, String tokenName, String defaultValue, String type) {
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- if(type == "boolean") {
- boolean a = agentPreferences.getBoolean(tokenName, Boolean.parseBoolean(defaultValue));
- return Boolean.valueOf(a).toString();
- }
- else if(type == "float") {
- float a = agentPreferences.getFloat(tokenName, Float.parseFloat(defaultValue));
- return Float.valueOf(a).toString();
- }
- else if(type == "integer") {
- int a = agentPreferences.getInt(tokenName, Integer.parseInt(defaultValue));
- return Integer.valueOf(a).toString();
- }
- else if(type == "long") {
- long a = agentPreferences.getLong(tokenName, Long.parseLong(defaultValue));
- return Long.valueOf(a).toString();
- }
- else if(type == "string") {
- return agentPreferences.getString(tokenName, defaultValue);
- }
-
- return "";
- }
-
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/EventReceiver.java b/pandora_agents/android/mobile/src/pandroid/agent/EventReceiver.java
deleted file mode 100644
index ea5b41cc7b..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/EventReceiver.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-public class EventReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- context.startService(new Intent(context, PandroidAgentListener.class));
- }
-
-}
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/Help.java b/pandora_agents/android/mobile/src/pandroid/agent/Help.java
deleted file mode 100644
index ed2e40bc47..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/Help.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.text.Html;
-import android.text.method.LinkMovementMethod;
-import android.widget.TextView;
-
-public class Help extends Activity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- setContentView(R.layout.help);
-
- TextView text = (TextView) findViewById(R.id.help_text);
- text.setText(Html.fromHtml(getString(R.string.help_text_str)));
- text.setMovementMethod(LinkMovementMethod.getInstance());
- }
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/Installation.java b/pandora_agents/android/mobile/src/pandroid/agent/Installation.java
deleted file mode 100644
index c55fcf1bf1..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/Installation.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-package pandroid.agent;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.RandomAccessFile;
-import java.util.UUID;
-
-import android.content.Context;
-
-/**
- * This is a class for providing unique installation identifiers for use with the pandroid agent name
- * @author mark
- *
- */
-
-public class Installation {
- private static String sID = null;
- private static final String INSTALLATION = "INSTALLATION";
-
- public synchronized static String id(Context context) {
- if (sID == null) {
- File installation = new File(context.getFilesDir(), INSTALLATION);
- try {
- if (!installation.exists())
- writeInstallationFile(installation);
- sID = readInstallationFile(installation);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- return sID;
- }
-
- private static String readInstallationFile(File installation) throws IOException {
- RandomAccessFile f = new RandomAccessFile(installation, "r");
- byte[] bytes = new byte[(int) f.length()];
- f.readFully(bytes);
- f.close();
- return new String(bytes);
- }
-
- private static void writeInstallationFile(File installation) throws IOException {
- FileOutputStream out = new FileOutputStream(installation);
- String id = UUID.randomUUID().toString();
- out.write(id.getBytes());
- out.close();
- }
-}
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgent.java b/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgent.java
deleted file mode 100755
index 64a9ec667c..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgent.java
+++ /dev/null
@@ -1,126 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.io.File;
-
-import android.app.TabActivity;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Bundle;
-import android.os.Handler;
-import android.telephony.TelephonyManager;
-import android.widget.TabHost;
-
-
-public class PandroidAgent extends TabActivity {
-
- Handler h = new Handler();
- int defaultInterval = 300;
- TabHost tabHost;
-
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
-
- /*
- final Dialog dialog = new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
- dialog.setContentView(R.layout.welcome);
- dialog.setCancelable(false);
- dialog.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
-
-
- dialog.show();
-
- final Handler handler = new Handler();
- handler.postDelayed(new Runnable() {
- @Override
- public void run() {
- dialog.dismiss();
- }
- }, 3000);
-
- */
-
- //Requires The agent name to use installation id
- File installation = new File(getApplicationContext().getFilesDir(), "INSTALLATION");
- if(!installation.exists()){
- Core.restartAgentListener(getApplicationContext());
- }
- else{
- //Core.stopAgentListener();
- Core.loadConf(this);
- Core.alarmEnabled = true;
- //new Intent(this, EventReceiver.class);
- }
-
- //Check whether device has a sim card, phone without a sim card present
- //return SIM_STATE_ABSENT but tablets only return SIM_STATE_UNKNOWN
- String serviceName = Context.TELEPHONY_SERVICE;
- TelephonyManager telephonyManager = (TelephonyManager) getApplicationContext().getSystemService(serviceName);
- String hasSim = ""+(telephonyManager.getSimState() != TelephonyManager.SIM_STATE_UNKNOWN);
- if(hasSim.equals("true"))
- hasSim = ""+(telephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT);
- Core.hasSim = Boolean.parseBoolean(hasSim);
-
-
- //Create layout with 2 tabs
- tabHost = getTabHost();
-
- tabHost.addTab
- (
- tabHost.newTabSpec("Status")
- .setIndicator(getString(R.string.status_str))
- .setContent(new Intent(this, Status.class))
- );
-
- tabHost.addTab
- (
- tabHost.newTabSpec("Setup")
- .setIndicator(getString(R.string.setup_str))
- .setContent(new Intent(this, Setup.class))
- );
- }
-
- public void onPause(){
- super.onPause();
- Core.updateConf(getApplicationContext());
- //Core.updateDatabase(this);
- }
-
- public void onDestroy(){
- super.onDestroy();
- Core.updateConf(getApplicationContext());
- //Core.updateDatabase(this);
-
- }
-
- //Sets hello signal to 1(first connect since pandroid was closed)
- public void onResume(){
- super.onResume();
-
- if(Core.helloSignal == 0)
- Core.helloSignal = 1;
- Core.updateConf(getApplicationContext());
- }
-
- // Called from activity to allow tab switching
- public void switchTab(int tab){
- tabHost.setCurrentTab(tab);
- }
-
-}
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentListener.java b/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentListener.java
deleted file mode 100644
index db6fe404f9..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentListener.java
+++ /dev/null
@@ -1,1219 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-package pandroid.agent;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStreamWriter;
-import java.io.RandomAccessFile;
-import java.text.DecimalFormat;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-
-import org.apache.commons.lang3.StringEscapeUtils;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.app.ActivityManager.MemoryInfo;
-import android.app.ActivityManager.RunningAppProcessInfo;
-import android.app.Notification;
-import android.app.NotificationManager;
-import android.app.PendingIntent;
-import android.app.Service;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.SharedPreferences;
-import android.content.SharedPreferences.Editor;
-import android.content.pm.PackageInfo;
-import android.database.Cursor;
-import android.location.Criteria;
-import android.location.Location;
-import android.location.LocationListener;
-import android.location.LocationManager;
-import android.net.TrafficStats;
-import android.net.Uri;
-import android.os.AsyncTask;
-import android.os.Build;
-import android.os.Bundle;
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.PowerManager;
-import android.os.PowerManager.WakeLock;
-import android.os.SystemClock;
-import android.telephony.PhoneStateListener;
-import android.telephony.SignalStrength;
-import android.telephony.TelephonyManager;
-import android.util.Log;
-import android.view.Gravity;
-import android.widget.Toast;
-
-public class PandroidAgentListener extends Service {
-
-
- Handler h = new Handler();
- String lastGpsContactDateTime = "";
- double latitude;
- double longitude;
- //boolean showLastXML = true;
-
-
- //private LocationManager locmgr = null;
-
-
- @Override
- public void onCreate() {
-
- // try {
- // notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- // } catch (Exception e) {
- // Log.e("notification", e.toString());
- // }
- //
- // if(Core.NotificationCheck == "enabled"){
- //
- // Notification notification = new Notification(R.drawable.icon, getText(R.string.ticker_text),
- // System.currentTimeMillis());
- // Intent notificationIntent = new Intent(this,PandroidAgent.class);
- // notificationIntent.setAction("android.intent.action.MAIN");
- // notificationIntent.addCategory("android.intent.category.LAUNCHER");
- // PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, Notification.FLAG_NO_CLEAR);
- // notification.setLatestEventInfo(this, getText(R.string.notification_title), getText(R.string.notification_message), pendingIntent);
- // notification.flags |= Notification.FLAG_ONGOING_EVENT;
- // notificationManager.notify(1, notification);
- // }
- // else{
- // CancelNotification(getApplicationContext(),42);
- // }
- }
-
-
-
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
- PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
- WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
- wakeLock.acquire();
- new loadConfThenContinueAsyncTask().execute();
-
-
- wakeLock.release();
-
-
- return START_NOT_STICKY;
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- return null;
- }
-
-
-
- // private void contact(){
- // Date date = new Date();
- //
- // putSharedData("PANDROID_DATA", "contactError", "0", "integer");
- // putSharedData("PANDROID_DATA", "lastContact", Long.toString(date.getTime() / 1000), "long");
- //
- // // Keep lastXML sended if is not empty (empty means error sending it)
- // String lastXML = buildXML();
- //
- //
- // String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
- //
- // String destFileName = agentName + "." + System.currentTimeMillis() + ".data";
- //
- // writeFile(destFileName, lastXML);
- //
- // String[] tentacleData = {
- // "-a",
- // getSharedData("PANDROID_DATA", "serverAddr", "", "string"),
- // "-p",
- // Core.defaultServerPort,
- // "-v",
- // "/data/data/pandroid.agent/files/" + destFileName
- // };
- //
- // int tentacleRet = new tentacle_client().send(tentacleData);
- //
- // // Deleting the file after send it
- // File file = new File("/data/data/pandroid.agent/files/" + destFileName);
- // file.delete();
- //
- // if(tentacleRet == 0) {
- // putSharedData("PANDROID_DATA", "lastXML", lastXML, "string");
- // if (Core.helloSignal >= 1)
- // Core.helloSignal = 0;
- // Core.updateConf(getApplicationContext());
- // }
- // else {
- // putSharedData("PANDROID_DATA", "contactError", "1", "integer");
- // }
- //
- // updateValues();
- // }
-
- /**
- * To ensure that the Core values are loaded before continuing
- * @author markholland
- *
- */
- public class loadConfThenContinueAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- Core.loadConf(getApplicationContext());
- Core.loadLastValues(getApplicationContext());
- return null;
- }
-
- @Override
- protected void onPostExecute(Void unused) {
-
-// SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
-// getApplicationContext().getString(R.string.const_string_preferences),
-// Activity.MODE_PRIVATE);
-//
-// String NotificationCheck = agentPreferences.getString("NotificationCheck", "enabled");
-
-
- updateValues();
- contact();
-
- try {
- NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- Notification notification = new Notification(R.drawable.icon, getText(R.string.ticker_text),
- System.currentTimeMillis());
- Intent notificationIntent = new Intent(getApplicationContext(),PandroidAgent.class);
- notificationIntent.setAction("android.intent.action.MAIN");
- notificationIntent.addCategory("android.intent.category.LAUNCHER");
- PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent, Notification.FLAG_NO_CLEAR);
- notification.setLatestEventInfo(getApplicationContext(), getText(R.string.notification_title), getText(R.string.notification_message), pendingIntent);
- notification.flags |= Notification.FLAG_ONGOING_EVENT;
-
-
- if (Core.NotificationCheck.equals("enabled")) {
- CancelNotification(getApplicationContext(),42);
- notificationManager.notify(42, notification);
- }
- else {
- CancelNotification(getApplicationContext(),42);
- }
-
-
- }
- catch (Exception e) {
- Log.e("notification", e.toString());
- }
-
- }
- }// end onPostExecute
-
-
- private void contact() {
-
-
- Toast toast = Toast.makeText(getApplicationContext(),
-
- getString(R.string.loading),
- Toast.LENGTH_SHORT);
- toast.setGravity(Gravity.BOTTOM,0,0);
- toast.show();
-
-
-
- Date date = new Date();
-
- putSharedData("PANDROID_DATA", "lastContact", Long.toString(date.getTime() / 1000), "long");
- Boolean xmlBuilt = true;
- String xml = "";
-
- try {
- xml = new buildXMLTask().execute().get();
- }
- catch (InterruptedException e) {
- // TODO Auto-generated catch block
- xmlBuilt = false;
- }
- catch (ExecutionException e) {
- // TODO Auto-generated catch block
- xmlBuilt = false;
- }
-
- if (xmlBuilt) {
- //TODO
- }
- else {
- //TODO
- }
-
- new contactTask().execute(xml);
- //TODO ensure not a problem
- //updateValues();
-
- }//end contact
-
-
- private class contactTask extends AsyncTask {
- String destFileName = "";
-
- @Override
- protected void onPreExecute() {
-
- }
-
- @Override
- protected Integer doInBackground(String... lastXML) {
-
-
- String[] buffer = getApplicationContext().fileList();
- Integer tentacleRet = null;
-
-
- boolean contact = true;
- int i = 1;
- while (getApplicationContext().fileList().length > 1 && contact) {
-
- destFileName = buffer[i];
-
- String[] tentacleData = {
- "-a",
- getSharedData("PANDROID_DATA", "serverAddr", "", "string"),
- "-p",
- Core.defaultServerPort,
- "-v",
- "/data/data/pandroid.agent/files/" + destFileName
- };
-
-
- tentacleRet = new tentacle_client().send(tentacleData);
-
- if (tentacleRet == 0) {
- putSharedData("PANDROID_DATA", "contactError", "0", "integer");
- // Deleting the file after send it
- // move to only delete if sent successfully
- File file = new File("/data/data/pandroid.agent/files/" + destFileName);
- file.delete();
- if (Core.helloSignal >= 1)
- Core.helloSignal = 0;
- Core.updateConf(getApplicationContext());
-
- }
- if (tentacleRet == -1) {
- //file not deleted
- putSharedData("PANDROID_DATA", "contactError", "1", "integer");
- contact = false;
- }
- i++;
-
- }
-
- return tentacleRet;
-
- }//end doInBackground
-
-
- }
-
- private class buildXMLTask extends AsyncTask{
-
- @Override
- protected String doInBackground(Void... v) {
-
- String lastXML = buildXML();
-
- String destFileName = "";
- String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
- destFileName = agentName + "." + System.currentTimeMillis() + ".data";
-
-
- long bufferSize = 0;
- String[] buffer = getApplicationContext().fileList();
-
- for (int i = 1; i\n";
-
- String latitude = getSharedData("PANDROID_DATA", "latitude", "181", "float");
- String longitude = getSharedData("PANDROID_DATA", "longitude", "181", "float");
-
- if(!latitude.equals("181.0") && !longitude.equals("181.0")) {
- gpsData = " latitude='" + latitude + "' longitude='" + longitude + "'";
- }
-
- String interval = getSharedData("PANDROID_DATA", "interval", Integer.toString(Core.defaultInterval), "integer");
- String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
-
-
- buffer += "\n";
-
- // //
- // MODULES //
- // //
-
- // String orientation = getSharedData("PANDROID_DATA", "orientation", "361", "float");
- // String proximity = getSharedData("PANDROID_DATA", "proximity", "-1.0", "float");
- String batteryLevel = getSharedData("PANDROID_DATA", "batteryLevel", "-1", "integer");
- String taskStatus = getSharedData("PANDROID_DATA", "taskStatus", "disabled", "string");
- String taskRun = getSharedData("PANDROID_DATA", "taskRun", "false", "string");
- String taskHumanName = getSharedData("PANDROID_DATA", "taskHumanName", "", "string");
- taskHumanName = StringEscapeUtils.escapeHtml4(taskHumanName);
- String task = getSharedData("PANDROID_DATA", "task", "", "string");
- String memoryStatus = getSharedData("PANDROID_DATA", "memoryStatus", Core.defaultMemoryStatus, "string");
- String availableRamKb = getSharedData("PANDROID_DATA", "availableRamKb", "0" , "long");
- String totalRamKb = getSharedData("PANDROID_DATA", "totalRamKb", "0", "long");
- String upTime = getSharedData("PANDROID_DATA", "upTime", ""+Core.defaultUpTime, "long");
- String helloSignal = getSharedData("PANDROID_DATA", "helloSignal", ""+Core.defaultHelloSignal, "integer");
-
- String SimID = getSharedData("PANDROID_DATA", "simID", Core.defaultSimID, "string");
- String networkOperator = getSharedData("PANDROID_DATA", "networkOperator", Core.defaultNetworkOperator, "string");
- String networkType = getSharedData("PANDROID_DATA", "networkType", Core.defaultNetworkType, "string");
- String phoneType = getSharedData("PANDROID_DATA", "networkType", Core.defaultNetworkType, "string");
- String signalStrength = getSharedData("PANDROID_DATA", "signalStrength", ""+Core.defaultSignalStrength, "integer");
- String SMSReceived = getSharedData("PANDROID_DATA", "SMSReceived", ""+Core.defaultSMSReceived, "integer");
- String SMSSent = getSharedData("PANDROID_DATA", "SMSSent", ""+Core.defaultSMSSent, "integer");
- String incomingCalls = getSharedData("PANDROID_DATA", "incomingCalls", ""+Core.defaultIncomingCalls, "integer");
- String missedCalls = getSharedData("PANDROID_DATA", "missedCalls", ""+Core.defaultMissedCalls, "integer");
- String outgoingCalls = getSharedData("PANDROID_DATA", "outgoingCalls", ""+Core.defaultOutgoingCalls, "integer");
- String receiveBytes = getSharedData("PANDROID_DATA", "receiveBytes", ""+Core.defaultReceiveBytes, "long");
- String transmitBytes = getSharedData("PANDROID_DATA", "transmitBytes", ""+Core.defaultTransmitBytes, "long");
- String roaming = getSharedData("PANDROID_DATA", "roaming", ""+Core.defaultRoaming, "integer");
-
- String simIDReport = getSharedData("PANDROID_DATA", "simIDReport", Core.defaultSimIDReport, "string");
- String DeviceUpTimeReport = getSharedData("PANDROID_DATA", "DeviceUpTimeReport", Core.defaultDeviceUpTimeReport, "string");
- String NetworkOperatorReport = getSharedData("PANDROID_DATA", "NetworkOperatorReport", Core.defaultNetworkOperatorReport, "string");
- String NetworkTypeReport = getSharedData("PANDROID_DATA", "NetworkTypeReport", Core.defaultNetworkTypeReport, "string");
- String PhoneTypeReport = getSharedData("PANDROID_DATA", "PhoneTypeReport", Core.defaultPhoneTypeReport, "string");
- String SignalStrengthReport = getSharedData("PANDROID_DATA", "SignalStrengthReport", Core.defaultSignalStrengthReport, "string");
- String ReceivedSMSReport = getSharedData("PANDROID_DATA", "ReceivedSMSReport", Core.defaultReceivedSMSReport, "string");
- String SentSMSReport = getSharedData("PANDROID_DATA", "SentSMSReport", Core.defaultSentSMSReport, "string");
- String IncomingCallsReport = getSharedData("PANDROID_DATA", "IncomingCallsReport", Core.defaultIncomingCallsReport, "string");
- String MissedCallsReport = getSharedData("PANDROID_DATA", "MissedCallsReport", Core.defaultMissedCallsReport, "string");
- String OutgoingCallsReport = getSharedData("PANDROID_DATA", "OutgoingCallsReport", Core.defaultOutgoingCallsReport, "string");
- String BytesReceivedReport = getSharedData("PANDROID_DATA", "BytesReceivedReport", Core.defaultBytesReceivedReport, "string");
- String BytesSentReport = getSharedData("PANDROID_DATA", "BytesSentReport", Core.defaultBytesSentReport, "string");
- String HelloSignalReport = getSharedData("PANDROID_DATA", "HelloSignalReport", Core.defaultHelloSignalReport, "string");
- String BatteryLevelReport = getSharedData("PANDROID_DATA", "BatteryLevelReport", Core.defaultBatteryLevelReport, "string");
- String RoamingReport = getSharedData("PANDROID_DATA", "RoamingReport", Core.defaultRoamingReport, "string");
- String InventoryReport = getSharedData("PANDROID_DATA", "InventoryReport", Core.defaultInventoryReport, "string");
-
- if (InventoryReport.equals("enabled"))
- {
- buffer += buildInventoryXML();
- }
-
- if (BatteryLevelReport.equals("enabled"))
- buffer += buildmoduleXML("battery_level", "The current Battery level", "generic_data", batteryLevel);
-
- // if(!orientation.equals("361.0")) {
- // buffer += buildmoduleXML("orientation", "The actually device orientation (in degrees)", "generic_data", orientation);
- // }
- //
- // if(!proximity.equals("-1.0")) {
- // buffer += buildmoduleXML("proximity", "The actually device proximity detector (0/1)", "generic_data", proximity);
- // }
-
- if (taskStatus.equals("enabled")) {
- buffer += buildmoduleXML("taskHumanName", "The task's human name.", "async_string", taskHumanName);
- buffer += buildmoduleXML("task", "The task's package name.", "async_string", task);
- if (taskRun.equals("true")) {
- buffer += buildmoduleXML("taskRun", "The task is running.", "async_proc", "1");
- }
- else {
- buffer += buildmoduleXML("taskRun", "The task is running.", "async_proc", "0");
- }
- }
-
- if (memoryStatus.equals("enabled")) {
-
- Float freeMemory = new Float((Float.valueOf(availableRamKb) / Float.valueOf(totalRamKb)) * 100.0);
-
- DecimalFormat formatPercent = new DecimalFormat("#.##");
- buffer += buildmoduleXML("freeRamMemory", "The percentage of available ram.", "generic_data",
- formatPercent.format(freeMemory.doubleValue()));
- }
- //buffer += buildmoduleXML("last_gps_contact", "Datetime of the last geo-location contact", "generic_data", lastGpsContactDateTime);
- if (DeviceUpTimeReport.equals("enabled"))
- buffer += buildmoduleXML("upTime","Total device uptime in seconds.", "generic_data", upTime);
-
- if (HelloSignalReport.equals("enabled"))
- buffer += buildmoduleXML("helloSignal","Hello Signal", "generic_data", helloSignal);
-
- if (Core.hasSim){
- if (simIDReport.equals("enabled"))
- buffer += buildmoduleXML("simID", "The Sim ID.", "generic_data_string", SimID);
- if (NetworkOperatorReport.equals("enabled"))
- buffer += buildmoduleXML("networkOperator","Currently registered network operator", "generic_data_string", networkOperator);
- if (NetworkTypeReport.equals("enabled"))
- buffer += buildmoduleXML("networkType","Current network type", "generic_data_string", networkType);
- if (PhoneTypeReport.equals("enabled"))
- buffer += buildmoduleXML("phoneType","Phone type", "generic_data_string", phoneType);
- if (SignalStrengthReport.equals("enabled"))
- buffer += buildmoduleXML("signalStrength","Signal strength (dB)", "generic_data_string", signalStrength);
- if (ReceivedSMSReport.equals("enabled"))
- buffer += buildmoduleXML("SMSReceived","Number of SMS received", "generic_data", SMSReceived);
- if (SentSMSReport.equals("enabled"))
- buffer += buildmoduleXML("SMSSent","Number of SMS sent", "generic_data", SMSSent);
- if (IncomingCallsReport.equals("enabled"))
- buffer += buildmoduleXML("incomingCalls","Incoming calls", "generic_data", incomingCalls);
- if (MissedCallsReport.equals("enabled"))
- buffer += buildmoduleXML("missedCalls","Missed calls", "generic_data", missedCalls);
- if (OutgoingCallsReport.equals("enabled"))
- buffer += buildmoduleXML("outgoingCalls","Outgoing calls", "generic_data", outgoingCalls);
- if (BytesReceivedReport.equals("enabled"))
- buffer += buildmoduleXML("receiveBytes","Bytes received(mobile)", "generic_data", receiveBytes);
- if (BytesSentReport.equals("enabled"))
- buffer += buildmoduleXML("transmitBytes","Bytes transmitted(mobile)", "generic_data", transmitBytes);
- if (RoamingReport.equals("enabled"))
- buffer += buildmoduleXML("roaming","Device is roaming", "generic_data", roaming);
- }// end if sim card
-
-
-
- buffer += " ";
-
- return buffer;
-
- }// end buildXML
-
- private void writeFile(String fileName, String textToWrite) {
- try { // catches IOException below
- /*
- String UTF8 = "utf8";
- int BUFFER_SIZE = 8192;
-
- FileOutputStream fOut = openFileOutput(fileName, MODE_WORLD_READABLE);
- OutputStreamWriter osw = new OutputStreamWriter(fOut, UTF8);
-
- BufferedWriter bw = new BufferedWriter(osw,BUFFER_SIZE);
-
- // Write the string to the file
- bw.write(textToWrite);
- //ensure that everything is really written out and close
- bw.flush();
- bw.close();
- */
- FileOutputStream fOut = openFileOutput(fileName, MODE_WORLD_READABLE);
- OutputStreamWriter osw = new OutputStreamWriter(fOut);
-
- // Write the string to the file
- osw.write(textToWrite);
- /* ensure that everything is really written out and close */
- osw.flush();
- osw.close();
- }
- catch (IOException e) {
-
- }
-
- }
-
- private String buildmoduleXML(String name, String description, String type, String data){
- String buffer = "";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
-
- return buffer;
- }
-
-
-
- private String buildInventoryXML(){
-
- String module_xml = "";
-
- module_xml += "\t\n";
- module_xml += "\t\t\n\t\t\t \n";
- module_xml += "\t\t\t\n";
-
- List packs = getPackageManager().getInstalledPackages(0);
- for(int i=0;i\n";
- }
-
- /* Close the data list and module_inventory */
- module_xml += "\t\t\t \n\t\t \n";
- /* Close inventory */
- module_xml += "\t \n";
- //Log.d(LOG_TAG,module_xml);
-
- return module_xml;
- }
-
-
-
-
- private void gpsLocation() {
- // Starts with GPS, if no GPS then gets network location
- //
- LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
- List providers = lm.getProviders(true);
- Log.d("PANDROID providers count", "" + providers.size());
-
- /* Loop over the array backwards, and if you get an accurate location, then break out the loop*/
- Location loc = null;
-
- for (int i=providers.size()-1; i>=0; i--) {
- Log.d("PANDROID providers", providers.get(i));
- loc = lm.getLastKnownLocation(providers.get(i));
- if (loc != null) break;
- }
-
- if (loc != null) {
- Log.d("PANDROID", "loc != null");
- //if(latitude != loc.getLatitude() || longitude != loc.getLongitude()) {
- lastGpsContactDateTime = getHumanDateTime(-1);
- //`}
- Log.d("LATITUDE",Double.valueOf(loc.getLatitude()).toString());
- Log.d("LONGITUDE",Double.valueOf(loc.getLongitude()).toString());
- putSharedData("PANDROID_DATA", "latitude", Double.valueOf(loc.getLatitude()).toString(), "float");
- putSharedData("PANDROID_DATA", "longitude", Double.valueOf(loc.getLongitude()).toString(), "float");
- }
- Criteria criteria = new Criteria();
- criteria.setAccuracy(Criteria.ACCURACY_COARSE);
- criteria.setPowerRequirement(Criteria.POWER_LOW);
- criteria.setAltitudeRequired(false);
- criteria.setBearingRequired(false);
- criteria.setCostAllowed(true);
- String bestProvider = lm.getBestProvider(criteria, true);
-
- // If not provider found, abort GPS retrieving
- if (bestProvider == null) {
- Log.e("LOCATION", "No location provider found!");
- return;
- }
-
- lm.requestLocationUpdates(bestProvider, Core.interval, 15,
- new LocationListener() {
- public void onLocationChanged(Location location) {
- Log.d("Best latitude", Double.valueOf(location.getLatitude()).toString());
- putSharedData("PANDROID_DATA", "latitude",
- Double.valueOf(location.getLatitude()).toString(), "float");
- Log.d("Best longitude", Double.valueOf(location.getLongitude()).toString());
- putSharedData("PANDROID_DATA", "longitude",
- Double.valueOf(location.getLongitude()).toString(), "float");
- }
- public void onStatusChanged(String s, int i, Bundle bundle) {
-
- }
- public void onProviderEnabled(String s) {
- // try switching to a different provider
- }
- public void onProviderDisabled(String s) {
- putSharedData("PANDROID_DATA", "enabled_location_provider",
- "disabled", "string");
- }
- });
- //}
-
- }
-
- private void batteryLevel() {
-
- Intent batteryIntent = getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
- int rawlevel = batteryIntent.getIntExtra("level", -1);
- int scale = batteryIntent.getIntExtra("scale", -1);
- //double level = -1;
- if (rawlevel >= 0 && scale > 0) {
- putSharedData("PANDROID_DATA", "batteryLevel", Integer.valueOf((rawlevel * 100) / scale).toString(), "integer");
- }
- }
-
- /*private void sensors() {
- // Sensor listeners
-
- SensorEventListener orientationLevelReceiver = new SensorEventListener() {
- public void onSensorChanged(SensorEvent sensorEvent) {
- putSharedData("PANDROID_DATA", "orientation", Float.toString(sensorEvent.values[0]), "float");
- }
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- }
- };
-
- SensorEventListener proximityLevelReceiver = new SensorEventListener() {
- public void onSensorChanged(SensorEvent sensorEvent) {
- putSharedData("PANDROID_DATA", "proximity", Float.toString(sensorEvent.values[0]), "float");
- }
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- }
- };
-
- // Sensor management
-
- SensorManager sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
-
- sensorManager =
- (SensorManager)getSystemService( SENSOR_SERVICE );
- List sensors = sensorManager.getSensorList( Sensor.TYPE_ALL );
- Sensor proxSensor = null;
- Sensor orientSensor = null;
-
- for( int i = 0 ; i < sensors.size() ; ++i ) {
- switch(sensors.get( i ).getType()) {
- case Sensor.TYPE_ORIENTATION:
- orientSensor = sensors.get( i );
- break;
- case Sensor.TYPE_PROXIMITY:
- proxSensor = sensors.get( i );
- break;
- }
- }
-
- if( orientSensor != null ) {
- sensorManager.registerListener(
- orientationLevelReceiver,
- orientSensor,
- (20));
- //SensorManager.SENSOR_DELAY_UI );
- }
-
- if( proxSensor != null ) {
- sensorManager.registerListener(
- proximityLevelReceiver,
- proxSensor,
- //(defaultInterval * 1000000));
- (20));
- //SensorManager.SENSOR_DELAY_UI );
- }
- }//end sensors
-
- */
-
- private void updateValues() {
-
- batteryLevel();
- String gpsStatus = getSharedData("PANDROID_DATA", "gpsStatus", Core.defaultGpsStatus, "string");
-
- if(gpsStatus.equals("enabled")) {
- Log.d("PANDROID AGENT", "ENABLED");
- gpsLocation();
- }
- else {
- Log.d("PANDROID AGENT", "DISABLED");
- putSharedData("PANDROID_DATA", "latitude", "181.0", "float");
- putSharedData("PANDROID_DATA", "longitude", "181.0", "float");
- }
-
- //sensors();
- getTaskStatus();
- getMemoryStatus();
- getUpTime();
-
- if(Core.hasSim)
- {
- getSimID();
- getNetworkOperator();
- getSMSSent();
- getNetworkType();
- getPhoneType();
- getSignalStrength();
- getCalls();
- getDataBytes();
- getRoaming();
- }
- }
-
- private void getMemoryStatus() {
- String memoryStatus = getSharedData("PANDROID_DATA", "memoryStatus", Core.defaultMemoryStatus, "string");
- long availableRamKb = 0;
- long totalRamKb = 0;
-
- if (memoryStatus.equals("enabled")) {
- MemoryInfo mi = new MemoryInfo();
- ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
- activityManager.getMemoryInfo(mi);
- availableRamKb = mi.availMem / 1024;
- totalRamKb = 0;
-
- try {
- RandomAccessFile reader = new RandomAccessFile("/proc/meminfo", "r");
-
- String line = reader.readLine();
- reader.close();
- line = line.replaceAll("[ ]+", " ");
- String[] tokens = line.split(" ");
-
- totalRamKb = Long.valueOf(tokens[1]);
- }
- catch (IOException ex) {
- ex.printStackTrace();
- }
- }
-
- putSharedData("PANDROID_DATA", "availableRamKb", "" + availableRamKb, "long");
- putSharedData("PANDROID_DATA", "totalRamKb", "" + totalRamKb, "long");
- }// end getMemoryStatus
-
- private void getTaskStatus() {
- String taskStatus = getSharedData("PANDROID_DATA", "taskStatus", Core.defaultTaskStatus, "string");
- String task = getSharedData("PANDROID_DATA", "task", Core.defaultTask, "string");
- String taskHumanName = getSharedData("PANDROID_DATA", "taskHumanName", Core.defaultTaskHumanName, "string");
- String run = "false";
-
- if (taskStatus.equals("enabled")) {
- if ((task.length() != 0) && (taskHumanName.length() != 0)) {
- ActivityManager activityManager = (ActivityManager)getApplication().getSystemService(ACTIVITY_SERVICE);
- List runningAppProcessInfos = activityManager.getRunningAppProcesses();
- //PackageManager pm = getApplication().getPackageManager();
- RunningAppProcessInfo runningAppProcessInfo;
-
- for (int i = 0; i < runningAppProcessInfos.size(); i++) {
- runningAppProcessInfo = runningAppProcessInfos.get(i);
-
- if (task.equals(runningAppProcessInfo.processName)) {
- run = "true";
- break;
- }
- }
- }
- }
- putSharedData("PANDROID_DATA", "taskRun", run, "string");
- }//end getTaskStatus
-
- /**
- * Retrieves the simID of the device if available
- */
- private void getSimID(){
-
- String simID = getSharedData("PANDROID_DATA", "simID", Core.defaultSimID, "string");
-
- String serviceName = Context.TELEPHONY_SERVICE;
- TelephonyManager telephonyManager = (TelephonyManager) getApplicationContext().getSystemService(serviceName);
- simID = telephonyManager.getSimSerialNumber();
- putSharedData("PANDROID_DATA", "simID", simID, "string");
- }
- /**
- * Retrieves the time in seconds since the device was switched on
- */
- private void getUpTime(){
- long upTime = Core.defaultUpTime;
- upTime = SystemClock.elapsedRealtime()/1000;
- if(upTime != 0)
- putSharedData("PANDROID_DATA", "upTime", ""+upTime, "long");
- }
- /**
- * Retrieve currently registered network operator, i.e. vodafone, movistar, etc...
- */
- private void getNetworkOperator(){
- String networkOperator = Core.defaultNetworkOperator;
- String serviceName = Context.TELEPHONY_SERVICE;
- TelephonyManager telephonyManager = (TelephonyManager) getApplicationContext().getSystemService(serviceName);
- networkOperator = telephonyManager.getNetworkOperatorName();
-
- if(networkOperator != null)
- putSharedData("PANDROID_DATA", "networkOperator", networkOperator, "string");
- }
- /**
- * Retrieves the number of sent sms messages using the android messaging app only
- */
- private void getSMSSent(){
-
- String SMSSent = ""+Core.defaultSMSSent;
- SMSSent = getSharedData("PANDROID_DATA", "SMSSent", ""+Core.defaultSMSSent, "integer");
- Uri allMessages = Uri.parse("content://sms/sent");
- Cursor c = getContentResolver().query(allMessages, null, null, null, null);
- int totalMessages = 0;
-
- while (c.moveToNext())
- {
- String messageBody = c.getString(c.getColumnIndex("body"));
- long messageLength = messageBody.length();
- double numberOfMessages = messageLength / 160.0;
- double numberOfMessagesRoundedUp = Math.ceil(numberOfMessages);
- totalMessages = (int) (totalMessages + numberOfMessagesRoundedUp);
- }
-
- c.close();
-
- SMSSent =""+ totalMessages;
-
- if(SMSSent != null)
- putSharedData("PANDROID_DATA", "SMSSent", SMSSent, "integer");
-
- }// end getSMSSent
- /**
- * Retrieve the type of data network currently connected to, i.e. edge, gprs, etc...
- */
- private void getNetworkType()
- {
- String networkType = Core.defaultNetworkType;
- TelephonyManager tM = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
- int nT = tM.getNetworkType();
-
- switch (nT)
- {
- case 0:
- networkType = "Unknown";
- break;
- case 1:
- networkType = "GPRS";
- break;
- case 2:
- networkType = "EDGE";
- break;
- case 3:
- networkType = "UMTS";
- break;
- case 4:
- networkType = "CDMA";
- break;
- case 5:
- networkType = "EVDO rev. 0";
- break;
- case 6:
- networkType = "EVDO rev. A";
- break;
- case 7:
- networkType = "1xRTT";
- break;
- case 8:
- networkType = "HSDPA";
- break;
- case 9:
- networkType = "HSUPA";
- break;
- case 10:
- networkType = "HSPA";
- break;
- case 11:
- networkType = "iDen";
- break;
- case 12:
- networkType = "EVDO rev. B";
- break;
- case 13:
- networkType = "LTE";
- break;
- case 14:
- networkType = "eHRPD";
- break;
- case 15:
- networkType = "HSPA+";
- break;
- }
- if(networkType != null)
- putSharedData("PANDROID_DATA", "networkType", networkType, "string");
-
- }// end getNetworkType
-
- /**
- * Retrieve the type of mobile network currently conncected to, i.e. gms, cdma, etc...
- */
- private void getPhoneType()
- {
- String phoneType = Core.defaultPhoneType;
- TelephonyManager tM = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
- int pT = tM.getPhoneType();
-
- switch (pT)
- {
- case 0:
- phoneType = "none";
- break;
- case 1:
- phoneType = "GSM";
- break;
- case 2:
- phoneType = "CDMA";
- break;
- case 3:
- phoneType = "SIP";
- break;
- }
- if(phoneType != null)
- putSharedData("PANDROID_DATA", "phoneType", phoneType, "string");
- }// end getPhoneType
-
- /**
- * Retrieves the number of incoming, missed and outgoing calls
- */
- private void getCalls()
- {
- Cursor c = getApplicationContext().getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI, null, null, null, null);
- c.moveToFirst();
- int typeColumn = c.getColumnIndex(android.provider.CallLog.Calls.TYPE);
- int incoming = 0;
- int outgoing = 0;
- int missed = 0;
-
- if(c.isFirst()){
-
- while (c.isAfterLast() == false) {
- int callType = c.getInt(typeColumn);
-
- switch(callType){
- case android.provider.CallLog.Calls.INCOMING_TYPE:
- incoming++;
- break;
- case android.provider.CallLog.Calls.MISSED_TYPE:
- missed++;
- break;
- case android.provider.CallLog.Calls.OUTGOING_TYPE:
- outgoing++;
- break;
- }
- c.moveToNext();
- }
-
- putSharedData("PANDROID_DATA", "incomingCalls", ""+incoming, "integer");
- putSharedData("PANDROID_DATA", "missedCalls", ""+missed, "integer");
- putSharedData("PANDROID_DATA", "outgoingCalls", ""+outgoing, "integer");
- }
-
- c.close();
- }// end getCalls
- /**
- * Retrieves the current cell signal strength in dB
- */
- private void getSignalStrength()
- {
- TelephonyManager telephone = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
- signalListener phoneState = new signalListener();
- telephone.listen(phoneState ,PhoneStateListener.LISTEN_SIGNAL_STRENGTHS);
- }
-
- private class signalListener extends PhoneStateListener
- {
- @Override
- public void onSignalStrengthsChanged(SignalStrength signalStrength)
- {
- super.onSignalStrengthsChanged(signalStrength);
- String signalStrengthValue = ""+Core.defaultSignalStrength;
- if (signalStrength.isGsm()) {
- if (signalStrength.getGsmSignalStrength() != 99)
- signalStrengthValue =""+ (signalStrength.getGsmSignalStrength() * 2 - 113);
- else
- signalStrengthValue =""+ (signalStrength.getGsmSignalStrength());
- }
- else{
- signalStrengthValue ="" + (signalStrength.getCdmaDbm());
- }
- putSharedData("PANDROID_DATA", "signalStrength", signalStrengthValue, "integer");
- }
- };
- /**
- * Retrieves the number of sent/received bytes using the mobile network
- */
- private void getDataBytes()
- {
-
- long receiveBytes = TrafficStats.getMobileRxBytes();
- long transmitBytes = TrafficStats.getMobileTxBytes();
-
- if (receiveBytes != TrafficStats.UNSUPPORTED && transmitBytes != TrafficStats.UNSUPPORTED)
- {
- putSharedData("PANDROID_DATA", "receiveBytes", ""+receiveBytes, "long" );
- putSharedData("PANDROID_DATA", "transmitBytes", ""+transmitBytes, "long" );
- }
- }
- /**
- * Retrieves whether the device is currently connected to a roaming network
- */
- private void getRoaming()
- {
- TelephonyManager telephone = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
- boolean roaming = telephone.isNetworkRoaming();
-
- if(roaming)
- putSharedData("PANDROID_DATA", "roaming", "1", "integer" );
- else
- putSharedData("PANDROID_DATA", "roaming", "0", "integer" );
- }
-
-
- private void putSharedData(String preferenceName, String tokenName, String data, String type) {
-
- SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
- getApplicationContext().getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- Editor editor = agentPreferences.edit();
-
- if(type == "boolean") {
- editor.putBoolean(tokenName, Boolean.parseBoolean(data));
- editor.commit();
- }
- else if(type == "float") {
- editor.putFloat(tokenName, Float.parseFloat(data));
- editor.commit();
- }
- else if(type == "integer") {
- editor.putInt(tokenName, Integer.parseInt(data));
- editor.commit();
- }
- else if(type == "long") {
- editor.putLong(tokenName, Long.parseLong(data));
- editor.commit();
- }
- else if(type == "string") {
- editor.putString(tokenName, data);
- editor.commit();
- }
-
- editor.commit();
- }
-
- private String getSharedData(String preferenceName, String tokenName, String defaultValue, String type) {
-
- SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
- getApplicationContext().getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- if(type == "boolean") {
- boolean a = agentPreferences.getBoolean(tokenName, Boolean.parseBoolean(defaultValue));
- return Boolean.valueOf(a).toString();
- }
- else if(type == "float") {
- float a = agentPreferences.getFloat(tokenName, Float.parseFloat(defaultValue));
- return Float.valueOf(a).toString();
- }
- else if(type == "integer") {
- int a = agentPreferences.getInt(tokenName, Integer.parseInt(defaultValue));
- return Integer.valueOf(a).toString();
- }
- else if(type == "long") {
- long a = agentPreferences.getLong(tokenName, Long.parseLong(defaultValue));
- return Long.valueOf(a).toString();
- }
- else if(type == "string") {
- return agentPreferences.getString(tokenName, defaultValue);
- }
-
- return "";
- }
-
- private String getHumanDateTime(long unixtime){
- Calendar dateTime = Calendar.getInstance();
- if(unixtime != -1) {
- dateTime.setTimeInMillis(unixtime);
- }
- String humanDateTime;
-
- humanDateTime = dateTime.get(Calendar.YEAR) + "/";
-
- int month = dateTime.get(Calendar.MONTH) + 1;
- if(month < 10) {
- humanDateTime += "0";
- }
- humanDateTime += month + "/";
-
- int day = dateTime.get(Calendar.DAY_OF_MONTH);
- if(day < 10) {
- humanDateTime += "0";
- }
- humanDateTime += day + " ";
-
- int hour = dateTime.get(Calendar.HOUR_OF_DAY);
- if(hour < 10) {
- humanDateTime += "0";
- }
- humanDateTime += hour + ":";
-
- int minute = dateTime.get(Calendar.MINUTE);
- if(minute < 10) {
- humanDateTime += "0";
- }
- humanDateTime += minute + ":";
-
- int second = dateTime.get(Calendar.SECOND);
- if(second < 10) {
- humanDateTime += "0";
- }
- humanDateTime += second;
-
- return humanDateTime;
- }
-
- public static void CancelNotification(Context ctx, int notifyId) {
- String ns = Context.NOTIFICATION_SERVICE;
- NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns);
- nMgr.cancel(notifyId);
- }
-
-
-
- // ///////////////////////////////////////////
- // // Getting values from device functions
- // ///////////////////////////////////////////
- //
- // public class MyLocationListener implements LocationListener {
- //
- // @Override
- // public void onLocationChanged(Location loc) {
- // putSharedData("PANDROID_DATA", "latitude", Double.valueOf(loc.getLatitude()).toString(), "float");
- // putSharedData("PANDROID_DATA", "longitude", Double.valueOf(loc.getLongitude()).toString(), "float");
- // }
- //
- // @Override
- // public void onProviderDisabled(String provider) {
- // }
- //
- // @Override
- // public void onProviderEnabled(String provider) {
- // }
- //
- //
- // @Override
- // public void onStatusChanged(String provider, int status, Bundle extras) {
- // }
- //
- // }/* End of Class MyLocationListener */
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentTentacle.java b/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentTentacle.java
deleted file mode 100755
index db2bbe89ff..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/PandroidAgentTentacle.java
+++ /dev/null
@@ -1,204 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.io.*;
-import java.net.InetSocketAddress;
-import java.net.Socket;
-import java.net.UnknownHostException;
-
-
-
-class tentacle_client {
-
- // Return 0 when success, -1 when error
- public int send(String args[]) {
-
- int port = 41121;
- String send = null;
- String serverResponse = null;
- String address = "127.0.0.1";
- byte[] data = null;
- String parameter = "";
- String filePath = null;
- boolean verbose = false;
- File file = new File("");
-
- for (int i = 0; i < args.length; i++) {
- if (i == (args.length - 1)) {
- filePath = args[i];
- }
- else {
- // Get the param if is -* format or empty string otherwise
- String last_parameter = parameter;
- parameter = isParameter(args[i]);
-
- // If is not -* param check the previous param
- if (parameter.equals("")) {
- if (last_parameter.equals("-a")) {
- address = args[i];
- }
- else if(last_parameter.equals("-p")) {
- port = Integer.parseInt(args[i]);
- }
- }
-
- // The solo params are checked otherwise
- if (parameter.equals("-v")) {
- verbose = true;
- }
- }
- }
-
- if (filePath == null) {
- getError("Incorrect parameters. File path is necessary.");
- }
-
- getInfo("\n*** Starting tentacle client ***\n",verbose);
-
- Socket socketCliente = new Socket();
-
- // TODO Maybe change socket to higher timeout value
-
- try {
- socketCliente.connect(new InetSocketAddress(address, port), 2000);
-
- }
- catch (UnknownHostException e) {
- getError("Host doesn't exist");
- return -1;
- }
- catch (IOException e) {
- getError("Could not connect: The host is down");
- return -1;
- }
-
-
- DataOutputStream serverOutput = null;
-
- try {
- serverOutput = new DataOutputStream(socketCliente.getOutputStream());
- }
- catch (IOException e1) {
- getError("Could not get Data output stream");
- }
-
- BufferedReader serverInput = null;
-
- try {
- serverInput = new BufferedReader(new InputStreamReader(socketCliente.getInputStream()));
- }
- catch (IOException e1) {
- getError("Could not get Buffered reader");
- }
-
-
- file = new File(filePath);
- int size = (int) file.length();
- data = new byte[size];
- try {
- BufferedInputStream buf = new BufferedInputStream(new FileInputStream(file));
- buf.read(data, 0, data.length);
- buf.close();
- }
- catch (FileNotFoundException e) {
- getError("File not found");
- }
- catch (IOException e) {
- getError("Could not read from file");
- }
-
- getInfo("*** Start of transference ***\n",verbose);
- // Send the file name and length
- try {
- send = "SEND <" + file.getName() + "> SIZE " + Integer.toString(data.length) + '\n';
- getInfo("Client -> Server: " + send, verbose);
- serverOutput.writeBytes(send);
- }
- catch (IOException e) {
- getError("Could not write on server");
- }
- try {
- serverResponse = serverInput.readLine();
- }
- catch (IOException e) {
- getError("Could not get server response");
- }
-
- getInfo("Server -> Client: " + serverResponse + "\n", verbose);
- if (serverResponse != null && serverResponse.equals("SEND OK")) {
- try {
- getInfo("Client -> Server: [file data]\n", verbose);
- serverOutput.write(data);
-
- } catch (IOException e) {
- getError("Could not write on server");
- }
- try {
- serverResponse = serverInput.readLine();
- } catch (IOException e) {
- getError("Could not get server response");
- }
-
- getInfo("Server -> Client: " + serverResponse + "\n", verbose);
- if (serverResponse != null && serverResponse.equals("SEND OK")) {
- try {
- send = "QUIT\n";
- getInfo("Client -> Server: " + send, verbose);
- serverOutput.writeBytes("QUIT\n");
- } catch (IOException e) {
- getError("Could not write on server");
- }
- getInfo("*** End of transference ***\n", verbose);
- }
- else {
- getError("Bad server response, execution aborted.\n");
- }
- }
- else {
- getError("Bad server response, execution aborted.\n");
- }
-
- return 0;
- }
-
- private String isParameter(String str) {
- if(str.equals("-a") || str.equals("-p") || str.equals("-v")) {
- return str;
- }
- else {
- return "";
- }
- }
-
- private void getError(String error_str) {
- log("[ERROR] " + error_str + '\n');
- }
-
- private void getInfo(String error_str, boolean verbose) {
- if(verbose) {
- log("[INFO] " + error_str + '\n');
- }
- }
-
- private void log (String msg) {
- //Log.e("Tentacle",msg);
- //Context context = getApplicationContext();
- //int duration = Toast.LENGTH_SHORT;
-
- //Toast toast = Toast.makeText(context, msg, duration);
- //toast.show();
- }
-}
\ No newline at end of file
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/SMSBroadcastReceiver.java b/pandora_agents/android/mobile/src/pandroid/agent/SMSBroadcastReceiver.java
deleted file mode 100644
index 6eee1fc44f..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/SMSBroadcastReceiver.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-
-import android.app.Activity;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.SharedPreferences;
-import android.util.Log;
-
-public class SMSBroadcastReceiver extends BroadcastReceiver {
-
- private static final String SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED";
- private static final String TAG = "SMSBroadcastReceiver";
-
- @Override
- public void onReceive(Context context, Intent intent) {
- Log.i(TAG, "Intent recieved: " + intent.getAction());
-
- if (intent.getAction().equals(SMS_RECEIVED)) {
-
- int defaultSMSReceived = 0;
- int mode = Activity.MODE_PRIVATE;
-
- SharedPreferences pref = context.getSharedPreferences("PANDROID_DATA", mode);
- int sms = pref.getInt("SMSReceived", defaultSMSReceived);
-
- sms++;
-
- SharedPreferences.Editor editor = pref.edit();
- editor.putInt("SMSReceived", sms);
- editor.commit();
-
- }//end if
-
- }//end onRecieve
-}//end class
-
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/Setup.java b/pandora_agents/android/mobile/src/pandroid/agent/Setup.java
deleted file mode 100644
index f016ab1eb9..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/Setup.java
+++ /dev/null
@@ -1,821 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.app.ActivityManager.RunningAppProcessInfo;
-import android.app.Dialog;
-import android.app.NotificationManager;
-import android.content.Context;
-import android.content.Intent;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
-import android.net.Uri;
-import android.os.AsyncTask;
-import android.os.Bundle;
-import android.os.Handler;
-import android.text.TextUtils;
-import android.util.Log;
-import android.view.LayoutInflater;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.view.WindowManager;
-import android.view.WindowManager.LayoutParams;
-import android.view.inputmethod.InputMethodManager;
-import android.widget.ArrayAdapter;
-import android.widget.Button;
-import android.widget.CheckBox;
-import android.widget.EditText;
-import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
-import android.widget.Spinner;
-import android.widget.Toast;
-
-public class Setup extends Activity {
-
- Handler h = new Handler();
-
- private HashMap listProcesses;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- listProcesses = new HashMap();
- //TODO removed to improve performance, untested
- //Core.loadConf(getApplicationContext());
- }
-
- public void onResume() {
- super.onResume();
-
- if(Core.hasSim)
- setContentView(R.layout.setup);
- else
- setContentView(R.layout.setupnosim);
-
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
-
-
- if(Core.password.equals(Core.defaultPassword))
- {
- if(Core.passwordCheck.equals("enabled"))
- passwordChoose();
- }
- else{
- LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
- View view=inflater.inflate(R.layout.setup, null);
- RelativeLayout setup = (RelativeLayout)view.findViewById(R.id.setup);
- setContentView(setup);
- setup.setVisibility(RelativeLayout.INVISIBLE);
- enterPass();
- }
- }
-
- //For options
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- MenuInflater inflater = getMenuInflater();
- inflater.inflate(R.menu.options_menu, menu);
- return true;
- }
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- Intent i;
- switch (item.getItemId()) {
- case R.id.help_button_menu_options:
- i = new Intent(this, Help.class);
- startActivity(i);
- break;
- case R.id.about_button_menu_options:
- i = new Intent(this, About.class);
- startActivity(i);
- break;
- }
- return true;
- }
-
- private void setButtonEvents() {
- Button updateButton = (Button) findViewById(R.id.update);
-
- updateButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- getDataFromView();
- boolean result = Core.updateConf(getApplicationContext());
-
- if (result) {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.config_saved),
- Toast.LENGTH_SHORT);
- toast.show();
- }
- else {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.incorrect_update),
- Toast.LENGTH_SHORT);
- toast.show();
- }
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- Button passwordButton = (Button) findViewById(R.id.set_password);
- passwordButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- createPass();
- }
- });
-
- Button webButton = (Button) findViewById(R.id.goToWebButton);
- webButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- getDataFromView();
- Core.updateConf(getApplicationContext());
-
- String url = Core.mobileWebURL;
- if (!url.startsWith("https://") && !url.startsWith("http://")){
- url = "http://" + url;
- }
-
- Uri uri = Uri.parse(url);
- Intent intent = new Intent(Intent.ACTION_VIEW, uri);
- startActivity(intent);
- }
- });
-
- Button stopAgent = (Button) findViewById(R.id.stopAgent);
- stopAgent.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.stopAgentListener();
- CancelNotification(getApplicationContext(),42);
- }
- });
-
- Button restartAgent = (Button) findViewById(R.id.restartAgent);
- restartAgent.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- }// end setButtonEvents
-
- private void loadInBackgroundProcessInExecution() {
- new GetProcessInExecutionAsyncTask().execute();
- }
-
- public class GetProcessInExecutionAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- getProcess();
- return null;
- }
-
- private void getProcess() {
- listProcesses.clear();
-
- ActivityManager activityManager = (ActivityManager)getApplication().getSystemService(ACTIVITY_SERVICE);
- List runningAppProcessInfos = activityManager.getRunningAppProcesses();
- PackageManager pm = getApplication().getPackageManager();
- RunningAppProcessInfo runningAppProcessInfo;
-
- for (int i = 0; i < runningAppProcessInfos.size(); i++) {
- runningAppProcessInfo = runningAppProcessInfos.get(i);
-
- try {
- CharSequence human_name = pm.getApplicationLabel(
- pm.getApplicationInfo(runningAppProcessInfo.processName, PackageManager.GET_META_DATA));
-
- listProcesses.put(runningAppProcessInfo.processName, human_name + "");
- }
- catch (NameNotFoundException e) {
- listProcesses.put(runningAppProcessInfo.processName, runningAppProcessInfo.processName);
- }
- }
- }
-
- @Override
- protected void onPostExecute(Void unused)
- {
- Spinner combo = (Spinner)findViewById(R.id.processes_combo);
- ArrayList listProcess = new ArrayList(listProcesses.keySet());
- ArrayList listProcessHuman = new ArrayList(listProcesses.values());
- int position = 0;
-
- if (Core.task.length() != 0) {
- position = listProcess.indexOf(Core.task);
-
- String text = Core.task;
- if (Core.taskHumanName.length() != 0) {
- text = Core.taskHumanName;
- }
-
- //If the process is not running, add in the list at the end
- if (position == -1) {
- listProcesses.put(Core.task, text);
-
- //The associative array is reordered, and need to extract the sub arrays again.
- listProcess = new ArrayList(listProcesses.keySet());
- listProcessHuman = new ArrayList(listProcesses.values());
-
- position = listProcess.indexOf(Core.task);
- }
- }
-
- ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(getApplicationContext(),
- R.layout.spinner, listProcessHuman);
- spinnerArrayAdapter
- .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- combo.setAdapter(spinnerArrayAdapter);
-
- spinnerArrayAdapter
- .setDropDownViewResource(R.layout.simple_spinner_item);
-
- combo.setSelection(position);
-
- ProgressBar progressBar = (ProgressBar) findViewById(R.id.loading_task_anim);
- progressBar.setVisibility(ProgressBar.GONE);
-
- combo.setVisibility(Spinner.VISIBLE);
-
- Button button = (Button)findViewById(R.id.update);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.set_password);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.goToWebButton);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.stopAgent);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.restartAgent);
- button.setEnabled(true);
-
- }
- }// end onPostExecute
-
- private void getDataFromView() {
- // Declare view objects
- EditText editText;
- CheckBox checkBox;
- Spinner combo;
-
- // notification
- checkBox = (CheckBox) findViewById(R.id.checkNotification);
- if (checkBox.isChecked())
- Core.NotificationCheck = "enabled";
- else
- Core.NotificationCheck = "disabled";
- Log.d("notif", ""+Core.NotificationCheck);
-
- // serverAddress
- editText = (EditText) findViewById(R.id.serverAddrInput);
- Core.serverAddr = editText.getText().toString();
-
- // serverPort
- editText = (EditText) findViewById(R.id.serverPortInput);
- Core.serverPort = editText.getText().toString();
-
- // interval
- editText = (EditText) findViewById(R.id.intervalInput);
- Core.interval = Integer.valueOf(editText.getText().toString()).intValue();
-
- // agentName
- editText = (EditText) findViewById(R.id.agentNameInput);
- Core.agentName = editText.getText().toString();
-
- // bufferSize
- editText = (EditText) findViewById(R.id.bufferSize);
- Core.bufferSize = Long.valueOf(editText.getText().toString()).longValue();
-
- // mobileWebURL
- editText = (EditText) findViewById(R.id.mobileWebURLInput);
- Core.mobileWebURL = editText.getText().toString();
-
- // taskReport
- checkBox = (CheckBox) findViewById(R.id.checkTaskReport);
- if (checkBox.isChecked()) {
- Core.taskStatus = "enabled";
-
- combo = (Spinner)findViewById(R.id.processes_combo);
- int position = combo.getSelectedItemPosition();
- ArrayList listProcess = new ArrayList(listProcesses.keySet());
- ArrayList listProcessHuman = new ArrayList(listProcesses.values());
- Core.task = listProcess.get(position);
- Core.taskHumanName = listProcessHuman.get(position);
- }
- else {
- Core.taskStatus = "disabled";
- Core.task = "";
- Core.taskHumanName = "";
- }
-
- // gpsReport
- checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
- if (checkBox.isChecked())
- Core.gpsStatus = "enabled";
- else
- Core.gpsStatus = "disabled";
-
- // batteryLevelReport
- checkBox = (CheckBox) findViewById(R.id.checkBatteryLevelReport);
- if (checkBox.isChecked())
- Core.BatteryLevelReport = "enabled";
- else
- Core.BatteryLevelReport = "disabled";
-
- // memoryReport
- checkBox = (CheckBox) findViewById(R.id.checkMemoryReport);
- if (checkBox.isChecked())
- Core.memoryStatus = "enabled";
- else
- Core.memoryStatus = "disabled";
-
- // upTimeReport
- checkBox = (CheckBox) findViewById(R.id.checkDeviceUpTimeReport);
- if (checkBox.isChecked())
- Core.DeviceUpTimeReport = "enabled";
- else
- Core.DeviceUpTimeReport = "disabled";
-
- // inventory Report
- checkBox = (CheckBox) findViewById(R.id.checkInventoryReport);
- if (checkBox.isChecked())
- Core.InventoryReport = "enabled";
- else
- Core.InventoryReport = "disabled";
-
- // helloSignalReport
- checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
- if (checkBox.isChecked())
- Core.HelloSignalReport = "enabled";
- else
- Core.HelloSignalReport = "disabled";
-
- // Only retrieve these values if a sim card is present
- if (Core.hasSim) {
-
- // simIDReport
- checkBox = (CheckBox) findViewById(R.id.checkSimIDReport);
- if (checkBox.isChecked())
- Core.simIDReport = "enabled";
- else
- Core.simIDReport = "disabled";
-
- // networkOperatorReport
- checkBox = (CheckBox) findViewById(R.id.checkNetworkOperatorReport);
- if (checkBox.isChecked())
- Core.NetworkOperatorReport = "enabled";
- else
- Core.NetworkOperatorReport = "disabled";
-
- // networkTypeReport
- checkBox = (CheckBox) findViewById(R.id.checkNetworkTypeReport);
- if (checkBox.isChecked())
- Core.NetworkTypeReport = "enabled";
- else
- Core.NetworkTypeReport = "disabled";
-
- // phoneTypeReport
- checkBox = (CheckBox) findViewById(R.id.checkPhoneTypeReport);
- if (checkBox.isChecked())
- Core.PhoneTypeReport = "enabled";
- else
- Core.PhoneTypeReport = "disabled";
-
- // signalStrengthReport
- checkBox = (CheckBox) findViewById(R.id.checkSignalStrengthReport);
- if (checkBox.isChecked())
- Core.SignalStrengthReport = "enabled";
- else
- Core.SignalStrengthReport = "disabled";
-
- // receivedSMSReport
- checkBox = (CheckBox) findViewById(R.id.checkReceivedSMSReport);
- if (checkBox.isChecked())
- Core.ReceivedSMSReport = "enabled";
- else
- Core.ReceivedSMSReport = "disabled";
-
- // sentSMSReport
- checkBox = (CheckBox) findViewById(R.id.checkSentSMSReport);
- if (checkBox.isChecked())
- Core.SentSMSReport = "enabled";
- else
- Core.SentSMSReport = "disabled";
-
- // incomingCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkIncomingCallsReport);
- if (checkBox.isChecked())
- Core.IncomingCallsReport = "enabled";
- else
- Core.IncomingCallsReport = "disabled";
-
- // missedCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkMissedCallsReport);
- if (checkBox.isChecked())
- Core.MissedCallsReport = "enabled";
- else
- Core.MissedCallsReport = "disabled";
-
- // outgoingCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkOutgoingCallsReport);
- if (checkBox.isChecked())
- Core.OutgoingCallsReport = "enabled";
- else
- Core.OutgoingCallsReport = "disabled";
-
- // bytesReceivedReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesReceivedReport);
- if (checkBox.isChecked())
- Core.BytesReceivedReport = "enabled";
- else
- Core.BytesReceivedReport = "disabled";
-
- // bytesSentReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesSentReport);
- if (checkBox.isChecked())
- Core.BytesSentReport = "enabled";
- else
- Core.BytesSentReport = "disabled";
-
- // roamingReport
- checkBox = (CheckBox) findViewById(R.id.checkRoamingReport);
- if (checkBox.isChecked())
- Core.RoamingReport = "enabled";
- else
- Core.RoamingReport = "disabled";
- }// end if sim card
-
- // update saved values with new ones retrieved from view
- Core.updateConf(getApplicationContext());
- }
-
- private void loadViews(){
- // Declare view objects
- EditText editText;
- CheckBox checkBox;
-
- // notification
- checkBox = (CheckBox) findViewById(R.id.checkNotification);
- checkBox.setChecked(Core.NotificationCheck.equals("enabled"));
-
- // serverAddress
- editText = (EditText) findViewById(R.id.serverAddrInput);
- editText.setText(Core.serverAddr);
-
- // serverPort
- editText = (EditText) findViewById(R.id.serverPortInput);
- editText.setText(Core.serverPort);
-
- // interval
- editText = (EditText) findViewById(R.id.intervalInput);
- editText.setText(Integer.toString(Core.interval));
-
- // agentName
- editText = (EditText) findViewById(R.id.agentNameInput);
- editText.setText(Core.agentName);
-
- // bufferSize
- editText = (EditText) findViewById(R.id.bufferSize);
- editText.setText(Long.toString(Core.bufferSize));
-
- // mobileWebURL
- editText = (EditText) findViewById(R.id.mobileWebURLInput);
- editText.setText(Core.mobileWebURL);
-
- // taskReport
- checkBox = (CheckBox) findViewById(R.id.checkTaskReport);
- checkBox.setChecked(Core.taskStatus.equals("enabled"));
-
- // gpsReport
- checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
- checkBox.setChecked(Core.gpsStatus.equals("enabled"));
-
- // batteryLevelReport
- checkBox = (CheckBox) findViewById(R.id.checkBatteryLevelReport);
- checkBox.setChecked(Core.BatteryLevelReport.equals("enabled"));
-
- // memoryReport
- checkBox = (CheckBox) findViewById(R.id.checkMemoryReport);
- checkBox.setChecked(Core.memoryStatus.equals("enabled"));
-
- // upTimeReport
- checkBox = (CheckBox) findViewById(R.id.checkDeviceUpTimeReport);
- checkBox.setChecked(Core.DeviceUpTimeReport.equals("enabled"));
-
- // inventoryReport
- checkBox = (CheckBox) findViewById(R.id.checkInventoryReport);
- checkBox.setChecked(Core.InventoryReport.equals("enabled"));
-
- // helloSignalReport
- checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
- checkBox.setChecked(Core.HelloSignalReport.equals("enabled"));
-
- // Only retrieve these values if a sim card is present
- if (Core.hasSim) {
-
- // simIDReport
- checkBox = (CheckBox) findViewById(R.id.checkSimIDReport);
- checkBox.setChecked(Core.simIDReport.equals("enabled"));
-
- // networkOperatorReport
- checkBox = (CheckBox) findViewById(R.id.checkNetworkOperatorReport);
- checkBox.setChecked(Core.NetworkOperatorReport.equals("enabled"));
-
- // networkTypeReport
- checkBox = (CheckBox) findViewById(R.id.checkNetworkTypeReport);
- checkBox.setChecked(Core.NetworkTypeReport.equals("enabled"));
-
- // phoneTypeReport
- checkBox = (CheckBox) findViewById(R.id.checkPhoneTypeReport);
- checkBox.setChecked(Core.PhoneTypeReport.equals("enabled"));
-
- // signalStrengthReport
- checkBox = (CheckBox) findViewById(R.id.checkSignalStrengthReport);
- checkBox.setChecked(Core.SignalStrengthReport.equals("enabled"));
-
- // receivedSMSReport
- checkBox = (CheckBox) findViewById(R.id.checkReceivedSMSReport);
- checkBox.setChecked(Core.ReceivedSMSReport.equals("enabled"));
-
- // sentSMSReport
- checkBox = (CheckBox) findViewById(R.id.checkSentSMSReport);
- checkBox.setChecked(Core.SentSMSReport.equals("enabled"));
-
- // incomingCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkIncomingCallsReport);
- checkBox.setChecked(Core.IncomingCallsReport.equals("enabled"));
-
- // missedCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkMissedCallsReport);
- checkBox.setChecked(Core.MissedCallsReport.equals("enabled"));
-
- // outgoingCallsReport
- checkBox = (CheckBox) findViewById(R.id.checkOutgoingCallsReport);
- checkBox.setChecked(Core.OutgoingCallsReport.equals("enabled"));
-
- // bytesReceivedReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesReceivedReport);
- checkBox.setChecked(Core.BytesReceivedReport.equals("enabled"));
-
- // bytesSentReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesSentReport);
- checkBox.setChecked(Core.BytesSentReport.equals("enabled"));
-
- // roamingReport
- checkBox = (CheckBox) findViewById(R.id.checkRoamingReport);
- checkBox.setChecked(Core.RoamingReport.equals("enabled"));
- }//end if sim card
-
- }
-
- // For displaying a dialog in order to set/change password
- public void passwordChoose() {
- final Dialog dialog = new Dialog(this);
- dialog.setContentView(R.layout.password_choose);
- dialog.setTitle(getString(R.string.password_choose_text));
- dialog.setCancelable(false);
-
- Button yes = (Button) dialog.findViewById(R.id.yes_button);
- yes.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Core.passwordCheck = "disabled";
- Core.updateConf(getApplicationContext());
- dialog.dismiss();
- createPass();
- } // end onClick
- });//end clickListener
-
- Button no = (Button) dialog.findViewById(R.id.no_button);
- no.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- CheckBox cB = (CheckBox) dialog.findViewById(R.id.password_checkbox);
- if (cB.isChecked())
- Core.passwordCheck = "disabled";
- else
- Core.passwordCheck = "enabled";
- Core.updateConf(getApplicationContext());
- dialog.dismiss();
- } // end onClick
- });//end clickListener
-
- dialog.show();
- }
-
- // For displaying a dialog in order to create a password
- public void createPass() {
-
- final Dialog dialog = new Dialog(this);
- dialog.setContentView(R.layout.password_create);
- dialog.setCancelable(false);
- dialog.getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
-
- final EditText text = (EditText) dialog.findViewById(R.id.password_create_field);
- text.setText("");
-
- final EditText text2 = (EditText) dialog.findViewById(R.id.password_create_field_2);
- text2.setText("");
-
- Button button = (Button) dialog.findViewById(R.id.password_create_button);
- button.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- String createpass_password = text.getText().toString().trim();
- String createpass_password2 = text2.getText().toString().trim();
-
- try
- {
- if (TextUtils.isEmpty(createpass_password))
- {
- Core.password = Core.defaultPassword;
- Core.updateConf(getApplicationContext());
- getApplicationContext();
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
- dialog.dismiss();
-
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_removed),
- Toast.LENGTH_SHORT);
- toast.show();
-
- return;
- }
- else if (createpass_password.length() < 6)
- {
- text.setError(getString(R.string.password_length));
- text2.setError(getString(R.string.password_length));
- return;
- }
-
- else if (createpass_password.equals(createpass_password2))
- {
- Core.password = createpass_password;
- Core.updateConf(getApplicationContext());
- getApplicationContext();
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
-
- dialog.dismiss();
-
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_created),
- Toast.LENGTH_SHORT);
- toast.show();
-
- return;
- }
- else
- {
- text2.setError(getString(R.string.password_no_match));
- return;
- }
- }
- catch(Exception x)
- {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_error),
- Toast.LENGTH_SHORT);
- toast.show();
- finish();
- }
- } // end onClick
-
- });//end clickListener
- Core.updateConf(getApplicationContext());
- dialog.show();
-
- }// end createPass
-
- // For displaying a dialog in order to enter the password
- public void enterPass() {
-
- final Dialog dialog = new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
- dialog.setContentView(R.layout.password_entry);
- dialog.setTitle(getString(R.string.password_enter));
- dialog.setCancelable(false);
- dialog.getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
- dialog.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
-
-
- final EditText text = (EditText) dialog.findViewById(R.id.password_entry_input);
- text.setText("");
-
- Button button = (Button) dialog.findViewById(R.id.password_entry_button);
- button.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- String password = text.getText().toString().trim();
-
- try
- {
- if(password.equals(Core.password))
- {
- getApplicationContext();
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
- dialog.dismiss();
-
- if(Core.hasSim){
- LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
- View view=inflater.inflate(R.layout.setup, null);
- RelativeLayout setup = (RelativeLayout)view.findViewById(R.id.setup);
- setContentView(setup);
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
- setup.setVisibility(RelativeLayout.VISIBLE);
- }
- else{
- LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
- View view=inflater.inflate(R.layout.setupnosim, null);
- RelativeLayout setupnosim = (RelativeLayout)view.findViewById(R.id.setupnosim);
- setContentView(setupnosim);
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
- setupnosim.setVisibility(RelativeLayout.VISIBLE);
- }
- }
- else
- {
- text.setError(getString(R.string.password_incorrect));
- }
- }
- catch(Exception x)
- {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_error),
- Toast.LENGTH_SHORT);
- toast.show();
- finish();
- }
-
- }
- });
-
- Button backButton = (Button) dialog.findViewById(R.id.password_back_button);
- backButton.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- dialog.dismiss();
- switchTabInActivity(0);
- }
- });
-
- dialog.show();
-
- }// end enterPass
-
-
- /**
- * Allows this activity to switch the parent tab
- * @param indexTabToSwitchTo
- */
- public void switchTabInActivity(int indexTabToSwitchTo){
- PandroidAgent ParentActivity;
- ParentActivity = (PandroidAgent) this.getParent();
- ParentActivity.switchTab(indexTabToSwitchTo);
- }
-
- public static void CancelNotification(Context ctx, int notifyId) {
- String ns = Context.NOTIFICATION_SERVICE;
- NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns);
- nMgr.cancel(notifyId);
- }
-
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/StartMyServiceAtBootReceiver.java b/pandora_agents/android/mobile/src/pandroid/agent/StartMyServiceAtBootReceiver.java
deleted file mode 100644
index 49d2185bc5..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/StartMyServiceAtBootReceiver.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package pandroid.agent;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-public class StartMyServiceAtBootReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
- //Core.restartAgentListener(context);
- }
- }
-}
diff --git a/pandora_agents/android/mobile/src/pandroid/agent/Status.java b/pandora_agents/android/mobile/src/pandroid/agent/Status.java
deleted file mode 100644
index 3a568023f2..0000000000
--- a/pandora_agents/android/mobile/src/pandroid/agent/Status.java
+++ /dev/null
@@ -1,380 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.graphics.Color;
-import android.os.AsyncTask;
-import android.os.Bundle;
-import android.os.Handler;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
-import android.widget.TextView;
-
-import java.util.Date;
-
-
-public class Status extends Activity {
- Handler h = new Handler();
-
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- if(Core.hasSim)
- setContentView(R.layout.status);
- else
- setContentView(R.layout.statusnosim);
-
- // Core.loadLastValues(getApplicationContext());
- // showLastValues();
- // updateLastContactInfo();
- //setButtonEvents();
- }
- //TODO maybe remove duplicate from onCreate
- @Override
- public void onResume(){
- super.onResume();
-
- if(Core.hasSim)
- setContentView(R.layout.status);
- else
- setContentView(R.layout.statusnosim);
-
- new GetLastValuesAsyncTask().execute();
-
- updateLastContactInfo();
-
- }
-
-
-
- public void onStart(){
- super.onStart();
-
- // Update the UI each second
- h.post(new Runnable() {
- @Override
- public void run() {
-
- new GetLastValuesAsyncTask().execute();
-
- updateLastContactInfo();
-
- h.postDelayed(this, 1000);
- }
- });
- }
-
- //For options
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- MenuInflater inflater = getMenuInflater();
- inflater.inflate(R.menu.options_menu, menu);
- return true;
- }
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- Intent i;
- switch (item.getItemId()) {
- case R.id.help_button_menu_options:
- i = new Intent(this, Help.class);
- startActivity(i);
- break;
- case R.id.about_button_menu_options:
- i = new Intent(this, About.class);
- startActivity(i);
- break;
- }
- return true;
- }
-
- public class GetLastValuesAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- Core.loadLastValues(getApplicationContext());
- return null;
- }
-
-
- @Override
- protected void onPostExecute(Void unused)
- {
- showLastValues();
- }
-
-
- }// end onPostExecute
-
-
-
- private void updateLastContactInfo() {
- long lastContact = Core.lastContact;
- int contactError = Core.contactError;
- boolean alarmEnabled = Core.alarmEnabled;
- Date date = new Date();
- long timestamp = date.getTime() / 1000;
- long timeAgo = -1;
-
- //loading until error or connects
- TextView lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.loading));
-
- if(lastContact != -1){
- timeAgo = timestamp - lastContact;
- }
-
- int interval = Core.interval;
-
- if(timeAgo >= interval) {
- timeAgo = 0;
- }
-
- String stringAgo = "";
-
- if(!alarmEnabled){
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.contact_stopped_str));
- }
-
- else if(contactError == 1) {
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.conctact_error_str));
-
- }
- else if(lastContact == -1) {
- stringAgo = getString(R.string.never_str);
- }
- else if(timeAgo == 0) {
- stringAgo = getString(R.string.now_str);
- }
- //TODO
- else if(contactError == 0) {
- stringAgo = timeAgo + " " + getString(R.string.seconds_str);
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#00FF00"));
- lastContactInfo.setText(getString(R.string.last_contact_str) + stringAgo);
- }
-
- }//end updateLastContactInfo
-
- //Set layout values to current
- private void showLastValues() {
-
- // latitude
- TextView textView = (TextView)findViewById(R.id.latitude_value_str);
- textView.setText("");
- if (Core.latitude != Core.CONST_INVALID_COORDS) {
- textView.setText("" + Core.latitude);
- }
- // longitude
- textView = (TextView)findViewById(R.id.longitude_value_str);
- textView.setText("");
- if (Core.longitude != Core.CONST_INVALID_COORDS) {
- textView.setText("" + Core.longitude);
- }
- // battery level
- textView = (TextView)findViewById(R.id.battery_value_str);
- textView.setText("");
- if (Core.batteryLevel != Core.CONST_INVALID_BATTERY_LEVEL) {
- textView.setText("" + Core.batteryLevel);
- }
-
-
- /*
- textView = (TextView)findViewById(R.id.orientation_value_str);
- textView.setText("");
-
- if (Core.orientation != Core.CONST_INVALID_ORIENTATION) {
- textView.setText("" + Core.orientation);
- }
-
- textView = (TextView)findViewById(R.id.proximity_value_str);
- textView.setText("");
- if (Core.proximity != Core.CONST_INVALID_PROXIMITY) {
- textView.setText("" + Core.proximity);
- }
- */
-
- // task
- textView = (TextView)findViewById(R.id.task_value_str);
- textView.setText("");
- if (Core.taskStatus.equals("enabled") && Core.taskHumanName.length() != 0) {
- String text = Core.taskHumanName + " ( " + Core.task + " ): ";
- if (Core.taskRun.equals("true")) {
- text = text + getString(R.string.running);
- }
- else {
- text = text + getString(R.string.stopped);
- }
- textView.setText(text);
- }
-
- // freeMemory
- textView = (TextView)findViewById(R.id.memory_value_str);
- textView.setText("");
- if (Core.memoryStatus.equals("enabled")) {
- String textMemory = getString(R.string.memory_avaliable_str);
- textMemory = textMemory.replaceFirst("%i", "" + Core.availableRamKb);
- textMemory = textMemory.replaceFirst("%i", "" + Core.totalRamKb);
- textView.setText(textMemory);
- }
- // upTime
- textView = (TextView)findViewById(R.id.uptime_value);
- textView.setText("");
- if (Core.upTime != 0) {
- textView.setText("" + Core.upTime+" "+ getString(R.string.seconds));
- }
-
- //Only set values if sim present
- //if no sim these views aren't present as different layout is loaded
- if (Core.hasSim) {
- // simID
- textView = (TextView)findViewById(R.id.sim_id_value);
- textView.setText("");
- textView.setText("" + Core.simID);
-
- // networkOperator
- textView = (TextView)findViewById(R.id.network_operator_value);
- textView.setText("");
- if (Core.networkOperator != null) {
- textView.setText("" + Core.networkOperator);
- }
-
- // networkType
- textView = (TextView)findViewById(R.id.network_type_value);
- textView.setText("");
- if (Core.networkType != null) {
- textView.setText("" + Core.networkType);
- }
-
- // phoneType
- textView = (TextView)findViewById(R.id.phone_type_value);
- textView.setText("");
- if(Core.phoneType != null)
- textView.setText("" + Core.phoneType);
-
- // signalStrength
- textView = (TextView)findViewById(R.id.signal_strength_value);
- textView.setText("");
- if(Core.signalStrength != 0)
- textView.setText("" + Core.signalStrength+"dB");
-
- // SMSReceived
- textView = (TextView)findViewById(R.id.sms_received_value);
- textView.setText("");
- textView.setText("" + Core.SMSReceived);
-
- // SMSSent
- textView = (TextView)findViewById(R.id.sms_sent_value);
- textView.setText("");
- textView.setText("" + Core.SMSSent);
-
- // incomingCalls
- textView = (TextView)findViewById(R.id.incoming_calls_value);
- textView.setText("");
- textView.setText("" + Core.incomingCalls);
-
- // missedCalls
- textView = (TextView)findViewById(R.id.missed_calls_value);
- textView.setText("");
- textView.setText("" + Core.missedCalls);
-
- // outgoingCalls
- textView = (TextView)findViewById(R.id.outgoing_calls_value);
- textView.setText("");
- textView.setText("" + Core.outgoingCalls);
-
- // receiveBytes
- textView = (TextView)findViewById(R.id.receive_bytes_value);
- textView.setText("");
- textView.setText("" + Core.receiveBytes);
-
- // transmiteBytes
- textView = (TextView)findViewById(R.id.transmit_bytes_value);
- textView.setText("");
- textView.setText("" + Core.transmitBytes);
-
- // roaming
- textView = (TextView)findViewById(R.id.roaming_value);
- textView.setText("");
- textView.setText("" + Core.roaming);
-
- }//end simID if
-
- }
-
- //For debugging
-
- /* For debugging
- private void setButtonEvents() {
- // Set update button events
- Button start = (Button) findViewById(R.id.start);
- Button xml = (Button) findViewById(R.id.get_xml);
- Button hidexml = (Button) findViewById(R.id.hide_xml);
- Button stop = (Button) findViewById(R.id.stop);
-
-
- xml.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- updateLastXML();
- }
- });
-
- hidexml.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- hideLastXML();
- }
- });
-
- stop.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.stopAgentListener();
- }
- });
-
- start.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- }//end button events
-
-
-
- private void updateLastXML() {
-
- TextView xml = (TextView) this.findViewById(R.id.xml);
- SharedPreferences agentPreferences = PandroidAgent.getSharedPrefs();
-
- String lastXML = agentPreferences.getString("lastXML", "[no data]");
- xml.setText("Last XML builded: \n\n" + lastXML);
-
- }
- private void hideLastXML(){
- TextView xml = (TextView) this.findViewById(R.id.xml);
- xml.setText("");
- }
-
- */
-}
diff --git a/pandora_agents/android/tablet/.classpath b/pandora_agents/android/tablet/.classpath
deleted file mode 100755
index 4013f7903e..0000000000
--- a/pandora_agents/android/tablet/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/tablet/.project b/pandora_agents/android/tablet/.project
deleted file mode 100755
index 6a169a963e..0000000000
--- a/pandora_agents/android/tablet/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- Pandroid Agent v1.0_Tablet
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/pandora_agents/android/tablet/.settings/org.eclipse.jdt.core.prefs b/pandora_agents/android/tablet/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b080d2ddc8..0000000000
--- a/pandora_agents/android/tablet/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/pandora_agents/android/tablet/AndroidManifest.xml b/pandora_agents/android/tablet/AndroidManifest.xml
deleted file mode 100755
index af44dcfc3d..0000000000
--- a/pandora_agents/android/tablet/AndroidManifest.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/libs/commons-lang3-3.0.1.jar b/pandora_agents/android/tablet/libs/commons-lang3-3.0.1.jar
deleted file mode 100644
index 911e8d89f1..0000000000
Binary files a/pandora_agents/android/tablet/libs/commons-lang3-3.0.1.jar and /dev/null differ
diff --git a/pandora_agents/android/tablet/proguard.cfg b/pandora_agents/android/tablet/proguard.cfg
deleted file mode 100755
index 6c68c1e00c..0000000000
--- a/pandora_agents/android/tablet/proguard.cfg
+++ /dev/null
@@ -1,34 +0,0 @@
--optimizationpasses 5
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native ;
-}
-
--keepclasseswithmembers class * {
- public (android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembers class * {
- public (android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
diff --git a/pandora_agents/android/tablet/project.properties b/pandora_agents/android/tablet/project.properties
deleted file mode 100644
index d6659d5383..0000000000
--- a/pandora_agents/android/tablet/project.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-17
diff --git a/pandora_agents/android/tablet/res/drawable-hdpi/about.png b/pandora_agents/android/tablet/res/drawable-hdpi/about.png
deleted file mode 100644
index 6a7a1e94a7..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-hdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-hdpi/help.png b/pandora_agents/android/tablet/res/drawable-hdpi/help.png
deleted file mode 100644
index a39eff3e29..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-hdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-hdpi/ic_launcher.png b/pandora_agents/android/tablet/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 9a01a88f89..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-hdpi/icon.png b/pandora_agents/android/tablet/res/drawable-hdpi/icon.png
deleted file mode 100644
index d721fa3962..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-hdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-hdpi/pandorafms_logo.png b/pandora_agents/android/tablet/res/drawable-hdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-hdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/about.png b/pandora_agents/android/tablet/res/drawable-ldpi/about.png
deleted file mode 100644
index 55c57d5c54..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/help.png b/pandora_agents/android/tablet/res/drawable-ldpi/help.png
deleted file mode 100644
index f93a4e6402..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/ic_launcher.png b/pandora_agents/android/tablet/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index aab25d9373..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/icon.png b/pandora_agents/android/tablet/res/drawable-ldpi/icon.png
deleted file mode 100755
index c224228d64..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/logo.png b/pandora_agents/android/tablet/res/drawable-ldpi/logo.png
deleted file mode 100644
index 4cb625e292..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/pandorafms_logo.png b/pandora_agents/android/tablet/res/drawable-ldpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-ldpi/pandroid_large.png b/pandora_agents/android/tablet/res/drawable-ldpi/pandroid_large.png
deleted file mode 100644
index fe050b5d76..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-ldpi/pandroid_large.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-mdpi/about.png b/pandora_agents/android/tablet/res/drawable-mdpi/about.png
deleted file mode 100644
index 61a0e52eba..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-mdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-mdpi/help.png b/pandora_agents/android/tablet/res/drawable-mdpi/help.png
deleted file mode 100644
index 47a98073e7..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-mdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-mdpi/ic_launcher.png b/pandora_agents/android/tablet/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 3876a631f6..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-mdpi/icon.png b/pandora_agents/android/tablet/res/drawable-mdpi/icon.png
deleted file mode 100644
index 659d594568..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-mdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-mdpi/pandorafms_logo.png b/pandora_agents/android/tablet/res/drawable-mdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-mdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/about.png b/pandora_agents/android/tablet/res/drawable-xhdpi/about.png
deleted file mode 100644
index 24ea543733..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/about.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/help.png b/pandora_agents/android/tablet/res/drawable-xhdpi/help.png
deleted file mode 100644
index 128c7e807d..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/help.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/ic_launcher.png b/pandora_agents/android/tablet/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index f1099df0a3..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/icon.png b/pandora_agents/android/tablet/res/drawable-xhdpi/icon.png
deleted file mode 100644
index bead0bbcf9..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/icon.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/logo.png b/pandora_agents/android/tablet/res/drawable-xhdpi/logo.png
deleted file mode 100644
index 9552d3a0e4..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/pandorafms_logo.png b/pandora_agents/android/tablet/res/drawable-xhdpi/pandorafms_logo.png
deleted file mode 100644
index 5369386f92..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/pandorafms_logo.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/drawable-xhdpi/pandroid_large.png b/pandora_agents/android/tablet/res/drawable-xhdpi/pandroid_large.png
deleted file mode 100644
index 6744648ef1..0000000000
Binary files a/pandora_agents/android/tablet/res/drawable-xhdpi/pandroid_large.png and /dev/null differ
diff --git a/pandora_agents/android/tablet/res/layout/about.xml b/pandora_agents/android/tablet/res/layout/about.xml
deleted file mode 100644
index 4dbb820113..0000000000
--- a/pandora_agents/android/tablet/res/layout/about.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/help.xml b/pandora_agents/android/tablet/res/layout/help.xml
deleted file mode 100644
index 064ff6d68b..0000000000
--- a/pandora_agents/android/tablet/res/layout/help.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/password_choose.xml b/pandora_agents/android/tablet/res/layout/password_choose.xml
deleted file mode 100644
index f09bb2beb2..0000000000
--- a/pandora_agents/android/tablet/res/layout/password_choose.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/password_create.xml b/pandora_agents/android/tablet/res/layout/password_create.xml
deleted file mode 100644
index 26ac76247b..0000000000
--- a/pandora_agents/android/tablet/res/layout/password_create.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/tablet/res/layout/password_entry.xml b/pandora_agents/android/tablet/res/layout/password_entry.xml
deleted file mode 100644
index 991a5f75cd..0000000000
--- a/pandora_agents/android/tablet/res/layout/password_entry.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pandora_agents/android/tablet/res/layout/setupnosim.xml b/pandora_agents/android/tablet/res/layout/setupnosim.xml
deleted file mode 100644
index 2e5236ee2c..0000000000
--- a/pandora_agents/android/tablet/res/layout/setupnosim.xml
+++ /dev/null
@@ -1,251 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/simple_spinner_item.xml b/pandora_agents/android/tablet/res/layout/simple_spinner_item.xml
deleted file mode 100644
index b12067c7c8..0000000000
--- a/pandora_agents/android/tablet/res/layout/simple_spinner_item.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/spinner.xml b/pandora_agents/android/tablet/res/layout/spinner.xml
deleted file mode 100644
index d0649eb378..0000000000
--- a/pandora_agents/android/tablet/res/layout/spinner.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/statusnosim.xml b/pandora_agents/android/tablet/res/layout/statusnosim.xml
deleted file mode 100644
index d3b7da27a5..0000000000
--- a/pandora_agents/android/tablet/res/layout/statusnosim.xml
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/layout/welcome.xml b/pandora_agents/android/tablet/res/layout/welcome.xml
deleted file mode 100644
index e388a48669..0000000000
--- a/pandora_agents/android/tablet/res/layout/welcome.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/menu/options_menu.xml b/pandora_agents/android/tablet/res/menu/options_menu.xml
deleted file mode 100644
index 1662c1c487..0000000000
--- a/pandora_agents/android/tablet/res/menu/options_menu.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-de/strings.xml b/pandora_agents/android/tablet/res/values-de/strings.xml
deleted file mode 100644
index 0c39027772..0000000000
--- a/pandora_agents/android/tablet/res/values-de/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Status"
- "Einrichten"
- "Pandroid Agenten"
- "Intervall"
- "Update-Konfiguration."
- "Standardwert übernehmen"
- "Server-Adresse:"
- "Serverport"
- "Pandroid Agent Configuration"
- "Verkäufer:"
- "GPS-Modus"
- "Aktuelle Position (hohe Akku Kosten)"
- "Aktuelle Konfiguration:"
- "Neu starten"
- "Letzte bekannte Position"
- "Ladevorgang läuft..."
- "Letzten Werte"
- "Breitengrad"
- "Längengrad"
- "Akkustand"
- "Ausrichtung"
- "Nähe"
- "Konnte nicht aktualisiert werden Optionen."
- "Aufgaben"
- "Speicher"
- "hilfe"
- "Über"
- "Lizenziert unter GPL v2"
- "Entwickler: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid Agenten"
- "Copyright © 2011 Artica"
- "Pandroid Agenten logo"
- "hilfe"
- "Avaliable:%iKb Total: %iKb"
- "Nie."
- "Jetzt."
- "Vor Sekunden"
- "Kontakt Fehler"
- "Letzter Kontakt:\n"
- "
- Pandroid Agent ist ein Android Pandora FMS Agent für Pandora FMS. <p> Pandora FMS ist ein Allzweck-Monitoring-System. Mit dem android Agent können Sie alle Arten von Informationen von Ihrem Gerät die GPS-Position, wie viel Akku gelassen wird, verfügbaren Speicher auf dem Gerät, die Überwachung zu erhalten, wenn ein Prozess aktiv ist, die Zeit, da das Gerät eingeschaltet wurde, ein HALLO-Signal die Überwachung von Anlagen der App, eine Bestandsaufnahme mit allen installierten Anwendungen aswell als Information für Android-Handys mit einer SIM-Karte, die SIM-Karte ID, die Anzahl der SMS / empfangen worden, ruft die Anzahl der eingehenden / entgangenen / outgoing, das Netzwerk Betreiber und Typ, die Klinke, die mobile Signalstärke, die Anzahl von Bytes / über das Mobilfunknetz gesendet wird. Der komplette Quellcode bereitgestellt. <p> Sehen Sie mehr über Pandora FMS unter <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "anfang"
- "Verbindung erfolgreich"
- "Konfiguration erfolgreich gespeichert"
- "Agent angehalten"
- "Sekunden"
- "Laufen"
- "Gestoppt"
-
-
-
- "Sim ID:"
- ""
- "Gerät bis Zeit:"
- ""
- "Empfangene SMS: "
- ""
- "Gesendete SMS: "
- ""
- "Netzbetreiber:"
- ""
- "Netzwerktyp:"
- ""
- "Handytyp:"
- ""
- "Signalstärke:"
- ""
- "Eingehende Anrufe:"
- ""
- "Entgangene Anrufe"
- ""
- "Abgehende Anrufe:"
- ""
- "Empfangene Bytes:"
- ""
- "Bytes übertragen:"
- ""
- "Roaming:"
- ""
-
-
- "Passwort eingeben"
- "Die Passwörter stimmen nicht überein."
- "Fehler"
- "passwort"
- "Kennwort muss länger als 6 Zeichen lang sein!"
- "Falsches Passwort"
- "Set Password (leer lassen für keine)"
- "Passwort eingeben:"
- "Kennwort bestätigen:"
- "Wollen Sie ein Passwort einrichten?"
- "Dont wieder fragen"
- "Kennwort erfolgreich erstellt"
- "Kein Passwort gesetzt"
- "Erstellen/Passwort ändern"
-
- "Mobile-Server URL:"
- "Zur mobilen Website"
-
- XML Puffergröße(KB)
-
- "Eingangsbereich"
- "zurück"
- "ja"
- "nein"
-
- "Bericht Sim ID"
- "Bericht GPS-Daten"
- "Bericht verfügbaren Speicher"
- Wählen Aufgabe zu berichten:
- "Bericht Aufgabe"
- "Bericht Gerät up-Zeit"
- "Bericht Netzbetreiber"
- "Bericht Netztyp"
- "Bericht Telefontyp"
- "Bericht Signalstärke"
- "Bericht Anzahl der empfangenen SMS"
- "Bericht Anzahl der gesendeten SMS"
- "Bericht Anzahl der eingehenden Anrufe"
- "Bericht Anzahl der entgangenen Anrufe"
- "Bericht Anzahl der ausgehenden Anrufe"
- "Bericht Menge der empfangenen mobilen Daten"
- "Bericht Menge der gesendeten mobile Daten"
- "Bericht hallo Signal"
- "Bericht Akkustand"
- "Melden, wenn Roaming"
- Bericht Bestandsaufnahme der installierten Apps
-
- Pandroid
- Agent ausgeführt wird
- Verbindend…
- Stopp Agent
- Starten Agent
- anzeigen Benachrichtigung, wenn läuft?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-en/strings.xml b/pandora_agents/android/tablet/res/values-en/strings.xml
deleted file mode 100755
index 92837ff2a9..0000000000
--- a/pandora_agents/android/tablet/res/values-en/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Status
- Setup
- Pandroid Agent
- Interval:
- Update configuration.
- Set default
- Server Address:
- Server Port:
- Pandroid Agent Configuration
- Agent name:
- GPS Mode
- Current position (high battery cost)
- Current configuration:
- Restart
- Last known position
- Loading…
- Last values
- Latitude
- Longitude
- Battery Level
- Orientation
- Proximity
- Could not update options.
- Task
- Memory
- Help
- About
- Licensed under GPL v2
- Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Pandroid Agent
- Copyright © 2011 Artica
- Pandroid Agent logo
- Help
- Available: %iKb Total: %iKb
- Never.
- Now.
- seconds ago.
- Contact error
- Last Contact:\n
-
- Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. <p>
- Pandora FMS is a general purpose monitoring system. With the android agent you can get all sorts of information from your device,
- the gps location, how much battery is left, available memory on the device, monitoring if a process is active, the time since the device was turned on, a HELLO signal for monitoring installations of the app,
- an inventory with all the installed apps as well as information for android phones with a sim card; the sim card ID, the number of SMS sent/received, the number of calls
- incoming/missed/outgoing, the network operator and type, the phone type, the mobile signal strength, the number of bytes sent/received
- over the mobile network. Complete source code is provided.<p>See more about Pandora FMS at <a href="http://pandorafms.com">http://pandoraFMS.com</a></p>
-
- Start
- Connection successful
- Configuration saved successfully
- Agent Stopped
- Seconds
- Running
- Stopped
-
-
- Sim ID:
-
- Device up time:
-
- Received SMS:
-
- Sent SMS:
-
- Network operator:
-
- Network type:
-
- Phone type:
-
- Signal strength:
-
- Incoming calls:
-
- Missed calls:
-
- outgoing calls:
-
- Bytes received:
-
- Bytes transmitted:
-
- Roaming:
-
-
-
- Enter password
- Passwords do not match!
- error
- password
- password must be longer than 6 characters!
- Wrong password!
- Set Password(leave blank for none)
- Enter Password
- Repeat Password
- Do you want to set a password?
- Don\'t ask again
- Password successfully created
- No password set
- Create/Change password
-
-
- Mobile server URL:
- View Mobile site
-
- XML Buffer Size (KB) (Enterprise Only)
-
- enter
- back
- yes
- no
-
- Report Sim ID
- Report GPS data
- Report available memory
- Choose task to report:
- Report task
- Report device up time
- Report network operator
- Report network type
- Report phone type
- Report signal strength
- Report number of received SMS
- Report number of sent SMS
- Report number of incoming calls
- Report number of missed calls
- Report number of outgoing calls
- Report amount of received mobile data
- Report amount of sent mobile data
- Report Hello Signal
- Report battery level
- Report if roaming
- Report inventory of installed apps
-
-
- Pandroid
- Agent is running
- Connecting…
- Stop Agent
- Restart Agent
- Show notification when running?
-
-
diff --git a/pandora_agents/android/tablet/res/values-es/strings.xml b/pandora_agents/android/tablet/res/values-es/strings.xml
deleted file mode 100755
index d91b7e09cc..0000000000
--- a/pandora_agents/android/tablet/res/values-es/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Estado
- Configuración
- Agente Pandroid
- Intervalo:
- Actualiza conf.
- Por defecto
- Url del server:
- Puerto del server:
- Configuración del Agente Pandroid
- Nombre Agente:
- Modo GPS
- Actual posición (alto consumo de batería)
- Configuración actual:
- Reiniciar
- Última posición conocida
- Cargando…
- Últimos valores
- Latitud
- Longitud
- Nivel de batería
- Orientación
- Proximidad
- Incorrecta actulización configuración.
- Tarea
- Memoria
- Ayuda
- Sobre
- Licenciado bajo GPL v2
- Desarrolladores: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Agente Pandroid
- Copyright © 2011 Artica
- Pandroid Agent logotipo
- Ayuda
- Disponible: %iKb Total: %iKb
- Nunca.
- Ahora.
- segundos
- Error contacto
- Último contacto:\n
-
- Pandroid Agent es un agente en Android para Pandora FMS. <p>
- Pandora FMS es un sistema de monitorización de propósito general. Con el agente en Android puedes monitorizar todo tipo de cosas,
- GPS, cuanta batería le queda al dispositivo, memoria disponible, si un proceso está activo, El tiempoe que lleva encendido el dispositivo,
- un señal de saludo para monotrorizar instalaciones de pandroid, un inventario con información de todos los apps instalados. También
- datos de moviles, la ID del sim, número de SMS enviados/recibidos, número de llamadas entrantes/perdidas/recibidas, el nombre del operador
- y el tipo, el tipo de móvil, la potencia de señal, el número de bytes enviados/recibidos por la red móvil.
- El código fuente esta disponible.<p>Puedes informarte de esto y mas en Pandora FMS en <a href="http://pandorafms.com">http://pandorafms.com</a></p>
-
- Iniciar
- Conexion con éxito
- Configuración guardado con éxito
- Agente parado
- Segundos
- En marcha
- Parado
-
-
- Sim ID:
-
- Tiempo encendido:
-
- SMS recibido:
-
- SMS enviado:
-
- Operador:
-
- Tipo red:
-
- Tipo móvil:
-
- Potencia señal:
-
- Llamadas recibidas:
-
- Llamadas perdidas:
-
- Llamadas enviadas:
-
- Bytes recibidos:
-
- Bytes transmitidos:
-
- Roaming:
-
-
-
- Introducir contraseña
- Las contraseñas son diferentes!
- error
- contraseña
- La contraseña debe contener mas de 6 carácteres!
- Contraseña incorrecta
- Crear contraseña
- Introducir contraseña
- Repetir contraseña
- Quieres poner una contraseña?
- No vuelves a preguntar
- Contraseña creada
- Sin contraseña
- Crear/Cambiar contraseña
-
- URL de servidor móvil:
- Ver sitio móvil
-
- Tamaño de búfer XML (KB) (Enterprise solamente)
-
- Intro
- Volver
- si
- no
-
- Reporta Sim ID
- Reporta datos GPS
- Reporta estado memoria
- Elegir tarea a reportar:
- Reporta tarea
- Reporta tiempo encendido
- Reporta operador de red
- Reporta tipo de red
- Reporta tipo de móvil
- Reporta potencia de señal
- Reporta numero de SMS recibido
- Reporta numero de SMS enviado
- Reporta numero de llamadas recibidas
- Reporta numero de llamadas perdidas
- Reporta numero de llamadas salientes
- Reporta bytes recibidos
- Reporta bytes enviados
- Reporta señal de saludo
- Reporta nivel de bateria
- Reporta si Roaming
- Reporta inventario de las aplicaciones instaladas
-
- Pandroid
- Agente en ejecución
- Conectando…
- Detener Agente
- Reiniciar Agente
- Mostrar notificación mientras en ejecución?
-
-
-
diff --git a/pandora_agents/android/tablet/res/values-fr/strings.xml b/pandora_agents/android/tablet/res/values-fr/strings.xml
deleted file mode 100644
index 730f1761b3..0000000000
--- a/pandora_agents/android/tablet/res/values-fr/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "État"
- "Paramétrer"
- "Agent Pandroid"
- "Fréquence :"
- "Paramètres de mise à jour"
- "Définir par Défaut"
- "Adresse du serveur:"
- "Server Port:"
- "Configuration de l'agent Pandroid"
- "Nom de l'agent:"
- "Mode GPS"
- "Position actuelle (coût de la batterie élevée)"
- "Configuration actuelle:"
- "Redém."
- "Dernière position connue"
- "Chargement…"
- "Dernières valeurs"
- "Latitude"
- "Longitude"
- "Niveau de charge de la batterie"
- "Orientation"
- "proximité"
- "Impossible de mettre à jour les options."
- "Tâche"
- "Lecteur"
- "aide"
- "Sur"
- "Sous licence GPL v2"
- "Développeurs: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Agent Pandroid"
- "Copyright © 2011 Artica"
- "Logo Agent Pandroid"
- "aide"
- "Disponible: %iKb Total: %iKb"
- "Jamais."
- "Maintenant."
- "secondes"
- "Contactez erreur"
- "dernier Contact:\n"
- "
- Agent Pandroid est un Android Pandora FMS agent de Pandora FMS. <p> Pandora FMS est un système de surveillance à usage général. Avec l'agent android vous pouvez obtenir toutes sortes d'informations à partir de votre appareil, l'emplacement gps, combien de batterie est laissée, la mémoire disponible sur l'appareil, suivi si un processus est actif, le temps écoulé depuis l'appareil a été mis sous tension, un signal BONJOUR pour la surveillance des installations de l'application, un inventaire de toutes les applications installées aswell titre d'information pour les téléphones Android avec une carte sim, l'ID de carte SIM, le nombre de SMS envoyés / reçus, le nombre d'appels entrants / manqués / sortant, le réseau l'opérateur et le type, le type de téléphone, le niveau de signal mobile, le nombre d'octets envoyés / reçus sur le réseau mobile. Le code source complet est fourni. <p> Voir plus sur Pandora FMS à <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </ a> </ p>
- "
- "Commence"
- "Connexion réussie"
- "Configuration sauvegardée avec succès"
- "Agent arrêté"
- "Secondes"
- "En marche"
- "Arrêté"
-
-
-
- "Sim ID:"
- ""
- "Dispositif le temps de:"
- ""
- "SMS reçus: "
- ""
- "SMS envoyés: "
- ""
- "Opérateur de réseau:"
- ""
- "Type de réseau :"
- ""
- "Type de téléphone:"
- ""
- "Intensité du signal :"
- ""
- "Appels entrants:"
- ""
- "Appels manqués"
- ""
- "Appels sortants:"
- ""
- "Octets reçus :"
- ""
- "Octets transmis:"
- ""
- "Itinérance :"
- ""
-
-
- "Saisir votre mot de passe"
- "Les mots de passe diffèrent."
- "Erreur."
- "mot de passe"
- "mot de passe doit être plus long que 6 caractères!"
- "Mot de passe incorrect"
- "Définir mot de passe (laisser vide pour aucun)"
- "Saisir le mot de passe"
- "Répéter mot de passe"
- "Ne vous souhaitez définir un mot de passe?"
- "Ne pas demander à nouveau"
- "Mot de passe créé avec succès"
- "Aucun mot de passe défini"
- "Créer/Modifier le mot de passe"
-
- "URL du serveur Mobile:"
- "Voir le site mobile"
-
- taille du buffer XML(KB)
-
- "Entrer…"
- "arrière"
- "oui"
- "no"
-
- "Rapport Sim ID"
- "Rapport de données GPS"
- "Signaler mémoire disponible"
- Choisissez tâche de rendre compte:
- "Tâche de rapport"
- "Signaler appareil le temps"
- "Signaler opérateur de réseau"
- "Rapport type de réseau"
- "Rapport type de téléphone"
- "Rapport puissance du signal"
- "Rapport du nombre de SMS reçus"
- "Indiquer le nombre de SMS envoyés"
- "Rapport numéro des appels entrants"
- "Rapport numéro des appels manqués"
- "Numéro de rapport des appels sortants"
- "Rapport du montant reçu données mobiles"
- "Rapport du montant envoyé des données mobiles"
- "Rapport Signal Bonjour"
- "Signaler niveau de la batterie"
- "Signaler roaming"
- Inventaire Rapport d\'applications installées
-
-
- Pandroid
- Agent est exécuté
- Connexion en cours…
- Cesser Agent
- Redémarrez l\'Agent
- Afficher la notification lors de l\'exécution?
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-it/strings.xml b/pandora_agents/android/tablet/res/values-it/strings.xml
deleted file mode 100644
index 067b042d27..0000000000
--- a/pandora_agents/android/tablet/res/values-it/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Stato"
- "Setup"
- "Agente Pandroid"
- "Periodicità"
- "Aggiornare la configurazione."
- "Imposta predefinito"
- "Indirizzo server:"
- "Porta Server"
- "Configurazione dell'agente Pandroid"
- "Venditore:"
- "Modalità GPS"
- "Posizione attuale (costo batteria alto)"
- "La configurazione attuale:"
- "Riavviare"
- "Ultima posizione nota"
- "Caricamento…"
- "Ultimi valori"
- "Latitudine"
- "Longitudine"
- "Livello batteria:"
- "Orientamento"
- "Prossimità"
- "Impossibile aggiornare le opzioni."
- "Attività:"
- "Memoria"
- "guida"
- "Circa"
- "Distribuito sotto licenza GPL v2"
- "Sviluppatori: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Agente Pandroid"
- "Copyright © 2011 Artica"
- "Agente logo Pandroid"
- "guida"
- "Disponibile: %iKb Total: %iKb"
- "Mai"
- "Ora."
- "secondi fa"
- "Contatto errore"
- "Ultimo contatto:\n"
- "
- Agente Pandroid è un Android Pandora FMS agente di Pandora FMS. <p> Pandora FMS è un generale sistema di monitoraggio scopo. Con l'agente di Android si possibile ottenere tutti i tipi di informazioni dal dispositivo, la posizione gps, quanta batteria rimane, la memoria disponibile sul dispositivo di monitoraggio, se un processo è attivo, il tempo in quanto il dispositivo è stato acceso, un segnale CIAO per il monitoraggio installazioni di app, un inventario con l'all Applicazioni installate cosí come informazioni per i telefoni Android con una sim card, l'ID scheda SIM, il numero di SMS inviati / ricevuti, il numero di chiamate in arrivo / perse / in uscita, la rete dall'operatore e dal tipo, il tipo di telefono, la potenza del segnale cellulare, il numero di byte inviati / ricevuti tramite la rete mobile. Codice sorgente completo è fornito. <p> Vedi di più su Pandora FMS all'indirizzo <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "inizio"
- "Collegamento riuscito!"
- "Configurazione salvata con successo"
- "Agente Arrestato"
- "secondi"
- "In esecuzione"
- "Arrestato"
-
-
-
- "Sim ID:"
- ""
- "Dispositivo Tempo:"
- ""
- "SMS ricevuti: "
- ""
- "SMS Inviati: "
- ""
- "Operatore di rete:"
- ""
- "Tipo di rete:"
- ""
- "Tipo di telefono:"
- ""
- "Intensità segnale:"
- ""
- "Chiamate entranti"
- ""
- "Chiamate senza risposta"
- ""
- "Chiamate in uscita:"
- ""
- "Byte ricevuti:"
- ""
- "Byte trasmessi:"
- ""
- "Roaming in corso:"
- ""
-
-
- "Inserisci password"
- "Le password non corrispondono"
- "errore"
- "Password"
- "password deve essere più lungo di 6 caratteri!"
- "Password errata"
- "Imposta password (lasciare in bianco per nessuno)"
- "Inserire il password:"
- "Conferma password:"
- "Vuoi impostare una password?"
- "Non chiedere più"
- "Password con successo creato"
- "Nessuna password impostata"
- "Crea / Modifica password"
-
- "URL del server Mobile:"
- "Visualizza sito Mobile"
-
- Dimensione buffer XML(KB)
-
- "Invio"
- "indietro"
- "sì"
- "no"
-
- "Report Sim ID"
- "Report dati GPS"
- "Report memoria disponibile"
- Scegli compito di segnalare:
- "Relazione della task"
- "Report dispositivo Tempo"
- "Protocollo operativo di rete"
- "Tipo di rapporto di rete"
- "Report tipo di telefono"
- "Report potenza del segnale"
- "Numero del rapporto della SMS ricevuti"
- "Numero del rapporto di SMS inviati"
- "Numero del rapporto delle chiamate in arrivo"
- "Numero del rapporto di chiamate perse"
- "Numero del rapporto delle chiamate in uscita"
- "Quantità Relazione ricevuti dati mobili"
- "Quantità Relazione inviati dati mobili"
- "Report Ciao segnale"
- "Livello segnala batteria"
- "Segnalare se il roaming"
- Rapporto inventario delle applicazioni installate
-
-
- Pandroid
- Agente è in esecuzione
- Connessione in corso…
- arresto Agente
- Riavviare Agente
- Mostra notifica durante l\'esecuzione?
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-ja/strings.xml b/pandora_agents/android/tablet/res/values-ja/strings.xml
deleted file mode 100755
index ffb51cab1a..0000000000
--- a/pandora_agents/android/tablet/res/values-ja/strings.xml
+++ /dev/null
@@ -1,152 +0,0 @@
-
- "PANDROID_DATA"
-
- "状態"
- "設定"
- "Pandroid エージェント"
- "間隔"
- "設定更新"
- "デフォルトの設定"
- "サーバーアドレス:"
- "サーバーポート:"
- "Pandroid エージェントの設定"
- "エージェント名:"
- "GPSモード"
- "現在位置(高バッテリ消費)"
- "現在の設定"
- "再起動"
- "最後の既知の位置"
- "ロード中…"
- "最新の値"
- "緯度"
- "経度"
- "バッテリー残量"
- "向き"
- "近接"
- "オプションを更新できませんでした。"
- "タスク"
- "メモリー"
- "ヘルプ"
- "情報"
- "GPL v2の下でライセンス"
- "開発者:Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid エージェント"
- "著作権 © 2011 Artica"
- "Pandroid エージェントロゴ"
- "ヘルプ"
- "空き容量:%iKb 合計容量:%iKb"
- "なし"
- "今すぐ。"
- "秒前"
- "接続エラー"
- "最近の接続\n"
- "PandroidエージェントはPandora FMSのためのAndroid向けエージェントです。 <p> Pandora FMSは、統合監視システムです。Androidエージェントでは、あなたのAndroidデバイスからあらゆる情報を取得することができます。GPSの位置情報、バッテリーの残量、メモリの空き容量、プロセスが動作しているかどうか、デバイスの起動してからの経過時間、アプリの動作を確認するためのHELLOシグナル、インストールされている全てのアプリケーションのインベントリ情報を取得できます。また、Android携帯では、SIMカードのID情報、SMSの送受信数、着信/不在着信/発信数、ネットワークオペレータとタイプ、電話機タイプ、携帯電波強度、携帯送受信データバイト数を取得できます。全ソースコードは公開されています。<p>Pandora FMS に関する詳細は以下を参照してください。<a href="http://pandorafms.com">http://pandoraFMS.com</a></p>"
- "開始"
- "接続成功"
- "設定を保存しました"
- "エージェント停止"
- "秒"
- "実行中"
- "停止"
-
-
-
- "SIM ID:"
- ""
- "起動時間:"
- ""
- "受信 SMS:"
- ""
- "送信 SMS:"
- ""
- "ネットワークオペレータ:"
- ""
- "ネットワークの種類"
- ""
- "携帯電話の種類:"
- ""
- "電波強度:"
- ""
- "着信履歴"
- ""
- "不在着信:"
- ""
- "発信履歴"
- ""
- "受信バイト数:"
- ""
- "送信バイト数"
- ""
- "ローミング:"
- ""
-
-
- "パスワードを入力"
- "パスワードが一致しません"
- "エラー"
- "パスワード"
- "パスワードは6文字以上でなければなりません!"
- "パスワードが間違っています。"
- "パスワードを設定(なしの場合は空白のままにします)"
- "パスワード入力"
- "パスワード再入力"
- "パスワードを設定しますか?"
- "再確認しない"
- "パスワードが作成されました"
- "パスワードが設定されていません"
- "パスワードの作成/変更"
-
- "モバイル·サーバーのURL:"
- "携帯サイトを見る"
-
- XML バッファサイズ(KB)
-
- "入力"
- "戻る"
- "はい"
- "いいえ"
-
- "SIM番号をレポート"
- "GPSデータをレポート"
- "利用可能メモリをレポート"
- 報告するには、タスクを選択してください:
- "タスクをレポート"
- "起動時間をレポート"
- "ネットワークオペレータをレポート"
- "ネットワークタイプをレポート"
- "電話機タイプをレポート"
- "電波強度をレポート"
- "受信SMS数をレポート"
- "送信SMS数をレポート"
- "着信数をレポート"
- "不在着信をレポート"
- "発信数をレポート"
- "受信データ量をレポート"
- "送信データ量をレポート"
- "Helloシグナルをレポート"
- "バッテリー残量をレポート"
- "ローミング中かどうかをレポート"
- インストールされているアプリのレポート
-
- Pandroid
- エージェント実行中
- 接続中…
- エージェント停止
- エージェント再起動
- 実行時に警告を表示しますか?
-
-
diff --git a/pandora_agents/android/tablet/res/values-pt/strings.xml b/pandora_agents/android/tablet/res/values-pt/strings.xml
deleted file mode 100644
index 562ce74bd0..0000000000
--- a/pandora_agents/android/tablet/res/values-pt/strings.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
- "PANDROID_DATA"
-
- "Estado"
- "Configuração:"
- "Agente Pandroid"
- "Intervalo"
- "Atualizar a configuração."
- "Definir padrão"
- "Endereço do Servidor:"
- "Porta do Servidor:"
- "Configuração do agente Pandroid"
- "Nome do agente:"
- "Modo de GPS"
- "Posição atual (custo de baterias de alta)"
- "Configuração atual:"
- "Reiniciar"
- "Última posição conhecida"
- "A carregar…"
- "Os últimos valores"
- "Latitude"
- "Longitude"
- "Nível de Bateria"
- "Orientação"
- "Proximidade"
- "Não foi possível atualizar opções."
- "Funções:"
- "Memória"
- "Help (Ajuda)"
- "Acerca de"
- "Licenciado sob a GPL v2"
- "Desenvolvedores: Sergio M. Zarzuelo, Miguel de Dios, Marcos Holanda"
- "Agente Pandroid"
- "Copyright © 2011 Artica"
- "Logotipo Agente Pandroid"
- "Help (Ajuda)"
- "Avaliable: %iKb Total: %iKb"
- "Nunca."
- "Ja! "
- "segundo atrás."
- "Fale erro"
- "Último Contato:\n"
- "
- Agente Pandroid é um Android Pandora agente de Pandora. <p> Pandora FMS é um sistema de monitoramento de propósito geral. Com o agente Android você pode obter todos os tipos de informações do seu dispositivo, a localização GPS, o quanto de bateria é deixado de memória, disponível no dispositivo de monitorização, se um processo está ativo, o tempo desde que o dispositivo foi ligado, um sinal OLÁ para monitorar as instalações do app, um inventário com todos os aplicativos instalados aswell como informação para telefones Android com um cartão SIM, a identificação do cartão SIM, o número de SMS enviadas / recebidas, o número de chamadas recebidas / perdidas / saída, a rede operador e do tipo, o tipo de telefone, a intensidade do sinal celular, o número de bytes enviados / recebidos através da rede móvel. Código-fonte completo é fornecido. <p> Veja mais sobre Pandora em <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>
- "
- "Início"
- "Conexão bem-sucedida"
- "Configuração salva com sucesso"
- "Agente Parado"
- "Segundos"
- "Executar"
- "Parado"
-
-
-
- "Sim ID:"
- ""
- "Dispositivo o tempo:"
- ""
- "SMS recebidos: "
- ""
- "SMS enviado: "
- ""
- "Operador de rede:"
- ""
- "Tipo de rede:"
- ""
- "Tipo de telefone:"
- ""
- "Intensidade do sinal"
- ""
- "As chamadas recebidas:"
- ""
- "Chamadas perdidas:"
- ""
- "Chamadas de saída:"
- ""
- "Bytes recebidos:"
- ""
- "Bytes transmitidos:"
- ""
- "Roaming:"
- ""
-
-
- "Digite a passe"
- "As senhas não combinam!"
- "error"
- "Palavra-passe: "
- "senha deve ter mais de 6 caracteres!"
- "Passe errada"
- "Definir senha (deixe em branco para nenhum)"
- "Digite a passe"
- "Repita Senha"
- "Você quer definir uma senha?"
- "Não pergunte novamente"
- "Senha com sucesso criado"
- "Nenhum conjunto senha"
- "Criar / Alterar senha"
-
- "URL do servidor móvel:"
- "Veja o site móvel"
-
- Tamanho do buffer XML(KB)
-
- "Enter"
- "voltar"
- "SIM"
- "não"
-
- "Relatório Sim ID"
- "Relatório de dados GPS"
- "Relatório memória disponível"
- Escolha tarefa de relatar:
- "Tarefa de relatório"
- "Relatório dispositivo o tempo"
- "Relatório operador de rede"
- "Tipo de rede relatório"
- "Tipo de telefone relatório"
- "Relatam a intensidade do sinal"
- "Número do relatório de SMS recebidas"
- "Número do relatório de SMS enviados"
- "Número do relatório de chamadas recebidas"
- "Número do relatório de chamadas não atendidas"
- "Número do relatório de chamadas de saída"
- "Relatório do montante recebido dados móveis"
- "Relatório do montante enviado dados móveis"
- "Relatório Olá sinal"
- "Relatório de nível da bateria"
- "Relatar se de roaming"
- Relatório de inventário de aplicativos instalados
-
- Pandroid
- Agente está em execução
- Ligar…
- pare de Agente
- reinicie Agente
- Mostrar notificação quando a correr?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-v11/themes.xml b/pandora_agents/android/tablet/res/values-v11/themes.xml
deleted file mode 100644
index b63de87cc9..0000000000
--- a/pandora_agents/android/tablet/res/values-v11/themes.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values-zh/strings.xml b/pandora_agents/android/tablet/res/values-zh/strings.xml
deleted file mode 100644
index 0d400a70d9..0000000000
--- a/pandora_agents/android/tablet/res/values-zh/strings.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-
- "PANDROID_DATA"
-
- "*状态*"
- "设置"
- "Pandroid代理"
- "周期"
- "更新配置。"
- "设置默认值"
- "服务器地址:"
- "服务器端口:"
- "Pandroid代理配置"
- "机构名称:"
- "GPS模式"
- "当前位置(电池成本高)"
- "配置:"
- "重新启动(Restart)"
- "最后已知的位置"
- "载入中…"
- "最后一个值"
- "纬度"
- "经度"
- "电池电量:"
- "位置和方向"
- "n.接近,接近度"
- "无法更新选项。"
- "人物"
- "内存"
- "愿意帮助"
- "关于"
- "根据GPL v2的许可"
- "开发商:Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"
- "Pandroid代理"
- "版权所有 © 2011 Artica"
- "Pandroid代理标志"
- "愿意帮助"
- "可供选择:%iKb 总计:%iKb"
- "从来没有。"
- "现在,。"
- "秒前。"
- "联系错误"
- "最后联系方式\n"
- "Pandroid代理是一个Android潘多拉潘多拉柔性制造系统FMS代理。 <P>潘多拉FMS是一个通用的监控系统。随着Android代理,你可以得到各种信息设备,GPS定位,电池留多少,可用内存设备,监控,如果一个进程处于活动状态的时间,因为该装置被打开,一个HELLO信号监测装置的应用程序,清点所有已安装的应用程序以及Android手机的SIM卡的SIM卡ID的信息,发送/接收的短信数量,呼叫来电/未接/输出,网络运营商和类型,手机类型,在手机信号强度,通过移动网络发送/接收的字节数。提供完整的源代码。<p>查看更多关于潘多拉FMS <a href=\"http://pandorafms.com\"> http://pandoraFMS.com </a> </p>"
- "开始"
- "连接成功"
- "配置保存成功"
- "代理停止"
- "秒"
- "运行"
- "已停止"
-
-
-
- "辛ID:"
- ""
- "设备时间:"
- ""
- "收到短信:"
- ""
- "发送短信:"
- ""
- "网络运营商:"
- ""
- "网络类型:"
- ""
- "手机类型:"
- ""
- "信号强度:"
- ""
- "来电:"
- ""
- "未接来电:"
- ""
- "拨出电话:"
- ""
- "接收的字节数:"
- ""
- "传输字节数:"
- ""
- "漫游:"
- ""
-
-
- "“输入密码”;
-"
- "“密码不相符”;"
- "錯誤"
- "密码"
- "密码长度必须大于6个字符!"
- "密码错误"
- "设置密码(留空为空)"
- "输入密码"
- "密码重复"
- "你要设置的密码?"
- "不要再问"
- "成功地创建密码"
- "没有设置密码"
- "创建/更改密码"
-
- "Mobile服务器的URL:"
- "查看手机网站"
-
- XML 緩衝區大小(KB)
-
- "进入"
- "背面"
- "是"
- "没有"
-
- "报告SIM卡ID"
- "报告GPS数据"
- "报告可用内存"
- 選擇任務報告:
- "报告任务"
- "报告设备的正常运行时间"
- "报告网络运营商"
- "报告网络类型"
- "举报电话类型"
- "报告的信号强度"
- "报告数收到的短信"
- "报告编号发送短信"
- "报告的来电"
- "报告的未接来电"
- "报告编号拨出电话"
- "收到的移动台的数据的量是"
- "报告发送的移动数据量"
- "报告hello信号"
- "报告电池电量"
- "报告如果漫游"
- 报告库存安装的应用程序
-
- Pandroid
- 代理正在运行
- 连…
- 停止代理
- 重新启动代理
- 运行时显示通知?
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/res/values/strings.xml b/pandora_agents/android/tablet/res/values/strings.xml
deleted file mode 100755
index 33b8aff13b..0000000000
--- a/pandora_agents/android/tablet/res/values/strings.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- PANDROID_DATA
-
- Status
- Setup
- Pandroid Agent
- Interval:
- Update configuration.
- Set default
- Server Address:
- Server Port:
- Pandroid Agent Configuration
- Agent name:
- GPS Mode
- Current position (high battery cost)
- Current configuration:
- Restart
- Last known position
- Loading…
- Last values
- Latitude
- Longitude
- Battery Level
- Orientation
- Proximity
- Could not update options.
- Task
- Memory
- Help
- About
- Licensed under GPL v2
- Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland
- Pandroid Agent
- Copyright © 2011 Artica
- Pandroid Agent logo
- Help
- Available: %iKb Total: %iKb
- Never.
- Now.
- seconds ago.
- Contact error
- Last Contact:\n
-
- Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. <p>
- Pandora FMS is a general purpose monitoring system. With the android agent you can get all sorts of information from your device,
- the gps location, how much battery is left, available memory on the device, monitoring if a process is active, the time since the device
- was turned on, a HELLO signal for monitoring installations of the app, an inventory with all the installed apps as well as information
- for android phones with a sim card; the sim card ID, the number of SMS sent/received, the number of calls incoming/missed/outgoing,
- the network operator and type, the phone type, the mobile signal strength, the number of bytes sent/received over the mobile network.
- Complete source code is provided.<p>See more about Pandora FMS at <a href="http://pandorafms.com">http://pandoraFMS.com</a></p>
-
- Start
- Connection successful
- Configuration saved successfully
- Agent Stopped
- Seconds
- Running
- Stopped
-
-
-
- Sim ID:
-
- Device up time:
-
- Received SMS:
-
- Sent SMS:
-
- Network operator:
-
- Network type:
-
- Phone type:
-
- Signal strength:
-
- Incoming calls:
-
- Missed calls:
-
- Outgoing calls:
-
- Bytes received:
-
- Bytes transmitted:
-
- Roaming:
-
-
-
- Enter password
- Passwords do not match!
- error
- password
- password must be longer than 6 characters!
- Wrong password
- Set Password(leave blank for none)
- Enter Password
- Repeat Password
- Do you want to set a password?
- Don\'t ask again
- Password successfully created
- No password set
- Create/Change password
-
- Mobile server URL:
- View Mobile site
-
- XML Buffer Size (KB) (Enterprise Only)
-
- enter
- back
- yes
- no
-
- Report Sim ID
- Report GPS data
- Report available memory
- Choose task to report:
- Report task
- Report device up time
- Report network operator
- Report network type
- Report phone type
- Report signal strength
- Report number of received SMS
- Report number of sent SMS
- Report number of incoming calls
- Report number of missed calls
- Report number of outgoing calls
- Report amount of received mobile data
- Report amount of sent mobile data
- Report Hello Signal
- Report battery level
- Report if roaming
- Report inventory of installed apps
-
- Pandroid
- Agent is running
- Connecting…
- Stop Agent
- Restart Agent
- Show notification when running?
-
-
diff --git a/pandora_agents/android/tablet/res/values/themes.xml b/pandora_agents/android/tablet/res/values/themes.xml
deleted file mode 100644
index 4a7fe079d0..0000000000
--- a/pandora_agents/android/tablet/res/values/themes.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/About.java b/pandora_agents/android/tablet/src/pandroid/agent/About.java
deleted file mode 100644
index 507ecb605c..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/About.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.text.Html;
-import android.text.method.LinkMovementMethod;
-import android.widget.TextView;
-
-public class About extends Activity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- setContentView(R.layout.about);
-
- TextView text = (TextView) findViewById(R.id.url_pandora);
- text.setText(Html.fromHtml("PandoraFMS.com "));
- text.setMovementMethod(LinkMovementMethod.getInstance());
- }
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/Core.java b/pandora_agents/android/tablet/src/pandroid/agent/Core.java
deleted file mode 100644
index b489132161..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/Core.java
+++ /dev/null
@@ -1,387 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.app.AlarmManager;
-import android.app.PendingIntent;
-import android.content.Context;
-import android.content.Intent;
-import android.content.SharedPreferences;
-
-//import android.util.Log;
-
-public class Core {
-
- // //
- // CONSTANTS //
- // //
-
- //The 181 is the first invalid value between 180 and -180 values.
- static final float CONST_INVALID_COORDS = 181;
- static final int CONST_INVALID_BATTERY_LEVEL = -1;
- //The -361 is the first invalid value between 360 and -360 values.
- static final int CONST_INVALID_ORIENTATION = -361;
- static final float CONST_INVALID_PROXIMITY = -1;
- static final long CONST_INVALID_CONTACT = -1;
- static final int CONST_CONTACT_ERROR = 0;
-
- // //
- // DEFAULT CONFIGURATION MODULES //
- // //
-
- static volatile public String defaultServerAddr = "firefly.artica.es"; //master address
- static volatile public String defaultServerPort = "41121";
- static volatile public int defaultInterval = 300;
- static volatile public String defaultAgentName = "pandroid";
- static volatile public long defaultBufferSize = 256;
- static volatile public String defaultmobileWebURL = "firefly.artica.es/pandora_demo/mobile";
- static volatile public String defaultTaskStatus = "disabled"; // "disabled" or "enabled"
- static volatile public String defaultGpsStatus = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBatteryLevelReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultMemoryStatus = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultPasswordCheck = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultDeviceUpTimeReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultInventoryReport = "disabled"; // "disabled" or "enabled"
- static volatile public String defaultHelloSignalReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultNotificationCheck = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBytesReceivedReport = "enabled"; // "disabled" or "enabled"
- static volatile public String defaultBytesSentReport = "enabled"; // "disabled" or "enabled"
-
- // //
- // DEFAULT MODULE VALUES //
- // //
-
- static volatile public String defaultTask = "";
- static volatile public String defaultTaskHumanName = "";
- static volatile public String defaultTaskRun = "false";
- static volatile public long defaultRam = 0;
- static volatile public long defaultContact = 0;
- static volatile public int defaultContactError = 0;
- static volatile public long defaultUpTime = 0;
- static volatile public int defaultHelloSignal = 2;
-
- static volatile public long defaultReceiveBytes = 0;
- static volatile public long defaultTransmitBytes = 0;
-
-
- static volatile public String defaultPassword = "";
-
- static volatile public Context con = null;
- static volatile public AlarmManager am = null;
- static volatile public PendingIntent sender = null;
- static volatile public boolean alarmEnabled = false;
-
- // //
- // CONFIGURATION VALUES //
- // //
-
- static volatile public String serverAddr = defaultServerAddr;
- static volatile public String serverPort = defaultServerPort;
- static volatile public int interval = defaultInterval;
- static volatile public String agentName = defaultAgentName;
- static volatile public long bufferSize = defaultBufferSize;
- static volatile public String mobileWebURL = defaultmobileWebURL;
- static volatile public String taskStatus = defaultTaskStatus;
- static volatile public String task = defaultTask;
- static volatile public String taskHumanName = defaultTaskHumanName;
- static volatile public String gpsStatus = defaultGpsStatus;
- static volatile public String BatteryLevelReport = defaultHelloSignalReport;
- static volatile public String memoryStatus = defaultMemoryStatus;
- static volatile public String passwordCheck = defaultPasswordCheck;
- static volatile public String DeviceUpTimeReport = defaultDeviceUpTimeReport;
- static volatile public String InventoryReport = defaultInventoryReport;
- static volatile public String HelloSignalReport = defaultHelloSignalReport;
- static volatile public String NotificationCheck = defaultNotificationCheck;
-
- static volatile public String password = defaultPassword;
-
- // //
- // MODULES VALUES //
- // //
-
- static volatile public float latitude = CONST_INVALID_COORDS;
- static volatile public float longitude = CONST_INVALID_COORDS;
- static volatile public int batteryLevel = CONST_INVALID_BATTERY_LEVEL;
- static volatile public float orientation = CONST_INVALID_ORIENTATION;
- static volatile public float proximity = CONST_INVALID_PROXIMITY;
- static volatile public String taskRun = defaultTaskRun;
- static volatile public long availableRamKb = defaultRam;
- static volatile public long totalRamKb = defaultRam;
- static volatile public long upTime = defaultUpTime;
- static volatile public int helloSignal = defaultHelloSignal;
-
-
- static volatile public long lastContact = CONST_INVALID_CONTACT;
- static volatile public int contactError = CONST_CONTACT_ERROR;
-
- static volatile public String BytesReceivedReport = defaultBytesReceivedReport;
- static volatile public String BytesSentReport = defaultBytesSentReport;
- static volatile public long receiveBytes = defaultReceiveBytes;
- static volatile public long transmitBytes = defaultTransmitBytes;
-
- public Core() {
-
- }
-
- static synchronized public void startAgentListener(Context context) {
- if (con == null) {
- con = context;
- }
- loadConf(con);
-
- Intent intentReceiver = new Intent(con, EventReceiver.class);
-
- sender = PendingIntent.getBroadcast(con, 0, intentReceiver, 0);
-
- am = (AlarmManager)con.getSystemService(Context.ALARM_SERVICE);
-
- alarmEnabled = true;
- am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), (interval * 1000), sender);
-
- }// end startAgentListener
-
- static synchronized public void stopAgentListener() {
- if (am != null){
- am.cancel(sender);
- alarmEnabled = false;
- }
- }
-
- static synchronized public void restartAgentListener(Context context) {
- stopAgentListener();
- startAgentListener(context);
- }
-
- static synchronized public void loadLastValues(Context context) {
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- lastContact = agentPreferences.getLong("lastContact", defaultContact);
- latitude = agentPreferences.getFloat("latitude", CONST_INVALID_COORDS);
- longitude = agentPreferences.getFloat("longitude", CONST_INVALID_COORDS);
- batteryLevel = agentPreferences.getInt("batteryLevel", CONST_INVALID_BATTERY_LEVEL);
- // orientation = agentPreferences.getFloat("orientation", CONST_INVALID_ORIENTATION);
- // proximity = agentPreferences.getFloat("proximity", CONST_INVALID_PROXIMITY);
- taskStatus = agentPreferences.getString("taskStatus", defaultTaskStatus);
- task = agentPreferences.getString("task", defaultTask);
- taskHumanName = agentPreferences.getString("taskHumanName", defaultTaskHumanName);
- taskRun = agentPreferences.getString("taskRun", defaultTaskRun);
- memoryStatus = agentPreferences.getString("memoryStatus", defaultMemoryStatus);
- availableRamKb = agentPreferences.getLong("availableRamKb", defaultRam);
- totalRamKb = agentPreferences.getLong("totalRamKb", defaultRam);
- upTime = agentPreferences.getLong("upTime", Core.defaultUpTime);
- helloSignal = agentPreferences.getInt("helloSignal", defaultHelloSignal);
- contactError = agentPreferences.getInt("contactError", defaultContactError);
-
- receiveBytes = agentPreferences.getLong("receiveBytes", defaultReceiveBytes);
- transmitBytes = agentPreferences.getLong("transmitBytes", defaultTransmitBytes);
-
- }// end loadLastValues
-
- static synchronized public void loadConf(Context context) {
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- serverAddr = agentPreferences.getString("serverAddr", defaultServerAddr);
- serverPort = agentPreferences.getString("serverPort", defaultServerPort);
- interval = agentPreferences.getInt("interval", defaultInterval);
- agentName = agentPreferences.getString("agentName", defaultAgentName+"_"+Installation.id(context));
- bufferSize = agentPreferences.getLong("bufferSize", defaultBufferSize);
- mobileWebURL = agentPreferences.getString("mobileWebURL", defaultmobileWebURL);
- taskStatus = agentPreferences.getString("taskStatus", defaultTaskStatus);
- task = agentPreferences.getString("task", defaultTask);
- taskHumanName = agentPreferences.getString("taskHumanName", defaultTaskHumanName);
- taskRun = agentPreferences.getString("taskRun", defaultTaskRun);
- gpsStatus = agentPreferences.getString("gpsStatus", defaultGpsStatus);
- BatteryLevelReport = agentPreferences.getString("BatteryLevelReport", defaultBatteryLevelReport);
- memoryStatus = agentPreferences.getString("memoryStatus", defaultMemoryStatus);
- DeviceUpTimeReport = agentPreferences.getString("DeviceUpTimeReport", defaultDeviceUpTimeReport);
- InventoryReport = agentPreferences.getString("InventoryReport", defaultInventoryReport);
- HelloSignalReport = agentPreferences.getString("HelloSignalReport", defaultHelloSignalReport);
- password = agentPreferences.getString("password", defaultPassword);
- passwordCheck = agentPreferences.getString("passwordCheck", defaultPasswordCheck);
- NotificationCheck = agentPreferences.getString("NotificationCheck", defaultNotificationCheck);
-
-
-
- }// end loadConf
-
- static synchronized public boolean updateConf(Context context) {
- return updateConf(context,
- serverAddr,
- serverPort,
- interval,
- agentName,
- bufferSize,
- mobileWebURL,
- taskStatus,
- task,
- taskHumanName,
- gpsStatus,
- BatteryLevelReport,
- memoryStatus,
- upTime,
- DeviceUpTimeReport,
- InventoryReport,
- helloSignal,
- HelloSignalReport,
- password,
- passwordCheck,
- NotificationCheck,
- receiveBytes,
- BytesReceivedReport,
- transmitBytes,
- BytesSentReport
- );
-
- }// end updateConf
-
- static synchronized public boolean updateConf(Context context,
- String _serverAddr,
- String _serverPort,
- int _interval,
- String _agentName,
- long _bufferSize,
- String _mobileWebURL,
- String _taskStatus,
- String _task,
- String _taskHumanName,
- String _gpsStatus,
- String _BatteryLevelReport,
- String _memoryStatus,
- long _upTime,
- String _DeviceUpTimeReport,
- String _InventoryReport,
- int _helloSignal,
- String _HelloSignalReport,
- String _password,
- String _passwordCheck,
- String _NotificationCheck,
- long _receiveBytes,
- String _BytesReceivedReport,
- long _transmitBytes,
- String _BytesSentReport) {
-
- if (con == null) {
- con = context;
- }
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
- SharedPreferences.Editor editor = agentPreferences.edit();
-
- editor.putString("serverAddr", _serverAddr);
- editor.putString("serverPort", _serverPort);
- editor.putInt("interval", _interval);
- editor.putString("agentName", _agentName);
- editor.putLong("bufferSize", _bufferSize);
- editor.putString("mobileWebURL", _mobileWebURL);
- editor.putString("taskStatus", _taskStatus);
- editor.putString("task", _task);
- editor.putString("taskHumanName", _taskHumanName);
- editor.putString("gpsStatus", _gpsStatus);
- editor.putString("BatteryLevelReport", _BatteryLevelReport);
- editor.putString("memoryStatus", _memoryStatus);
- editor.putLong("UpTime", _upTime);
- editor.putString("DeviceUpTimeReport", _DeviceUpTimeReport);
- editor.putString("InventoryReport", _InventoryReport);
- editor.putInt("helloSignal", _helloSignal);
- editor.putString("HelloSignalReport", _HelloSignalReport);
- editor.putString("password", _password);
- editor.putString("passwordCheck", _passwordCheck);
- editor.putString("NotificationCheck", _NotificationCheck);
-
- editor.putLong("receiveBytes", _receiveBytes);
- editor.putString("BytesReceivedReport", _BytesReceivedReport);
- editor.putLong("transmitBytes", _transmitBytes);
- editor.putString("BytesSentReport", _BytesSentReport);
-
-
- if (editor.commit()) {
- return true;
- }
- return false;
- }// end updateConf
-
-
- public synchronized static void putSharedData(String preferenceName, String tokenName, String data, String type) {
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
- SharedPreferences.Editor editor = agentPreferences.edit();
-
-
- if(type == "boolean") {
- editor.putBoolean(tokenName, Boolean.parseBoolean(data));
- }
- else if(type == "float") {
- editor.putFloat(tokenName, Float.parseFloat(data));
- }
- else if(type == "integer") {
- editor.putInt(tokenName, Integer.parseInt(data));
- }
- else if(type == "long") {
- editor.putLong(tokenName, Long.parseLong(data));
- }
- else if(type == "string") {
- editor.putString(tokenName, data);
- }
-
- editor.commit();
- }
-
- public synchronized static String getSharedData(String preferenceName, String tokenName, String defaultValue, String type) {
-
- SharedPreferences agentPreferences = con.getSharedPreferences(
- con.getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- if(type == "boolean") {
- boolean a = agentPreferences.getBoolean(tokenName, Boolean.parseBoolean(defaultValue));
- return Boolean.valueOf(a).toString();
- }
- else if(type == "float") {
- float a = agentPreferences.getFloat(tokenName, Float.parseFloat(defaultValue));
- return Float.valueOf(a).toString();
- }
- else if(type == "integer") {
- int a = agentPreferences.getInt(tokenName, Integer.parseInt(defaultValue));
- return Integer.valueOf(a).toString();
- }
- else if(type == "long") {
- long a = agentPreferences.getLong(tokenName, Long.parseLong(defaultValue));
- return Long.valueOf(a).toString();
- }
- else if(type == "string") {
- return agentPreferences.getString(tokenName, defaultValue);
- }
-
- return "";
- }
-
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/EventReceiver.java b/pandora_agents/android/tablet/src/pandroid/agent/EventReceiver.java
deleted file mode 100644
index ea5b41cc7b..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/EventReceiver.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-public class EventReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- context.startService(new Intent(context, PandroidAgentListener.class));
- }
-
-}
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/Help.java b/pandora_agents/android/tablet/src/pandroid/agent/Help.java
deleted file mode 100644
index ed2e40bc47..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/Help.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.text.Html;
-import android.text.method.LinkMovementMethod;
-import android.widget.TextView;
-
-public class Help extends Activity {
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- setContentView(R.layout.help);
-
- TextView text = (TextView) findViewById(R.id.help_text);
- text.setText(Html.fromHtml(getString(R.string.help_text_str)));
- text.setMovementMethod(LinkMovementMethod.getInstance());
- }
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/Installation.java b/pandora_agents/android/tablet/src/pandroid/agent/Installation.java
deleted file mode 100644
index c55fcf1bf1..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/Installation.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-package pandroid.agent;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.RandomAccessFile;
-import java.util.UUID;
-
-import android.content.Context;
-
-/**
- * This is a class for providing unique installation identifiers for use with the pandroid agent name
- * @author mark
- *
- */
-
-public class Installation {
- private static String sID = null;
- private static final String INSTALLATION = "INSTALLATION";
-
- public synchronized static String id(Context context) {
- if (sID == null) {
- File installation = new File(context.getFilesDir(), INSTALLATION);
- try {
- if (!installation.exists())
- writeInstallationFile(installation);
- sID = readInstallationFile(installation);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- return sID;
- }
-
- private static String readInstallationFile(File installation) throws IOException {
- RandomAccessFile f = new RandomAccessFile(installation, "r");
- byte[] bytes = new byte[(int) f.length()];
- f.readFully(bytes);
- f.close();
- return new String(bytes);
- }
-
- private static void writeInstallationFile(File installation) throws IOException {
- FileOutputStream out = new FileOutputStream(installation);
- String id = UUID.randomUUID().toString();
- out.write(id.getBytes());
- out.close();
- }
-}
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgent.java b/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgent.java
deleted file mode 100755
index 3904a26ddd..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgent.java
+++ /dev/null
@@ -1,116 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.io.File;
-
-import android.app.TabActivity;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Bundle;
-import android.os.Handler;
-import android.widget.TabHost;
-
-
-public class PandroidAgent extends TabActivity {
-
- Handler h = new Handler();
- int defaultInterval = 300;
- TabHost tabHost;
-
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
-
- /*
- final Dialog dialog = new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
- dialog.setContentView(R.layout.welcome);
- dialog.setCancelable(false);
- dialog.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
-
-
- dialog.show();
-
- final Handler handler = new Handler();
- handler.postDelayed(new Runnable() {
- @Override
- public void run() {
- dialog.dismiss();
- }
- }, 3000);
-
- */
-
- //Requires The agent name to use installation id
- File installation = new File(getApplicationContext().getFilesDir(), "INSTALLATION");
- if(!installation.exists()){
- Core.restartAgentListener(getApplicationContext());
- }
- else{
- //Core.stopAgentListener();
- Core.loadConf(this);
- Core.alarmEnabled = true;
- //new Intent(this, EventReceiver.class);
- }
-
-
- //Create layout with 2 tabs
- tabHost = getTabHost();
-
- tabHost.addTab
- (
- tabHost.newTabSpec("Status")
- .setIndicator(getString(R.string.status_str))
- .setContent(new Intent(this, Status.class))
- );
-
- tabHost.addTab
- (
- tabHost.newTabSpec("Setup")
- .setIndicator(getString(R.string.setup_str))
- .setContent(new Intent(this, Setup.class))
- );
- }
-
- public void onPause(){
- super.onPause();
- Core.updateConf(getApplicationContext());
- //Core.updateDatabase(this);
- }
-
- public void onDestroy(){
- super.onDestroy();
- Core.updateConf(getApplicationContext());
- //Core.updateDatabase(this);
-
- }
-
- //Sets hello signal to 1(first connect since pandroid was closed)
- public void onResume(){
- super.onResume();
-
- if(Core.helloSignal == 0)
- Core.helloSignal = 1;
- Core.updateConf(getApplicationContext());
- }
-
- // Called from activity to allow tab switching
- public void switchTab(int tab){
- tabHost.setCurrentTab(tab);
- }
-
-}
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentListener.java b/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentListener.java
deleted file mode 100644
index 0ec6e77d67..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentListener.java
+++ /dev/null
@@ -1,933 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-package pandroid.agent;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStreamWriter;
-import java.io.RandomAccessFile;
-import java.text.DecimalFormat;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-
-import org.apache.commons.lang3.StringEscapeUtils;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.app.ActivityManager.MemoryInfo;
-import android.app.ActivityManager.RunningAppProcessInfo;
-import android.app.Notification;
-import android.app.NotificationManager;
-import android.app.PendingIntent;
-import android.app.Service;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.SharedPreferences;
-import android.content.SharedPreferences.Editor;
-import android.content.pm.PackageInfo;
-import android.location.Criteria;
-import android.location.Location;
-import android.location.LocationListener;
-import android.location.LocationManager;
-import android.net.TrafficStats;
-import android.os.AsyncTask;
-import android.os.Build;
-import android.os.Bundle;
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.PowerManager;
-import android.os.PowerManager.WakeLock;
-import android.os.SystemClock;
-import android.util.Log;
-import android.view.Gravity;
-import android.widget.Toast;
-
-public class PandroidAgentListener extends Service {
-
-
- Handler h = new Handler();
- String lastGpsContactDateTime = "";
- double latitude;
- double longitude;
- //boolean showLastXML = true;
-
-
- //private LocationManager locmgr = null;
-
-
- @Override
- public void onCreate() {
-
- // try {
- // notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- // } catch (Exception e) {
- // Log.e("notification", e.toString());
- // }
- //
- // if(Core.NotificationCheck == "enabled"){
- //
- // Notification notification = new Notification(R.drawable.icon, getText(R.string.ticker_text),
- // System.currentTimeMillis());
- // Intent notificationIntent = new Intent(this,PandroidAgent.class);
- // notificationIntent.setAction("android.intent.action.MAIN");
- // notificationIntent.addCategory("android.intent.category.LAUNCHER");
- // PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, Notification.FLAG_NO_CLEAR);
- // notification.setLatestEventInfo(this, getText(R.string.notification_title), getText(R.string.notification_message), pendingIntent);
- // notification.flags |= Notification.FLAG_ONGOING_EVENT;
- // notificationManager.notify(1, notification);
- // }
- // else{
- // CancelNotification(getApplicationContext(),42);
- // }
- }
-
-
-
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
- PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
- WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
- wakeLock.acquire();
- new loadConfThenContinueAsyncTask().execute();
-
-
- wakeLock.release();
-
-
- return START_NOT_STICKY;
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- return null;
- }
-
-
-
- // private void contact(){
- // Date date = new Date();
- //
- // putSharedData("PANDROID_DATA", "contactError", "0", "integer");
- // putSharedData("PANDROID_DATA", "lastContact", Long.toString(date.getTime() / 1000), "long");
- //
- // // Keep lastXML sended if is not empty (empty means error sending it)
- // String lastXML = buildXML();
- //
- //
- // String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
- //
- // String destFileName = agentName + "." + System.currentTimeMillis() + ".data";
- //
- // writeFile(destFileName, lastXML);
- //
- // String[] tentacleData = {
- // "-a",
- // getSharedData("PANDROID_DATA", "serverAddr", "", "string"),
- // "-p",
- // Core.defaultServerPort,
- // "-v",
- // "/data/data/pandroid.agent/files/" + destFileName
- // };
- //
- // int tentacleRet = new tentacle_client().send(tentacleData);
- //
- // // Deleting the file after send it
- // File file = new File("/data/data/pandroid.agent/files/" + destFileName);
- // file.delete();
- //
- // if(tentacleRet == 0) {
- // putSharedData("PANDROID_DATA", "lastXML", lastXML, "string");
- // if (Core.helloSignal >= 1)
- // Core.helloSignal = 0;
- // Core.updateConf(getApplicationContext());
- // }
- // else {
- // putSharedData("PANDROID_DATA", "contactError", "1", "integer");
- // }
- //
- // updateValues();
- // }
-
- /**
- * To ensure that the Core values are loaded before continuing
- * @author markholland
- *
- */
- public class loadConfThenContinueAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- Core.loadConf(getApplicationContext());
- Core.loadLastValues(getApplicationContext());
- return null;
- }
-
- @Override
- protected void onPostExecute(Void unused) {
-
-// SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
-// getApplicationContext().getString(R.string.const_string_preferences),
-// Activity.MODE_PRIVATE);
-//
-// String NotificationCheck = agentPreferences.getString("NotificationCheck", "enabled");
-
-
- updateValues();
- contact();
-
- try {
- NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- Notification notification = new Notification(R.drawable.icon, getText(R.string.ticker_text),
- System.currentTimeMillis());
- Intent notificationIntent = new Intent(getApplicationContext(),PandroidAgent.class);
- notificationIntent.setAction("android.intent.action.MAIN");
- notificationIntent.addCategory("android.intent.category.LAUNCHER");
- PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent, Notification.FLAG_NO_CLEAR);
- notification.setLatestEventInfo(getApplicationContext(), getText(R.string.notification_title), getText(R.string.notification_message), pendingIntent);
- notification.flags |= Notification.FLAG_ONGOING_EVENT;
-
-
- if (Core.NotificationCheck.equals("enabled")) {
- CancelNotification(getApplicationContext(),42);
- notificationManager.notify(42, notification);
- }
- else {
- CancelNotification(getApplicationContext(),42);
- }
-
-
- }
- catch (Exception e) {
- Log.e("notification", e.toString());
- }
-
- }
- }// end onPostExecute
-
-
- private void contact() {
-
-
- Toast toast = Toast.makeText(getApplicationContext(),
-
- getString(R.string.loading),
- Toast.LENGTH_SHORT);
- toast.setGravity(Gravity.BOTTOM,0,0);
- toast.show();
-
-
-
- Date date = new Date();
-
- putSharedData("PANDROID_DATA", "lastContact", Long.toString(date.getTime() / 1000), "long");
- Boolean xmlBuilt = true;
- String xml = "";
-
- try {
- xml = new buildXMLTask().execute().get();
- }
- catch (InterruptedException e) {
- // TODO Auto-generated catch block
- xmlBuilt = false;
- }
- catch (ExecutionException e) {
- // TODO Auto-generated catch block
- xmlBuilt = false;
- }
-
- if (xmlBuilt) {
- //TODO
- }
- else {
- //TODO
- }
-
- new contactTask().execute(xml);
- //TODO ensure not a problem
- //updateValues();
-
- }//end contact
-
-
- private class contactTask extends AsyncTask {
- String destFileName = "";
-
- @Override
- protected void onPreExecute() {
-
- }
-
- @Override
- protected Integer doInBackground(String... lastXML) {
-
-
- String[] buffer = getApplicationContext().fileList();
- Integer tentacleRet = null;
-
-
- boolean contact = true;
- int i = 1;
- while (getApplicationContext().fileList().length > 1 && contact) {
-
- destFileName = buffer[i];
-
- String[] tentacleData = {
- "-a",
- getSharedData("PANDROID_DATA", "serverAddr", "", "string"),
- "-p",
- Core.defaultServerPort,
- "-v",
- "/data/data/pandroid.agent/files/" + destFileName
- };
-
-
- tentacleRet = new tentacle_client().send(tentacleData);
-
- if (tentacleRet == 0) {
- putSharedData("PANDROID_DATA", "contactError", "0", "integer");
- // Deleting the file after send it
- // move to only delete if sent successfully
- File file = new File("/data/data/pandroid.agent/files/" + destFileName);
- file.delete();
- if (Core.helloSignal >= 1)
- Core.helloSignal = 0;
- Core.updateConf(getApplicationContext());
-
- }
- if (tentacleRet == -1) {
- //file not deleted
- putSharedData("PANDROID_DATA", "contactError", "1", "integer");
- contact = false;
- }
- i++;
-
- }
-
- return tentacleRet;
-
- }//end doInBackground
-
-
- }
-
- private class buildXMLTask extends AsyncTask{
-
- @Override
- protected String doInBackground(Void... v) {
-
- String lastXML = buildXML();
-
- String destFileName = "";
- String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
- destFileName = agentName + "." + System.currentTimeMillis() + ".data";
-
-
- long bufferSize = 0;
- String[] buffer = getApplicationContext().fileList();
-
- for (int i = 1; i\n";
-
- String latitude = getSharedData("PANDROID_DATA", "latitude", "181", "float");
- String longitude = getSharedData("PANDROID_DATA", "longitude", "181", "float");
-
- if (!latitude.equals("181.0") && !longitude.equals("181.0")) {
- gpsData = " latitude='" + latitude + "' longitude='" + longitude + "'";
- }
-
- String interval = getSharedData("PANDROID_DATA", "interval", Integer.toString(Core.defaultInterval), "integer");
- String agentName = getSharedData("PANDROID_DATA", "agentName", Core.defaultAgentName, "string");
-
-
- buffer += "\n";
-
- // //
- // MODULES //
- // //
-
- // String orientation = getSharedData("PANDROID_DATA", "orientation", "361", "float");
- // String proximity = getSharedData("PANDROID_DATA", "proximity", "-1.0", "float");
- String batteryLevel = getSharedData("PANDROID_DATA", "batteryLevel", "-1", "integer");
- String taskStatus = getSharedData("PANDROID_DATA", "taskStatus", "disabled", "string");
- String taskRun = getSharedData("PANDROID_DATA", "taskRun", "false", "string");
- String taskHumanName = getSharedData("PANDROID_DATA", "taskHumanName", "", "string");
- taskHumanName = StringEscapeUtils.escapeHtml4(taskHumanName);
- String task = getSharedData("PANDROID_DATA", "task", "", "string");
- String memoryStatus = getSharedData("PANDROID_DATA", "memoryStatus", Core.defaultMemoryStatus, "string");
- String availableRamKb = getSharedData("PANDROID_DATA", "availableRamKb", "0" , "long");
- String totalRamKb = getSharedData("PANDROID_DATA", "totalRamKb", "0", "long");
- String upTime = getSharedData("PANDROID_DATA", "upTime", ""+Core.defaultUpTime, "long");
- String helloSignal = getSharedData("PANDROID_DATA", "helloSignal", ""+Core.defaultHelloSignal, "integer");
-
-
- String receiveBytes = getSharedData("PANDROID_DATA", "receiveBytes", ""+Core.defaultReceiveBytes, "long");
- String transmitBytes = getSharedData("PANDROID_DATA", "transmitBytes", ""+Core.defaultTransmitBytes, "long");
-
- String DeviceUpTimeReport = getSharedData("PANDROID_DATA", "DeviceUpTimeReport", Core.defaultDeviceUpTimeReport, "string");
- String HelloSignalReport = getSharedData("PANDROID_DATA", "HelloSignalReport", Core.defaultHelloSignalReport, "string");
- String BatteryLevelReport = getSharedData("PANDROID_DATA", "BatteryLevelReport", Core.defaultBatteryLevelReport, "string");
- String InventoryReport = getSharedData("PANDROID_DATA", "InventoryReport", Core.defaultInventoryReport, "string");
-
- String BytesReceivedReport = getSharedData("PANDROID_DATA", "BytesReceivedReport", Core.defaultBytesReceivedReport, "string");
- String BytesSentReport = getSharedData("PANDROID_DATA", "BytesSentReport", Core.defaultBytesSentReport, "string");
-
- if (InventoryReport.equals("enabled"))
- {
- buffer += buildInventoryXML();
- }
-
- if (BatteryLevelReport.equals("enabled"))
- buffer += buildmoduleXML("battery_level", "The current Battery level", "generic_data", batteryLevel);
-
- // if(!orientation.equals("361.0")) {
- // buffer += buildmoduleXML("orientation", "The actually device orientation (in degrees)", "generic_data", orientation);
- // }
- //
- // if(!proximity.equals("-1.0")) {
- // buffer += buildmoduleXML("proximity", "The actually device proximity detector (0/1)", "generic_data", proximity);
- // }
-
- if (taskStatus.equals("enabled")) {
- buffer += buildmoduleXML("taskHumanName", "The task's human name.", "async_string", taskHumanName);
- buffer += buildmoduleXML("task", "The task's package name.", "async_string", task);
- if (taskRun.equals("true")) {
- buffer += buildmoduleXML("taskRun", "The task is running.", "async_proc", "1");
- }
- else {
- buffer += buildmoduleXML("taskRun", "The task is running.", "async_proc", "0");
- }
- }
-
- if (memoryStatus.equals("enabled")) {
-
- Float freeMemory = new Float((Float.valueOf(availableRamKb) / Float.valueOf(totalRamKb)) * 100.0);
-
- DecimalFormat formatPercent = new DecimalFormat("#.##");
- buffer += buildmoduleXML("freeRamMemory", "The percentage of available ram.", "generic_data",
- formatPercent.format(freeMemory.doubleValue()));
- }
- //buffer += buildmoduleXML("last_gps_contact", "Datetime of the last geo-location contact", "generic_data", lastGpsContactDateTime);
- if (DeviceUpTimeReport.equals("enabled"))
- buffer += buildmoduleXML("upTime","Total device uptime in seconds.", "generic_data", upTime);
-
- if (HelloSignalReport.equals("enabled"))
- buffer += buildmoduleXML("helloSignal","Hello Signal", "generic_data", helloSignal);
-
-
- if (BytesReceivedReport.equals("enabled"))
- buffer += buildmoduleXML("receiveBytes","Bytes received", "generic_data", receiveBytes);
- if (BytesSentReport.equals("enabled"))
- buffer += buildmoduleXML("transmitBytes","Bytes transmitted", "generic_data", transmitBytes);
-
-
- buffer += " ";
-
- return buffer;
-
- }// end buildXML
-
- private void writeFile(String fileName, String textToWrite) {
- try { // catches IOException below
- /*
- String UTF8 = "utf8";
- int BUFFER_SIZE = 8192;
-
- FileOutputStream fOut = openFileOutput(fileName, MODE_WORLD_READABLE);
- OutputStreamWriter osw = new OutputStreamWriter(fOut, UTF8);
-
- BufferedWriter bw = new BufferedWriter(osw,BUFFER_SIZE);
-
- // Write the string to the file
- bw.write(textToWrite);
- //ensure that everything is really written out and close
- bw.flush();
- bw.close();
- */
- FileOutputStream fOut = openFileOutput(fileName, MODE_WORLD_READABLE);
- OutputStreamWriter osw = new OutputStreamWriter(fOut);
-
- // Write the string to the file
- osw.write(textToWrite);
- /* ensure that everything is really written out and close */
- osw.flush();
- osw.close();
- }
- catch (IOException e) {
-
- }
-
- }
-
- private String buildmoduleXML(String name, String description, String type, String data){
- String buffer = "";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
- buffer += " \n";
-
- return buffer;
- }
-
-
-
- private String buildInventoryXML(){
-
- String module_xml = "";
-
- module_xml += "\t\n";
- module_xml += "\t\t\n\t\t\t \n";
- module_xml += "\t\t\t\n";
-
- List packs = getPackageManager().getInstalledPackages(0);
- for(int i=0;i\n";
- }
-
- /* Close the data list and module_inventory */
- module_xml += "\t\t\t \n\t\t \n";
- /* Close inventory */
- module_xml += "\t \n";
- //Log.d(LOG_TAG,module_xml);
-
- return module_xml;
- }
-
-
-
-
- private void gpsLocation() {
- // Starts with GPS, if no GPS then gets network location
- //
- LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
- List providers = lm.getProviders(true);
- Log.d("PANDROID providers count", "" + providers.size());
-
- /* Loop over the array backwards, and if you get an accurate location, then break out the loop*/
- Location loc = null;
-
- for (int i=providers.size()-1; i>=0; i--) {
- Log.d("PANDROID providers", providers.get(i));
- loc = lm.getLastKnownLocation(providers.get(i));
- if (loc != null) break;
- }
-
- if (loc != null) {
- Log.d("PANDROID", "loc != null");
- //if(latitude != loc.getLatitude() || longitude != loc.getLongitude()) {
- lastGpsContactDateTime = getHumanDateTime(-1);
- //`}
- Log.d("LATITUDE",Double.valueOf(loc.getLatitude()).toString());
- Log.d("LONGITUDE",Double.valueOf(loc.getLongitude()).toString());
- putSharedData("PANDROID_DATA", "latitude", Double.valueOf(loc.getLatitude()).toString(), "float");
- putSharedData("PANDROID_DATA", "longitude", Double.valueOf(loc.getLongitude()).toString(), "float");
- }
- Criteria criteria = new Criteria();
- criteria.setAccuracy(Criteria.ACCURACY_COARSE);
- criteria.setPowerRequirement(Criteria.POWER_LOW);
- criteria.setAltitudeRequired(false);
- criteria.setBearingRequired(false);
- criteria.setCostAllowed(true);
- String bestProvider = lm.getBestProvider(criteria, true);
-
- // If not provider found, abort GPS retrieving
- if (bestProvider == null) {
- Log.e("LOCATION", "No location provider found!");
- return;
- }
-
- lm.requestLocationUpdates(bestProvider, Core.interval, 15,
- new LocationListener() {
- public void onLocationChanged(Location location) {
- Log.d("Best latitude", Double.valueOf(location.getLatitude()).toString());
- putSharedData("PANDROID_DATA", "latitude",
- Double.valueOf(location.getLatitude()).toString(), "float");
- Log.d("Best longitude", Double.valueOf(location.getLongitude()).toString());
- putSharedData("PANDROID_DATA", "longitude",
- Double.valueOf(location.getLongitude()).toString(), "float");
- }
- public void onStatusChanged(String s, int i, Bundle bundle) {
-
- }
- public void onProviderEnabled(String s) {
- // try switching to a different provider
- }
- public void onProviderDisabled(String s) {
- putSharedData("PANDROID_DATA", "enabled_location_provider",
- "disabled", "string");
- }
- });
- //}
-
- }
-
- private void batteryLevel() {
-
- Intent batteryIntent = getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
- int rawlevel = batteryIntent.getIntExtra("level", -1);
- int scale = batteryIntent.getIntExtra("scale", -1);
- //double level = -1;
- if (rawlevel >= 0 && scale > 0) {
- putSharedData("PANDROID_DATA", "batteryLevel", Integer.valueOf((rawlevel * 100) / scale).toString(), "integer");
- }
- }
-
- /*private void sensors() {
- // Sensor listeners
-
- SensorEventListener orientationLevelReceiver = new SensorEventListener() {
- public void onSensorChanged(SensorEvent sensorEvent) {
- putSharedData("PANDROID_DATA", "orientation", Float.toString(sensorEvent.values[0]), "float");
- }
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- }
- };
-
- SensorEventListener proximityLevelReceiver = new SensorEventListener() {
- public void onSensorChanged(SensorEvent sensorEvent) {
- putSharedData("PANDROID_DATA", "proximity", Float.toString(sensorEvent.values[0]), "float");
- }
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- }
- };
-
- // Sensor management
-
- SensorManager sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
-
- sensorManager =
- (SensorManager)getSystemService( SENSOR_SERVICE );
- List sensors = sensorManager.getSensorList( Sensor.TYPE_ALL );
- Sensor proxSensor = null;
- Sensor orientSensor = null;
-
- for( int i = 0 ; i < sensors.size() ; ++i ) {
- switch(sensors.get( i ).getType()) {
- case Sensor.TYPE_ORIENTATION:
- orientSensor = sensors.get( i );
- break;
- case Sensor.TYPE_PROXIMITY:
- proxSensor = sensors.get( i );
- break;
- }
- }
-
- if( orientSensor != null ) {
- sensorManager.registerListener(
- orientationLevelReceiver,
- orientSensor,
- (20));
- //SensorManager.SENSOR_DELAY_UI );
- }
-
- if( proxSensor != null ) {
- sensorManager.registerListener(
- proximityLevelReceiver,
- proxSensor,
- //(defaultInterval * 1000000));
- (20));
- //SensorManager.SENSOR_DELAY_UI );
- }
- }//end sensors
-
- */
-
- private void updateValues() {
-
- batteryLevel();
- String gpsStatus = getSharedData("PANDROID_DATA", "gpsStatus", Core.defaultGpsStatus, "string");
-
- if (gpsStatus.equals("enabled")) {
- Log.d("PANDROID AGENT", "ENABLED");
- gpsLocation();
- }
- else {
- Log.d("PANDROID AGENT", "DISABLED");
- putSharedData("PANDROID_DATA", "latitude", "181.0", "float");
- putSharedData("PANDROID_DATA", "longitude", "181.0", "float");
- }
-
- //sensors();
- getTaskStatus();
- getMemoryStatus();
- getUpTime();
-
- getDataBytes();
- }
-
- private void getMemoryStatus() {
- String memoryStatus = getSharedData("PANDROID_DATA", "memoryStatus", Core.defaultMemoryStatus, "string");
- long availableRamKb = 0;
- long totalRamKb = 0;
-
- if (memoryStatus.equals("enabled")) {
- MemoryInfo mi = new MemoryInfo();
- ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
- activityManager.getMemoryInfo(mi);
- availableRamKb = mi.availMem / 1024;
- totalRamKb = 0;
-
- try {
- RandomAccessFile reader = new RandomAccessFile("/proc/meminfo", "r");
-
- String line = reader.readLine();
- reader.close();
- line = line.replaceAll("[ ]+", " ");
- String[] tokens = line.split(" ");
-
- totalRamKb = Long.valueOf(tokens[1]);
- }
- catch (IOException ex) {
- ex.printStackTrace();
- }
- }
-
- putSharedData("PANDROID_DATA", "availableRamKb", "" + availableRamKb, "long");
- putSharedData("PANDROID_DATA", "totalRamKb", "" + totalRamKb, "long");
- }// end getMemoryStatus
-
- private void getTaskStatus() {
- String taskStatus = getSharedData("PANDROID_DATA", "taskStatus", Core.defaultTaskStatus, "string");
- String task = getSharedData("PANDROID_DATA", "task", Core.defaultTask, "string");
- String taskHumanName = getSharedData("PANDROID_DATA", "taskHumanName", Core.defaultTaskHumanName, "string");
- String run = "false";
-
- if (taskStatus.equals("enabled")) {
- if ((task.length() != 0) && (taskHumanName.length() != 0)) {
- ActivityManager activityManager = (ActivityManager)getApplication().getSystemService(ACTIVITY_SERVICE);
- List runningAppProcessInfos = activityManager.getRunningAppProcesses();
- //PackageManager pm = getApplication().getPackageManager();
- RunningAppProcessInfo runningAppProcessInfo;
-
- for (int i = 0; i < runningAppProcessInfos.size(); i++) {
- runningAppProcessInfo = runningAppProcessInfos.get(i);
-
- if (task.equals(runningAppProcessInfo.processName)) {
- run = "true";
- break;
- }
- }
- }
- }
- putSharedData("PANDROID_DATA", "taskRun", run, "string");
- }//end getTaskStatus
-
- /**
- * Retrieves the time in seconds since the device was switched on
- */
- private void getUpTime(){
- long upTime = Core.defaultUpTime;
- upTime = SystemClock.elapsedRealtime()/1000;
- if(upTime != 0)
- putSharedData("PANDROID_DATA", "upTime", ""+upTime, "long");
- }
-
- private void putSharedData(String preferenceName, String tokenName, String data, String type) {
-
- SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
- getApplicationContext().getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- Editor editor = agentPreferences.edit();
-
- if(type == "boolean") {
- editor.putBoolean(tokenName, Boolean.parseBoolean(data));
- editor.commit();
- }
- else if(type == "float") {
- editor.putFloat(tokenName, Float.parseFloat(data));
- editor.commit();
- }
- else if(type == "integer") {
- editor.putInt(tokenName, Integer.parseInt(data));
- editor.commit();
- }
- else if(type == "long") {
- editor.putLong(tokenName, Long.parseLong(data));
- editor.commit();
- }
- else if(type == "string") {
- editor.putString(tokenName, data);
- editor.commit();
- }
-
- editor.commit();
- }
-
- private String getSharedData(String preferenceName, String tokenName, String defaultValue, String type) {
-
- SharedPreferences agentPreferences = getApplicationContext().getSharedPreferences(
- getApplicationContext().getString(R.string.const_string_preferences),
- Activity.MODE_PRIVATE);
-
- if(type == "boolean") {
- boolean a = agentPreferences.getBoolean(tokenName, Boolean.parseBoolean(defaultValue));
- return Boolean.valueOf(a).toString();
- }
- else if(type == "float") {
- float a = agentPreferences.getFloat(tokenName, Float.parseFloat(defaultValue));
- return Float.valueOf(a).toString();
- }
- else if(type == "integer") {
- int a = agentPreferences.getInt(tokenName, Integer.parseInt(defaultValue));
- return Integer.valueOf(a).toString();
- }
- else if(type == "long") {
- long a = agentPreferences.getLong(tokenName, Long.parseLong(defaultValue));
- return Long.valueOf(a).toString();
- }
- else if(type == "string") {
- return agentPreferences.getString(tokenName, defaultValue);
- }
-
- return "";
- }
-
- private String getHumanDateTime(long unixtime){
- Calendar dateTime = Calendar.getInstance();
- if(unixtime != -1) {
- dateTime.setTimeInMillis(unixtime);
- }
- String humanDateTime;
-
- humanDateTime = dateTime.get(Calendar.YEAR) + "/";
-
- int month = dateTime.get(Calendar.MONTH) + 1;
- if(month < 10) {
- humanDateTime += "0";
- }
- humanDateTime += month + "/";
-
- int day = dateTime.get(Calendar.DAY_OF_MONTH);
- if(day < 10) {
- humanDateTime += "0";
- }
- humanDateTime += day + " ";
-
- int hour = dateTime.get(Calendar.HOUR_OF_DAY);
- if(hour < 10) {
- humanDateTime += "0";
- }
- humanDateTime += hour + ":";
-
- int minute = dateTime.get(Calendar.MINUTE);
- if(minute < 10) {
- humanDateTime += "0";
- }
- humanDateTime += minute + ":";
-
- int second = dateTime.get(Calendar.SECOND);
- if(second < 10) {
- humanDateTime += "0";
- }
- humanDateTime += second;
-
- return humanDateTime;
- }
-
- public static void CancelNotification(Context ctx, int notifyId) {
- String ns = Context.NOTIFICATION_SERVICE;
- NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns);
- nMgr.cancel(notifyId);
- }
-
- /**
- * Retrieves the number of sent/received bytes using the mobile network
- */
- private void getDataBytes()
- {
-
- long receiveBytes = TrafficStats.getTotalRxBytes();
- long transmitBytes = TrafficStats.getTotalTxBytes();
-
- if (receiveBytes != TrafficStats.UNSUPPORTED && transmitBytes != TrafficStats.UNSUPPORTED)
- {
- putSharedData("PANDROID_DATA", "receiveBytes", ""+receiveBytes, "long" );
- putSharedData("PANDROID_DATA", "transmitBytes", ""+transmitBytes, "long" );
- }
- }
-
-
- // ///////////////////////////////////////////
- // // Getting values from device functions
- // ///////////////////////////////////////////
- //
- // public class MyLocationListener implements LocationListener {
- //
- // @Override
- // public void onLocationChanged(Location loc) {
- // putSharedData("PANDROID_DATA", "latitude", Double.valueOf(loc.getLatitude()).toString(), "float");
- // putSharedData("PANDROID_DATA", "longitude", Double.valueOf(loc.getLongitude()).toString(), "float");
- // }
- //
- // @Override
- // public void onProviderDisabled(String provider) {
- // }
- //
- // @Override
- // public void onProviderEnabled(String provider) {
- // }
- //
- //
- // @Override
- // public void onStatusChanged(String provider, int status, Bundle extras) {
- // }
- //
- // }/* End of Class MyLocationListener */
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentTentacle.java b/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentTentacle.java
deleted file mode 100755
index db2bbe89ff..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/PandroidAgentTentacle.java
+++ /dev/null
@@ -1,204 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.io.*;
-import java.net.InetSocketAddress;
-import java.net.Socket;
-import java.net.UnknownHostException;
-
-
-
-class tentacle_client {
-
- // Return 0 when success, -1 when error
- public int send(String args[]) {
-
- int port = 41121;
- String send = null;
- String serverResponse = null;
- String address = "127.0.0.1";
- byte[] data = null;
- String parameter = "";
- String filePath = null;
- boolean verbose = false;
- File file = new File("");
-
- for (int i = 0; i < args.length; i++) {
- if (i == (args.length - 1)) {
- filePath = args[i];
- }
- else {
- // Get the param if is -* format or empty string otherwise
- String last_parameter = parameter;
- parameter = isParameter(args[i]);
-
- // If is not -* param check the previous param
- if (parameter.equals("")) {
- if (last_parameter.equals("-a")) {
- address = args[i];
- }
- else if(last_parameter.equals("-p")) {
- port = Integer.parseInt(args[i]);
- }
- }
-
- // The solo params are checked otherwise
- if (parameter.equals("-v")) {
- verbose = true;
- }
- }
- }
-
- if (filePath == null) {
- getError("Incorrect parameters. File path is necessary.");
- }
-
- getInfo("\n*** Starting tentacle client ***\n",verbose);
-
- Socket socketCliente = new Socket();
-
- // TODO Maybe change socket to higher timeout value
-
- try {
- socketCliente.connect(new InetSocketAddress(address, port), 2000);
-
- }
- catch (UnknownHostException e) {
- getError("Host doesn't exist");
- return -1;
- }
- catch (IOException e) {
- getError("Could not connect: The host is down");
- return -1;
- }
-
-
- DataOutputStream serverOutput = null;
-
- try {
- serverOutput = new DataOutputStream(socketCliente.getOutputStream());
- }
- catch (IOException e1) {
- getError("Could not get Data output stream");
- }
-
- BufferedReader serverInput = null;
-
- try {
- serverInput = new BufferedReader(new InputStreamReader(socketCliente.getInputStream()));
- }
- catch (IOException e1) {
- getError("Could not get Buffered reader");
- }
-
-
- file = new File(filePath);
- int size = (int) file.length();
- data = new byte[size];
- try {
- BufferedInputStream buf = new BufferedInputStream(new FileInputStream(file));
- buf.read(data, 0, data.length);
- buf.close();
- }
- catch (FileNotFoundException e) {
- getError("File not found");
- }
- catch (IOException e) {
- getError("Could not read from file");
- }
-
- getInfo("*** Start of transference ***\n",verbose);
- // Send the file name and length
- try {
- send = "SEND <" + file.getName() + "> SIZE " + Integer.toString(data.length) + '\n';
- getInfo("Client -> Server: " + send, verbose);
- serverOutput.writeBytes(send);
- }
- catch (IOException e) {
- getError("Could not write on server");
- }
- try {
- serverResponse = serverInput.readLine();
- }
- catch (IOException e) {
- getError("Could not get server response");
- }
-
- getInfo("Server -> Client: " + serverResponse + "\n", verbose);
- if (serverResponse != null && serverResponse.equals("SEND OK")) {
- try {
- getInfo("Client -> Server: [file data]\n", verbose);
- serverOutput.write(data);
-
- } catch (IOException e) {
- getError("Could not write on server");
- }
- try {
- serverResponse = serverInput.readLine();
- } catch (IOException e) {
- getError("Could not get server response");
- }
-
- getInfo("Server -> Client: " + serverResponse + "\n", verbose);
- if (serverResponse != null && serverResponse.equals("SEND OK")) {
- try {
- send = "QUIT\n";
- getInfo("Client -> Server: " + send, verbose);
- serverOutput.writeBytes("QUIT\n");
- } catch (IOException e) {
- getError("Could not write on server");
- }
- getInfo("*** End of transference ***\n", verbose);
- }
- else {
- getError("Bad server response, execution aborted.\n");
- }
- }
- else {
- getError("Bad server response, execution aborted.\n");
- }
-
- return 0;
- }
-
- private String isParameter(String str) {
- if(str.equals("-a") || str.equals("-p") || str.equals("-v")) {
- return str;
- }
- else {
- return "";
- }
- }
-
- private void getError(String error_str) {
- log("[ERROR] " + error_str + '\n');
- }
-
- private void getInfo(String error_str, boolean verbose) {
- if(verbose) {
- log("[INFO] " + error_str + '\n');
- }
- }
-
- private void log (String msg) {
- //Log.e("Tentacle",msg);
- //Context context = getApplicationContext();
- //int duration = Toast.LENGTH_SHORT;
-
- //Toast toast = Toast.makeText(context, msg, duration);
- //toast.show();
- }
-}
\ No newline at end of file
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/Setup.java b/pandora_agents/android/tablet/src/pandroid/agent/Setup.java
deleted file mode 100644
index f00f044123..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/Setup.java
+++ /dev/null
@@ -1,674 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-import android.app.Activity;
-import android.app.ActivityManager;
-import android.app.ActivityManager.RunningAppProcessInfo;
-import android.app.Dialog;
-import android.app.NotificationManager;
-import android.content.Context;
-import android.content.Intent;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
-import android.net.Uri;
-import android.os.AsyncTask;
-import android.os.Bundle;
-import android.os.Handler;
-import android.text.TextUtils;
-import android.util.Log;
-import android.view.LayoutInflater;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.view.WindowManager;
-import android.view.WindowManager.LayoutParams;
-import android.view.inputmethod.InputMethodManager;
-import android.widget.ArrayAdapter;
-import android.widget.Button;
-import android.widget.CheckBox;
-import android.widget.EditText;
-import android.widget.ProgressBar;
-import android.widget.RelativeLayout;
-import android.widget.Spinner;
-import android.widget.Toast;
-
-public class Setup extends Activity {
-
- Handler h = new Handler();
-
- private HashMap listProcesses;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- listProcesses = new HashMap();
- //TODO removed to improve performance, untested
- //Core.loadConf(getApplicationContext());
- }
-
- public void onResume() {
- super.onResume();
-
- setContentView(R.layout.setupnosim);
-
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
-
-
- if (Core.password.equals(Core.defaultPassword))
- {
- if(Core.passwordCheck.equals("enabled"))
- passwordChoose();
- }
- else{
- LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
- View view=inflater.inflate(R.layout.setupnosim, null);
- RelativeLayout setup = (RelativeLayout)view.findViewById(R.id.setupnosim);
- setContentView(setup);
- setup.setVisibility(RelativeLayout.INVISIBLE);
- enterPass();
- }
- }
-
- //For options
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- MenuInflater inflater = getMenuInflater();
- inflater.inflate(R.menu.options_menu, menu);
- return true;
- }
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- Intent i;
- switch (item.getItemId()) {
- case R.id.help_button_menu_options:
- i = new Intent(this, Help.class);
- startActivity(i);
- break;
- case R.id.about_button_menu_options:
- i = new Intent(this, About.class);
- startActivity(i);
- break;
- }
- return true;
- }
-
- private void setButtonEvents() {
- Button updateButton = (Button) findViewById(R.id.update);
-
- updateButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- getDataFromView();
- boolean result = Core.updateConf(getApplicationContext());
-
- if (result) {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.config_saved),
- Toast.LENGTH_SHORT);
- toast.show();
- }
- else {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.incorrect_update),
- Toast.LENGTH_SHORT);
- toast.show();
- }
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- Button passwordButton = (Button) findViewById(R.id.set_password);
- passwordButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- createPass();
- }
- });
-
- Button webButton = (Button) findViewById(R.id.goToWebButton);
- webButton.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- getDataFromView();
- Core.updateConf(getApplicationContext());
-
- String url = Core.mobileWebURL;
- if (!url.startsWith("https://") && !url.startsWith("http://")){
- url = "http://" + url;
- }
-
- Uri uri = Uri.parse(url);
- Intent intent = new Intent(Intent.ACTION_VIEW, uri);
- startActivity(intent);
- }
- });
-
- Button stopAgent = (Button) findViewById(R.id.stopAgent);
- stopAgent.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.stopAgentListener();
- CancelNotification(getApplicationContext(),42);
- }
- });
-
- Button restartAgent = (Button) findViewById(R.id.restartAgent);
- restartAgent.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- }// end setButtonEvents
-
- private void loadInBackgroundProcessInExecution() {
- new GetProcessInExecutionAsyncTask().execute();
- }
-
- public class GetProcessInExecutionAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- getProcess();
- return null;
- }
-
- private void getProcess() {
- listProcesses.clear();
-
- ActivityManager activityManager = (ActivityManager)getApplication().getSystemService(ACTIVITY_SERVICE);
- List runningAppProcessInfos = activityManager.getRunningAppProcesses();
- PackageManager pm = getApplication().getPackageManager();
- RunningAppProcessInfo runningAppProcessInfo;
-
- for (int i = 0; i < runningAppProcessInfos.size(); i++) {
- runningAppProcessInfo = runningAppProcessInfos.get(i);
-
- try {
- CharSequence human_name = pm.getApplicationLabel(
- pm.getApplicationInfo(runningAppProcessInfo.processName, PackageManager.GET_META_DATA));
-
- listProcesses.put(runningAppProcessInfo.processName, human_name + "");
- }
- catch (NameNotFoundException e) {
- listProcesses.put(runningAppProcessInfo.processName, runningAppProcessInfo.processName);
- }
- }
- }
-
- @Override
- protected void onPostExecute(Void unused)
- {
- Spinner combo = (Spinner)findViewById(R.id.processes_combo);
- ArrayList listProcess = new ArrayList(listProcesses.keySet());
- ArrayList listProcessHuman = new ArrayList(listProcesses.values());
- int position = 0;
-
- if (Core.task.length() != 0) {
- position = listProcess.indexOf(Core.task);
-
- String text = Core.task;
- if (Core.taskHumanName.length() != 0) {
- text = Core.taskHumanName;
- }
-
- //If the process is not running, add in the list at the end
- if (position == -1) {
- listProcesses.put(Core.task, text);
-
- //The associative array is reordered, and need to extract the sub arrays again.
- listProcess = new ArrayList(listProcesses.keySet());
- listProcessHuman = new ArrayList(listProcesses.values());
-
- position = listProcess.indexOf(Core.task);
- }
- }
-
- ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(getApplicationContext(),
- R.layout.spinner, listProcessHuman);
- combo.setAdapter(spinnerArrayAdapter);
-
- spinnerArrayAdapter
- .setDropDownViewResource(R.layout.simple_spinner_item);
-
-
- combo.setSelection(position);
-
- ProgressBar progressBar = (ProgressBar) findViewById(R.id.loading_task_anim);
- progressBar.setVisibility(ProgressBar.GONE);
-
- combo.setVisibility(Spinner.VISIBLE);
-
- Button button = (Button)findViewById(R.id.update);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.set_password);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.goToWebButton);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.stopAgent);
- button.setEnabled(true);
-
- button = (Button)findViewById(R.id.restartAgent);
- button.setEnabled(true);
-
- }
- }// end onPostExecute
-
- private void getDataFromView() {
- // Declare view objects
- EditText editText;
- CheckBox checkBox;
- Spinner combo;
-
- // notification
- checkBox = (CheckBox) findViewById(R.id.checkNotification);
- if (checkBox.isChecked())
- Core.NotificationCheck = "enabled";
- else
- Core.NotificationCheck = "disabled";
- Log.d("notif", ""+Core.NotificationCheck);
-
- // serverAddress
- editText = (EditText) findViewById(R.id.serverAddrInput);
- Core.serverAddr = editText.getText().toString();
-
- // serverPort
- editText = (EditText) findViewById(R.id.serverPortInput);
- Core.serverPort = editText.getText().toString();
-
- // interval
- editText = (EditText) findViewById(R.id.intervalInput);
- Core.interval = Integer.valueOf(editText.getText().toString()).intValue();
-
- // agentName
- editText = (EditText) findViewById(R.id.agentNameInput);
- Core.agentName = editText.getText().toString();
-
- // bufferSize
- editText = (EditText) findViewById(R.id.bufferSize);
- Core.bufferSize = Long.valueOf(editText.getText().toString()).longValue();
-
- // mobileWebURL
- editText = (EditText) findViewById(R.id.mobileWebURLInput);
- Core.mobileWebURL = editText.getText().toString();
-
- // taskReport
- checkBox = (CheckBox) findViewById(R.id.checkTaskReport);
- if (checkBox.isChecked()) {
- Core.taskStatus = "enabled";
-
- combo = (Spinner)findViewById(R.id.processes_combo);
- int position = combo.getSelectedItemPosition();
- ArrayList listProcess = new ArrayList(listProcesses.keySet());
- ArrayList listProcessHuman = new ArrayList(listProcesses.values());
- Core.task = listProcess.get(position);
- Core.taskHumanName = listProcessHuman.get(position);
- }
- else {
- Core.taskStatus = "disabled";
- Core.task = "";
- Core.taskHumanName = "";
- }
-
- // gpsReport
- checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
- if (checkBox.isChecked())
- Core.gpsStatus = "enabled";
- else
- Core.gpsStatus = "disabled";
-
- // batteryLevelReport
- checkBox = (CheckBox) findViewById(R.id.checkBatteryLevelReport);
- if (checkBox.isChecked())
- Core.BatteryLevelReport = "enabled";
- else
- Core.BatteryLevelReport = "disabled";
-
- // memoryReport
- checkBox = (CheckBox) findViewById(R.id.checkMemoryReport);
- if (checkBox.isChecked())
- Core.memoryStatus = "enabled";
- else
- Core.memoryStatus = "disabled";
-
- // upTimeReport
- checkBox = (CheckBox) findViewById(R.id.checkDeviceUpTimeReport);
- if (checkBox.isChecked())
- Core.DeviceUpTimeReport = "enabled";
- else
- Core.DeviceUpTimeReport = "disabled";
-
- // inventory Report
- checkBox = (CheckBox) findViewById(R.id.checkInventoryReport);
- if (checkBox.isChecked())
- Core.InventoryReport = "enabled";
- else
- Core.InventoryReport = "disabled";
-
- // helloSignalReport
- checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
- if (checkBox.isChecked())
- Core.HelloSignalReport = "enabled";
- else
- Core.HelloSignalReport = "disabled";
-
- // bytesReceivedReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesReceivedReport);
- if (checkBox.isChecked())
- Core.BytesReceivedReport = "enabled";
- else
- Core.BytesReceivedReport = "disabled";
-
- // bytesSentReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesSentReport);
- if (checkBox.isChecked())
- Core.BytesSentReport = "enabled";
- else
- Core.BytesSentReport = "disabled";
-
- // update saved values with new ones retrieved from view
- Core.updateConf(getApplicationContext());
- }
-
- private void loadViews(){
- // Declare view objects
- EditText editText;
- CheckBox checkBox;
-
- // notification
- checkBox = (CheckBox) findViewById(R.id.checkNotification);
- checkBox.setChecked(Core.NotificationCheck.equals("enabled"));
-
- // serverAddress
- editText = (EditText) findViewById(R.id.serverAddrInput);
- editText.setText(Core.serverAddr);
-
- // serverPort
- editText = (EditText) findViewById(R.id.serverPortInput);
- editText.setText(Core.serverPort);
-
- // interval
- editText = (EditText) findViewById(R.id.intervalInput);
- editText.setText(Integer.toString(Core.interval));
-
- // agentName
- editText = (EditText) findViewById(R.id.agentNameInput);
- editText.setText(Core.agentName);
-
- // bufferSize
- editText = (EditText) findViewById(R.id.bufferSize);
- editText.setText(Long.toString(Core.bufferSize));
-
- // mobileWebURL
- editText = (EditText) findViewById(R.id.mobileWebURLInput);
- editText.setText(Core.mobileWebURL);
-
- // taskReport
- checkBox = (CheckBox) findViewById(R.id.checkTaskReport);
- checkBox.setChecked(Core.taskStatus.equals("enabled"));
-
- // gpsReport
- checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
- checkBox.setChecked(Core.gpsStatus.equals("enabled"));
-
- // batteryLevelReport
- checkBox = (CheckBox) findViewById(R.id.checkBatteryLevelReport);
- checkBox.setChecked(Core.BatteryLevelReport.equals("enabled"));
-
- // memoryReport
- checkBox = (CheckBox) findViewById(R.id.checkMemoryReport);
- checkBox.setChecked(Core.memoryStatus.equals("enabled"));
-
- // upTimeReport
- checkBox = (CheckBox) findViewById(R.id.checkDeviceUpTimeReport);
- checkBox.setChecked(Core.DeviceUpTimeReport.equals("enabled"));
-
- // inventoryReport
- checkBox = (CheckBox) findViewById(R.id.checkInventoryReport);
- checkBox.setChecked(Core.InventoryReport.equals("enabled"));
-
- // bytesReceivedReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesReceivedReport);
- checkBox.setChecked(Core.BytesReceivedReport.equals("enabled"));
-
- // bytesSentReport
- checkBox = (CheckBox) findViewById(R.id.checkBytesSentReport);
- checkBox.setChecked(Core.BytesSentReport.equals("enabled"));
-
- // helloSignalReport
- checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
- checkBox.setChecked(Core.HelloSignalReport.equals("enabled"));
-
- }
-
- // For displaying a dialog in order to set/change password
- public void passwordChoose() {
- final Dialog dialog = new Dialog(this);
- dialog.setContentView(R.layout.password_choose);
- dialog.setTitle(getString(R.string.password_choose_text));
- dialog.setCancelable(false);
-
- Button yes = (Button) dialog.findViewById(R.id.yes_button);
- yes.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- Core.passwordCheck = "disabled";
- Core.updateConf(getApplicationContext());
- dialog.dismiss();
- createPass();
- } // end onClick
- });//end clickListener
-
- Button no = (Button) dialog.findViewById(R.id.no_button);
- no.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- CheckBox cB = (CheckBox) dialog.findViewById(R.id.password_checkbox);
- if (cB.isChecked())
- Core.passwordCheck = "disabled";
- else
- Core.passwordCheck = "enabled";
- Core.updateConf(getApplicationContext());
- dialog.dismiss();
- } // end onClick
- });//end clickListener
-
- dialog.show();
- }
-
- // For displaying a dialog in order to create a password
- public void createPass() {
-
- final Dialog dialog = new Dialog(this);
- dialog.setContentView(R.layout.password_create);
- dialog.setCancelable(false);
- dialog.getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
-
- final EditText text = (EditText) dialog.findViewById(R.id.password_create_field);
- text.setText("");
-
- final EditText text2 = (EditText) dialog.findViewById(R.id.password_create_field_2);
- text2.setText("");
-
- Button button = (Button) dialog.findViewById(R.id.password_create_button);
- button.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- String createpass_password = text.getText().toString().trim();
- String createpass_password2 = text2.getText().toString().trim();
-
- try
- {
- if(TextUtils.isEmpty(createpass_password))
- {
- Core.password = Core.defaultPassword;
- Core.updateConf(getApplicationContext());
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
- dialog.dismiss();
-
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_removed),
- Toast.LENGTH_SHORT);
- toast.show();
-
- return;
- }
- else if(createpass_password.length() < 6)
- {
- text.setError(getString(R.string.password_length));
- text2.setError(getString(R.string.password_length));
- return;
- }
-
- else if(createpass_password.equals(createpass_password2))
- {
- Core.password = createpass_password;
- Core.updateConf(getApplicationContext());
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
-
- dialog.dismiss();
-
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_created),
- Toast.LENGTH_SHORT);
- toast.show();
-
- return;
- }
- else
- {
- text2.setError(getString(R.string.password_no_match));
- return;
- }
- }
- catch(Exception x)
- {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_error),
- Toast.LENGTH_SHORT);
- toast.show();
- finish();
- }
- } // end onClick
-
- });//end clickListener
- Core.updateConf(getApplicationContext());
- dialog.show();
-
- }// end createPass
-
- // For displaying a dialog in order to enter the password
- public void enterPass() {
-
- final Dialog dialog = new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
- dialog.setContentView(R.layout.password_entry);
- dialog.setTitle(getString(R.string.password_enter));
- dialog.setCancelable(false);
- dialog.getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
- dialog.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
-
-
- final EditText text = (EditText) dialog.findViewById(R.id.password_entry_input);
- text.setText("");
-
- Button button = (Button) dialog.findViewById(R.id.password_entry_button);
- button.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- String password = text.getText().toString().trim();
-
- try
- {
- if(password.equals(Core.password))
- {
- //TODO
- InputMethodManager im = (InputMethodManager)getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
- im.hideSoftInputFromWindow(text.getWindowToken(), 0);
- dialog.dismiss();
-
-
- LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
- View view=inflater.inflate(R.layout.setupnosim, null);
- RelativeLayout setupnosim = (RelativeLayout)view.findViewById(R.id.setupnosim);
- setContentView(setupnosim);
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
- setupnosim.setVisibility(RelativeLayout.VISIBLE);
- }
- else
- {
- text.setError(getString(R.string.password_incorrect));
- }
- }
- catch(Exception x)
- {
- Toast toast = Toast.makeText(getApplicationContext(),
- getString(R.string.password_error),
- Toast.LENGTH_SHORT);
- toast.show();
- finish();
- }
-
- }
- });
-
- Button backButton = (Button) dialog.findViewById(R.id.password_back_button);
- backButton.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- dialog.dismiss();
- switchTabInActivity(0);
- }
- });
-
- dialog.show();
-
- }// end enterPass
-
-
- /**
- * Allows this activity to switch the parent tab
- * @param indexTabToSwitchTo
- */
- public void switchTabInActivity(int indexTabToSwitchTo){
- PandroidAgent ParentActivity;
- ParentActivity = (PandroidAgent) this.getParent();
- ParentActivity.switchTab(indexTabToSwitchTo);
- }
-
- public static void CancelNotification(Context ctx, int notifyId) {
- String ns = Context.NOTIFICATION_SERVICE;
- NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns);
- nMgr.cancel(notifyId);
- }
-
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/StartMyServiceAtBootReceiver.java b/pandora_agents/android/tablet/src/pandroid/agent/StartMyServiceAtBootReceiver.java
deleted file mode 100644
index 49d2185bc5..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/StartMyServiceAtBootReceiver.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package pandroid.agent;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-public class StartMyServiceAtBootReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
- //Core.restartAgentListener(context);
- }
- }
-}
diff --git a/pandora_agents/android/tablet/src/pandroid/agent/Status.java b/pandora_agents/android/tablet/src/pandroid/agent/Status.java
deleted file mode 100644
index 05dd920832..0000000000
--- a/pandora_agents/android/tablet/src/pandroid/agent/Status.java
+++ /dev/null
@@ -1,308 +0,0 @@
-// Pandora FMS - http://pandorafms.com
-// ==================================================
-// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
-// Please see http://pandorafms.org for full contribution list
-
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public License
-// as published by the Free Software Foundation; version 2
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-package pandroid.agent;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.graphics.Color;
-import android.os.AsyncTask;
-import android.os.Bundle;
-import android.os.Handler;
-import android.view.Menu;
-import android.view.MenuInflater;
-import android.view.MenuItem;
-import android.widget.TextView;
-
-import java.util.Date;
-
-
-public class Status extends Activity {
- Handler h = new Handler();
-
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- setContentView(R.layout.statusnosim);
-
- // Core.loadLastValues(getApplicationContext());
- // showLastValues();
- // updateLastContactInfo();
- //setButtonEvents();
- }
- //TODO maybe remove duplicate from onCreate
- @Override
- public void onResume(){
- super.onResume();
-
- setContentView(R.layout.statusnosim);
-
- new GetLastValuesAsyncTask().execute();
-
- updateLastContactInfo();
-
- }
-
-
-
- public void onStart(){
- super.onStart();
-
- // Update the UI each second
- h.post(new Runnable() {
- @Override
- public void run() {
-
- new GetLastValuesAsyncTask().execute();
-
- updateLastContactInfo();
-
- h.postDelayed(this, 1000);
- }
- });
- }
-
- //For options
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- MenuInflater inflater = getMenuInflater();
- inflater.inflate(R.menu.options_menu, menu);
- return true;
- }
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- Intent i;
- switch (item.getItemId()) {
- case R.id.help_button_menu_options:
- i = new Intent(this, Help.class);
- startActivity(i);
- break;
- case R.id.about_button_menu_options:
- i = new Intent(this, About.class);
- startActivity(i);
- break;
- }
- return true;
- }
-
- public class GetLastValuesAsyncTask extends AsyncTask {
-
- @Override
- protected Void doInBackground(Void... params) {
- Core.loadLastValues(getApplicationContext());
- return null;
- }
-
-
- @Override
- protected void onPostExecute(Void unused)
- {
- showLastValues();
- }
-
-
- }// end onPostExecute
-
-
-
- private void updateLastContactInfo() {
- long lastContact = Core.lastContact;
- int contactError = Core.contactError;
- boolean alarmEnabled = Core.alarmEnabled;
- Date date = new Date();
- long timestamp = date.getTime() / 1000;
- long timeAgo = -1;
-
- //loading until error or connects
- TextView lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.loading));
-
- if(lastContact != -1){
- timeAgo = timestamp - lastContact;
- }
-
- int interval = Core.interval;
-
- if(timeAgo >= interval) {
- timeAgo = 0;
- }
-
- String stringAgo = "";
-
- if(!alarmEnabled){
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.contact_stopped_str));
- }
-
- else if(contactError == 1) {
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#FF0000"));
- lastContactInfo.setText(getString(R.string.conctact_error_str));
-
- }
- else if(lastContact == -1) {
- stringAgo = getString(R.string.never_str);
- }
- else if(timeAgo == 0) {
- stringAgo = getString(R.string.now_str);
- }
- //TODO
- else if(contactError == 0) {
- stringAgo = timeAgo + " " + getString(R.string.seconds_str);
- lastContactInfo = (TextView) this.findViewById(R.id.lastContactInfo_label_str);
- lastContactInfo.setTextColor(Color.parseColor("#00FF00"));
- lastContactInfo.setText(getString(R.string.last_contact_str) + stringAgo);
- }
-
- }//end updateLastContactInfo
-
- //Set layout values to current
- private void showLastValues() {
-
- // latitude
- TextView textView = (TextView)findViewById(R.id.latitude_value_str);
- textView.setText("");
- if (Core.latitude != Core.CONST_INVALID_COORDS) {
- textView.setText("" + Core.latitude);
- }
- // longitude
- textView = (TextView)findViewById(R.id.longitude_value_str);
- textView.setText("");
- if (Core.longitude != Core.CONST_INVALID_COORDS) {
- textView.setText("" + Core.longitude);
- }
- // battery level
- textView = (TextView)findViewById(R.id.battery_value_str);
- textView.setText("");
- if (Core.batteryLevel != Core.CONST_INVALID_BATTERY_LEVEL) {
- textView.setText("" + Core.batteryLevel);
- }
-
-
- /*
- textView = (TextView)findViewById(R.id.orientation_value_str);
- textView.setText("");
-
- if (Core.orientation != Core.CONST_INVALID_ORIENTATION) {
- textView.setText("" + Core.orientation);
- }
-
- textView = (TextView)findViewById(R.id.proximity_value_str);
- textView.setText("");
- if (Core.proximity != Core.CONST_INVALID_PROXIMITY) {
- textView.setText("" + Core.proximity);
- }
- */
-
- // task
- textView = (TextView)findViewById(R.id.task_value_str);
- textView.setText("");
- if (Core.taskStatus.equals("enabled") && Core.taskHumanName.length() != 0) {
- String text = Core.taskHumanName + " ( " + Core.task + " ): ";
- if (Core.taskRun.equals("true")) {
- text = text + getString(R.string.running);
- }
- else {
- text = text + getString(R.string.stopped);
- }
- textView.setText(text);
- }
-
- // freeMemory
- textView = (TextView)findViewById(R.id.memory_value_str);
- textView.setText("");
- if (Core.memoryStatus.equals("enabled")) {
- String textMemory = getString(R.string.memory_avaliable_str);
- textMemory = textMemory.replaceFirst("%i", "" + Core.availableRamKb);
- textMemory = textMemory.replaceFirst("%i", "" + Core.totalRamKb);
- textView.setText(textMemory);
- }
- // upTime
- textView = (TextView)findViewById(R.id.uptime_value);
- textView.setText("");
- if (Core.upTime != 0) {
- textView.setText("" + Core.upTime+" "+ getString(R.string.seconds));
- }
-
- // receiveBytes
- textView = (TextView)findViewById(R.id.receive_bytes_value);
- textView.setText("");
- textView.setText("" + Core.receiveBytes);
-
- // transmiteBytes
- textView = (TextView)findViewById(R.id.transmit_bytes_value);
- textView.setText("");
- textView.setText("" + Core.transmitBytes);
-
- }
-
- //For debugging
-
- /* For debugging
- private void setButtonEvents() {
- // Set update button events
- Button start = (Button) findViewById(R.id.start);
- Button xml = (Button) findViewById(R.id.get_xml);
- Button hidexml = (Button) findViewById(R.id.hide_xml);
- Button stop = (Button) findViewById(R.id.stop);
-
-
- xml.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- updateLastXML();
- }
- });
-
- hidexml.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- hideLastXML();
- }
- });
-
- stop.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.stopAgentListener();
- }
- });
-
- start.setOnClickListener(new OnClickListener() {
- public void onClick(View view) {
- Core.restartAgentListener(getApplicationContext());
- }
- });
-
- }//end button events
-
-
-
- private void updateLastXML() {
-
- TextView xml = (TextView) this.findViewById(R.id.xml);
- SharedPreferences agentPreferences = PandroidAgent.getSharedPrefs();
-
- String lastXML = agentPreferences.getString("lastXML", "[no data]");
- xml.setText("Last XML builded: \n\n" + lastXML);
-
- }
- private void hideLastXML(){
- TextView xml = (TextView) this.findViewById(R.id.xml);
- xml.setText("");
- }
-
- */
-}
diff --git a/pandora_agents/pc/AIX/pandora_agent.conf b/pandora_agents/pc/AIX/pandora_agent.conf
index f3657d3a7a..a8976d5b1d 100644
--- a/pandora_agents/pc/AIX/pandora_agent.conf
+++ b/pandora_agents/pc/AIX/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, AIX version
+# Version 7.0NG.749, AIX version
# Licensed under GPL license v2,
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/FreeBSD/pandora_agent.conf b/pandora_agents/pc/FreeBSD/pandora_agent.conf
index 95fd1090ad..db354ce74e 100644
--- a/pandora_agents/pc/FreeBSD/pandora_agent.conf
+++ b/pandora_agents/pc/FreeBSD/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, FreeBSD Version
+# Version 7.0NG.749, FreeBSD Version
# Licensed under GPL license v2,
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/HP-UX/pandora_agent.conf b/pandora_agents/pc/HP-UX/pandora_agent.conf
index 04122feb30..35ab968b83 100644
--- a/pandora_agents/pc/HP-UX/pandora_agent.conf
+++ b/pandora_agents/pc/HP-UX/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, HP-UX Version
+# Version 7.0NG.749, HP-UX Version
# Licensed under GPL license v2,
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/Linux/pandora_agent.conf b/pandora_agents/pc/Linux/pandora_agent.conf
index b083e7f3aa..d01aedfcb6 100644
--- a/pandora_agents/pc/Linux/pandora_agent.conf
+++ b/pandora_agents/pc/Linux/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, GNU/Linux
+# Version 7.0NG.749, GNU/Linux
# Licensed under GPL license v2,
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/NT4/pandora_agent.conf b/pandora_agents/pc/NT4/pandora_agent.conf
index 4bb88c5b4e..d3d6bbe3ad 100644
--- a/pandora_agents/pc/NT4/pandora_agent.conf
+++ b/pandora_agents/pc/NT4/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, GNU/Linux
+# Version 7.0NG.749, GNU/Linux
# Licensed under GPL license v2,
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/SunOS/pandora_agent.conf b/pandora_agents/pc/SunOS/pandora_agent.conf
index a90b7227ca..a1c0730d7d 100644
--- a/pandora_agents/pc/SunOS/pandora_agent.conf
+++ b/pandora_agents/pc/SunOS/pandora_agent.conf
@@ -1,5 +1,5 @@
# Base config file for Pandora FMS agents
-# Version 7.0NG.740, Solaris Version
+# Version 7.0NG.749, Solaris Version
# Licensed under GPL license v2,
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
diff --git a/pandora_agents/pc/Win32/help/how_to_keys.html b/pandora_agents/pc/Win32/help/how_to_keys.html
index aaa831e70f..d3c0a6cdf2 100644
--- a/pandora_agents/pc/Win32/help/how_to_keys.html
+++ b/pandora_agents/pc/Win32/help/how_to_keys.html
@@ -1,53 +1,59 @@
-
+
-
-Fandora FMS - Generate SSH keys step-by-step
-
-
-
-
-
-
-
-
-
-
+
+ Fandora FMS - Generate SSH keys step-by-step
+
+
+
+
+
+
+
+
+
+
-Step-by-step generating SSH keys
+ Step-by-step generating SSH keys
-From
-Pandora FMS FAQ .
+ From
+ Pandora FMS FAQ .
-
-
- Go to .\util
of your Pandora FMS agent for Windows
- and run puttygen.exe
.
- Generate keys, SSH-2_DSA, 1024:
-
-
-
- Press Generate
- Export key to OpenSSH key (Cygwin uses a port of OpenSSH)
-
-
-
- We have no chosen password, so press YES:
-
-
-
- Save it as c:\pandora\keys\id_dsa:
-
-
-
- Now let's copy the public key to clipboard:
-
-
-
- and paste it as c:\pandora_agent\keys\id_dsa.pub
,
- and also to the /home/pandora/.ssh/authorized_keys
file.
-
-
-
-
-
-
\ No newline at end of file
+
+
+ Go to .\util
of your Pandora FMS agent for Windows and run
+ puttygen.exe
.
+ Generate keys, SSH-2_DSA, 1024:
+
+
+
+ Press Generate
+ Export key to OpenSSH key (Cygwin uses a port of OpenSSH)
+
+
+
+ We have no chosen password, so press YES:
+
+
+
+ Save it as c:\pandora\keys\id_dsa:
+
+
+
+ Now let's copy the public key to clipboard:
+
+
+
+ and paste it as c:\pandora_agent\keys\id_dsa.pub
, and also
+ to the /home/pandora/.ssh/authorized_keys
file.
+
+
+
+
+
+