3arthur6 / BluetoothLibraryPatcher

95 stars 9 forks source link

S22 Ultra #12

Closed wiredroid closed 2 years ago

wiredroid commented 2 years ago

Hey, Thanks for this module. I connect to my Bluetooth devices ok but my watch 4 keeps resetting and saying to pair with your new device you have to reset watch. My issue is I'm running Magisk only device is still encrypted with stock recovery and stock kernel as I don't want to run a passive kernel. My vendor partition is also read only Is there anything I can do?

wiredroid commented 2 years ago

@huskydg sent me this. Some terminal command but maybe you could update the library to include them.

"If magisk modules mount too late, you can use early-init mount"

mkdir -p "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf" for i ingrep -lr 'security.wsm' /vendor/etc/vintf; do rm -rf "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i" if [ ! -z $i ]; then cp -af "$i" "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i" sed -i "$((awk '/security.wsm/ {print FNR}' $i-1)),/<\/hal>/d" "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i"; fi done

HuskyDG commented 2 years ago

Early mount is Magisk Delta specific feature.

mkdir -p "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf"
for i in `grep -lr 'security.wsm' /vendor/etc/vintf`; do
    rm -rf "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i" 
    if [ ! -z $i ]; then
         cp -af "$i" "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i" 
         sed -i "$((`awk '/security.wsm/ {print FNR}' $i`-1)),/<\/hal>/d" "$(magisk --path)/.magisk/mirror/early-mount/system/vendor/vintf/$i";
    fi
done
3arthur6 commented 2 years ago

Hi! Sadly this isn't relevant with official release. Any plan for a pull request of this feature? Is MAGISK_VER variable always ended with "delta"? I need a way to detect your magisk fork.

wiredroid commented 2 years ago

Detect the existence of $(magisk --path)/.magisk/mirror/early-mount

HuskyDG commented 2 years ago

Hi! Sadly this isn't relevant with official release. Any plan for a pull request of this feature? Is MAGISK_VER variable always ended with "delta"? I need a way to detect your magisk fork.

It seems 99,9% the author of Magisk will not want to add this feature.

3arthur6 commented 2 years ago

I pushed a commit to handle this. Thanks for the suggestion.