bob.fg
October 31, 2024, 8:23am
1
Hello everyone.
Please tell me how to correctly use encryption after installing all F-droid applications?
I need to install all F-droid applications, then encrypt the device and install Magisk
I need to install all F-droid applications + install Magisk and then encrypt?
I would appreciate your advice.
I’d go with, encrypt → f-droid → magisk (because you install magisk from F-Droid, right?)
1 Like
bob.fg
October 31, 2024, 11:37am
3
Thank you for your answer.
Do I understand you correctly that you mean that first I encrypt my phone, then install all my favorite applications from F-droid and lastly install Magisk? I’m clarifying to be sure)
I download Magisk for my phone here GitHub - topjohnwu/Magisk: The Magic Mask for Android but I see that the link to the source code from F-droid leads to the same place, I assume that it is the same thing.
yes, as to have the least data needed to encrypt
I hope it’s the same thing, but there’s a reason you use F-Droid instead of downloading APKs from sites, right?
1 Like
Ammar64
October 31, 2024, 12:15pm
5
It’s this message that makes people download magisk from github and not F-Droid.
However unlike magisk people prefer to download termux from F-Droid rather than github.
is F-Droid an Unknown Source for you?
1 Like
bob.fg
October 31, 2024, 12:43pm
7
Thanks for your answers.
I didn’t even know that F-droid has Magisk )) Magisk | F-Droid - Free and Open Source Android App Repository and UpgradeAll | F-Droid - Free and Open Source Android App Repository Thanks for letting me know!
I usually download the app from the developer’s website, imagine if I downloaded F-droid from the Play Market website and they wrote to me, and you don’t know what Play Market is?))
Perhaps your build is more reliable, I’ll try (test) If there are any other differences, please write for information.
linsui
October 31, 2024, 1:59pm
8
The F-Droid build doesn’t have bootctl so it can’t switch slot for you. But it’s not important for me.
Why not including bootctl ?
Ammar64
October 31, 2024, 6:18pm
11
What issues did you face building it ?
linsui
October 31, 2024, 6:36pm
12
It’s part of AOSP. I don’t know how to build it cleanly.
Ammar64
October 31, 2024, 7:39pm
13
I attempted to do it by getting the needed sources for bootctl
but I can’t find <aidl/android/hardware/boot/IBootControl.h>
nor
<aidl/android/hardware/boot/MergeStatus.h>
I found bootctl.cpp
here bootctl - platform/system/extras - Git at Google
Here is my progress with sources
bootctl.zip (15.0 KB)
and this is the command I use for compilation
~/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=${HOME}/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -MD bootctl.cpp -o bootctl
The command assumes you have ndk 25.1.8937393
installed.
Note that the previous command builds the debug variant.
linsui
November 1, 2024, 2:58am
14
Are those headers required?
bob.fg
November 1, 2024, 7:26am
15
Hi . I tried your recommendation but it didn’t work…
Also I wanted to ask you what is the difference between:
encrypt → f-droid apk → magisk
encrypt + f-droid apk → magisk
Explanation of the photo. I encrypted the phone, then I wanted to install Magisk and got this message
your recovery must be able to support encryption… do try to find out if it can or use one that can
Ammar64
November 1, 2024, 11:57am
17
MergeStatus.h
is included in BootControlClient.h
and IBootControl.h
is included in BootControlClient.cpp
What I could find is this boot/aidl/android/hardware/boot - platform/hardware/interfaces - Git at Google
They are .aidl
files and not .h
files
I have no idea but I guess they’re transformed into .h
files during build.
linsui
November 1, 2024, 4:32pm
18
Magisk doesn’t support flashing from recovery anymore. You should use the patched boot.img instead.
linsui
November 1, 2024, 4:32pm
19
Interesting. I’ll have a try for the next update. Thanks!
bob.fg
November 2, 2024, 6:57am
20
Hi. Thanks for your reply.
I followed @Licaon_Kter advice and encrypted my phone to install Magisk later.
After encryption, I rebooted into Recovery and saw this window
I entered the password correctly but got the error “unable to mount storage”