-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
VaultKeeper Crashing #8335
Comments
from ps -A, the parent PID is indeed init that is trying to launch it (PPID = 1 below): and this is the earliest I can find any reference to it in logcat logs (this 912 process starts here):
|
https://dumps.tadiphone.dev/dumps/samsung/dm3q/-/blob/dm3qxxx-user-14-UP1A.231005.007-S918BXXS6CXGA-release-keys/vendor/etc/init/vaultkeeper_common.rc |
/data/adb/service.d/stop_vaultkeeper.sh
Try this script, don't forget chmod +x |
thanks! although this sort of makes things "worse" in a way, unfortunately... it results in this being spammed every 10 seconds or so:
|
keep vaultkeeper_hal, only stop vaultkeeper? |
Something is still trying to call the service
|
Can you see who is calling VaultKeeper? |
Those messages are from CASS_DEBUG (which I guess is the Cass init service) . Issue was resolved by issuing |
Sorry for the spam, but the last thing to add to keep logcat errors completely free is In summary,
These also happen to align with the excellent work by Ian MacDonald seen here |
Are the crashes caused by unlocked bootloader or Magisk? |
I don't know for a fact, but I'm guessing it is due to vbmeta change... and bootloader unlock alone wouldn't cause this. That is only a guess. I suppose you are questioning if this is magisk's responsibility? |
Ye, i am thinking about it |
Not sure, at some point it was decided to get involved 7a133ea |
I think this can be solved via overlay.d (it provides support for injecting rc files, and you can override the service), but I am not sure how we can handle it in magisk without interfering with other devices. |
That's a good idea, thanks. I wonder if handling vaultkeeper this way would change whether cass and proca need to be handled or not. I'll have to check |
FYI the issue happens in the TZ side of things and it is caused by PROCA whenever a custom image is installed in the device (change of ICD status flag):
A custom kernel with disabled |
Finally found a way to get rid of this on stock images: https://github.com/Mesa-Labs-Archive/android_kernel_samsung_sm7325/blob/e76fd1fdabdca7554e5d7df0dbd10dcbabdfb3fd/security/samsung/proca/s_os/proca_lsm.c#L33
I already tried changing the permissions of the dev file itself from 440 to 000 but it wasn't enough, so patching the kernel image to rename "proca_config" is enough to get rid of this. |
@diabl0w could you please confirm the hex patch works just fine in your end? Install this then patch your stock boot.img with it. app-release.zip |
Trying to install the app says that it is corrupted, I end up getting a placeholder magisk app on my launcher which tries to update itself from the internet when opening |
You need to restore the stock boot.img as this is signed with a different key than the ones the official builds use. |
proca_magisk works great ;) nice job! |
and just to be more clear, yes this completely resolves the issue, i no longer get any of the logcat errors from my original post nor do i get any other related errors |
When did you chmod the node? I think we need to do it |
Doesn't seem to work regardless of which stage is used to change the file permissions:
I've also tried to change file owner to root but it had no effects. |
Device: SM-F926B
Android version: 14
Magisk version name: Canary
Magisk version code: 27007
Phone is running fine, visually, but in the background Vaultkeeper is just constantly crashing and never stops (will continue to try and increase trycount)
according to this VaultKeeper should be getting disabled, but I am not sure if that means entirety of VaultKeeper or what
The text was updated successfully, but these errors were encountered: