ocsinventory-ng / androidagent Goto Github PK
View Code? Open in Web Editor NEWOCS Inventory NG Android Agent
Home Page: http://www.ocsinventory-ng.org/en/
License: GNU General Public License v2.0
OCS Inventory NG Android Agent
Home Page: http://www.ocsinventory-ng.org/en/
License: GNU General Public License v2.0
Android version : 8.1.0
Android agent version : OCSNG-Android-Agent.2.7
When i press "send inventory" on App, it returns the following error: "http communication error code 500"
looking at the Apache error log i find this information: [Wed Dec 15 14:31:24.902181 2021] [perl:error] [pid 750429] [client x.x.x.x:35567] Insecure dependency in open while running with -T switch at /usr/local/share/perl/5.30.0/Apache/Ocsinventory/Server/System.pm line 291.\n
Any questions or more information, just ask me and i'll send it.
Thanks in advance.
Automate android agent setup
Hello,
Is it any objection to made a migration to gradle and AndroidStudio ?
Regards,
Anael
Pas de remontée d'information.
Aucun des paths utilisés ne fournit l'information.
A défaut de mieux, faut-il prendre les BogoMIPS ?
Android version : 6.0.1 on Galaxy Tab A6
Sd card in the tablet
Android agent version : 2.3.0
Application crash when i try to inventory the device (Send inventory or Store inventory ) : "The application stopped"
I look for logs, but even with the option ticked, no log file found...
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version : 11
Android agent version : 2.7
Agent creates file, where section contains tag with name of SIM card provider, in my case "1&1".
part of XML:
26207
de
1&1
XML is not usable as "&" causes malforming of the XML file.
This is not accepted by apache.
log entry of apache:
[perl:error] [pid 34782] [client 192.168.178.134:44608] \nnot well-formed (invalid token) at line 163, column 16, byte 4427 at /usr/lib/x86_64-linux-gnu/perl5/5.32/XML/Parser.pm line 187.\nXML::Simple called at /usr/local/share/perl/5.32.1/Apache/Ocsinventory.pm line 218.\n
other devices without SIM card (Tablet, windows clients, ...) could be inventoried without issues.
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version : 5.1
Android agent version : 2.7
Describe your problem here
Failure [INSTALL_FAILED_OLDER_SDK]
Après envoi réussi de l'inventaire, s'affiche "NO_ACCONT_UPDATE"
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version :
9
Android agent version :
v.2.3.1
It does not correctly bring the MAC number, an essential item as an index to identify duplication of equipment. in my particular case it detects all the computers as 02: 00: 00: 00: 00: 00
Existe-t-il une documentation des éléments et des valeurs qui peuvent être envoyées au serveur OCS ?
J'ai seulement trouvé :
=> DTD génériques
=> Quelques valeurs par défaut
Mais pas de documentation expliquant les détails de chaque champs, ni les types de valeurs attendus
=> La documentation du plugin fusioninventory (revendiquant une compatibilité OCS) peut-elle être prise comme source ?
A-t-on une liste exhaustive des éléments, leur fonctionnalité, l'obligation de leur présence et leur valeur par défaut ?
ping @gillesdubois ;-)
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version : 9
Android agent version : 2.7
When OCS inventory returns the smartphone informations, the WiFi Mac address display as 02:00:00:00:00:00. I also tested with order android smartphones and the same thing happens.
Requiert réécriture de OCSProtocol.java car utilisation de org.apache.http.* (deprecated et deleted dans version 23)
Impossible d'afficher le menu dans la minSdkVersion => pas de configuration du serveur possible
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version : 11
Android agent version : 2.3.1
Describe your problem here
I have no serial number , the value is underknow
In app when i click on show my inventory
I have that only on Android 10 or 11 with Android 8 it's ok i have the serial number
Thanks for your support
Hi,
i want more info concerning this projects
thank you
Android version : 7.0
Android agent version : Latest
Please, inventory the phone number using the SIM Card query.
SIM Card query is already implemented, should be easy.
The APK attached to the latest release (OCSNG-Android-Agent-2.3.1.apk
) lacks its signature and thus does not verify:
$ apksigner verify OCSNG-Android-Agent-2.3.1.apk
DOES NOT VERIFY
ERROR: No JAR signatures
Can you please check and fix? Thanks!
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version :
android linux 6.0
Server pack: Kernel version: 3.18.19
Android agent version :
Android Agent 2.3.1
Describe your problem here
Access to information is basically normal, but no MAC address is obtained.
All MACs acquired by three exception terminals were wrong at 02:00:00:00:00:00.
sorry for my bed english.
Android version : All
Android agent version : Trunk
If you set HTTP Proxy to ON and don't set address and port, the application will crash when sending an inventory
Hello,
Under which license should be taked the code ?
All others OCS tools appears to be under GNU GPL v2.
No license file or headers are present on this application. Nor a contributor agreement.
Contributors to this code are :
@CedricCabessa
@cdpointpoint
@mortheres
@... Nicolas Ricquemaque
@AnaelMobilia
Have you - in archives - an agreement from these people to take the application under GNU GPL V2 ?
09-27 06:40:42.859 2576-2597/org.ocsinventoryng.android.agent:ocs_process E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: org.ocsinventoryng.android.agent:ocs_process, PID: 2576
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.IllegalArgumentException: Invalid path: /dev/block/vda
at android.os.StatFs.doStat(StatFs.java:46)
at android.os.StatFs.(StatFs.java:39)
at org.ocsinventoryng.android.sections.OCSDrive.(OCSDrive.java:39)
at org.ocsinventoryng.android.sections.OCSDrives.(OCSDrives.java:73)
at org.ocsinventoryng.android.actions.Inventory.BuildInventory(Inventory.java:113)
at org.ocsinventoryng.android.actions.Inventory.(Inventory.java:83)
at org.ocsinventoryng.android.actions.Inventory.getInstance(Inventory.java:174)
at org.ocsinventoryng.android.agent.AsyncOperations.doInBackground(AsyncOperations.java:76)
at org.ocsinventoryng.android.agent.AsyncOperations.doInBackground(AsyncOperations.java:36)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: android.system.ErrnoException: statvfs failed: EACCES (Permission denied)
at libcore.io.Posix.statvfs(Native Method)
at libcore.io.BlockGuardOs.statvfs(BlockGuardOs.java:304)
at android.system.Os.statvfs(Os.java:506)
at android.os.StatFs.doStat(StatFs.java:44)
at android.os.StatFs.(StatFs.java:39)
at org.ocsinventoryng.android.sections.OCSDrive.(OCSDrive.java:39)
at org.ocsinventoryng.android.sections.OCSDrives.(OCSDrives.java:73)
at org.ocsinventoryng.android.actions.Inventory.BuildInventory(Inventory.java:113)
at org.ocsinventoryng.android.actions.Inventory.(Inventory.java:83)
at org.ocsinventoryng.android.actions.Inventory.getInstance(Inventory.java:174)
at org.ocsinventoryng.android.agent.AsyncOperations.doInBackground(AsyncOperations.java:76)
at org.ocsinventoryng.android.agent.AsyncOperations.doInBackground(AsyncOperations.java:36)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
@gillesdubois sur pull request #8
J'ai testé ton nouvel agent tout build normalement et les test passent bien.
Néanmoins il y a un soucis sur l'icône de l'agent, c'est l'ancienne qui s'affiche.
Pourrait-tu remettre celle d'origine ou alors je peux t'envoyer la nouvelle ?
OCS Android Agent v2.1.5 report to server every wake frequency instead of inventory frequency (PROLOG_FREQ).
At server we have PROLOG_FREQ set to 5 hours and refuse forced inventory (INVENTORY_SESSION_ONLY).
Looks like android agent is sending forced inventory every 10mins (wake freq) instead of waiting PROLOG_FREQ to contact the server.
Android Agent config:
Automatic: yes
Inventory freq: 5 hours (it took from server config)
Wake freq: 10min (default)
Cache lifetime: 15min (default)
Server /var/log/ocsinventory-server/activity.log:
Tue Oct 6 15:46:57 2015;10325;102;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;prolog;declined
Tue Oct 6 15:46:57 2015;10312;318;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;session;missing
Tue Oct 6 15:46:57 2015;10312;114;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;no_session
Tue Oct 6 15:46:57 2015;10312;115;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;refused
Tue Oct 6 15:56:59 2015;11577;102;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;prolog;declined
Tue Oct 6 15:56:59 2015;11582;318;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;session;missing
Tue Oct 6 15:56:59 2015;11582;114;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;no_session
Tue Oct 6 15:56:59 2015;11582;115;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;refused
Tue Oct 6 16:06:54 2015;12704;102;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;prolog;declined
Tue Oct 6 16:06:54 2015;12711;318;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;session;missing
Tue Oct 6 16:06:54 2015;12711;114;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;no_session
Tue Oct 6 16:06:54 2015;12711;115;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;refused
Tue Oct 6 16:10:20 2015;13104;102;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;prolog;declined
Tue Oct 6 16:10:20 2015;13105;318;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;session;missing
Tue Oct 6 16:10:20 2015;13105;114;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;no_session
Tue Oct 6 16:10:20 2015;13105;115;android-2059925ffeaca57f-2015-09-29-12-55-03;10.25.40.209;OCS-NG_Android_agent_v2.1;inventory;refused
No info in ocsreports
Android version : 6, 7
Android agent version : 2.3.0
When android permissions is not accorded, app crash when send inventory.
Verified in debug crash report on android studio.
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
Android version : 9.0
Android agent version : 2.3.1
The version of the AndroidAgent you can download from your homepage (https://github.com/OCSInventory-NG/AndroidAgent/releases/download/2.3.1/OCSNG-Android-Agent-2.3.1.apk) differs from the version which is available through Play Store (https://play.google.com/store/apps/details?id=org.ocs.android.agent). The version from Play Store is the newest one.
Homepage / GitHub: 2.3.1 (Version code 231)
PlayStore: 2.3.1 (Version code 250)
I think they should be the same to avoid problems which are fixed in the most recent version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.