Merge branch 'develop' into ent-636-Campos-Target-IP-y-Export-target-en-politicas

This commit is contained in:
alejandro-campos 2020-06-09 09:30:16 +02:00
commit 442b40ad97
386 changed files with 39675 additions and 38751 deletions

View File

@ -30,6 +30,7 @@ $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"
@ -37,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"

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="libs/commons-lang3-3.0.1.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Pandroid Agent v1.0</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -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

View File

@ -1,99 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pandroid.agent"
android:versionCode="1002"
android:versionName="3.0" >
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="false"
android:xlargeScreens="false" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:name="android.hardware.sensor.light" />
<uses-feature android:name="android.hardware.location" />
<uses-sdk android:minSdkVersion="8" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".PandroidAgent"
android:configChanges="keyboardHidden|orientation"
android:label="@string/app_name"
android:theme="@style/MainTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Status" />
<activity android:name=".Setup" />
<service
android:name="pandroid.agent.PandroidAgentListener"
android:enabled="true" />
<receiver android:name="pandroid.agent.EventReceiver" />
<receiver
android:name="pandroid.agent.StartMyServiceAtBootReceiver"
android:enabled="true"
android:exported="true"
android:label="StartMyServiceAtBootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service
android:name="pandroid.agent.MyStartService"
android:enabled="true" />
<activity
android:name=".About"
android:label="@string/pandroid_agent_str"
android:theme="@android:style/Theme.Dialog" />
<activity
android:name=".Help"
android:label="@string/help_str"
android:theme="@android:style/Theme.Dialog" />
<receiver android:name=".SMSBroadcastReceiver" >
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" >
</action>
</intent-filter>
</receiver>
</application>
</manifest>

View File

@ -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 <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(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 *;
}

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,55 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dip" >
<ImageView
android:id="@+id/img_logo_about"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0"
android:contentDescription="@string/about_desc"
android:src="@drawable/pandroid_large" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pandroid_agent_copyright" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/licensed_under_gpl_str" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="@string/develop_team_str" />
<TextView
android:id="@+id/url_pandora"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
</LinearLayout>

View File

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000"
android:orientation="vertical"
android:padding="10dip" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/help_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</ScrollView>
</LinearLayout>

View File

@ -1,52 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/p"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/yes_button"
style="?android:attr/buttonStyleSmall"
android:layout_width="173dp"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:text="@string/yes" />
<Button
android:id="@+id/no_button"
style="?android:attr/buttonStyleSmall"
android:layout_width="168dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/yes_button"
android:layout_alignRight="@+id/yes_button"
android:layout_below="@+id/yes_button"
android:layout_marginTop="22dp"
android:text="@string/no" />
<CheckBox
android:id="@+id/password_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/no_button"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:text="@string/password_checkbox" />
</RelativeLayout>

View File

@ -1,70 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:id="@+id/password_create_field"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="19dp"
android:ems="10"
android:inputType="textPassword" >
<requestFocus />
</EditText>
<Button
android:id="@+id/password_create_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/password_create_field"
android:layout_centerHorizontal="true"
android:layout_marginTop="92dp"
android:text="@string/enter" />
<EditText
android:id="@+id/password_create_field_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/password_create_field"
android:layout_below="@+id/password_create_field"
android:layout_marginTop="16dp"
android:ems="10"
android:inputType="textPassword" />
<TextView
android:id="@+id/password_repeat_textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/password_create_field"
android:layout_centerHorizontal="true"
android:text="@string/password_repeat" />
<TextView
android:id="@+id/password_create_textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="@string/password_set" />
</RelativeLayout>

View File

@ -1,60 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/password_entry_input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="85dp"
android:ems="10"
android:inputType="textPassword" />
<Button
android:id="@+id/password_back_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/password_entry_input"
android:layout_below="@+id/password_entry_input"
android:layout_marginTop="29dp"
android:text="@string/back" />
<Button
android:id="@+id/password_entry_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/password_back_button"
android:layout_alignBottom="@+id/password_back_button"
android:layout_alignLeft="@+id/password_entry_input"
android:text="@string/enter" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="36dp"
android:text="@string/alert_dialog_password"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>

View File

@ -1,343 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/setup"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<CheckBox
android:id="@+id/checkNotification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notificationCheck"
android:textColor="#bbbbbb"
android:textSize="14sp"
android:paddingTop="5sp"/>
<TextView
android:id="@+id/field1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:text="@string/serverAddr" />
<EditText
android:id="@+id/serverAddrInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:singleLine="true" />
<TextView
android:id="@+id/field2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/serverPort" />
<EditText
android:id="@+id/serverPortInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true" />
<TextView
android:id="@+id/field3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/interval" />
<EditText
android:id="@+id/intervalInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true" />
<TextView
android:id="@+id/field4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/agent" />
<EditText
android:id="@+id/agentNameInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:singleLine="true" />
<TextView
android:id="@+id/field5"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bufferSize" />
<EditText
android:id="@+id/bufferSize"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:maxLines="1"
/>
<TextView
android:id="@+id/field6"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/mobileWebURL" />
<EditText
android:id="@+id/mobileWebURLInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textUri"
android:singleLine="true" />
<Button
android:id="@+id/goToWebButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/go_to_web" />
<TextView
android:id="@+id/field7"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/taskToReport" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ProgressBar
android:id="@+id/loading_task_anim"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Spinner
android:id="@+id/processes_combo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<CheckBox
android:id="@+id/checkTaskReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/taskReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkGpsReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/gpsReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkBatteryLevelReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/BatteryLevelReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkMemoryReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/memoryReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkDeviceUpTimeReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/uptimeReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkInventoryReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/InventoryReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkHelloSignalReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/HelloSignalReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkSimIDReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/simIDReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkNetworkOperatorReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/NetworkOperatorReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkNetworkTypeReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/NetworkTypeReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkPhoneTypeReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/PhoneTypeReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkSignalStrengthReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/SignalStrengthReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkReceivedSMSReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ReceivedSMSReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkSentSMSReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/SentSMSReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkIncomingCallsReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/IncomingCallsReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkMissedCallsReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/MissedCallsReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkOutgoingCallsReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/OutgoingCallsReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkBytesReceivedReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/BytesReceivedReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkBytesSentReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/BytesSentReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkRoamingReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/RoamingReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<Button
android:id="@+id/update"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/update" />
<Button
android:id="@+id/set_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/set_password" />
<Button
android:id="@+id/stopAgent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/stopAgent" />
<Button
android:id="@+id/restartAgent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/restartAgent" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</RelativeLayout>

View File

@ -1,235 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/setupnosim"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<CheckBox
android:id="@+id/checkNotification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="5sp"
android:text="@string/notificationCheck"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<TextView
android:id="@+id/field1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:text="@string/serverAddr" />
<EditText
android:id="@+id/serverAddrInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:singleLine="true" />
<TextView
android:id="@+id/field2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/serverPort" />
<EditText
android:id="@+id/serverPortInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true" />
<TextView
android:id="@+id/field3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/interval" />
<EditText
android:id="@+id/intervalInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true" />
<TextView
android:id="@+id/field4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/agent" />
<EditText
android:id="@+id/agentNameInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:singleLine="true" />
<TextView
android:id="@+id/field5"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bufferSize" />
<EditText
android:id="@+id/bufferSize"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:singleLine="true" />
<TextView
android:id="@+id/field6"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/mobileWebURL" />
<EditText
android:id="@+id/mobileWebURLInput"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textUri"
android:singleLine="true" />
<Button
android:id="@+id/goToWebButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/go_to_web" />
<TextView
android:id="@+id/field7"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/taskToReport" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ProgressBar
android:id="@+id/loading_task_anim"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Spinner
android:id="@+id/processes_combo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
</LinearLayout>
<CheckBox
android:id="@+id/checkTaskReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/taskReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkGpsReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/gpsReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkBatteryLevelReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/BatteryLevelReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkMemoryReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/memoryReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkDeviceUpTimeReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/uptimeReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkInventoryReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/InventoryReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<CheckBox
android:id="@+id/checkHelloSignalReport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/HelloSignalReport"
android:textColor="#bbbbbb"
android:textSize="14sp" />
<Button
android:id="@+id/update"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/update" />
<Button
android:id="@+id/set_password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/set_password" />
<Button
android:id="@+id/stopAgent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/stopAgent" />
<Button
android:id="@+id/restartAgent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/restartAgent" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</RelativeLayout>

View File

@ -1,8 +0,0 @@
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
style="?android:attr/spinnerDropDownItemStyle"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#00ff00"
android:ellipsize="marquee" />

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="#00FF00" >
</TextView>

View File

@ -1,475 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="5dp" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/last_values_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/last_values"
android:textSize="18sp"
android:textStyle="bold" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/lastContactInfo_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/img_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:padding="5dp"
android:src="@drawable/logo" />
<TextView
android:id="@+id/latitude_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/lastContactInfo_label_str"
android:text="@string/latitude"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/latitude_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/latitude_label_str" />
<TextView
android:id="@+id/longitude_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/latitude_value_str"
android:text="@string/longitude"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/longitude_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/longitude_label_str" />
<TextView
android:id="@+id/battery_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/longitude_value_str"
android:text="@string/battery_level"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/battery_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/battery_label_str" />
<!--
<TextView
android:id="@+id/orientation_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/orientation"
android:textSize="14dip"
android:textStyle="bold"
android:layout_below="@id/battery_value_str"
/>
<TextView
android:id="@+id/orientation_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/orientation_label_str"
/>
<TextView
android:id="@+id/proximity_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/proximity"
android:textSize="14dip"
android:textStyle="bold"
android:layout_below="@id/battery_value_str"
/>
<TextView
android:id="@+id/proximity_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/proximity_label_str"
/>
-->
</RelativeLayout>
<TextView
android:id="@+id/task_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/task"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/task_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/memory_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/memory"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/memory_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.18" >
<TableRow
android:id="@+id/tableRow0"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/uptime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/uptime"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/uptime_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/sim_id"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sim_id"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/sim_id_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/network_operator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="5dip"
android:text="@string/network_operator"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/network_operator_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/network_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/network_type"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/network_type_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow4"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/phone_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/phone_type"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/phone_type_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/signal_strength"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/signal_strength"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/signal_strength_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow6"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/sms_received"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sms_received"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/sms_received_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow7"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/sms_sent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sms_sent"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/sms_sent_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow8"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/incoming_calls"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/incoming_calls"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/incoming_calls_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow9"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/missed_calls"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/missed_calls"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/missed_calls_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow10"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/outgoing_calls"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/outgoing_calls"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/outgoing_calls_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow11"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/receive_bytes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/receive_bytes"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/receive_bytes_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow12"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/transmit_bytes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/transmit_bytes"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/transmit_bytes_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:id="@+id/tableRow13"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/roaming"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/roaming"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/roaming_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
<!--
for debugging
<Button
android:id="@+id/start"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="@string/start" />
<Button
android:id="@+id/stop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Stop" />
<Button
android:id="@+id/get_xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Get xml" />
<TextView
android:id="@+id/xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:text="..." />
<Button
android:id="@+id/hide_xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hide xml" />
-->
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@ -1,216 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="5sp" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/last_values_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/last_values"
android:textSize="18sp"
android:textStyle="bold"
android:layout_gravity="center_horizontal"
/>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/lastContactInfo_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textStyle="bold"
/>
<ImageView
android:id="@+id/img_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:src="@drawable/logo"
android:layout_alignParentRight="true"
android:contentDescription="Logo"
/>
<TextView
android:id="@+id/latitude_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/latitude"
android:textSize="14sp"
android:textStyle="bold"
android:layout_below="@id/lastContactInfo_label_str"
/>
<TextView
android:id="@+id/latitude_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/latitude_label_str"
/>
<TextView
android:id="@+id/longitude_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/longitude"
android:textSize="14sp"
android:textStyle="bold"
android:layout_below="@id/latitude_value_str"
/>
<TextView
android:id="@+id/longitude_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/longitude_label_str"
/>
<TextView
android:id="@+id/battery_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/battery_level"
android:textSize="14sp"
android:textStyle="bold"
android:layout_below="@id/longitude_value_str"
/>
<TextView
android:id="@+id/battery_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/battery_label_str"
/>
<!--<TextView
android:id="@+id/orientation_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/orientation"
android:textSize="14dip"
android:textStyle="bold"
android:layout_below="@id/battery_value_str"
/>
<TextView
android:id="@+id/orientation_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/orientation_label_str"
/>
<TextView
android:id="@+id/proximity_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/proximity"
android:textSize="14dip"
android:textStyle="bold"
android:layout_below="@id/battery_value_str"
/>
<TextView
android:id="@+id/proximity_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/proximity_label_str"
/>-->
</RelativeLayout>
<TextView
android:id="@+id/task_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/task"
android:textSize="14sp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/task_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/memory_label_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/memory"
android:textSize="14sp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/memory_value_str"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/uptime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/uptime"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/uptime_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<!-- for debugging
<Button
android:id="@+id/start"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/start"
/>
<Button
android:id="@+id/stop"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Stop"
/>
<Button
android:id="@+id/get_xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Get xml"
/>
<TextView
android:id="@+id/xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="..."
android:gravity="left"
/>
<Button
android:id="@+id/hide_xml"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hide xml"
/>
-->
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/welcome"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/ImageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="false"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:contentDescription="Pandroid logo"
android:paddingTop="20dp"
android:src="@drawable/pandroid_large" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ImageView1"
android:layout_centerHorizontal="true"
android:paddingTop="20dp"
android:text="Version 3.0"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="40sp" />
</RelativeLayout>

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/help_button_menu_options"
android:icon="@drawable/help"
android:title="@string/help_label_str"/>
<item
android:id="@+id/about_button_menu_options"
android:icon="@drawable/about"
android:title="@string/about_label_str"/>
</menu>

View File

@ -1,155 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"Status"</string>
<string name="setup_str">"Einrichten"</string>
<string name="app_name">"Pandroid Agenten"</string>
<string name="interval">"Intervall"</string>
<string name="update">"Update-Konfiguration."</string>
<string name="reset">"Standardwert übernehmen"</string>
<string name="serverAddr">"Server-Adresse:"</string>
<string name="serverPort">"Serverport"</string>
<string name="confTitle">"Pandroid Agent Configuration"</string>
<string name="agent">"Verkäufer:"</string>
<string name="gpsMode">"GPS-Modus"</string>
<string name="gpsCurrent">"Aktuelle Position (hohe Akku Kosten)"</string>
<string name="summary">"Aktuelle Konfiguration:"</string>
<string name="starStop">"Neu starten"</string>
<string name="gpsLast">"Letzte bekannte Position"</string>
<string name="loading">"Ladevorgang läuft..."</string>
<string name="last_values">"Letzten Werte"</string>
<string name="latitude">"Breitengrad"</string>
<string name="longitude">"Längengrad"</string>
<string name="battery_level">"Akkustand"</string>
<string name="orientation">"Ausrichtung"</string>
<string name="proximity">"Nähe"</string>
<string name="incorrect_update">"Konnte nicht aktualisiert werden Optionen."</string>
<string name="task">"Aufgaben"</string>
<string name="memory">"Speicher"</string>
<string name="help_label_str">"hilfe"</string>
<string name="about_label_str">"Über"</string>
<string name="licensed_under_gpl_str">"Lizenziert unter GPL v2"</string>
<string name="develop_team_str">"Entwickler: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"</string>
<string name="pandroid_agent_str">"Pandroid Agenten"</string>
<string name="pandroid_agent_copyright">"Copyright © 2011 Artica"</string>
<string name="about_desc">"Pandroid Agenten logo"</string>
<string name="help_str">"hilfe"</string>
<string formatted="false" name="memory_avaliable_str">"Avaliable:%iKb Total: %iKb"</string>
<string name="never_str">"Nie."</string>
<string name="now_str">"Jetzt."</string>
<string name="seconds_str">"Vor Sekunden"</string>
<string name="conctact_error_str">"Kontakt Fehler"</string>
<string name="last_contact_str">"Letzter Kontakt:\n"</string>
<string name="help_text_str">"
Pandroid Agent ist ein Android Pandora FMS Agent für Pandora FMS. &lt;p&gt; 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. &lt;p&gt; Sehen Sie mehr über Pandora FMS unter &lt;a href=\"http://pandorafms.com\"&gt; http://pandoraFMS.com &lt;/a&gt; &lt;/p&gt;
"</string>
<string name="start">"anfang"</string>
<string name="correct_start">"Verbindung erfolgreich"</string>
<string name="config_saved">"Konfiguration erfolgreich gespeichert"</string>
<string name="contact_stopped_str">"Agent angehalten"</string>
<string name="seconds">"Sekunden"</string>
<string name="running">"Laufen"</string>
<string name="stopped">"Gestoppt"</string>
<string name="sim_id">"Sim ID:"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"Gerät bis Zeit:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"Empfangene SMS: "</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"Gesendete SMS: "</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"Netzbetreiber:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"Netzwerktyp:"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"Handytyp:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"Signalstärke:"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"Eingehende Anrufe:"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"Entgangene Anrufe"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"Abgehende Anrufe:"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"Empfangene Bytes:"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"Bytes übertragen:"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"Roaming:"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"Passwort eingeben"</string>
<string name="password_no_match">"Die Passwörter stimmen nicht überein."</string>
<string name="password_error">"Fehler"</string>
<string name="password">"passwort"</string>
<string name="password_length">"Kennwort muss länger als 6 Zeichen lang sein!"</string>
<string name="password_incorrect">"Falsches Passwort"</string>
<string name="password_set">"Set Password (leer lassen für keine)"</string>
<string name="password_enter">"Passwort eingeben:"</string>
<string name="password_repeat">"Kennwort bestätigen:"</string>
<string name="password_choose_text">"Wollen Sie ein Passwort einrichten?"</string>
<string name="password_checkbox">"Dont wieder fragen"</string>
<string name="password_created">"Kennwort erfolgreich erstellt"</string>
<string name="password_removed">"Kein Passwort gesetzt"</string>
<string name="set_password">"Erstellen/Passwort ändern"</string>
<string name="mobileWebURL">"Mobile-Server URL:"</string>
<string name="go_to_web">"Zur mobilen Website"</string>
<string name="bufferSize">XML Puffergröße(KB)</string>
<string name="enter">"Eingangsbereich"</string>
<string name="back">"zurück"</string>
<string name="yes">"ja"</string>
<string name="no">"nein"</string>
<string name="simIDReport">"Bericht Sim ID"</string>
<string name="gpsReport">"Bericht GPS-Daten"</string>
<string name="memoryReport">"Bericht verfügbaren Speicher"</string>
<string name="taskToReport">Wählen Aufgabe zu berichten:</string>
<string name="taskReport">"Bericht Aufgabe"</string>
<string name="uptimeReport">"Bericht Gerät up-Zeit"</string>
<string name="NetworkOperatorReport">"Bericht Netzbetreiber"</string>
<string name="NetworkTypeReport">"Bericht Netztyp"</string>
<string name="PhoneTypeReport">"Bericht Telefontyp"</string>
<string name="SignalStrengthReport">"Bericht Signalstärke"</string>
<string name="ReceivedSMSReport">"Bericht Anzahl der empfangenen SMS"</string>
<string name="SentSMSReport">"Bericht Anzahl der gesendeten SMS"</string>
<string name="IncomingCallsReport">"Bericht Anzahl der eingehenden Anrufe"</string>
<string name="MissedCallsReport">"Bericht Anzahl der entgangenen Anrufe"</string>
<string name="OutgoingCallsReport">"Bericht Anzahl der ausgehenden Anrufe"</string>
<string name="BytesReceivedReport">"Bericht Menge der empfangenen mobilen Daten"</string>
<string name="BytesSentReport">"Bericht Menge der gesendeten mobile Daten"</string>
<string name="HelloSignalReport">"Bericht hallo Signal"</string>
<string name="BatteryLevelReport">"Bericht Akkustand"</string>
<string name="RoamingReport">"Melden, wenn Roaming"</string>
<string name="InventoryReport">Bericht Bestandsaufnahme der installierten Apps</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agent ausgeführt wird</string>
<string name="ticker_text">Verbindend…</string>
<string name="stopAgent">Stopp Agent</string>
<string name="restartAgent">Starten Agent</string>
<string name="notificationCheck">anzeigen Benachrichtigung, wenn läuft?</string>
</resources>

View File

@ -1,162 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<resources>
<string name="const_string_preferences">PANDROID_DATA</string>
<string name="status_str">Status</string>
<string name="setup_str">Setup</string>
<string name="app_name">Pandroid Agent</string>
<string name="interval">Interval:</string>
<string name="update">Update configuration.</string>
<string name="reset">Set default</string>
<string name="serverAddr">Server Address:</string>
<string name="serverPort">Server Port:</string>
<string name="confTitle">Pandroid Agent Configuration</string>
<string name="agent">Agent name:</string>
<string name="gpsMode">GPS Mode</string>
<string name="gpsCurrent">Current position (high battery cost)</string>
<string name="summary">Current configuration:</string>
<string name="starStop">Restart</string>
<string name="gpsLast">Last known position</string>
<string name="loading">Loading…</string>
<string name="last_values">Last values</string>
<string name="latitude">Latitude</string>
<string name="longitude">Longitude</string>
<string name="battery_level">Battery Level</string>
<string name="orientation">Orientation</string>
<string name="proximity">Proximity</string>
<string name="incorrect_update">Could not update options.</string>
<string name="task">Task</string>
<string name="memory">Memory</string>
<string name="help_label_str">Help</string>
<string name="about_label_str">About</string>
<string name="licensed_under_gpl_str">Licensed under GPL v2</string>
<string name="develop_team_str">Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland</string>
<string name="pandroid_agent_str">Pandroid Agent</string>
<string name="pandroid_agent_copyright">Copyright © 2011 Artica</string>
<string name="about_desc">Pandroid Agent logo</string>
<string name="help_str">Help</string>
<string name="memory_avaliable_str" formatted="false">Available: &#37;iKb Total: &#37;iKb</string>
<string name="never_str">Never.</string>
<string name="now_str">Now.</string>
<string name="seconds_str">seconds ago.</string>
<string name="conctact_error_str">Contact error</string>
<string name="last_contact_str">Last Contact:\n</string>
<string name="help_text_str">
Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. &lt;p&gt;
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.&lt;p&gt;See more about Pandora FMS at &lt;a href=&quot;http://pandorafms.com&quot;&gt;http://pandoraFMS.com&lt;/a&gt;&lt;/p&gt;
</string>
<string name="start">Start</string>
<string name="correct_start">Connection successful</string>
<string name="config_saved">Configuration saved successfully</string>
<string name="contact_stopped_str">Agent Stopped</string>
<string name="seconds">Seconds</string>
<string name="running">Running</string>
<string name="stopped">Stopped</string>
<string name="sim_id">Sim ID:</string>
<string name="sim_id_value"/>
<string name="uptime">Device up time:</string>
<string name="uptime_value"/>
<string name="sms_received">Received SMS: </string>
<string name="sms_received_value"/>
<string name="sms_sent">Sent SMS: </string>
<string name="sms_sent_value"/>
<string name="network_operator">Network operator:</string>
<string name="network_operator_value"/>
<string name="network_type">Network type:</string>
<string name="network_type_value"/>
<string name="phone_type">Phone type:</string>
<string name="phone_type_value"/>
<string name="signal_strength">Signal strength:</string>
<string name="signal_strength_value"/>
<string name="incoming_calls">Incoming calls:</string>
<string name="incoming_calls_value"/>
<string name="missed_calls">Missed calls:</string>
<string name="missed_calls_value"/>
<string name="outgoing_calls">outgoing calls:</string>
<string name="outgoing_calls_value"/>
<string name="receive_bytes">Bytes received:</string>
<string name="receive_bytes_value"/>
<string name="transmit_bytes">Bytes transmitted:</string>
<string name="transmit_bytes_value"/>
<string name="roaming">Roaming:</string>
<string name="roaming_value"/>
<string name="alert_dialog_password">Enter password</string>
<string name="password_no_match">Passwords do not match!</string>
<string name="password_error">error</string>
<string name="password">password</string>
<string name="password_length">password must be longer than 6 characters!</string>
<string name="password_incorrect">Wrong password!</string>
<string name="password_set">Set Password(leave blank for none)</string>
<string name="password_enter">Enter Password</string>
<string name="password_repeat">Repeat Password</string>
<string name="password_choose_text">Do you want to set a password?</string>
<string name="password_checkbox">Don\'t ask again</string>
<string name="password_created">Password successfully created</string>
<string name="password_removed">No password set</string>
<string name="set_password">Create/Change password</string>
<string name="mobileWebURL">Mobile server URL:</string>
<string name="go_to_web">View Mobile site</string>
<string name="bufferSize">XML Buffer Size (KB) (Enterprise Only)</string>
<string name="enter">enter</string>
<string name="back">back</string>
<string name="yes">yes</string>
<string name="no">no</string>
<string name="simIDReport">Report Sim ID</string>
<string name="gpsReport">Report GPS data</string>
<string name="memoryReport">Report available memory</string>
<string name="taskToReport">Choose task to report:</string>
<string name="taskReport">Report task</string>
<string name="uptimeReport">Report device up time</string>
<string name="NetworkOperatorReport">Report network operator</string>
<string name="NetworkTypeReport">Report network type</string>
<string name="PhoneTypeReport">Report phone type</string>
<string name="SignalStrengthReport">Report signal strength</string>
<string name="ReceivedSMSReport">Report number of received SMS</string>
<string name="SentSMSReport">Report number of sent SMS</string>
<string name="IncomingCallsReport">Report number of incoming calls</string>
<string name="MissedCallsReport">Report number of missed calls</string>
<string name="OutgoingCallsReport">Report number of outgoing calls</string>
<string name="BytesReceivedReport">Report amount of received mobile data</string>
<string name="BytesSentReport">Report amount of sent mobile data</string>
<string name="HelloSignalReport">Report Hello Signal</string>
<string name="BatteryLevelReport">Report battery level</string>
<string name="RoamingReport">Report if roaming</string>
<string name="InventoryReport">Report inventory of installed apps</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agent is running</string>
<string name="ticker_text">Connecting…</string>
<string name="stopAgent">Stop Agent</string>
<string name="restartAgent">Restart Agent</string>
<string name="notificationCheck">Show notification when running?</string>
</resources>

View File

@ -1,162 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<resources>
<string name="const_string_preferences">PANDROID_DATA</string>
<string name="status_str">Estado</string>
<string name="setup_str">Configuración</string>
<string name="app_name">Agente Pandroid</string>
<string name="interval">Intervalo:</string>
<string name="update">Actualiza conf.</string>
<string name="reset">Por defecto</string>
<string name="serverAddr">Url del server:</string>
<string name="serverPort">Puerto del server:</string>
<string name="confTitle">Configuración del Agente Pandroid</string>
<string name="agent">Nombre Agente:</string>
<string name="gpsMode">Modo GPS</string>
<string name="gpsCurrent">Actual posición (alto consumo de batería)</string>
<string name="summary">Configuración actual:</string>
<string name="starStop">Reiniciar</string>
<string name="gpsLast">Última posición conocida</string>
<string name="loading">Cargando…</string>
<string name="last_values">Últimos valores</string>
<string name="latitude">Latitud</string>
<string name="longitude">Longitud</string>
<string name="battery_level">Nivel de batería</string>
<string name="orientation">Orientación</string>
<string name="proximity">Proximidad</string>
<string name="incorrect_update">Incorrecta actulización configuración.</string>
<string name="task">Tarea</string>
<string name="memory">Memoria</string>
<string name="help_label_str">Ayuda</string>
<string name="about_label_str">Sobre</string>
<string name="licensed_under_gpl_str">Licenciado bajo GPL v2</string>
<string name="develop_team_str">Desarrolladores: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland</string>
<string name="pandroid_agent_str">Agente Pandroid</string>
<string name="pandroid_agent_copyright">Copyright © 2011 Artica</string>
<string name="about_desc">Pandroid Agent logotipo</string>
<string name="help_str">Ayuda</string>
<string name="memory_avaliable_str" formatted="false">Disponible: &#37;iKb Total: &#37;iKb</string>
<string name="never_str">Nunca.</string>
<string name="now_str">Ahora.</string>
<string name="seconds_str">segundos</string>
<string name="conctact_error_str">Error contacto</string>
<string name="last_contact_str">Último contacto:\n</string>
<string name="help_text_str">
Pandroid Agent es un agente en Android para Pandora FMS. &lt;p&gt;
Pandora FMS es un sistema de monitorizaci&#243;n de prop&#243;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.&lt;p&gt;Puedes informarte de esto y mas en Pandora FMS en &lt;a href=&quot;http://pandorafms.com&quot;&gt;http://pandorafms.com&lt;/a&gt;&lt;/p&gt;
</string>
<string name="start">Iniciar</string>
<string name="correct_start">Conexion con éxito</string>
<string name="config_saved">Configuración guardado con éxito</string>
<string name="contact_stopped_str">Agente parado</string>
<string name="seconds">Segundos</string>
<string name="running">En marcha</string>
<string name="stopped">Parado</string>
<string name="sim_id">Sim ID:</string>
<string name="sim_id_value"/>
<string name="uptime">Tiempo encendido:</string>
<string name="uptime_value"/>
<string name="sms_received">SMS recibido: </string>
<string name="sms_received_value"/>
<string name="sms_sent">SMS enviado: </string>
<string name="sms_sent_value"/>
<string name="network_operator">Operador:</string>
<string name="network_operator_value"/>
<string name="network_type">Tipo red:</string>
<string name="network_type_value"/>
<string name="phone_type">Tipo móvil:</string>
<string name="phone_type_value"/>
<string name="signal_strength">Potencia señal:</string>
<string name="signal_strength_value"/>
<string name="incoming_calls">Llamadas recibidas:</string>
<string name="incoming_calls_value"/>
<string name="missed_calls">Llamadas perdidas:</string>
<string name="missed_calls_value"/>
<string name="outgoing_calls">Llamadas enviadas:</string>
<string name="outgoing_calls_value"/>
<string name="receive_bytes">Bytes recibidos:</string>
<string name="receive_bytes_value"/>
<string name="transmit_bytes">Bytes transmitidos:</string>
<string name="transmit_bytes_value"/>
<string name="roaming">Roaming:</string>
<string name="roaming_value"/>
<string name="alert_dialog_password">Introducir contraseña</string>
<string name="password_no_match">Las contraseñas son diferentes!</string>
<string name="password_error">error</string>
<string name="password">contraseña</string>
<string name="password_length">La contraseña debe contener mas de 6 carácteres!</string>
<string name="password_incorrect">Contraseña incorrecta</string>
<string name="password_set">Crear contraseña</string>
<string name="password_enter">Introducir contraseña</string>
<string name="password_repeat">Repetir contraseña</string>
<string name="password_choose_text">Quieres poner una contraseña?</string>
<string name="password_checkbox">No vuelves a preguntar</string>
<string name="password_created">Contraseña creada</string>
<string name="password_removed">Sin contraseña</string>
<string name="set_password">Crear/Cambiar contraseña</string>
<string name="mobileWebURL">URL de servidor móvil:</string>
<string name="go_to_web">Ver sitio móvil</string>
<string name="bufferSize">Tamaño de búfer XML (KB) (Enterprise solamente)</string>
<string name="enter">Intro</string>
<string name="back">Volver</string>
<string name="yes">si</string>
<string name="no">no</string>
<string name="simIDReport">Reporta Sim ID</string>
<string name="gpsReport">Reporta datos GPS</string>
<string name="memoryReport">Reporta estado memoria</string>
<string name="taskToReport">Elegir tarea a reportar:</string>
<string name="taskReport">Reporta tarea</string>
<string name="uptimeReport">Reporta tiempo encendido</string>
<string name="NetworkOperatorReport">Reporta operador de red</string>
<string name="NetworkTypeReport">Reporta tipo de red</string>
<string name="PhoneTypeReport">Reporta tipo de móvil</string>
<string name="SignalStrengthReport">Reporta potencia de señal</string>
<string name="ReceivedSMSReport">Reporta numero de SMS recibido</string>
<string name="SentSMSReport">Reporta numero de SMS enviado</string>
<string name="IncomingCallsReport">Reporta numero de llamadas recibidas</string>
<string name="MissedCallsReport">Reporta numero de llamadas perdidas</string>
<string name="OutgoingCallsReport">Reporta numero de llamadas salientes</string>
<string name="BytesReceivedReport">Reporta bytes recibidos</string>
<string name="BytesSentReport">Reporta bytes enviados</string>
<string name="HelloSignalReport">Reporta señal de saludo</string>
<string name="BatteryLevelReport">Reporta nivel de bateria</string>
<string name="RoamingReport">Reporta si Roaming</string>
<string name="InventoryReport">Reporta inventario de las aplicaciones instaladas</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agente en ejecución</string>
<string name="ticker_text">Conectando…</string>
<string name="stopAgent">Detener Agente</string>
<string name="restartAgent">Reiniciar Agente</string>
<string name="notificationCheck">Mostrar notificación mientras en ejecución?</string>
</resources>

View File

@ -1,155 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"État"</string>
<string name="setup_str">"Paramétrer"</string>
<string name="app_name">"Agent Pandroid"</string>
<string name="interval">"Fréquence :"</string>
<string name="update">"Paramètres de mise à jour"</string>
<string name="reset">"Définir par Défaut"</string>
<string name="serverAddr">"Adresse du serveur:"</string>
<string name="serverPort">"Server Port:"</string>
<string name="confTitle">"Configuration de l'agent Pandroid"</string>
<string name="agent">"Nom de l'agent:"</string>
<string name="gpsMode">"Mode GPS"</string>
<string name="gpsCurrent">"Position actuelle (coût de la batterie élevée)"</string>
<string name="summary">"Configuration actuelle:"</string>
<string name="starStop">"Redém."</string>
<string name="gpsLast">"Dernière position connue"</string>
<string name="loading">"Chargement…"</string>
<string name="last_values">"Dernières valeurs"</string>
<string name="latitude">"Latitude"</string>
<string name="longitude">"Longitude"</string>
<string name="battery_level">"Niveau de charge de la batterie"</string>
<string name="orientation">"Orientation"</string>
<string name="proximity">"proximité"</string>
<string name="incorrect_update">"Impossible de mettre à jour les options."</string>
<string name="task">"Tâche"</string>
<string name="memory">"Lecteur"</string>
<string name="help_label_str">"aide"</string>
<string name="about_label_str">"Sur"</string>
<string name="licensed_under_gpl_str">"Sous licence GPL v2"</string>
<string name="develop_team_str">"Développeurs: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"</string>
<string name="pandroid_agent_str">"Agent Pandroid"</string>
<string name="pandroid_agent_copyright">"Copyright © 2011 Artica"</string>
<string name="about_desc">"Logo Agent Pandroid"</string>
<string name="help_str">"aide"</string>
<string formatted="false" name="memory_avaliable_str">"Disponible: %iKb Total: %iKb"</string>
<string name="never_str">"Jamais."</string>
<string name="now_str">"Maintenant."</string>
<string name="seconds_str">"secondes"</string>
<string name="conctact_error_str">"Contactez erreur"</string>
<string name="last_contact_str">"dernier Contact:\n"</string>
<string name="help_text_str">"
Agent Pandroid est un Android Pandora FMS agent de Pandora FMS. &lt;p&gt; 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. &lt;p&gt; Voir plus sur Pandora FMS à &lt;a href=\"http://pandorafms.com\"&gt; http://pandoraFMS.com &lt;/ a&gt; &lt;/ p&gt;
"</string>
<string name="start">"Commence"</string>
<string name="correct_start">"Connexion réussie"</string>
<string name="config_saved">"Configuration sauvegardée avec succès"</string>
<string name="contact_stopped_str">"Agent arrêté"</string>
<string name="seconds">"Secondes"</string>
<string name="running">"En marche"</string>
<string name="stopped">"Arrêté"</string>
<string name="sim_id">"Sim ID:"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"Dispositif le temps de:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"SMS reçus: "</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"SMS envoyés: "</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"Opérateur de réseau:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"Type de réseau :"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"Type de téléphone:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"Intensité du signal :"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"Appels entrants:"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"Appels manqués"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"Appels sortants:"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"Octets reçus :"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"Octets transmis:"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"Itinérance :"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"Saisir votre mot de passe"</string>
<string name="password_no_match">"Les mots de passe diffèrent."</string>
<string name="password_error">"Erreur."</string>
<string name="password">"mot de passe"</string>
<string name="password_length">"mot de passe doit être plus long que 6 caractères!"</string>
<string name="password_incorrect">"Mot de passe incorrect"</string>
<string name="password_set">"Définir mot de passe (laisser vide pour aucun)"</string>
<string name="password_enter">"Saisir le mot de passe"</string>
<string name="password_repeat">"Répéter mot de passe"</string>
<string name="password_choose_text">"Ne vous souhaitez définir un mot de passe?"</string>
<string name="password_checkbox">"Ne pas demander à nouveau"</string>
<string name="password_created">"Mot de passe créé avec succès"</string>
<string name="password_removed">"Aucun mot de passe défini"</string>
<string name="set_password">"Créer/Modifier le mot de passe"</string>
<string name="mobileWebURL">"URL du serveur Mobile:"</string>
<string name="go_to_web">"Voir le site mobile"</string>
<string name="bufferSize">taille du buffer XML(KB)</string>
<string name="enter">"Entrer…"</string>
<string name="back">"arrière"</string>
<string name="yes">"oui"</string>
<string name="no">"no"</string>
<string name="simIDReport">"Rapport Sim ID"</string>
<string name="gpsReport">"Rapport de données GPS"</string>
<string name="memoryReport">"Signaler mémoire disponible"</string>
<string name="taskToReport">Choisissez tâche de rendre compte:</string>
<string name="taskReport">"Tâche de rapport"</string>
<string name="uptimeReport">"Signaler appareil le temps"</string>
<string name="NetworkOperatorReport">"Signaler opérateur de réseau"</string>
<string name="NetworkTypeReport">"Rapport type de réseau"</string>
<string name="PhoneTypeReport">"Rapport type de téléphone"</string>
<string name="SignalStrengthReport">"Rapport puissance du signal"</string>
<string name="ReceivedSMSReport">"Rapport du nombre de SMS reçus"</string>
<string name="SentSMSReport">"Indiquer le nombre de SMS envoyés"</string>
<string name="IncomingCallsReport">"Rapport numéro des appels entrants"</string>
<string name="MissedCallsReport">"Rapport numéro des appels manqués"</string>
<string name="OutgoingCallsReport">"Numéro de rapport des appels sortants"</string>
<string name="BytesReceivedReport">"Rapport du montant reçu données mobiles"</string>
<string name="BytesSentReport">"Rapport du montant envoyé des données mobiles"</string>
<string name="HelloSignalReport">"Rapport Signal Bonjour"</string>
<string name="BatteryLevelReport">"Signaler niveau de la batterie"</string>
<string name="RoamingReport">"Signaler roaming"</string>
<string name="InventoryReport">Inventaire Rapport d\'applications installées</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agent est exécuté</string>
<string name="ticker_text">Connexion en cours…</string>
<string name="stopAgent">Cesser Agent</string>
<string name="restartAgent">Redémarrez l\'Agent</string>
<string name="notificationCheck">Afficher la notification lors de l\'exécution?</string>
</resources>

View File

@ -1,155 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"Stato"</string>
<string name="setup_str">"Setup"</string>
<string name="app_name">"Agente Pandroid"</string>
<string name="interval">"Periodicità"</string>
<string name="update">"Aggiornare la configurazione."</string>
<string name="reset">"Imposta predefinito"</string>
<string name="serverAddr">"Indirizzo server:"</string>
<string name="serverPort">"Porta Server"</string>
<string name="confTitle">"Configurazione dell'agente Pandroid"</string>
<string name="agent">"Venditore:"</string>
<string name="gpsMode">"Modalità GPS"</string>
<string name="gpsCurrent">"Posizione attuale (costo batteria alto)"</string>
<string name="summary">"La configurazione attuale:"</string>
<string name="starStop">"Riavviare"</string>
<string name="gpsLast">"Ultima posizione nota"</string>
<string name="loading">"Caricamento…"</string>
<string name="last_values">"Ultimi valori"</string>
<string name="latitude">"Latitudine"</string>
<string name="longitude">"Longitudine"</string>
<string name="battery_level">"Livello batteria:"</string>
<string name="orientation">"Orientamento"</string>
<string name="proximity">"Prossimità"</string>
<string name="incorrect_update">"Impossibile aggiornare le opzioni."</string>
<string name="task">"Attività:"</string>
<string name="memory">"Memoria"</string>
<string name="help_label_str">"guida"</string>
<string name="about_label_str">"Circa"</string>
<string name="licensed_under_gpl_str">"Distribuito sotto licenza GPL v2"</string>
<string name="develop_team_str">"Sviluppatori: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"</string>
<string name="pandroid_agent_str">"Agente Pandroid"</string>
<string name="pandroid_agent_copyright">"Copyright © 2011 Artica"</string>
<string name="about_desc">"Agente logo Pandroid"</string>
<string name="help_str">"guida"</string>
<string formatted="false" name="memory_avaliable_str">"Disponibile: %iKb Total: %iKb"</string>
<string name="never_str">"Mai"</string>
<string name="now_str">"Ora."</string>
<string name="seconds_str">"secondi fa"</string>
<string name="conctact_error_str">"Contatto errore"</string>
<string name="last_contact_str">"Ultimo contatto:\n"</string>
<string name="help_text_str">"
Agente Pandroid è un Android Pandora FMS agente di Pandora FMS. &lt;p&gt; 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. &lt;p&gt; Vedi di più su Pandora FMS all'indirizzo &lt;a href=\"http://pandorafms.com\"&gt; http://pandoraFMS.com &lt;/a&gt; &lt;/p&gt;
"</string>
<string name="start">"inizio"</string>
<string name="correct_start">"Collegamento riuscito!"</string>
<string name="config_saved">"Configurazione salvata con successo"</string>
<string name="contact_stopped_str">"Agente Arrestato"</string>
<string name="seconds">"secondi"</string>
<string name="running">"In esecuzione"</string>
<string name="stopped">"Arrestato"</string>
<string name="sim_id">"Sim ID:"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"Dispositivo Tempo:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"SMS ricevuti: "</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"SMS Inviati: "</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"Operatore di rete:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"Tipo di rete:"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"Tipo di telefono:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"Intensità segnale:"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"Chiamate entranti"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"Chiamate senza risposta"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"Chiamate in uscita:"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"Byte ricevuti:"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"Byte trasmessi:"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"Roaming in corso:"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"Inserisci password"</string>
<string name="password_no_match">"Le password non corrispondono"</string>
<string name="password_error">"errore"</string>
<string name="password">"Password"</string>
<string name="password_length">"password deve essere più lungo di 6 caratteri!"</string>
<string name="password_incorrect">"Password errata"</string>
<string name="password_set">"Imposta password (lasciare in bianco per nessuno)"</string>
<string name="password_enter">"Inserire il password:"</string>
<string name="password_repeat">"Conferma password:"</string>
<string name="password_choose_text">"Vuoi impostare una password?"</string>
<string name="password_checkbox">"Non chiedere più"</string>
<string name="password_created">"Password con successo creato"</string>
<string name="password_removed">"Nessuna password impostata"</string>
<string name="set_password">"Crea / Modifica password"</string>
<string name="mobileWebURL">"URL del server Mobile:"</string>
<string name="go_to_web">"Visualizza sito Mobile"</string>
<string name="bufferSize">Dimensione buffer XML(KB)</string>
<string name="enter">"Invio"</string>
<string name="back">"indietro"</string>
<string name="yes">"sì"</string>
<string name="no">"no"</string>
<string name="simIDReport">"Report Sim ID"</string>
<string name="gpsReport">"Report dati GPS"</string>
<string name="memoryReport">"Report memoria disponibile"</string>
<string name="taskToReport">Scegli compito di segnalare:</string>
<string name="taskReport">"Relazione della task"</string>
<string name="uptimeReport">"Report dispositivo Tempo"</string>
<string name="NetworkOperatorReport">"Protocollo operativo di rete"</string>
<string name="NetworkTypeReport">"Tipo di rapporto di rete"</string>
<string name="PhoneTypeReport">"Report tipo di telefono"</string>
<string name="SignalStrengthReport">"Report potenza del segnale"</string>
<string name="ReceivedSMSReport">"Numero del rapporto della SMS ricevuti"</string>
<string name="SentSMSReport">"Numero del rapporto di SMS inviati"</string>
<string name="IncomingCallsReport">"Numero del rapporto delle chiamate in arrivo"</string>
<string name="MissedCallsReport">"Numero del rapporto di chiamate perse"</string>
<string name="OutgoingCallsReport">"Numero del rapporto delle chiamate in uscita"</string>
<string name="BytesReceivedReport">"Quantità Relazione ricevuti dati mobili"</string>
<string name="BytesSentReport">"Quantità Relazione inviati dati mobili"</string>
<string name="HelloSignalReport">"Report Ciao segnale"</string>
<string name="BatteryLevelReport">"Livello segnala batteria"</string>
<string name="RoamingReport">"Segnalare se il roaming"</string>
<string name="InventoryReport">Rapporto inventario delle applicazioni installate</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agente è in esecuzione</string>
<string name="ticker_text">Connessione in corso…</string>
<string name="stopAgent">arresto Agente</string>
<string name="restartAgent">Riavviare Agente</string>
<string name="notificationCheck">Mostra notifica durante l\'esecuzione?</string>
</resources>

View File

@ -1,152 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"状態"</string>
<string name="setup_str">"設定"</string>
<string name="app_name">"Pandroid エージェント"</string>
<string name="interval">"間隔"</string>
<string name="update">"設定更新"</string>
<string name="reset">"デフォルトの設定"</string>
<string name="serverAddr">"サーバーアドレス:"</string>
<string name="serverPort">"サーバーポート:"</string>
<string name="confTitle">"Pandroid エージェントの設定"</string>
<string name="agent">"エージェント名:"</string>
<string name="gpsMode">"GPSモード"</string>
<string name="gpsCurrent">"現在位置(高バッテリ消費)"</string>
<string name="summary">"現在の設定"</string>
<string name="starStop">"再起動"</string>
<string name="gpsLast">"最後の既知の位置"</string>
<string name="loading">"ロード中…"</string>
<string name="last_values">"最新の値"</string>
<string name="latitude">"緯度"</string>
<string name="longitude">"経度"</string>
<string name="battery_level">"バッテリー残量"</string>
<string name="orientation">"向き"</string>
<string name="proximity">"近接"</string>
<string name="incorrect_update">"オプションを更新できませんでした。"</string>
<string name="task">"タスク"</string>
<string name="memory">"メモリー"</string>
<string name="help_label_str">"ヘルプ"</string>
<string name="about_label_str">"情報"</string>
<string name="licensed_under_gpl_str">"GPL v2の下でライセンス"</string>
<string name="develop_team_str">"開発者Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"</string>
<string name="pandroid_agent_str">"Pandroid エージェント"</string>
<string name="pandroid_agent_copyright">"著作権 © 2011 Artica"</string>
<string name="about_desc">"Pandroid エージェントロゴ"</string>
<string name="help_str">"ヘルプ"</string>
<string formatted="false" name="memory_avaliable_str">"空き容量:%iKb 合計容量:%iKb"</string>
<string name="never_str">"なし"</string>
<string name="now_str">"今すぐ。"</string>
<string name="seconds_str">"秒前"</string>
<string name="conctact_error_str">"接続エラー"</string>
<string name="last_contact_str">"最近の接続\n"</string>
<string name="help_text_str">"PandroidエージェントはPandora FMSのためのAndroid向けエージェントです。 &lt;p&gt; Pandora FMSは、統合監視システムです。Androidエージェントでは、あなたのAndroidデバイスからあらゆる情報を取得することができます。GPSの位置情報、バッテリーの残量、メモリの空き容量、プロセスが動作しているかどうか、デバイスの起動してからの経過時間、アプリの動作を確認するためのHELLOシグナル、インストールされている全てのアプリケーションのインベントリ情報を取得できます。また、Android携帯では、SIMカードのID情報、SMSの送受信数、着信/不在着信/発信数、ネットワークオペレータとタイプ、電話機タイプ、携帯電波強度、携帯送受信データバイト数を取得できます。全ソースコードは公開されています。&lt;p&gt;Pandora FMS に関する詳細は以下を参照してください。&lt;a href=&quot;http://pandorafms.com&quot;&gt;http://pandoraFMS.com&lt;/a&gt;&lt;/p&gt;"</string>
<string name="start">"開始"</string>
<string name="correct_start">"接続成功"</string>
<string name="config_saved">"設定を保存しました"</string>
<string name="contact_stopped_str">"エージェント停止"</string>
<string name="seconds">"秒"</string>
<string name="running">"実行中"</string>
<string name="stopped">"停止"</string>
<string name="sim_id">"SIM ID"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"起動時間:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"受信 SMS"</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"送信 SMS"</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"ネットワークオペレータ:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"ネットワークの種類"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"携帯電話の種類:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"電波強度:"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"着信履歴"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"不在着信:"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"発信履歴"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"受信バイト数:"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"送信バイト数"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"ローミング:"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"パスワードを入力"</string>
<string name="password_no_match">"パスワードが一致しません"</string>
<string name="password_error">"エラー"</string>
<string name="password">"パスワード"</string>
<string name="password_length">"パスワードは6文字以上でなければなりません"</string>
<string name="password_incorrect">"パスワードが間違っています。"</string>
<string name="password_set">"パスワードを設定(なしの場合は空白のままにします)"</string>
<string name="password_enter">"パスワード入力"</string>
<string name="password_repeat">"パスワード再入力"</string>
<string name="password_choose_text">"パスワードを設定しますか?"</string>
<string name="password_checkbox">"再確認しない"</string>
<string name="password_created">"パスワードが作成されました"</string>
<string name="password_removed">"パスワードが設定されていません"</string>
<string name="set_password">"パスワードの作成/変更"</string>
<string name="mobileWebURL">"モバイル·サーバーのURL"</string>
<string name="go_to_web">"携帯サイトを見る"</string>
<string name="bufferSize">XML バッファサイズ(KB)</string>
<string name="enter">"入力"</string>
<string name="back">"戻る"</string>
<string name="yes">"はい"</string>
<string name="no">"いいえ"</string>
<string name="simIDReport">"SIM番号をレポート"</string>
<string name="gpsReport">"GPSデータをレポート"</string>
<string name="memoryReport">"利用可能メモリをレポート"</string>
<string name="taskToReport">報告するには、タスクを選択してください:</string>
<string name="taskReport">"タスクをレポート"</string>
<string name="uptimeReport">"起動時間をレポート"</string>
<string name="NetworkOperatorReport">"ネットワークオペレータをレポート"</string>
<string name="NetworkTypeReport">"ネットワークタイプをレポート"</string>
<string name="PhoneTypeReport">"電話機タイプをレポート"</string>
<string name="SignalStrengthReport">"電波強度をレポート"</string>
<string name="ReceivedSMSReport">"受信SMS数をレポート"</string>
<string name="SentSMSReport">"送信SMS数をレポート"</string>
<string name="IncomingCallsReport">"着信数をレポート"</string>
<string name="MissedCallsReport">"不在着信をレポート"</string>
<string name="OutgoingCallsReport">"発信数をレポート"</string>
<string name="BytesReceivedReport">"受信データ量をレポート"</string>
<string name="BytesSentReport">"送信データ量をレポート"</string>
<string name="HelloSignalReport">"Helloシグナルをレポート"</string>
<string name="BatteryLevelReport">"バッテリー残量をレポート"</string>
<string name="RoamingReport">"ローミング中かどうかをレポート"</string>
<string name="InventoryReport">インストールされているアプリのレポート</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">エージェント実行中</string>
<string name="ticker_text">接続中…</string>
<string name="stopAgent">エージェント停止</string>
<string name="restartAgent">エージェント再起動</string>
<string name="notificationCheck">実行時に警告を表示しますか?</string>
</resources>

View File

@ -1,155 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"Estado"</string>
<string name="setup_str">"Configuração:"</string>
<string name="app_name">"Agente Pandroid"</string>
<string name="interval">"Intervalo"</string>
<string name="update">"Atualizar a configuração."</string>
<string name="reset">"Definir padrão"</string>
<string name="serverAddr">"Endereço do Servidor:"</string>
<string name="serverPort">"Porta do Servidor:"</string>
<string name="confTitle">"Configuração do agente Pandroid"</string>
<string name="agent">"Nome do agente:"</string>
<string name="gpsMode">"Modo de GPS"</string>
<string name="gpsCurrent">"Posição atual (custo de baterias de alta)"</string>
<string name="summary">"Configuração atual:"</string>
<string name="starStop">"Reiniciar"</string>
<string name="gpsLast">"Última posição conhecida"</string>
<string name="loading">"A carregar…"</string>
<string name="last_values">"Os últimos valores"</string>
<string name="latitude">"Latitude"</string>
<string name="longitude">"Longitude"</string>
<string name="battery_level">"Nível de Bateria"</string>
<string name="orientation">"Orientação"</string>
<string name="proximity">"Proximidade"</string>
<string name="incorrect_update">"Não foi possível atualizar opções."</string>
<string name="task">"Funções:"</string>
<string name="memory">"Memória"</string>
<string name="help_label_str">"Help (Ajuda)"</string>
<string name="about_label_str">"Acerca de"</string>
<string name="licensed_under_gpl_str">"Licenciado sob a GPL v2"</string>
<string name="develop_team_str">"Desenvolvedores: Sergio M. Zarzuelo, Miguel de Dios, Marcos Holanda"</string>
<string name="pandroid_agent_str">"Agente Pandroid"</string>
<string name="pandroid_agent_copyright">"Copyright © 2011 Artica"</string>
<string name="about_desc">"Logotipo Agente Pandroid"</string>
<string name="help_str">"Help (Ajuda)"</string>
<string formatted="false" name="memory_avaliable_str">"Avaliable: %iKb Total: %iKb"</string>
<string name="never_str">"Nunca."</string>
<string name="now_str">"Ja! "</string>
<string name="seconds_str">"segundo atrás."</string>
<string name="conctact_error_str">"Fale erro"</string>
<string name="last_contact_str">"Último Contato:\n"</string>
<string name="help_text_str">"
Agente Pandroid é um Android Pandora agente de Pandora. &lt;p&gt; 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. &lt;p&gt; Veja mais sobre Pandora em &lt;a href=\"http://pandorafms.com\"&gt; http://pandoraFMS.com &lt;/a&gt; &lt;/p&gt;
"</string>
<string name="start">"Início"</string>
<string name="correct_start">"Conexão bem-sucedida"</string>
<string name="config_saved">"Configuração salva com sucesso"</string>
<string name="contact_stopped_str">"Agente Parado"</string>
<string name="seconds">"Segundos"</string>
<string name="running">"Executar"</string>
<string name="stopped">"Parado"</string>
<string name="sim_id">"Sim ID:"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"Dispositivo o tempo:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"SMS recebidos: "</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"SMS enviado: "</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"Operador de rede:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"Tipo de rede:"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"Tipo de telefone:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"Intensidade do sinal"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"As chamadas recebidas:"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"Chamadas perdidas:"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"Chamadas de saída:"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"Bytes recebidos:"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"Bytes transmitidos:"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"Roaming:"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"Digite a passe"</string>
<string name="password_no_match">"As senhas não combinam!"</string>
<string name="password_error">"error"</string>
<string name="password">"Palavra-passe: "</string>
<string name="password_length">"senha deve ter mais de 6 caracteres!"</string>
<string name="password_incorrect">"Passe errada"</string>
<string name="password_set">"Definir senha (deixe em branco para nenhum)"</string>
<string name="password_enter">"Digite a passe"</string>
<string name="password_repeat">"Repita Senha"</string>
<string name="password_choose_text">"Você quer definir uma senha?"</string>
<string name="password_checkbox">"Não pergunte novamente"</string>
<string name="password_created">"Senha com sucesso criado"</string>
<string name="password_removed">"Nenhum conjunto senha"</string>
<string name="set_password">"Criar / Alterar senha"</string>
<string name="mobileWebURL">"URL do servidor móvel:"</string>
<string name="go_to_web">"Veja o site móvel"</string>
<string name="bufferSize">Tamanho do buffer XML(KB)</string>
<string name="enter">"Enter"</string>
<string name="back">"voltar"</string>
<string name="yes">"SIM"</string>
<string name="no">"não"</string>
<string name="simIDReport">"Relatório Sim ID"</string>
<string name="gpsReport">"Relatório de dados GPS"</string>
<string name="memoryReport">"Relatório memória disponível"</string>
<string name="taskToReport">Escolha tarefa de relatar:</string>
<string name="taskReport">"Tarefa de relatório"</string>
<string name="uptimeReport">"Relatório dispositivo o tempo"</string>
<string name="NetworkOperatorReport">"Relatório operador de rede"</string>
<string name="NetworkTypeReport">"Tipo de rede relatório"</string>
<string name="PhoneTypeReport">"Tipo de telefone relatório"</string>
<string name="SignalStrengthReport">"Relatam a intensidade do sinal"</string>
<string name="ReceivedSMSReport">"Número do relatório de SMS recebidas"</string>
<string name="SentSMSReport">"Número do relatório de SMS enviados"</string>
<string name="IncomingCallsReport">"Número do relatório de chamadas recebidas"</string>
<string name="MissedCallsReport">"Número do relatório de chamadas não atendidas"</string>
<string name="OutgoingCallsReport">"Número do relatório de chamadas de saída"</string>
<string name="BytesReceivedReport">"Relatório do montante recebido dados móveis"</string>
<string name="BytesSentReport">"Relatório do montante enviado dados móveis"</string>
<string name="HelloSignalReport">"Relatório Olá sinal"</string>
<string name="BatteryLevelReport">"Relatório de nível da bateria"</string>
<string name="RoamingReport">"Relatar se de roaming"</string>
<string name="InventoryReport">Relatório de inventário de aplicativos instalados</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agente está em execução</string>
<string name="ticker_text">Ligar…</string>
<string name="stopAgent">pare de Agente</string>
<string name="restartAgent">reinicie Agente</string>
<string name="notificationCheck">Mostrar notificação quando a correr?</string>
</resources>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MainTheme" parent="@android:style/Theme.Holo.NoActionBar">
<item name="android:typeface">normal</item>
<item name="android:textSize">15sp</item>
</style>
</resources>

View File

@ -1,154 +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.
--><resources>
<string name="const_string_preferences">"PANDROID_DATA"</string>
<string name="status_str">"*状态*"</string>
<string name="setup_str">"设置"</string>
<string name="app_name">"Pandroid代理"</string>
<string name="interval">"周期"</string>
<string name="update">"更新配置。"</string>
<string name="reset">"设置默认值"</string>
<string name="serverAddr">"服务器地址:"</string>
<string name="serverPort">"服务器端口:"</string>
<string name="confTitle">"Pandroid代理配置"</string>
<string name="agent">"机构名称:"</string>
<string name="gpsMode">"GPS模式"</string>
<string name="gpsCurrent">"当前位置(电池成本高)"</string>
<string name="summary">"配置:"</string>
<string name="starStop">"重新启动(Restart)"</string>
<string name="gpsLast">"最后已知的位置"</string>
<string name="loading">"载入中…"</string>
<string name="last_values">"最后一个值"</string>
<string name="latitude">"纬度"</string>
<string name="longitude">"经度"</string>
<string name="battery_level">"电池电量:"</string>
<string name="orientation">"位置和方向"</string>
<string name="proximity">"n.接近,接近度"</string>
<string name="incorrect_update">"无法更新选项。"</string>
<string name="task">"人物"</string>
<string name="memory">"内存"</string>
<string name="help_label_str">"愿意帮助"</string>
<string name="about_label_str">"关于"</string>
<string name="licensed_under_gpl_str">"根据GPL v2的许可"</string>
<string name="develop_team_str">"开发商Sergio M. Zarzuelo, Miguel de Dios, Mark Holland"</string>
<string name="pandroid_agent_str">"Pandroid代理"</string>
<string name="pandroid_agent_copyright">"版权所有 © 2011 Artica"</string>
<string name="about_desc">"Pandroid代理标志"</string>
<string name="help_str">"愿意帮助"</string>
<string formatted="false" name="memory_avaliable_str">"可供选择:%iKb 总计:%iKb"</string>
<string name="never_str">"从来没有。"</string>
<string name="now_str">"现在,。"</string>
<string name="seconds_str">"秒前。"</string>
<string name="conctact_error_str">"联系错误"</string>
<string name="last_contact_str">"最后联系方式\n"</string>
<string name="help_text_str">"Pandroid代理是一个Android潘多拉潘多拉柔性制造系统FMS代理。 &lt;P&gt;潘多拉FMS是一个通用的监控系统。随着Android代理你可以得到各种信息设备GPS定位电池留多少可用内存设备监控如果一个进程处于活动状态的时间因为该装置被打开一个HELLO信号监测装置的应用程序清点所有已安装的应用程序以及Android手机的SIM卡的SIM卡ID的信息发送/接收的短信数量,呼叫来电/未接/输出,网络运营商和类型,手机类型,在手机信号强度,通过移动网络发送/接收的字节数。提供完整的源代码。&lt;p&gt;查看更多关于潘多拉FMS &lt;a href=\"http://pandorafms.com\"&gt; http://pandoraFMS.com &lt;/a&gt; &lt;/p&gt;"</string>
<string name="start">"开始"</string>
<string name="correct_start">"连接成功"</string>
<string name="config_saved">"配置保存成功"</string>
<string name="contact_stopped_str">"代理停止"</string>
<string name="seconds">"秒"</string>
<string name="running">"运行"</string>
<string name="stopped">"已停止"</string>
<string name="sim_id">"辛ID"</string>
<string name="sim_id_value">""</string>
<string name="uptime">"设备时间:"</string>
<string name="uptime_value">""</string>
<string name="sms_received">"收到短信:"</string>
<string name="sms_received_value">""</string>
<string name="sms_sent">"发送短信:"</string>
<string name="sms_sent_value">""</string>
<string name="network_operator">"网络运营商:"</string>
<string name="network_operator_value">""</string>
<string name="network_type">"网络类型:"</string>
<string name="network_type_value">""</string>
<string name="phone_type">"手机类型:"</string>
<string name="phone_type_value">""</string>
<string name="signal_strength">"信号强度:"</string>
<string name="signal_strength_value">""</string>
<string name="incoming_calls">"来电:"</string>
<string name="incoming_calls_value">""</string>
<string name="missed_calls">"未接来电:"</string>
<string name="missed_calls_value">""</string>
<string name="outgoing_calls">"拨出电话:"</string>
<string name="outgoing_calls_value">""</string>
<string name="receive_bytes">"接收的字节数:"</string>
<string name="receive_bytes_value">""</string>
<string name="transmit_bytes">"传输字节数:"</string>
<string name="transmit_bytes_value">""</string>
<string name="roaming">"漫游:"</string>
<string name="roaming_value">""</string>
<string name="alert_dialog_password">"“输入密码”;
"</string>
<string name="password_no_match">"“密码不相符”;"</string>
<string name="password_error">"錯誤"</string>
<string name="password">"密码"</string>
<string name="password_length">"密码长度必须大于6个字符"</string>
<string name="password_incorrect">"密码错误"</string>
<string name="password_set">"设置密码(留空为空)"</string>
<string name="password_enter">"输入密码"</string>
<string name="password_repeat">"密码重复"</string>
<string name="password_choose_text">"你要设置的密码?"</string>
<string name="password_checkbox">"不要再问"</string>
<string name="password_created">"成功地创建密码"</string>
<string name="password_removed">"没有设置密码"</string>
<string name="set_password">"创建/更改密码"</string>
<string name="mobileWebURL">"Mobile服务器的URL"</string>
<string name="go_to_web">"查看手机网站"</string>
<string name="bufferSize">XML 緩衝區大小(KB)</string>
<string name="enter">"进入"</string>
<string name="back">"背面"</string>
<string name="yes">"是"</string>
<string name="no">"没有"</string>
<string name="simIDReport">"报告SIM卡ID"</string>
<string name="gpsReport">"报告GPS数据"</string>
<string name="memoryReport">"报告可用内存"</string>
<string name="taskToReport">選擇任務報告:</string>
<string name="taskReport">"报告任务"</string>
<string name="uptimeReport">"报告设备的正常运行时间"</string>
<string name="NetworkOperatorReport">"报告网络运营商"</string>
<string name="NetworkTypeReport">"报告网络类型"</string>
<string name="PhoneTypeReport">"举报电话类型"</string>
<string name="SignalStrengthReport">"报告的信号强度"</string>
<string name="ReceivedSMSReport">"报告数收到的短信"</string>
<string name="SentSMSReport">"报告编号发送短信"</string>
<string name="IncomingCallsReport">"报告的来电"</string>
<string name="MissedCallsReport">"报告的未接来电"</string>
<string name="OutgoingCallsReport">"报告编号拨出电话"</string>
<string name="BytesReceivedReport">"收到的移动台的数据的量是"</string>
<string name="BytesSentReport">"报告发送的移动数据量"</string>
<string name="HelloSignalReport">"报告hello信号"</string>
<string name="BatteryLevelReport">"报告电池电量"</string>
<string name="RoamingReport">"报告如果漫游"</string>
<string name="InventoryReport">报告库存安装的应用程序</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">代理正在运行</string>
<string name="ticker_text">连…</string>
<string name="stopAgent">停止代理</string>
<string name="restartAgent">重新启动代理</string>
<string name="notificationCheck">运行时显示通知?</string>
</resources>

View File

@ -1,162 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<resources>
<string name="const_string_preferences">PANDROID_DATA</string>
<string name="status_str">Status</string>
<string name="setup_str">Setup</string>
<string name="app_name">Pandroid Agent</string>
<string name="interval">Interval:</string>
<string name="update">Update configuration.</string>
<string name="reset">Set default</string>
<string name="serverAddr">Server Address:</string>
<string name="serverPort">Server Port:</string>
<string name="confTitle">Pandroid Agent Configuration</string>
<string name="agent">Agent name:</string>
<string name="gpsMode">GPS Mode</string>
<string name="gpsCurrent">Current position (high battery cost)</string>
<string name="summary">Current configuration:</string>
<string name="starStop">Restart</string>
<string name="gpsLast">Last known position</string>
<string name="loading">Loading…</string>
<string name="last_values">Last values</string>
<string name="latitude">Latitude</string>
<string name="longitude">Longitude</string>
<string name="battery_level">Battery Level</string>
<string name="orientation">Orientation</string>
<string name="proximity">Proximity</string>
<string name="incorrect_update">Could not update options.</string>
<string name="task">Task</string>
<string name="memory">Memory</string>
<string name="help_label_str">Help</string>
<string name="about_label_str">About</string>
<string name="licensed_under_gpl_str">Licensed under GPL v2</string>
<string name="develop_team_str">Developers: Sergio M. Zarzuelo, Miguel de Dios, Mark Holland</string>
<string name="pandroid_agent_str">Pandroid Agent</string>
<string name="pandroid_agent_copyright">Copyright © 2011 Artica</string>
<string name="about_desc">Pandroid Agent logo</string>
<string name="help_str">Help</string>
<string name="memory_avaliable_str" formatted="false">Available: &#37;iKb Total: &#37;iKb</string>
<string name="never_str">Never.</string>
<string name="now_str">Now.</string>
<string name="seconds_str">seconds ago.</string>
<string name="conctact_error_str">Contact error</string>
<string name="last_contact_str">Last Contact:\n</string>
<string name="help_text_str">
Pandroid Agent is an Android Pandora FMS agent for Pandora FMS. &lt;p&gt;
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.&lt;p&gt;See more about Pandora FMS at &lt;a href=&quot;http://pandorafms.com&quot;&gt;http://pandoraFMS.com&lt;/a&gt;&lt;/p&gt;
</string>
<string name="start">Start</string>
<string name="correct_start">Connection successful</string>
<string name="config_saved">Configuration saved successfully</string>
<string name="contact_stopped_str">Agent Stopped</string>
<string name="seconds">Seconds</string>
<string name="running">Running</string>
<string name="stopped">Stopped</string>
<string name="sim_id">Sim ID:</string>
<string name="sim_id_value"/>
<string name="uptime">Device up time:</string>
<string name="uptime_value"/>
<string name="sms_received">Received SMS: </string>
<string name="sms_received_value"/>
<string name="sms_sent">Sent SMS: </string>
<string name="sms_sent_value"/>
<string name="network_operator">Network operator:</string>
<string name="network_operator_value"/>
<string name="network_type">Network type:</string>
<string name="network_type_value"/>
<string name="phone_type">Phone type:</string>
<string name="phone_type_value"/>
<string name="signal_strength">Signal strength:</string>
<string name="signal_strength_value"/>
<string name="incoming_calls">Incoming calls:</string>
<string name="incoming_calls_value"/>
<string name="missed_calls">Missed calls:</string>
<string name="missed_calls_value"/>
<string name="outgoing_calls">Outgoing calls:</string>
<string name="outgoing_calls_value"/>
<string name="receive_bytes">Bytes received:</string>
<string name="receive_bytes_value"/>
<string name="transmit_bytes">Bytes transmitted:</string>
<string name="transmit_bytes_value"/>
<string name="roaming">Roaming:</string>
<string name="roaming_value"/>
<string name="alert_dialog_password">Enter password</string>
<string name="password_no_match">Passwords do not match!</string>
<string name="password_error">error</string>
<string name="password">password</string>
<string name="password_length">password must be longer than 6 characters!</string>
<string name="password_incorrect">Wrong password</string>
<string name="password_set">Set Password(leave blank for none)</string>
<string name="password_enter">Enter Password</string>
<string name="password_repeat">Repeat Password</string>
<string name="password_choose_text">Do you want to set a password?</string>
<string name="password_checkbox">Don\'t ask again</string>
<string name="password_created">Password successfully created</string>
<string name="password_removed">No password set</string>
<string name="set_password">Create/Change password</string>
<string name="mobileWebURL">Mobile server URL:</string>
<string name="go_to_web">View Mobile site</string>
<string name="bufferSize">XML Buffer Size (KB) (Enterprise Only)</string>
<string name="enter">enter</string>
<string name="back">back</string>
<string name="yes">yes</string>
<string name="no">no</string>
<string name="simIDReport">Report Sim ID</string>
<string name="gpsReport">Report GPS data</string>
<string name="memoryReport">Report available memory</string>
<string name="taskToReport">Choose task to report:</string>
<string name="taskReport">Report task</string>
<string name="uptimeReport">Report device up time</string>
<string name="NetworkOperatorReport">Report network operator</string>
<string name="NetworkTypeReport">Report network type</string>
<string name="PhoneTypeReport">Report phone type</string>
<string name="SignalStrengthReport">Report signal strength</string>
<string name="ReceivedSMSReport">Report number of received SMS</string>
<string name="SentSMSReport">Report number of sent SMS</string>
<string name="IncomingCallsReport">Report number of incoming calls</string>
<string name="MissedCallsReport">Report number of missed calls</string>
<string name="OutgoingCallsReport">Report number of outgoing calls</string>
<string name="BytesReceivedReport">Report amount of received mobile data</string>
<string name="BytesSentReport">Report amount of sent mobile data</string>
<string name="HelloSignalReport">Report Hello Signal</string>
<string name="BatteryLevelReport">Report battery level</string>
<string name="RoamingReport">Report if roaming</string>
<string name="InventoryReport">Report inventory of installed apps</string>
<string name="notification_title">Pandroid</string>
<string name="notification_message">Agent is running</string>
<string name="ticker_text">Connecting…</string>
<string name="stopAgent">Stop Agent</string>
<string name="restartAgent">Restart Agent</string>
<string name="notificationCheck">Show notification when running?</string>
</resources>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MainTheme" parent="@android:style/Theme.NoTitleBar">
<item name="android:typeface">normal</item>
<item name="android:textSize">15sp</item>
</style>
</resources>

View File

@ -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("<a href='http://pandorafms.com/'>PandoraFMS.com</a>"));
text.setMovementMethod(LinkMovementMethod.getInstance());
}
}

View File

@ -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 "";
}
}

View File

@ -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));
}
}

View File

@ -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());
}
}

View File

@ -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();
}
}

View File

@ -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);
}
}

View File

@ -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();
}
}

View File

@ -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

View File

@ -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<String, String> listProcesses;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
listProcesses = new HashMap<String, String>();
//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<Void, Void, Void> {
@Override
protected Void doInBackground(Void... params) {
getProcess();
return null;
}
private void getProcess() {
listProcesses.clear();
ActivityManager activityManager = (ActivityManager)getApplication().getSystemService(ACTIVITY_SERVICE);
List<RunningAppProcessInfo> 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<String> listProcess = new ArrayList<String>(listProcesses.keySet());
ArrayList<String> listProcessHuman = new ArrayList<String>(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<String>(listProcesses.keySet());
listProcessHuman = new ArrayList<String>(listProcesses.values());
position = listProcess.indexOf(Core.task);
}
}
ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(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<String> listProcess = new ArrayList<String>(listProcesses.keySet());
ArrayList<String> listProcessHuman = new ArrayList<String>(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);
}
}

View File

@ -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);
}
}
}

View File

@ -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<Void, Void, Void> {
@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("");
}
*/
}

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="libs/commons-lang3-3.0.1.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -1,33 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Pandroid Agent v1.0_Tablet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -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

View File

@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="pandroid.agent"
android:versionCode="2003"
android:versionName="3.0" >
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:name="android.hardware.sensor.light" />
<uses-feature android:name="android.hardware.location" />
<uses-sdk android:minSdkVersion="8" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".PandroidAgent"
android:configChanges="keyboardHidden|orientation"
android:label="@string/app_name"
android:theme="@style/MainTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Status" />
<activity android:name=".Setup" />
<service
android:name="pandroid.agent.PandroidAgentListener"
android:enabled="true" />
<receiver android:name="pandroid.agent.EventReceiver" />
<receiver
android:name="pandroid.agent.StartMyServiceAtBootReceiver"
android:enabled="true"
android:exported="true"
android:label="StartMyServiceAtBootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service
android:name="pandroid.agent.MyStartService"
android:enabled="true" />
<activity
android:name=".About"
android:label="@string/pandroid_agent_str"
android:theme="@android:style/Theme.Dialog" />
<activity
android:name=".Help"
android:label="@string/help_str"
android:theme="@android:style/Theme.Dialog" />
</application>
</manifest>

View File

@ -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 <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(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 *;
}

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,55 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dip" >
<ImageView
android:id="@+id/img_logo_about"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0"
android:contentDescription="@string/about_desc"
android:src="@drawable/pandroid_large" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pandroid_agent_copyright" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/licensed_under_gpl_str" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:text="@string/develop_team_str" />
<TextView
android:id="@+id/url_pandora"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
</LinearLayout>

Some files were not shown because too many files have changed in this diff Show More