How do I get the data usage of applications from adb logs? - automation

I want to automate the apps which are running in background or in foreground and how much data the app is consuming.
Where do I get this info in adb logs ? like if any keyword is there for network data usage then it would be helpful for me

Related

Crash during cloud recording

I want to run an app (any of iOS/Android/RN etc.) with Agora's cloud recording using the golang backend: https://github.com/AgoraIO-Community/Cloud-Recording-Golang
What happens if my app unexpectedly crashes? Can I still call the same recording endpoints to stop and check the state of the recording?
If an app integrated with cloud recording crashes, the recording session is not affected. You can continue to use the original resource ID and recording ID to control the recording instance, such as to query recording status or stop recording.
If a session is being recorded, you may need to add a heartbeat check to the server, to kill the record if there's no heartbeat in x time for example.

Azure Sphere logging

For Sphere devices, we can vscode/cli to deploy, debug and see logs of the application [1]. But later (say I kept it running for 24 hours and comes back), if I wish to see application logs, it looks like, I don't have a way. Is there a way to see application logs on Sphere development boards without initiating the debugger?
To be clear, this is not about monitoring applications deployed in production [2]. This is only about development logs on Azure Sphere development boards. An example is logcat in Android [3]. The intention is to analyse long running application on Azure Sphere. We cannot keep the debugger attached forever.
This is a late response and you've probably figured it out by now but if your Azure Sphere device is connected to a network, you can send debug logs over a UDP socket without the need for the device to be attached to the Visual Studio debugger or even a PC.
Here's an example application that modifies the Log_Debug library to send the output over UDP to a receiver application that writes the output to a "deviceLog.txt" file.

IBM Worklight Offline Support

we have an app which uses JSONStore to support offline, if device is offline and user submit data it stores it offline, now when device is online and when user login to the app it sync with server and submit all data to server.
the question is, Is it possible when device comes online then my offline data sync with server without user open my app ?
Does worklight support that? Or I have to do something else?
please advice
Like Idan said, Worklight does not support this, but depending on the OS, it could support it.
For instance, on Android, you could use BroadcastReceivers to detect changes in network connectivity, and execute an action when it happens, regardless of whether your app is closed or not.
Here is the API for the receiver: http://developer.android.com/reference/android/content/BroadcastReceiver.html and here is a SO answer explaining how to use it to detect WiFi connectivity: https://stackoverflow.com/a/22626736/2245921 So you can modify this BroadcastReceiver to run the sync code that you would normally do if your app was already open.
If you are using any other platform (iOS, Windows) there might be an equivalent that you can use.
Also, keep in mind that if you are doing a hybrid application, you can create your own Cordova plugin to execute native code from Javascript. Here is the documentation on how to do so: http://cordova.apache.org/docs/en/3.5.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide

Can iPhone app which runs in background send data over network to a remote server?

This application is location awareness app. It uses GPS details so it can be run in background. But is it possible to send the collected data to a remote server while the app is in background? or maybe when the screen is locked?
For Required background modes add App registers for location updates in plist, this will make application work in background and you can send location updates to server.
Here consider that your location services are not continuously on, else it will drain complete battery of device.
Hope this help you..

Is it possible to embedd an X window inside a web frame?

we have different kinds of monitoring software, each one has its own pourpose and none of the can do all the monitoring by itself.
I was trying to centralize all four platforms on a single web site, so it will be easy to check all monitors faster and easier.
2 of the monitoring services have a linux X console, and can be exported as through ssh -X.
The other two have web interface, so it should be easy to embedd.
Does anyone know how I can embedd this Xwindows on a web iframe? As an example I could say that I want to embedd xclock on a web frame. Is it possible?
thanks.
You can capture portion of X11 display and stream it with ffmpeg using x11grab command and video streaming server.
See:
x11grab
ffserver