z3ntu / android_device_fairphone_FP4

Android device tree for Fairphone 4
14 stars 4 forks source link

/data decrypt support? #2

Open strlcat opened 2 years ago

strlcat commented 2 years ago

Hi,

Built and booted image successfully on my brand new unlocked FP4, which already has some user settings and apps inside. But there is no option to enter password to gain access to /data/data etc. Is it actually hard to implement? I don't know much about TWRP internals regarding this. Previously I owned Pixel 4a, built TWRP for it and it had this option and I could access encrypted files.

Thanks.

z3ntu commented 2 years ago

Hi, there's a guide at https://github.com/TeamWin/android_device_qcom_twrp-common , I've attempted it in the past (and to my knowledge also some other people for FP4) but we couldn't get it working so far.

strlcat commented 2 years ago

Oh well. I'll look into this closer and will try to compare with pixel 4a tree. Thanks

strlcat commented 2 years ago

So well I tried it but I believe I messed with .mk files somewhere, because resulting recovery.img produces log like

Using drm graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 127
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
E:Package splash failed to load.
E:Failed to load splash screen XML.
I:Loading package: TWRP (/TWRP/theme/ui.zip)
I:Loading zip theme
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
E:LoadLanguageListDir '/twres/languages/' path not found
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
E:Package TWRP failed to load.
Failed to load base packages.
E:An internal error has occurred: unable to load theme.

endlessly and recovery process is crashing with SEGV. I also captured it's strace confirming the issue. By some reason /twres directory is whole omitted when I try to build with configuration example from link. If I revert and delete out and rebuild, /twres returns, TWRP boots fine.

I will look closer tomorrow.

z3ntu commented 2 years ago

I believe logcat also should exist in the build, check that also.

strlcat commented 2 years ago

Nah, just build system fault. Complete wipe and start from scratch resolved problem. But crypto related services still wont show up, no info even in logcat. Suspecting missing props. Need to compare to reference trees.

ghost commented 1 year ago

Do we have any progress here with encrypted user data?

z3ntu commented 1 year ago

Not that I know of.