Questions tagged [system-services]
44 questions
0
votes
1 answer
Selinux: How to get another system service inside a system service
I have a system service KioskService. Inside this system service I call another system service DpcService like that:
public class KioskService extends IKioskService.Stub{
private Context mContext;
private IDpcService dpcService;
public…

Bazouk55555
- 557
- 6
- 24
0
votes
1 answer
Running Python script as systemd service, connecting to InfluxDB results in ConnectionError
I am running a shell script as Ubuntu's systemd service to start at boot-time. The script internally executes a Python script (python_simulator.py) that connects to InfluxDB (through Python's influxdb package).
The Python script fails to start at…

DEEPAK SURANA
- 431
- 3
- 14
0
votes
0 answers
get non-null systemService
Every time I'm assigning getSystemService to some variable I have to check later if it is null, eg.
LocationManager mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
if (mLocationManager != null) {...}
Is there any…

Nemanja
- 211
- 6
- 16
0
votes
1 answer
Why upstart service does not stop when sys.exit is called by Python
I set up a Python application as a Linux service using Upstart script.
description "AAE client app"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env PATH=/home/ec2-user/aae_client/env/bin
env PROGRAM_NAME="aae"
env…

ddd
- 4,665
- 14
- 69
- 125
0
votes
1 answer
AOSP SystemService with TCP communication only
I am building a custom Android and I want to have a SystemService, which monitors some files. It needs system permissions, so that it can access files of other applications.
When searching the internet on how to build an Android SystemService, I…

felwolff
- 123
- 1
- 4
0
votes
1 answer
How to know if lock screen is protected by finger print authentication
How can i check if the lock screen is protected by finger print authentication not with password or pattern or etc, right now i'm using this but its returning true even if lock screen is protected by password
keyguardManager.isKeyguardSecure()

blackHawk
- 6,047
- 13
- 57
- 100
0
votes
0 answers
Starting Android Service on Boot
I have to develop an Android App that starts a service on boot. I have the privilege of creating even a new service in framework for it. But before that I have two question so this might be possible without going to framework.
Can an app (service…

Puneet Chugh
- 93
- 10
0
votes
1 answer
OSX - SysServices does not display custom menu in all apps (eg., chrome or safari)
I've followed the sample plist provided by Apple. I've also referred the info.plist from official Twitter app for mac.
For some reasons, even though my Info.plist properties for NSServices seems to be correct, my custom menu does not appear in all…

palaniraja
- 10,432
- 5
- 43
- 76
0
votes
4 answers
Systemd Zookeeper service failed
I've created the following systemd service script for running Zookeeper using Ansible:
[Unit]
Description=ZooKeeper
[Service]
User=root
Type=forking
User=zookeeper
Group=zookeeper
ExecStart=/tmp/zookeeper-3.4.9/bin/zkServer.sh…

dsafa
- 783
- 2
- 8
- 29
0
votes
3 answers
System services not available to Activities before onCreate() in Expandable ListView
In my app i have SearchView which, when clicked, opens an ExpandableListView inside a Fragment that displays some results for the searchquery. Now i have the problem that everytime i click the searchIcon the app crashes.
MainActivity.Java:
public…

adriankroeger
- 63
- 9
0
votes
0 answers
Turn on monitor when running as system service using WinAPI/C++?
My application (running as system service) has a feature where the display "blinks" a few times for some reason. This is done through a special API that allows access to the backlight control. This works so far. But when the display turns off…

Willy K.
- 397
- 2
- 14
0
votes
1 answer
System services not available to Activities before onCreate(), but no properties instantiated
I am trying to create a service which checks if the device has an active internet connection and reports it. I have absolutely no clue what's wrong with my code.
I know this question has been asked many times, but most answers, like this,…

MC Emperor
- 22,334
- 15
- 80
- 130
-1
votes
1 answer
AppleScript Quick Action Services Shortcut issue - MacOS Catalina
Running on: MacOS Catalina 10.15.5
I made a Quick Action in Automator and it works just fine. In fact, I've been using it for a few years. The code in the action itself is not the problem, nor is it allowing accessibility/controls in system…
-3
votes
3 answers
what is Wi-Fi NAN
Here is a new android system service called "WIFI_NAN_SERVICE".
I swear I googled "what is Wi-Fi NAN", but got nothing.
now, who can tell what is it/that? Thank you very much!

XuSing
- 11
- 1
- 2
- 7