Questions tagged [system-services]
44 questions
12
votes
16 answers
Service 'MongoDB Server'(MongoDB) failed to start.Verify that you have sufficient privileges to start system services
When I'm trying to install MongoDB Community edition on windows 8.1, I'm getting below error.
I tried most of the available solution from the internet but none of them worked.

Vilas D.
- 165
- 1
- 3
- 12
7
votes
4 answers
Cancel all the alarms set using alarmmanager
I want to cancel all the alarms that are set. I have searched a lot and tried a lot of things but nothing worked. When I set an alarm for say after 2 minutes and then I cancel it, it will still fire after 2 minutes.
The method used to create the…

Hirak Chhatbar
- 3,159
- 1
- 27
- 36
6
votes
1 answer
How to Programmatically close the notification tray
I want to share the GCM notification item. The share button is responding to click events and item gets shared too. Only problem here is, Intent chooser dialog is present below the notification tray. User has to manually close the status bar and…

Sangeetha Pinto
- 1,022
- 3
- 14
- 32
3
votes
1 answer
applicationContext.getSystemService(SmsManager::class.java) returning null inside a Service
Viewed quite a few similar questions so far, but none ended up a solution.
I'm trying to start up a foreground service in order to handle SMS messaging. This service is started when the app is first opened and does work on background threads via…

Explicn't
- 33
- 5
2
votes
1 answer
java.lang.NoClassDefFoundError procrun
I tried to make my java application a windows service via procrun.
but when I start the service I get the following error:
2019-06-07 17:19:25 Commons Daemon procrun stderr initialized
java.lang.NoClassDefFoundError: SaveData
Caused by:…

Sergio Di Meglio
- 111
- 1
- 7
2
votes
1 answer
Installing Android System-App on Emulator does not work
I have a System App that is capable of performing some system level tasks (Ex: remote reboot etc.). I want to try this out in the Android-Dev-Studio Emulator.
I have googled for it and this is what I've found so far:
Build the .apk
adb remount
adb…

Shabirmean
- 2,341
- 4
- 21
- 34
2
votes
1 answer
Block incoming calls vs a system service
I wrote an application which has the capability of hanging up phone calls when they are received. In order to that I'm using the telephony manager and this permission is required:
android.permission.MODIFY_PHONE_STATE
However, this permission makes…

user2630165
- 311
- 3
- 10
1
vote
1 answer
Sharing a file between an Android app (with native component) and system services
Android has been more restrictive with files, while it is very clear how to share files across apps... How would I share a file between a system service like surfaceflinger/audioflinger and an app? Note that I own both the app and the AOSP code…

John Smith
- 307
- 3
- 14
1
vote
0 answers
Which is the better way to communicate data b/w from Java to C/C++ code in AOSP11/12
I am working on AOSP11/12.
I am trying to understand which is the better way to understand commucate data b/w java to C++/C code.
I have created a test Android JNI application that communicates data between java and C++ code using this…

GNK
- 1,036
- 2
- 10
- 29
1
vote
1 answer
configparser - system service failed when reading config file
I have a working python script.
It works as a system service unless I read from a config file via configparser() -> (code=exited, status=1/FAILURE)
config = configparser.ConfigParser()
config.read(configfile)
csvfile = config.get('Oled-config',…

Bob Morton
- 15
- 2
1
vote
1 answer
AOSP system service getting avc denied error while trying to add service from SystemServer
Hi I am adding my koushikservice in aospCodebase/frameworks/base/services/java/com/android/server/SystemServer.java like this
KoushikService koushikservice = null;
try{
traceBeginAndSlog("KOUSHIK_SERVICE adding trace");
…

Koushik Deb
- 19
- 4
1
vote
2 answers
How to Create a back ground system service in Android Q
I am trying to create a System service which runs once system boots up, I have followed required steps except sepolicy files update.
I have referred https://android.jlelse.eu/system-service-in-aosp-750007d39555.
Currently My service is not running…

Anil
- 11
- 2
1
vote
1 answer
The app keeps restarting itself even after closing
I am trying to make an app with floating widget on top of the screen all the time. Looking through examples online I finally assembled a basic thing to start with.
However, whenever I try to close the app, it keeps restarting itself unless I force…

Toshio
- 33
- 4
1
vote
0 answers
Android: Difference between System Service and Service of a System Application
I build my own Android and have to create a service. See the question in the title.
What i know so far:
Both approaches should have the same permissions, because they run under system privileges
In case of the system service i have to do more…

Cr.
- 11
- 3
1
vote
1 answer
How to create process as user with arguments
Tried to create a process as a user with portablechrome.exe but I could not handle it with arguments.
How can I open an HTML file with arguments?
Such as portablechrome.exe sample.html --kiosk
I'm using system service like this:
string url =…

Marijke Buurlage
- 331
- 5
- 21