3,325 questions
-1
votes
1
answer
53
views
Possibility to create vectorize screenshot on android?
With root access, is it possible to create vectorize screenshot for android device?
I used to use uiautomator dump, but it lacks of style information,esicially font size
1
vote
0
answers
284
views
Frida “Failed to enumerate processes: unable to perform ptrace pokedata: I/O error” on rooted Android (SELinux Enforcing)
I’m trying to use Frida on my rooted Android device, but whenever I run:
frida-ps -U
I get this error:
Failed to enumerate processes: unable to perform ptrace pokedata: I/O error
Here’s my setup:
...
0
votes
1
answer
67
views
How to get around the permissions for rooted devices
// TODO: Copy the file somewhere non-rooted, write, replace
public void saveProperties(UIProperties properties) {
try (Writer writer = new FileWriter(FILEPATH)) {
// Serialize the ...
0
votes
1
answer
246
views
Running image as root in podman when Containerfile has defined a USER
Im not sure if this is doable and if it is it would have some security issued related
I have an image with an Apache Spark installation that sets a specific USER 185 in its Containerfile. When I run ...
0
votes
1
answer
61
views
Android - Kotlin - Root : how to start a thread with root permission for listening on port 80 [closed]
In my Android Application, in Kotlin, I start a thread which launch a NodeJS server.
On non rooted device, Node listen on port 8080. It works fine.
I'd like that on rooted device Node listen on port ...
0
votes
0
answers
23
views
how to programmatically get MANAGE_EXTERNAL_STORAGE
I am designing a private software only for rooted Android devices. But starting from Android 10, I can not automatically get MANAGE_EXTERNAL_STORAGE even though I have root permission. Does anyone ...
-3
votes
1
answer
89
views
How to Write to Root-Owned Files from a Python Script?
Is there any way for other users to write to root-owned files like those in procfs, sysfs, or devfs?
The file permissions are set to 644, so I can read them, but I can't write to them.
I'm curious if ...
0
votes
0
answers
65
views
Computing the differential cross section using python
I am looking at the decay of $Z\rightarrow e+e-$. I am trying to plot d$\sigma$/dcos$\theta_{e-}$ vs cos$\theta_{e-}$ where $\theta_{e-}$ is the angle, in the correspondent Z rest frame, between the ...
0
votes
0
answers
59
views
Changing SN with ADB
I need to change the serial number (SN) on my Android device. Is it possible to do this using the Android Debug Bridge (ADB)?
The IMEI and SN were erased from the device when I tried to restore the ...
0
votes
1
answer
188
views
Sending key events (INJECT) in my Android app without root access
I'm working on an Android app that needs to send key events (simulate keyboard input) using the INJECT permission. However, when trying to do so, I receive an error indicating that my app doesn't have ...
0
votes
1
answer
142
views
Sending Joystick Events in Android: Permissions, System Apps, and Root Access Issues
I am working on developing an Android app that sends joystick events in the background.
Question 1:
I am currently using the Instrumentation class to inject events like KeyEvent.KEYCODE_DPAD_LEFT and ...
0
votes
0
answers
647
views
Setting ro.debuggable=1 to enable "adb root"
In Android 14 and 15 (at least), one way to enable adbd to run with root privileges is to set ro.debuggable to 1 in both the "post-fs-data" and "late-start service" boot stages, as ...
-2
votes
1
answer
247
views
Forgot MySQL Root Password – How to Reset?(I'm reinstalling the MYSQL and I cant remember current root password) [duplicate]
I installed MySQL, but I forgot the root password. When I try to log in, I get an authentication error. How can I reset the MySQL root password? when I type this mysql -u root,
I got this error ...
0
votes
0
answers
95
views
launch a child process with specific uid when the parent is root
I have a process which is running under sudo.
I'm need to launch a child process which has my uid and gid.
I'm currently playing a game where I change the parent euid and egid to my id's,
launch the ...
1
vote
1
answer
76
views
How to grant a java program admin privileges during runtime
I have a java program from which i would like to access a file that requires admin privileges. I use IntelliJ IDE for development and I would like to start the program from the IDE.
I have an ...
0
votes
1
answer
109
views
change User entity(I think root entity) In a Jmix project
When I creating a Jmix project it is automatically creating data model with USER entity. when we customizing our Jmix project can we remove or change the user entity to what ever we want for example ...
0
votes
0
answers
35
views
Slow screen value detection using root access and uiautomator in Kotlin – Optimization help needed
I'm developing an automation service in Kotlin that uses root access and uiautomator to detect values on the screen of an Android device. However, the value search takes around 3 seconds, which is too ...
-2
votes
1
answer
242
views
Need to find a way to change a library (SO file) without reinstalling an application in Android 13 on rooted device. Permission denied
An application in Android may have additional native libraries, SO files in lib directory.
For the purposes of my project it's absolutely necessary to be able to overwrite the SO file of certain ...
1
vote
0
answers
115
views
Selinux module to open fm radio application access to /dev/fm
I am new in magisk and selinux. Please help me write module,which allow to decompiled fm radio app get access to /dev/fm. I dont want to use setenforce 0,because my device will become more ...
1
vote
1
answer
196
views
Given a path to a logical volume get UUID without root
My question is simple, given a path to a logical volume: is it possible to get the UUID of the device it belongs to, without the need of root access in C? and if so, how would you approach this ...
0
votes
1
answer
542
views
XOpenDisplay failed when using pkexec to launch Avalonia application with elevated privileges
I'm trying to run an Avalonia application with elevated privileges using pkexec on a Linux system. The command I use is:
pkexec /home/depaula/MyApp/RedundancyServerIHM
However, I'm encountering the ...
2
votes
1
answer
1k
views
Why am I getting a "duplicate source root" error in IntelliJ when the folder is not marked as a source root?
I'm getting the following error in IntelliJ:
Source root '/path/to/project/src/main/resources' is duplicated in module 'myModule'.
However, when I check the "Project Structure" under the ...
-1
votes
1
answer
364
views
How to get in Root Path end point in Quarkus
I couldn't get in @Path("/") whatever i try. I located META-INF/resources to static/ and index.html resides in /static/index.html now. So, static flow is not problem. What i m trying to ...
1
vote
1
answer
140
views
how can I get SUPERUSER permission on rooted Android 11 and 12
I've got Memu emulator (Android 12) rooted.
How do you display an alert dialog like this in Kotlin?
I added codes below but didnt' work.
<uses-permission android:name="android.permission....
0
votes
0
answers
208
views
Need to be root with pyenv
I'm currently trying to use the method "add_hotkey" from the library keyboard.
When I do it, I have the error : "ImportError: You must be root to use this library on linux."
How ...
0
votes
0
answers
56
views
Google Cloud SUSE Linux VM ignoring startup script to regain root access
I tried to increase the size of my VM's sda disk but it is now stuck in boot loop as the root sda partition did not resize.
Unfortunately, the VM has a root password that has not been documented so I ...
0
votes
1
answer
628
views
How to keep a GitHub actions self hosted runner on ubuntu VM up and running always?
I have a self hosted runner on ubuntu vm. I have triggered the run.sh script with root as below:
RUNNER_ALLOW_RUNASROOT=1 ./run.sh &
now as soon as the vm gets disconnected the runner stops.What ...
0
votes
0
answers
107
views
Delete file using AppleScript as root with administrator privileges does not work if file was created/downloaded by user, not root
I need to solve the following problem on macOS: I must work with some files using a combination of AppleScript and Shell.
For example, I have a file in the file system in folder /Users/username/...
1
vote
0
answers
28
views
debug root-run python scripts via PyDev + eclipse + postgres interaction without pip?
I want to debug root-run python scripts via PyDev + eclipse. I also would like to avoid pip entirely. Via python subprocess I would like to send some commands to postgres, but that actually would ...
0
votes
0
answers
24
views
Prevent control of the hosting environment by anyone launching containers from Jenkins or other non-root containers
I noticed that even if I launch a jenkins container as non-root, when I mount the socket as a volume /var/run/docker.sock Jenkins can launch container in the host environment as root and they can ...
0
votes
0
answers
157
views
Issue With Xerces-C in Geant4
I am having an issue with Xerces-C in Geant4. It was working fine before I decided to update and upgrade my Homebrew packages. After updating, I am encountering the following error:
CMake Error at /...
1
vote
0
answers
255
views
Drop root permissions in entrypoint of dockerfile
I need to fetch a certificate and update my CAs when my dockerfile starts.
As such, I need USER root in there.
However, I want the rest of my application to run under app.
Is there any way to drop ...
2
votes
1
answer
595
views
Starting a docker container with ssh service as a non-root user
I took the semaphore docker image and via docker file I installed an ssh server. Now I'm faced with a problem:
FROM semaphoreui/semaphore:latest
USER root
RUN apk update && \
apk add --...
0
votes
1
answer
78
views
Docker volume backup creates root:root owned files
I'm trying to backup a docker volume by tar-ing the contents and copying that out of the container using a bind mount (I think). The command is:
docker run --rm -v ./$BACKUPDIR:/backup -v ...
0
votes
0
answers
55
views
I missed an access to MySQL root account
I missed an access to my root account in MySQL. I can't see my databases and create new databases.
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u root ERROR 2003
(HY000): Can't connect to ...
-2
votes
2
answers
637
views
How to connect a root EBS volume of one instance to other instance without losing the data?
I wanted to mount the root EBS volume of one instance to another instance that is in the same region (both are operating on Amazon Linux).
Consider that there are two instances in the same region, say ...
0
votes
0
answers
473
views
Docker DIND give non-root access to docker.sock
There are existing questions and answers on the topic but these are no longer applicable. The solution outlined here is broken because /var/run/docker.sock does not exist at container runtime. ...
0
votes
0
answers
3k
views
Bypass Emulator Detection
I want to use an app from my Android Emulator but on its welcome screen I got next error: Application error: a client-side exception has occured (see the browser console for more information). In the ...
0
votes
1
answer
97
views
Why is the value not changing even after the command is run with ROOT?
Even after the command is run successfully with ROOT, the file's value doesn't change
I want to change /sys/class/lcd/panel/vrr value to 65 0
where it is 60 0 by default
For this I first set enforcing ...
-1
votes
1
answer
54
views
Cannot locally connect to MySQL
So I installed mysql using brew, and I run brew install mysql (and later brew reinstall mysql as well). I tried to access mysql as a root user, but it does not allow me to do so.
We've installed your ...
1
vote
1
answer
795
views
editing pass option in /etc/fstab with ansible
I have an ansible playbook that runs for about 20 hosts. I'm trying to edit the pass option only for entries that are mounted as root ('/').
Here's what I had that changes every pass option that isn't ...
0
votes
1
answer
382
views
Where is the "root" of a Visual Studio project?
I am following Microsoft's tutorial of building a To-Do list with Blazor found here:
https://learn.microsoft.com/en-us/training/modules/build-blazor-todo-list/3-exercise-data-binding
I get stuck on ...
-1
votes
1
answer
109
views
Laravel app inside Wordpress website run on app folder and not in app/public folder?
I have a wordpress website in which I want to use a Laravel app in a subfolder
Like this:
https://website.com/* -> wordpress
https://website.com/app/ -> laravel
But I only managed to run it ...
0
votes
2
answers
43
views
web.config oldsite to newsite 301, domain/root to new page AND old pages to oldpages
In my web.config file I want to be able to accomplish both redirects below:
Redirect the root/domain:
oldsite.org to newsite.org/this-is-thenewsite
AND
page wildcard redirects:
oldsite.org/any-all-...
0
votes
1
answer
1k
views
How can i get root permission only for application
Is it possible to get root access for only one application? the idea behind is to i did't want to open permission dialog for accessing some feature of application like storage permission like vise.
is ...
0
votes
1
answer
251
views
How to move app icons using script/commands on android?
I want to be able to move app icons to specific positions on android 9. The reason for this is because I was running low on storage (my phone has only 16GB of storage), and I formatted part of the ...
0
votes
1
answer
543
views
How can I execute a sudo command in a macOS app and persist root user privileges?
I need to implement the following behavior in my app: When the app is run for the first time, prompt the user to authenticate by entering their administrative password. Upon successful authentication, ...
2
votes
1
answer
45
views
The error message"Solution Not Found" pops up when I try to find the squre root value
I made a code and it worked well before I added a line to find square root value.
The code is composed of simple calculations. I am trying to get the values because I will need to find derivatives of ...
0
votes
1
answer
667
views
How to do [ro2rw] in (AVD) emulator android studio?
I have been searching for a way to change the RO mode of Android root folder to RW mode in Android Studio virtual Device.
I'm pretty desperate to find a way to do this, but I'm asking here anyway
...
-2
votes
1
answer
67
views
Apple Script to run an application as root (Part 2)
I am using the following Apple Script code to run an application:
do shell script "/Applications/MyApp.app/Contents/MacOS/myapp > /dev/null 2>&1 &" with administrator ...