* src/pandroid/agent/PandroidAgentListener.java,
src/pandroid/agent/PandroidAgentTentacle.java: removed the java
warning that the class of tentacle have a method with the same name
as a constructor.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* modules/pandora_module_logevent.h: Updated the EventID mask. The
Windows Event Log Viewer seems to ignore the most significant 16
bits of the event id.
* modules/pandora_module_logevent.cc: Do not discard existing
events when running in debug mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8644 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent: Changed the regexp used to retrieve ip addresses to
avoid locale related problems.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent.redhat.spec: Make absolute calls to chkconfig. Add the
service before enabling it.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8463 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_agent.conf: removed old references to ODBC feature
not supported anymore. New defaults (inventory, remote config and
IP detection now by default).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/pandora_wmi.cc: When concatenating IP addresses, do not
output a comma unless the IP can be parsed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* windows/winevt.h: Added to repository. Headers for Wevtapi.dll.
* modules/pandora_module_logevent.cc,
modules/pandora_module_logevent.h,
pandora_strutils.cc,
pandora_strutils.h: Added support for the new XML based eventing model
introduced in Windows Vista.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* .classpath, .settings, .settings/org.eclipse.jdt.core.prefs:
added garbage files necesaries for eclipse.
* AndroidManifest.xml: update the version.
* bin/AndroidManifest.xml: erased temp file from project compilation
in eclipse.
* proguard.cfg: fixed the file and change the deprecated
instructions.
* src/pandroid/agent/PandroidAgentListener.java: added the code for
to magical change to open source version.
* src/pandroid/agent/PandroidAgentTentacle.java,
src/pandroid/agent/PandroidAgent.java: improved the source code
style.
* res/values/strings.xml, res/values-en/strings.xml,
res/values-es/strings.xml: updated the texts.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/PandroidAgentListener.java: Changed xml
header to UTF-8 encoding.
* src/pandroid/agent/PandroidAgentTentacle.java: Changed data
String to byte array.
* Pandroid Agent v3.0_UTF8.apk: Added apk that sends xml in
utf-8 encoding.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/PandroidAgentListener.java: Fixed
values not showing up on status view when pandroid activity
killed. Corrected spelling mistake of receiveBytes. Removed
last_gps_contact module, wasn't implemented.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/PandroidAgentListener.java: Moved the
loading of the config values to an asynctask to force that updating
the values and then contacting the server and creating the
notification happens after all the config values have been loaded.
* src/pandroid/agent/Status.java: On resuming the app
the loading of the last values has been moved to an asynctask to force
updating the ui to wait for all the values to be loaded.
* src/pandroid/agent/*.java: Applied the Correct Indentation function
of eclipse to all code.
* res/layout/*.xml: Applied the Correct Indentation function
of eclipse to all code.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8127 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/PandroidAgentListener.java: Changed gps module
to update coordinates after a time of "interval" AND "15 metres" if
no change then uses lastKnownLocation.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8093 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* layout/spinner.xml: Changed spinnner text color to green.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8077 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* AndroidMainfest.xml: Set theme to themes.xml, moved permissions
and uses to top of file.
* layout/spinner.xml: Theme for spinner that sets text
color to grey.
* values/themes.xml: For setting theme on devices < sdk 11
(android 3.0)
* values-v11/themes.xml: For setting theme on device above
sdk 11
* src/pandroid/agent/Setup.java: Set spinnner to use new
theme for setting text color
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* assets/database/pandroid.zip: Removed as no longer needed
* assets/libs/android-sqlite-asset-helper: Removed as no longer
needed
* layout/setup.xml: Disabled autocorrect on server address
and agent name text edits. Changed all dip to sp. Changed order
of some objects
* layout/setupnosim.xml: Disabled autocorrect on server address
and agent name text edits. Changed all dip to sp. Changed order
of some objects
* src/pandroid/agent/Core.java: Reordered lots of code
to improve legibility.
* src/pandroid/agent/DataBaseHandler.java: Removed as
no longer needed
* src/pandroid/agent/DataBaseHandler.java: Removed as
no longer needed
* src/pandroid/agent/HelperSharedPreferences: Removed
as no longer needed
* src/pandroid/agent/PandroidAgent.java: Removed all relating
to SharedPreferences
* src/pandroid/agent/PandroidAgentListener.java: loadConf on service
start. Restored SharedPreferences getter and setter. Notification
shows the whole time alarm enabled, on stop agent dissapears. On
connection shows message(unavoidable at current time).
* src/pandroid/agent/PandroidAgentTentacle.java: Changed socket
timeout to 2000ms.
* src/pandroid/agent/Setup.java: Reordered lots of code
to improve legibility.
* src/pandroid/agent/SMSBroadcastReceiver.java: Returned
to using local SharedPreferences.
* values: Added value for choosing task to report, odd suggestions.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8075 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* Pandroid Agent v3.0_iso-8859-1.apk: Restored proper default values
for server and interval.
* src/pandroid/agent/Core.java: Restored proper default values
for server and interval.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8073 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Reverted to previous commit
SharedPreferences.
* src/pandroid/agent/PandroidAgent.java: Reverted to previous commit
SharedPreferences.
* src/pandroid/agent/PandroidAgentListener.java: Notification only
shows when attempting to send xml, can't work out how to have it
persistent and not dissapear when Pandroid activity is destroyed.
* src/pandroid/agent/SMSBroadcastReceiver.java: Reverted to previous
commit SharedPreferences.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* assets/database/pandroid.zip: Added buffer size initial value.
* layout: Added buffer size text edit.
* src/pandroid/agent/Core.java: Added variable for buffer size
with initial value of 256KB. Moved all preference reading/editing
to HelperSharedPreferences.
* src/pandroid/agent/DataBaseHandler.java: Now extends
sqliteassethelper library.
* src/pandroid/agent/HelperSharedPreferences: New helper class in
attempt to mitigate SharedPreferences loss.
* src/pandroid/agent/PandroidAgent.java: Removed SharedPreferences
references and methods.
* src/pandroid/agent/PandroidAgentListener.java: Rewritten all get
and put preferences to use HelperSharedPreferences instead.
* src/pandroid/agent/Setup.java: Added views for buffer size.
* src/pandroid/agent/SMSBroadcastReceiver.java: Changed to use
HelperSharedPreferences.
* values: Added buffer size to all strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Single SharedPreferences and
Editor objects that are retrieved when needed. getSharedData()
and putSharedData() moved to this class from
PandroidAgentListener.
* src/pandroid/agent/PandroidAgent.java: Instantiate static
SharedPreferences and Editor objects with getters for each.
* src/pandroid/agent/PandroidAgentListener.java: buildXML() and
contact() are now background tasks. Implemented buffer, if xml fails
to send it stays in the system, next succesful conection after sends
all of the unsent xml files, current buffer size = 99 files.
* src/pandroid/agent/PandroidAgentTentacle.java: Changed socket to
timeout after 1000ms.
* src/pandroid/agent/SMSBroadcastReceiver.java: Changed SharedPreferences
to static version from PandroidAgent.java
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to include latest
changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8069 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Separate load and store
methods for SharedPreferences and database.
* src/pandroid/agent/PandroidAgent.java: Values retrieved from
database onCreate. onPause and onDestroy values are saved to
database.
* src/pandroid/agent/PandroidAgentListener.java: Reverted to using
SharedPreferences at runtime, database used when app not in view.
Added module as proof of iso-8859-1 now working.
* Pandroid Agent v3.0_iso-8859-1.apk: For testing whether
configuration is no longer lost after an amount of time.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Changed get and update
database values methods to support new DataBaseHandler.
* src/pandroid/agent/DataBaseHandler.java: Complete rewrite.
* src/pandroid/agent/PandroidAgent.java: Removed initiate
database, database now supplied with build.
* src/pandroid/agent/PandroidAgentListener.java: changed
SimIDReport to simIDReport to reflect database.
* assets/database/pandroid.zip: zipped sqlite3
database containing all default values.
* libs/android-sqlite-asset-helper.jar: library to facilitate
database operations. Only temporarily being used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8052 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Migrated from shared
preferences to sqlite database. Method to create and
initialize database with default values.
* src/pandroid/agent/DataBaseHandler.java: Creates
a database and provides methods for interaction.
* src/pandroid/agent/DataHandler.java: Objects for
facilitating interaction of data with the database.
* src/pandroid/agent/PandroidAgent.java: If first run
then creates and initializes database. Needs to be
replaced by copying default db that would ship with
pandroid.
* src/pandroid/agent/PandroidAgentListener.java: Adapted
get and put sharedData to use database instead,
* src/pandroid/agent/Setup.java: Reduced
configuration updates
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* src/pandroid/agent/Core.java: Migrated from shared
preferences to sqlite database. Method to create and
initialize database with default values.
* src/pandroid/agent/DataBaseHandler.java: Creates
a database and provides methods for interaction.
* src/pandroid/agent/DataHandler.java: Objects for
facilitating interaction of data with the database.
* src/pandroid/agent/PandroidAgent.java: If first run
then creates and initializes database. Needs to be
replaced by copying default db that would ship with
pandroid.
* src/pandroid/agent/PandroidAgentListener.java: Adapted
get and put sharedData to use database instead,
* src/pandroid/agent/Setup.java: Reduced
configuration updates
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8037 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer: Added support for NetBSD.
* NetBSD/pandora_agent, NetBSD/pandora_agent.conf: Added launcher
script and configuration file for NetBSD.
Contributed by Hiroki SHIMIZU. Thanks!
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8021 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f