Bug 2324194 - waydroid puts dirs/files in ~/.local/share/waydroid/data/ owned by root and non-root users/user IDs
Summary: waydroid puts dirs/files in ~/.local/share/waydroid/data/ owned by root and n...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: waydroid
Version: 43
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alessandro Astone
QA Contact:
URL:
Whiteboard: FutureFeature
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-06 16:37 UTC by Andre Robatino
Modified: 2025-12-06 13:04 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andre Robatino 2024-11-06 16:37:42 UTC
I just started using Waydroid a few days ago. Here's what my above-mentioned directory looks like (my regular username is "andre"). Is it expected that all of these other users and user IDs are supposed to be created? If not, what is the proper procedure to clean this up? Normally programs are not supposed to put anything in ~ that's not also owned by the same user.

andre@lenovo-pc:~/.local/share/waydroid/data$ ls -l
total 0
drwx------. 1 root  root      0 Nov  2 07:14 adb
drwx------. 1 root  root      0 Nov  2 07:14 adbroot
drwxrwxr-x. 1 andre andre     0 Nov  2 07:14 anr
drwxr-xr-x. 1 root  andre    56 Nov  2 07:14 apex
drwxrwx--x. 1 andre andre   260 Nov  2 08:02 app
drwx------. 1 root  root      0 Nov  2 07:14 app-asec
drwxrwx--x. 1 andre andre     0 Nov  2 07:14 app-ephemeral
drwxrwx--x. 1 andre andre     0 Nov  2 07:14 app-lib
drwxrwx--x. 1 andre andre     0 Nov  2 07:14 app-private
drwxr-x---. 1 andre andre     0 Nov  2 07:14 app-staging
drwx------. 1 andre andre   414 Nov  2 12:03 backup
drwxr-xr-x. 1  2000  2000     0 Nov  2 07:14 bootchart
drwxrwx---. 1 andre  2001    72 Nov  2 07:40 cache
drwxrwx--x. 1 root  root      6 Nov  2 07:14 dalvik-cache
drwxrwx--x. 1 andre andre 11348 Nov  2 08:02 data
drwxrwx---. 1  1019  1019     0 Nov  2 07:14 drm
drwx------. 1 root  root     26 Nov  2 07:14 gsi
drwxrwxr-x. 1 andre andre   902 Nov  2 08:02 icons
drwxrwx--x. 1 andre andre     0 Nov  2 07:14 incremental
drwxrwx---. 1 andre  2001     0 Nov  2 07:14 lineageos_updates
drwxr-x--x. 1 root  root     18 Nov  2 07:14 local
drwxrwx---. 1 root  root      0 Nov  2 07:14 lost+found
drwxrwx---. 1  1023  1023     2 Nov  2 12:03 media
drwxrwx---. 1  1031  1031     0 Nov  2 07:14 mediadrm
drwxrwx--t. 1 andre  9998   902 Nov  2 07:14 misc
drwxrwx--t. 1 andre  9998     2 Nov  2 07:14 misc_ce
drwxrwx--t. 1 andre  9998     2 Nov  2 07:14 misc_de
drwxrwx---. 1  1027  1027    10 Nov  2 07:14 nfc
drwxrwx--x. 1 root  root      0 Nov  2 07:14 ota
drwxrwx---. 1 andre  2001     0 Nov  2 07:14 ota_package
drwx------. 1 andre andre     0 Nov  2 12:03 per_boot
drwxrwxr-x. 1 andre andre     0 Nov  2 07:14 preloads
drwx------. 1 root  root     42 Nov  2 12:04 property
drwxrwx--x. 1 andre andre 12460 Nov  2 07:14 resource-cache
drwx------. 1 andre andre     0 Nov  2 07:14 rollback
drwx------. 1 andre andre     0 Nov  2 07:14 rollback-observer
drwxrwxr-x. 1 andre andre     0 Nov  2 07:14 server_configurable_flags
drwx------. 1 andre andre     0 Nov  2 07:14 ss
drwxr-x---. 1 root   2000    10 Nov  2 07:14 ssh
drwxrwxr-x. 1 andre andre  1560 Nov  4 19:17 system
drwxrwx---. 1 andre andre     2 Nov  2 07:14 system_ce
drwxrwx---. 1 andre andre     2 Nov  2 07:14 system_de
drwxrwx--x. 1 andre andre    72 Nov  2 07:20 tombstones
drwx--x--x. 1 andre andre     2 Nov  2 07:14 user
drwx--x--x. 1 andre andre     2 Nov  2 07:14 user_de
drwxrwx--x. 1 root  root     36 Nov  2 07:14 vendor
drwxrwx--x. 1 root  root      2 Nov  2 07:14 vendor_ce
drwxrwx--x. 1 root  root      2 Nov  2 07:14 vendor_de
drwxr-xr-x. 1 andre andre     0 Nov  2 07:14 waydroid_tmp
andre@lenovo-pc:~/.local/share/waydroid/data$

Reproducible: Always

Comment 1 Alessandro Astone 2024-11-06 16:48:19 UTC
It's not great but it is expected, yes.

You will break Waydroid if you try to change those permissions.

Comment 2 Adam Williamson 2025-12-02 01:31:49 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 AdamTaylor 2025-12-06 13:04:23 UTC
This is completely normal. Waydroid creates a full Android container (LXC), not a simple emulator. The different user/group owners (root, 2000, 2001, andre) mirror Android's internal security model where each system service and app runs under an isolated UID. Your host user andre manages the container, but inside it maps to different IDs. Don't delete these manually! Use waydroid init -f for a clean reset. This isolation concept is interestingly mirrored in games of chance that rely on a controlled environment. For instance, playing https://plinko-casino.pk/ involves configuring your own "container" of risk levels and bet sizes against a guaranteed RNG, much like managing this Android environment.


Note You need to log in before you can comment on or make changes to this bug.