Questions tagged [system-services]

44 questions
1
vote
1 answer

How to make a service like the Android System Services?

I'm working on what Android calls software-based sensors. Logically, I cannot put my algorithms directly in the Android's MotionManager. These algorithms can be used for different applications. Some specific parameters can be set by any application…
1
vote
2 answers

How to get a service from ServiceManager in Android?

I have a doubt concern the services registered by the ServiceManager and not register by the SystemServiceRegistry. In the comments of SystemServiceRegistry /** * Manages all of the system services that can be returned by {@link…
Andriel
  • 354
  • 2
  • 5
  • 20
1
vote
2 answers

java.lang.IllegalStateException: System services not available to Activities before onCreate() When trying to store users location as a variable

I have created a distance calculator for my final year project. The calculator should display the users current location and then display a marker on the map when pressed. The distance will be displayed from the users current location to the marker.…
matthewoak
  • 49
  • 9
1
vote
1 answer

How to get a list of all installed OS X System Services?

I'm writing an Automator plugin for OS X that lets you invoke any System Service. I like to offer a complete list of all available Services to the user, so that he doesn't have to enter their names manually. Is there an API function that lets me get…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
0
votes
1 answer

Is there a way to detect magnification accessibility feature from all shortcuts on android?

We know that we can detect magnification from triple-tap gesture by Settings.Secure.getInt( getAppContext()?.getContentResolver(), "accessibility_display_magnification_enabled",0) But can we detect it from navBar shortcut and other shortcuts…
0
votes
0 answers

Is it possible to update a AppWidgetProvider from a system service?

I have the DeskClock app on my phone and I was wondering if I can make the DigitalAppWidgetProvider that extends AppWidgetProvider update the view right from my system service. I tried sending a broadcast to ACTION_APPWIDGET_UPDATE, but it didn't…
0
votes
1 answer

Windows could not start the service on Local Computer. Error 193: 0xc1

I coded a python a program and converted it to an executable. It was working perfectly. Then I used sc.exe in cmd to make it a system service. But the problem is that when I try to start the service, this message pops up. By searching online, I came…
0
votes
1 answer

Is it possible to restrict access to a System Service in AOSP?

Is it possible to restrict access to certain methods on a System Service in AOSP? I was thinking of having two Proxies talk to the System Service with one implementing public methods and the other just methods to privileged processes. Thank you!
Markusbug
  • 31
  • 6
0
votes
0 answers

Is it possible to only allow SystemUI to access System-Service?

I just added a system-service to my aosp build, using this tutorial: https://medium.com/android-news/system-service-in-aosp-750007d39555 Is it possible only allow access to the "AIDL" or Proxy to a specific process? In my case the SystemUi. Thank…
Markusbug
  • 31
  • 6
0
votes
2 answers

How to start a java springboot application as a sytem service in linux

I am trying to create a systemd service for a spring boot application, servie is creating but the status shows as follows, ● vehicle_service-0.1.0.service - vehicle micro service Loaded: loaded (/etc/systemd/system/vehicle_service-0.1.0.service;…
0
votes
1 answer

How to pass/recevice data from java/Kotlin to C++ code or vice versa in android

I am working on AOSP11/12(Android) and want to communicate data from java/Kotlin to C++ code or vice versa. Is that better way to create new service and communicate data or need to create NDK application?
GNK
  • 1,036
  • 2
  • 10
  • 29
0
votes
0 answers

Where can I store data as a System Service?

I programmed a system-service and it tries to create a directory to save some data. The dir that I chose was /.myServiceData. When I try to run it I get this error: mkdir /.ethNode: read-only file system. Where can I store my data in the…
Markusbug
  • 31
  • 6
0
votes
1 answer

LoadLibrary() fails when added aar library to system service?

I wrote a System Service, but it fails on boot with the message: java.lang.UnsatisfiedLinkError: dlopen failed: library "libgojni.so" not found Basically in the code of the .aar library it tries to load a library using System.loadLibrary() but it…
0
votes
1 answer

Increase points even app is closed android

I am new in android and I don't know how to do this, I want to create a background service, There is two main component in my app one is Button (Start Earning) and another is TextView (Points). I want to create service like if User Open app and…
xyz
  • 25
  • 1
0
votes
0 answers

How to use show layout bounds functionality in my app in android studio?

So I am trying to create a project in which I have one activity with two buttons to start & stop my custom background service of the same app. All I want in this service is to "show layout bounds" of all layout. To be more specific I want my…