[Android General] adfree:
Memo to me...

Will try this week, what happens if I copy su into:

/system/bin

Sorry, the test device is GW4 SM-R875F allready rooted with Magisk 25.2...

Bootloader sboot.bin is unlocked

vbmeta.img is patched by Magisk

boot.img is patched by Magisk

I have read AND write access...

Thanx to Magisk

Step 1.

freshul:/ $ su
freshul:/ # cd /system/bin
freshul:/system/bin # ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 06:26 su -> ./magisk

For later to make the chmod Command correct...

For my tiny Windows Brain I need chmod calculator like this...

Chmod Calculator

I have allready copied the working su Binary.... ehm... from Magisk...

Step 2.

I have to prepare few things...

But IMHO test 1 is writing boot.img and vbmeta.img from Stock Firmware... via Odin.

To check if my SM-R875F detect the modified super.img...

Only as stupid test...

Best Regards

Edit 1.

First attempts... to make it easier for me, as su as symlink allready exists... renamed into su2

D:\Android\adb>adb push su2 /sdcard
su2: 1 file pushed, 0 skipped. 2.8 MB/s (154452 bytes in 0.052s)

D:\Android\adb>adb shell
freshul:/ $ su
freshul:/ # cd /sdcard
freshul:/sdcard # ls -a1l su
-rw------- 1 u0_a118 u0_a118 154452 2023-01-22 22:16 su
freshul:/sdcard # ls -a1l su2
-rw------- 1 u0_a118 u0_a118 154452 2023-01-22 22:17 su2
freshul:/sdcard # mount -vo remount,rw /
try '/dev/block/dm-0' type 'ext4' on '/'
freshul:/sdcard # cd /system/bin
freshul:/system/bin # ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 06:26 su -> ./magisk
freshul:/system/bin # ls -a1l su2
ls: su2: No such file or directory
1|freshul:/system/bin # cd /sdcard
freshul:/sdcard # cp su2 /system/bin
freshul:/sdcard # cd /system/bin
freshul:/system/bin # ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 06:26 su -> ./magisk
freshul:/system/bin # ls -a1l su2
-rw------- 1 root root 154452 2023-01-25 06:58 su2
freshul:/system/bin # chmod 6775 su2
freshul:/system/bin # ls -a1l su2
-rwsrwsr-x 1 root root 154452 2023-01-25 06:58 su2
freshul:/system/bin #

Okidoki... lazy me took chmod command from other Thread...

Need correct chmod for su2 to have same like su shows...

Edit 2.

Stupid mewinfanboy... lt could be from symlink... so maybe chmod 777 is enough... hopefully...

freshul:/system/bin # ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 06:26 su -> ./magisk
freshul:/system/bin # ls -a1l su2
-rw------- 1 root root 154452 2023-01-25 06:58 su2
freshul:/system/bin # chmod 6775 su2
freshul:/system/bin # ls -a1l su2
-rwsrwsr-x 1 root root 154452 2023-01-25 06:58 su2
freshul:/system/bin # chmod 777 su2
freshul:/system/bin # ls -a1l su2
-rwxrwxrwx 1 root root 154452 2023-01-25 06:58 su2

Now will Factory Reset and boot... and try su without Magisk APK...

Edit 3.

Maybe i shoot in my own knie by playing before with few reboot Commands...

like reb..t secure

Because this funny Icon with x.... and I was not able to Factory Reset from menu... but from Recovery...

Puh... need to check how I can remove this...

D:\Android\adb>adb shell
freshul:/ $ su2
/system/bin/sh: su2: inaccessible or not found
127|freshul:/ $ cd /system/bin
freshul:/system/bin $ ls -a1l su2
ls: su2: No such file or directory
1|freshul:/system/bin $ ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 07:16 su -> ./magisk
freshul:/system/bin $ su
Permission denied

Edit 4.

Interesting the symlink allready exists... so not the Magisk APK generates this...

Edit 5.

Okidoki... also after full activating Magisk with APK my su2 is missing...

freshul:/ $ su
Permission denied
13|freshul:/ $ su
freshul:/ # cd /system/bin
freshul:/system/bin # ls -a1l su2
ls: su2: No such file or directory
1|freshul:/system/bin # ls -a1l su
lrwxrwxrwx 1 root root 8 2023-01-25 07:37 su -> ./magisk

So I need undo my stupid things before... to get rid of secure blabla...

I hope Bootloader lock unlock do this for me...

Edit 6.

Need some sleep... Watch need charging battery...

At the moment I have flashed back Original vbmeta.img and boot.img.. did few times Bootloader lock unlock...

Now only Bootloader is unlocked... Original boot.img... and only patched:

vbmeta.img

Watch is starting... and accept my "modified" super.img... its not dream because I have insert APks and deleted few files...

Will try next days to understand what happens to su2...