-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on update check #39
Comments
That's really strange. It's failing to create a file to save its logs. I'm not sure what would prevent Custota from writing to its own directory. I know GrapheneOS has some storage restrictions, like the storage scopes feature, but that shouldn't apply here. To try and troubleshoot this, can you post the outputs of these commands?
I just want to make sure this isn't just some filesystem permissions issue. On my device, it looks like this:
The highlighted parts (user ID |
PS C:\Users\Pablo> adb shell su -c 'ls -lZd /data/media/0/Android/data/com.chiller3.custota/files /data/data/com.chiller3.custota'
drwx------ 6 u0_a77 u0_a77 u:object_r:app_data_file:s0:c77,c256,c512,c768 3452 2024-03-03 14:41 /data/data/com.chiller3.custota
drwxrws--- 2 u0_a77 ext_data_rw u:object_r:media_rw_data_file:s0 3452 2024-02-18 16:49 /data/media/0/Android/data/com.chiller3.custota/files PS C:\Users\Pablo> adb shell pm dump com.chiller3.custota | findstr.exe 'uid=.*gids='
uid=10077 gids=[] type=0 prot=signature
|
Thanks. That (I'm not sure how it ended up in that state though. That app directory is created by Android before the app launches the first time.) |
@josevega96 Thanks. I've opened a new issue over at #40 for this as it's unrelated to this specific issue. |
I followed the deletion instructions but now receive this error: Failed to install OTA update
IOException (Failed to download update info)
-> SocketException (Binding socket to network
108 failed: EPERM (Operation not permitted)) ->
ErrnoException (Binding socket to network 108
failed: EPERM (Operation not permitted)) I've tried re-deleting the directory but to no avail. EDIT: Updated to 3.1 and the issue is still there. |
If I remember correctly, GrapheneOS has a permission toggle for each app for network access. Can you double check that it is enabled? |
It is enabled. Do you need more logs or a screen recording? I'm unsure what could've caused this as I had Custota working before I updated to v3 / avbroot v3 |
Can you also grab the output of these?
I'm really not sure why this would've just started happening with version 3. The permissions and SELinux logic have remained unchanged since the initial release (version 1). |
C:\Users\Pablo>adb shell "ps -efZ | grep custota"
u:r:custota_app:s0:c77,c256,c512,c768 u0_a77 21180 922 11 13:37:26 ? 00:00:00 com.chiller3.custota
u:r:shell:s0 shell 21220 1249 2 13:37:29 ? 00:00:00 sh -c ps -efZ | grep custota
u:r:shell:s0 shell 21223 21220 7 13:37:29 ? 00:00:00 grep custota No new output was printed for the second command. |
Thanks. So everything SELinux-related is good. I really have no idea what else would cause the The only thing left I could suggest is the brute force approach: maybe try uninstalling the Custota module completely and booting once without it installed (so that Android will delete all of Custota's data). It probably won't help, but I don't really have any more ideas for what the problem might be. |
Tried to no avail :( No idea what it is either, but this is definitely annoying. I'll miss using it! I'll open another issue / contact you if I find a solution. |
Oh wow literally just now I found the issue: my WireGuard VPN running in root mode. WireGuard on Android can be ran either in userspace or (with root) in kernel mode. The latter seems to make Custota unhappy. Turning off the VPN or setting it back to userspace seems to fix that specific issue. |
Oh wow, nice find. Custota (and also Android's underlying |
I'm on GrapheneOS 14 and connecting over HTTP via a VPN to my update server.
There seems to be some permission denied error.
Custota log 6faa805cb0a6.txt
The text was updated successfully, but these errors were encountered: