yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] AOSP100:
# Android fstab file.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta,logical,first_stage_mount
product /product ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,data=journal,commit=1 wait,formattable,first_stage_mount,check,metadata_csum
/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,quota,formattable,fileencryption=ice,reservedsize=128M,sysfs_path=/dev/sys/block/bootdevice,keydirectory=/metadata/vold/metadata_encryption,checkpoint=fs
/devices/platform/soc/a600000.ssusb/a600000.dwc3* auto vfat defaults voldmanaged=usb:auto
/dev/block/zram0 none swap defaults zramsize=2147483648,max_comp_streams=8,zram_backingdev_size=512M

How do I understand which type of encryption that sunfish's LOS tree uses? The fstab file is the only thing that I can understand that has to do with it.
[General Questions and Answers] alecxs:
read the LOS thread, depends on ROM. your fstab is metadata encryption. FBEv2 afair was introduced with A13. I did find only one TWRP thread, and that is a testing build...

https://xdaforums.com/t/twrp-3-7-0-12-for-sunfish-testing.4179101/post-88978961
[General Questions and Answers] AOSP100:
What could I have done? Installing TWRP broke all access to userdata even when I uninstalled and flashed back to LOS recovery. Someone said or implied that backing up the metadata partition and reflashing it won't do anything.
[General Questions and Answers] alecxs:
As we mentioned several times, it is not possible to create backup. The error already happened at the time of creating partition image with adb pull. you just dumped a good load of garbage.

restoring raw partition might have worked coincidentally, if no factory reset would have been performed between creation and restoration. but the encryption keys already were gone at the time of reinstalling LineageOS to a working state.

if you want have a backup of userdata partition from adb pull, do it in a working state - AFTER unlocking with lock screen credentials.
[General Questions and Answers] AOSP100:
The only thing that's been bugging me the most is whether that mistake is normal or if I had to be truly idiotic and ignorant for it to be possible. I'm the best in my family at computer tech, but I've been persistently at the amateur level for years.
[General Questions and Answers] alecxs:
The mistake is more likely to happen to tech-savvy people who are familiar with linux. amateur android user's would probably use a backup app instead - or TWRP.
[General Questions and Answers] AOSP100:
I forgot to say that I already gave up now that my screen randomly broke for the third time, and now I'm replacing that phone. Other people on the same boat could take my place on this thread.
[General Questions and Answers] alecxs:
@I_did_it_just_tmrrow If TWRP previously was able to decrypt and now it doesn't, obviously some data is inconsistent. if it's just a minor issue with file system you maybe can fix it with fsck.f2fs on userdata. share /tmp/recovery.log for further analysis.

btw can you share the pattern matrix used? it may help @ictecnics
[General Questions and Answers] I_did_it_just_tmrrow:
My pattern was 6x6. I checked the table here in the middle:

File:ASCII-Table-wide.svg - Wikimedia Commons

commons.wikimedia.org

First touch point (up, left, 1/36) is for example the decimal 48 == char 0.

My crazy powerPoint skills revil this :D

so for example: 0123456<BA@?>= .

twrp derypt '0123456<BA@?>='

I hope this helps @ictecnics

Back to my problem.

In twrp I pulled the encrypted userdata and my metadata partition.

adb pull /dev/block/by-name/userdata
adb pull /dev/block/by-name/metadata

Is this the right command for the tool you mentioned @alecxs ?

fsck.f2fs -f /dev/block/bootdevice/by-name/userdata

Greetings by Idijt
[General Questions and Answers] xXx yYy:
With Regards to Decrypting a FBE dump

Technically, with FBE, each folder encrypts the including filenames with a separate key, and analogously, every file content is encrypted with a different key.

AFAIK the exact composition of the FBE's CE key (master key) on Android is not publicly available.

Here's what publicly is known about the CE key (masterkey):

It's generated during device setup by the Android kernel.

It resides within a trusted execution environment (TEE) on the device for enhanced security.

It's derived from the user's chosen credentials (password or PIN) along with device-specific hardware identifier and random data.

It's a 64 bytes ( 2 x 512 bits ) long AES256 encrypted value. ***

While the specific details of the key derivation function are not revealed, it's likely a strong cryptographic function designed to resist brute-force attacks. This ensures that even if someone obtains the encrypted password, it would be computationally infeasible to crack it without the original user credentials.

To decrypt only knowing the password or PIN doesn't help at all!

***

Two main AES-256 based encryption methods are used on FBE devices:

AES-256 XTS: This is the default encryption mode for FBE since Android 11 https://source.android.com/docs/security/features/encryption/file-based. It's a proven mode specifically designed for full disk encryption, offering strong security.

AES-256 GCM (for key encryption): While data itself is encrypted with AES-256 XTS, the FBE keys themselves are encrypted with a separate AES-256 mode called GCM (Galois/Counter Mode). This adds an extra layer of security for the keys.
[General Questions and Answers] Renate:
I've never had much interest in the details of the keys/key generation.

The one question that I'd like to know is simply:

Does the TZ/TEE have key storage outside the flash?

If you take a device, copy the entire flash as raw, then wipe/delete whatever you like, then restore the entire flash, is your userdata still accessible?

We know that there are TZ/TEE commands to "delete all keys".

If this only affects flash, then a raw flash restore will restore everything.

If some secret NVRAM (can't be SRAM or DRAM) gets written then even restoring the flash won't get things working.

I have done raw flash backup/restore and swapped around backups from different times and it all worked, but never tried "wiping".
[General Questions and Answers] I_did_it_just_tmrrow:
here is my fsck.f2fs result:

davinci:/ # twrp decrypt OPWRSTN
Attempting to decrypt data partition or user data via command line.
Failed to decrypt data.
davinci:/ # fsck.f2fs -f /dev/block/bootdevice/by-name/userdata
Info: Force to fix corruption
Info: No support kernel version!
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 4096
Info: total sectors = 13518331 (52805 MB)
Can't find a valid F2FS superblock at 0x0
Can't find a valid F2FS superblock at 0x1
255|davinci:/ # twrp decrypt OPWRSTN
Attempting to decrypt data partition or user data via command line.
Failed to decrypt data.
davinci:/ # twrp decrypt OPWRSTN
Attempting to decrypt data partition or user data via command line.
Failed to decrypt data.
davinci:/ #

EDIT:

It looks like I can still boot the Android LineageOS system. I can also get an adb shell with the laptop with which the adb connection was established when the os was still running.

However, the adb, like the operating system when I had the opportunity to connect a suitable display, seems to freeze after some load.

Here is a part of the adb logcat from the boot:

Spoiler content hidden.

You can find the full adb startup log in attachment.
[General Questions and Answers] alecxs:
okay I see your device is metadata encrypted, but TWRP recovery.fstab is misleading. check twrp.fstab if flags for metadata encryption are set.

logcat looks promising, seems like you're in similar situation as @ictecnics you cannot unlock pattern from adb?

have you tried scrcpy on broken screen, or is the display fixed but device boot-looping? sry I am not at track please clarify

at least /data is mounted and f2fs.fsck is performed automatically, keys looks healthy on a quick look. search logcat for "failed to decrypt" and google for meaning of return codes, you're on a good way.
[General Questions and Answers] alecxs:
the correct flag starts with keydirectory= you can find it either in recovery.fstab or twrp.fstab (sometimes twrp.flags)

I assume scrcpy failed because it can't install its server due lack of access. can you access /data/local/tmp? that's where the server is copied.

but scrcpy needs more permissions than adb, these should be set beforehand.

https://xdaforums.com/t/how-to-rescue-data-from-my-9t-pro.4581901

you can get a adb root shell by enabling properties in default.prop. look over here

https://xdaforums.com/t/guide-how-to-access-a-device-with-a-broken-screen.4616929

If you have the possiblity to patch a boot.img / vendor_boot.img with Magisk (on a spare device) you can use overlay.d to tweak properties (requires access to /data/misc during any boot stage)

https://xdaforums.com/t/accessing-my-phone-with-a-dead-screen.4542763/post-88016019

regarding your logcat, yes I have seen this. You need to find someone who can identify the issue with decryption, I don't have the knowledge and patience for this. to me it looks like encryption is healthy... can't determine the cause of boot loop sorry :(
[General Questions and Answers] Renate:
And the answer is: Yes and No.

We all know what a LUN is: Logical Unit Number.

If you have UFS you've seen them, 6 or 7 of them.

Did you know that eMMC flash has them also? 4 of them.

The biggie is LUN0 user which is GPT partitioned into 70 odd partitions.

On your 32 GB device it's around 32 GB.

There's also LUN1 and LUN2 which are boot0 and boot1 maybe 4 MB each (and not used).

Finally, there is LUN3, the RPMB, Replay Protected Memory Block.

That has special security and works exclusively with the TZ/TEE.

So if you make a full raw backup (i.e. 32 GB from LUN0) then write whatever you want (in LUN0) then restore (to LUN0) everything will be back as it was.

If you fastboot -w the TZ/TEE will wipe your keys stored in the RPMB and you will never see your data again.

Did you know that my edl.exe can also read (& write?) LUN1 & LUN2?

edl.exe /m1 /r lun1.img
edl.exe /m2 /r lun2.img

It's all zeroes on the device that I checked.

edl.exe /m3 /r lun3 /v

This gives you error, but different than if you specify a LUN that doesn't exist, like /m4.

UFS uses a "well-known" LUN 0x44=68 for RPMB.

If somebody has a UFS device could they try:

edl.exe /u68 /r lun68 /v
edl.exe /u69 /r lun69 /v

It shouldn't read anything but it should give different error messages to show that /u68 exists.
[Sony Xperia 1 III] GeramanX:
Hi guys!

I got a charger for my phone last year and kept it in a drawer until I get a second one so I can use it and still have a spare.

Last week I got one from eBay and found out some differences, this make me wonder: did I get scammed?

Differences are the writing on the back and the little holes in the power plugs.

Other than that they look very similar.

Bye the way, if someone can please help me in the other thread would be awesome :)
[Sony Xperia 1 III] Zxalilh:
I can't tell you it's real but the one with the hole is a JP or Japanese version and the one without the hole is a CN or Canada version. I doubt you'll have any problems with the one you bought unless it's a fake.
[Sony Xperia 1 III] GeramanX:
Thanks for the info, I didn't know that, I'll check it out online just to make sure :)
[Sony Xperia 1 III] hotcakes_shinku:
The adapter with the holes in the prongs (those metal parts sticking out of a plug head we call them prongs) is for the American/Canada market.

There is more text and markings on the adapter for the American one because it is required by law of multiple countries that use the American plug head.

Those texts/markings/logos show what standards the plug confirms to, or what testing did it undergo and pass to what level, or who did the testing.

The one that doesn't have holes is for the Chinese market.

Adapters for the domestic China market only needs to have text/markings for their own country, and they have less regulations compared to multinational/export plugs.

You usually can plug in the two prong China plug into USA sockets and the two prong USA plug into China two prong sockets without needing an adapter, provided the adapter supports both USA 110v and China 220v.
[Sony Xperia 1 III] GeramanX:
Thank you for your answer, so basically I'm OK right? 😉
[Sony Xperia 1 III] RF Junkey:
The one on the left in photo is not for imported for US use.

Look for the UL safety Mark before you buy

If we sound or look familiar, but you can’t put your finger on it, it’s because the UL Mark appears on more than 22 billion products around the world each year. It’s the single most accepted certification Mark in the United States.

www.ul.com
[General Questions and Answers] barbubarba:
I'm wondering how to unlock my Keefe brand 7T MODEL & HARWARE 711, ANDROID VERSION 10 CUSTOM BUILD VERSION vnd_tb8168p1_bsp 1690562623 tablet. I got in prison in New York? Q. In February 2024. Thank you​
[General Questions and Answers] TNSMANI:
MOD ACTION:

Thread closed.

We do not want legal hassles over your posts asking for help in unlocking a govt. secured device supplied in prisons. We have no way of ascertaining whether your request is legal or not. You are free to browse the forum but please do not post asking for such help. If you do so, your account may be restricted. Rule 9 of XDA Rules which you agreed to abide by when you joined:
[General Questions and Answers] kaizennkioshi:
Currently, i have android 12 Infinix hot30i X669 (Build # V539).I wanted to downgrade the android version but i can't find any firmware with V539. V536 is the very recent file. Will it work if i flash that rom?
[General Questions and Answers] xXx yYy:
Visit the Infinix website or support forums to see if there's any official mention of downgrading or any downgradable firmware available.
[Fire TV Q&A, Help & Troubleshooting] remmidemmi00:
Hello, I have the Fire TV 10 2nd generation. Is there already a good running ROM for this? IPTV Smarter Pro always crashes for me.
[Fire TV Q&A, Help & Troubleshooting] Finnzz:
What is the Fire TV 10 2nd gen? Never heard of this model before.
[Fire TV Q&A, Help & Troubleshooting] remmidemmi00:
I mean Fire TV Stick 4K Max (2023)
[Fire TV Q&A, Help & Troubleshooting] Finnzz:
There's no ROMs or way to bootloader unlock the 2nd gen 4K Max.
[Fire TV Q&A, Help & Troubleshooting] remmidemmi00:
Ok, thx
[Fire TV Q&A, Help & Troubleshooting] ETH1337:
damn i pressed buy without researching this, do you maybe know a working and recomended lanucher to get rid of the ads-fest?
[Fire TV Q&A, Help & Troubleshooting] Finnzz:
The best that can be done on the newest FireOS versions is Launcher Manager mini. There's a ~3-4sec delay between pressing home and getting to the custom launcher.

[APP][FIRETV][NOROOT] Launcher Manager (Change Launcher without Root)

LAUNCHER MANAGER (FOS 6+) BLOCKED BY AMAZON, USE LAUNCHER MANAGER (MINI) STEPS TO ENABLE CUSTOM LAUNCHER: Before installing version 1.1.8 uninstall any previous version. 1. Download Launcher Manager by clicking or by using short link and...

xdaforums.com

Your other options are to return the Stick, get a new one, don't let it update and you can use the older Launcher Manager app that only has a split second delay.

There's also temp root on the 3rd gen Cube that will allow setting a custom launcher without any delays or glitches. But it's more money.
[Introductions] pHuski:
Just a quick introductory post adhering to the mods welcome post.

Newbie - here to learn & maybe, in time contribute.
[Introductions] Sib64:
So welcome aboard pHuski,

I hope you find all the help you need for learning. With a little patience and by asking the right questions in the right place, everything should go smoothly.

If you have any questions, don't hesitate to click on one of the links in my signature.

If you haven't already, please read the Forum Rules now, as they are the terms and conditions for using this site.

Have a good time on xda ;)
[Introductions] barbubarba:
Hi My user name is Barbubarba I found this a great place to get help with android installations.
[Introductions] Sib64:
Hi barbubarba and welcome aboard,

I hope you find all the help you need. With a little patience and by asking the right questions in the right place, everything should go smoothly.

If you have any questions, don't hesitate to click on one of the links in my signature.

If you haven't already, please read the Forum Rules now, as they are the terms and conditions for using this site.

Have a good time on xda ;)
[General Questions and Answers] HansZimmer:
Hi,

for me it is not very usefull to enable and disable Wifif with windows mobile tools or connection manager.

So i have to ideas:

First simple: is there any tool to enable/disable wifi with just start the tool ? Some little program I can add into the menu area and with one click in enables or disables wifif, without any GUI, just one click ?

second one:

What about a wifif manage on program base ? A tool which runs in the background and where I could add my Internet programs I want to use (for example google maps). The tool should recognize when I start the google maps tool and the enable wifi. If the tool detects the closing of google maps, it disables wifi. With a short list I could add my tools and never have to solve the problem of wifi, because all works automatic AND saves a lot of power.

What do you think, is such a tool possible or maybe even available ?
[General Questions and Answers] Richardprins:
on off tool

Hi hanszimmerdude,

I think i have the answer to your first question, this is a simple exe, which works on my diamond (I don't know about other devices) and i took it from this app over here: http://xdaforums.com/showthread.php?t=421802 ([SKN]+[APP][08-29-2008] Action Screen 9 Btn Diamond V5 & V5.1 (Phone or WiFi and BT)) by Fabliv. I hope it works on the device you're using, good luck.
[General Questions and Answers] hotrod101:
WIFI Toggle freeware available at this link

http://www.freewarepocketpc.net/ppc-download-aktogglewifi.html

There is also bluetooth Toggle

http://www.freewarepocketpc.net/ppc-download-bluetooth-toggle.html

I use both and they both work great for me
[General Questions and Answers] stylez:
Nice one for the links working great on Tilt :)
[General Questions and Answers] HansZimmer:
Thank you for the on off tools. great !

Maybe anybody have some ideas about a wifif manager with application detection ...
[General Questions and Answers] hotrod101:
Why don't you look into Throtle Launcher *Freeware or Ultimate Launch (Free trial ( worth paying for in my opinion ) You can create a page just for your online apps and include te WIFI Toggle on that page - This is what I did for my setup. I have one page in my ultimate Launch setup just for online stuff - Shortcuts to internet radio stations, podcasts, video's. I am going to create another one for shortcuts to my favorite most used websites as well.
[LG G7 ThinQ  Questions & Answers] PanoTent:
I own an LG g7 ThinQ, I went to xda to download the gcam and LMC versions that are compatible with the device, but when I take a photo the cam is very laggy.
[Xiaomi Mi Note Pro] python_developer:
I have a problem with my phone, I have a MI Note 9 pro with MIUI 14.0.3 and android v 12, I can't find notification history, there is nothing like this option in <setting/notifications..>

is there any way to activate that or any 3-rd part app which cause activate it?
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] AnonymousUser001:
I installed FDE.AI and when I plug in charger it is not rebooting but when i unplug (ig bcoz of FDE.AI automatically goes discharged state profile) my phone starts to reboot again and again like rarely i am able use my phone for 1-2 mins...every 2 mins it reboots and sometimes I am unable to unlock my phone just bcoz phone gets rebooted after every reboot...sometimes after bootloader too when phone is starting it reboots back...seems like when heavy process or battery draining process is there it tends to reboot just bcoz FDE.AI changed some VM and Kernel params in /proc ...even tho i uninstalled FDE.AI still reboot problems exist (seems like FDE.AI didnt revert back the changes)...I tried resetting my phone, reinstalling stock firmware, custom rom (i tried diff roms too) and recovery but still reboot problem exists..Idk how I would revert back changes in /proc. Should i install FDE.AI back in charging state and quickly boot phone to recovery turning off the root access? as in charging state it switches to profile which doesnt cause reboot but while discharged state it causes problem...so while charging and booting recovery to turn off root access might prevent FDE.AI make changes in system by switching to bad profile?​

Device Specs:

Redmi Note 9 Pro (Curtana)

Snapdragon 720G

4GB RAM, 64GB Storage

5020 mAh battery

Rooted (Magisk), OrangeFox, Custom ROM (Evolution X, Lineage OS..etc)

CPU/GPU Turbos Supported and Other things too
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] shadowstep:
THREAD LOCKED

Requested by OP.

Regards,

shadowstep

Senior Moderator
[Android Head-Units] paul1101:
This is the screen of my Android car, thank you all

********************

這是我的Android汽車的螢幕，謝謝大家

View attachment 6078321
[Realme C2] Alpha_Legents:
Hey there reader,

Is it possible to Go from ColorOs to RealmeUI by any sorts

Phone has reached End of Life...But still need it up and running smoothly

All sorts of help will be thankful

Thanks
[Nokia 6.1 Plus (X6) Questions & Answers] Will9620:
Hi all,

As the title suggests, is the Nokia 6.1 Plus compatible with AWUS036NH?

I have installed Kali Nethunter and the wireless firmware module, but I'm unable to get the WiFi adapter AWUS036NH to work. Any solutions?
[Nokia 6.1 Plus (X6) Questions & Answers] Will9620:
I found the solution already and it detects my wifi adapter, but still cannot use.

In the lsusb it shows my wifi adapter but in the iwconfig shows no wireless extension.
[Tilt, TyTN II, MDA Vario III General] talonz55:
Is it just me, or does this Nokia look suspiciously familiar?

http://www.engadget.com/2008/12/02/nokia-unveils-flagship-n97-phone/

Isn't there like some sort of design copyright? Just wondering...
[Tilt, TyTN II, MDA Vario III General] stylez:
To be honest most phones with a slideout keyboard look similar and infact i wouldn't even go to say there too similar the Nokia has flush buttons on front and a dpad on the keyboard, oh the screen size will be the same due to rez, and the qwerty keyboard not much we can do about that lol
[Tilt, TyTN II, MDA Vario III General] denco7:
Definitely do not want to get rid of my tilt screen, sorry Fuze. But definitely don't want to deal with Symbian either. What to do ?
[Tilt, TyTN II, MDA Vario III General] talonz55:
Have you noticed the "tilt"?
[Tilt, TyTN II, MDA Vario III General] Hyden121:
Interesting. I was looking at the onboard memory.... 32GB and expandable up to 48GB. That seems like a mix of the Tilt/Fuze/and Apple I-Pod. I would look at it. My tilts are having issues but ATT will not upgrade me to the Fuze so I guess I should learn to cook. ;)
[Tilt, TyTN II, MDA Vario III General] stylez:
Yeah ok i didn't notice that but doesn't it make sense to incorporate i'm sure the way it works would be different in operation than the Tilt to get around "Isn't there like some sort of design copyright"