yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 20 Ultra Questions & Answers] map7:
I only have Linux machines. I've compiled Heimdall & the heimdall-frontend. I've used this in the past to install TWRP successfully on many phones but I'm confused on how to flash the stock firmware using this tool.

I've done the following so far;

1. Started heimdall-frontend GUI

2. Downloaded the pit file

3. Download the Stock ROM from https://samfw.com/firmware/SM-N986B/OPS/N986BXXU5GWA5A

4. Unzipped that file and I get the following files

AP_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT_meta_OS13.tar.md5
BL_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
CP_N986BXXU5GVL2_CP23419976_QB60212932_REV01_user_low_ship_MULTI_CERT.tar.md5
CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
HOME_CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5

5. Remove md5 extension from each file

6. Untar each file and I get the following files;

-rw-r--r-- 1 map7 map7 1.2K Jan 5 13:59 dqmdbg.img.lz4
-rw-r--r-- 1 map7 map7 636K Jan 5 13:59 dtbo.img.lz4
-rw-r--r-- 1 map7 map7 21M Jan 5 13:56 boot.img.lz4
-rw-r--r-- 1 map7 map7 6.4K Jan 5 14:16 C2S_EUR_OPEN.pit
-rw-r--r-- 1 map7 map7 1.6K Jan 5 14:09 cache.img.lz4
drwxr-xr-x 2 map7 map7 4.0K Jan 5 14:30 meta-data
-rw-r--r-- 1 map7 map7 2.8K Jan 5 14:07 misc.bin.lz4
-rwxrwxr-x 1 map7 map7 31M Dec 12 14:26 modem.bin.lz4
-rwxrwxr-x 1 map7 map7 4.8M Dec 12 14:26 modem_debug.bin.lz4
-rw-r--r-- 1 map7 map7 1.2K Jan 5 14:09 omr.img.lz4
-rw-r--r-- 1 map7 map7 717K Jan 5 14:10 optics.img.lz4
-rw-r--r-- 1 map7 map7 933M Jan 5 14:10 prism.img.lz4
-rw-r--r-- 1 map7 map7 34M Jan 5 13:56 recovery.img.lz4
-rw-r--r-- 1 map7 map7 5.8G Jan 5 14:28 super.img.lz4
-rw-r--r-- 1 map7 map7 863M Jan 5 14:09 userdata.img.lz4
-rw-r--r-- 1 map7 map7 3.6K Jan 5 14:28 vbmeta.img.lz4
-rw-r--r-- 1 map7 map7 2.8K Jan 5 14:28 vbmeta_samsung.img.lz4

7. I unlz4'd each of these to get the img/bin files

8. Then I started to match these files up to the partitions in the heimdall-frontend from my loaded pit file.

9. I then hit start, but it just finished too quick with no error message. It didn't seem to transfer anything.

I'm I even on the right track here?

Have I forgotten a step?

Would it be better to use the heimdall command line? If so which parameters do I use to load this stock image?

Do I have the write ROM?
[Samsung Galaxy Note 20 Ultra Questions & Answers] hungtinglung:
flash the unzip stock rom with odin.

https://samfw.com/blog/download-odin-all-version.

csc for clean install.

home csc for dirty flash.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Nico1544:
Have issues with heimdall too

But you can try Odin 4 from Mohammad afaneh on github, should work, or u make a windows vm and install the guest iso then you can use odin
[Samsung Galaxy Note 20 Ultra Questions & Answers] map7:
Tried odin4 for linux and also borrowed my brothers Windows 11 machine and tried odin 3.14.4 and both of those also bomb out whilst writing the stock files.

Is it worth sending a file at a time instead of all at once?

I've currently got TWRP loaded, but it I go to wipe I get this error;

Failed to mount '/system_root' (Block device required)
Failed to mount '/vendor' (Block device required)
Failed to mount '/product' (Block device required)
Failed to mount '/odm' (Block device required)
Failed to mount '/prism' (Block device required)

I've tried installing DynaPatch-v1.5.zip through TWRP and doing a cold boot of the device back into TWRP, then an advanced wipe but still get the same issue and I cannot see 'system' in the list.
[Samsung Galaxy Note 20 Ultra Questions & Answers] map7:
After flashing DynaPatch I went back to using heimdall_flash_stock scripts and it worked! I managed to put a stock Android 13 Samsung ROM back onto the phone and relock the bootloader. All the warnings are gone.

repacksuper/heimdall_flash_stock.sh samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip

I got the heimdall_flash_stock scripts from;

Installing GSI by repacking super.img on SM-A127F and SM-A325F (Linux)

repacksuper =========== Copyleft uluruman 2021-2022 (for LINUX/WSL only) This is the minimalistic set of tools + a script for Linux for the automated ground-up repacking and flashing of the Samsung Galaxy super.img, replacing the stock Android...

xdaforums.com

They really helped get this all going again.
[Touch HD General] ruyzalim:
Hello anyone knows how to unlock the Blackstone?

many thanks
[Touch HD General] zmalach:
HTC Touch HD

Me too, how to unlock the HTC Touch HD locked to Oange?

TA
[Touch HD General] XeonSX:
there this thread:

http://xdaforums.com/showthread.php?t=430048
[Touch HD General] zmalach:
HTC Touch HD

I meant a cheap unlocking!
[Touch HD General] XeonSX:
IF you mean free then I dont know but theres a link to 22$ unlocking service, not too much.
[Touch HD General] RizwanKhan:
thats the cheapest so far ... unless you ask your carrier for the sim unlock code. I know in US your carrier has to give it to you after 3 months of service don't know about UK regulations.
[Touch HD General] XeonSX:
Only here they are alllowed to charge you for it, 20 pounds for orange unlock code but thats not even posssible as the phone is only a month old in the UK I think
[Touch HD General] RizwanKhan:
aah that sucks ... sorry .. That was a suggestion for op as he didn't want to pay the 50 (wait it out another 2 months ;)).
[Touch HD General] crystal_clear:
UK providers

UK phone providers Orange - will ask for the full value of the contract to unlock it - ie if you have 12 months left at £30 then £360 for the code + unlock fee £20 quidish.

Not sure about T-Mo - but i believe at the end of the contract they will give it for free, but dont say your going to another network, as they'll charge you for the privilidge.

Been there done that... htccode.com appear to be the cheapest at present at £15.

Reviews of service appear to be very positive!
[Touch HD General] KJSav123:
Found this Forum whilst looking for quick way to unlock HTC Touch HD - follwed this recommendation and it's unlocked :) From sending Paypal payment to getting code took about 5 mins - made contact via MSN and they are really good - if anyone is going to do this, saves asking them the same question as I did - when you enter the unlock code it'll say it's accepted but will then say it's locked again - enter the code once more - that'll do it :)
[Touch HD General] devioust:
hi

i need help i recently got a HTC Touch HD on a orange UK contract 18th of december to be precise from buymobilephones.net. The problem is i cannot unlock it i have tried (unlock-HTC.com0 and (htccode.com) both of them gave me the same code for my phone and it didnt work i have attempted it 7 times now and my phone has a long time out in order to try again please is anything i am doing wrong or do i have install something before inserting a sim locked card i am in the process with htccode to see if they can do anything for me or is it a case that the unlocking code isnt available i prepared to pay a donation or what ever it is to get it unlocked thanks.
[Touch HD General] CutePinkSox:
HT

I have the owner of HTC Code on my MSN Messenger contacts - I will quiz him about this and then get back to you mate... hang on. I intended to use HTCCODE as well upon delivery of my handset.
[Touch HD General] CutePinkSox:
HTC Code

I have the owner of HTC Code on my MSN Messenger contacts - I will quiz him about this and then get back to you mate... hang on. I intended to use HTCCODE as well upon delivery of my handset.
[Touch HD General] vit4u:
What's funny, I bought my HD at Bouygues Telecom in Paris. They claimed it's locked to them. Once I came to the hotel and inserted my SIM card - it worked with no problems. They lied! Actually, I think the same thing was at Fnac. They had two versions of the phone - locked to one of French providers for EUR 589 and unlocked for EUR 699. I guess it was the same phone. I bought my one for 549, flashed to WWE and it works like a charm!
[Touch HD General] crystal_clear:
its illegal

In france, its against the law to sell phones that are locked
[Touch HD General] gsmtech:
huh????? I get plenty of phones LOCKED to french networks from visitors here in Canada! what r u talking about?
[Sony Xperia 1 IV] hellcycle:
Sony xperia1 iv 12+512 android 12

Sony xperia1 iv incoming call ring tone only has sound from the speaker below, but no sound from the speaker above. Is there any solution? Watch videos and listen to music. There is sound between the speakers above and below, only the ringing tone of incoming calls

报错

笔记
[OnePlus 10 Pro] NightS12321:
After fix brick, my device meet a issue that showing wrong battery percentage, 20% can use onscreen 6 hours, then shut down when it reached 80%. I try to find some solution but they all said the battery is broken.

Is there any place that selling battery replacement?

Thanks and sorry for my bad english
[OnePlus 10 Pro] maddler:
If the phone is still under warranty, your best chance is to reach to the 1+ support.

For the battery you can tryh checking on Aliexpress but I'd be *very* wary of aftermarket batteries.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
View attachment 5821473

LineageOS is a free, community built, aftermarket firmware distribution of Android 13, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the changelog for a full list of changes & features.

What's working:

RIL (Calls, SMS, Data)

Bluetooth

Wi-Fi

Camera

Video Recording

Video Playback

Audio (Record and Playback)

Sensors

Flashlight

What's not working:

VoLTE (Blame Samsung for that)

FOD working only on highest brightness Now it's functional

Camera HAL3 and 48MP back camera, this is due to Samsung's extension to camera HAL is not recognizable by AOSP (Again blame Samsung)

Feel free to report any issues you may encounter with relevant logs

Installation:

Download the latest supported Lineage OS build

Reboot to recovery

Wipe data, system and cache/dalvik cache

Flash the LineageOS zip

(Optional) Flash arm64 gapps of your choice (NikGapps or BitGapps are recommended)

Reboot to system and enjoy!

Notes:

GrassKernel is included with the ROM (See here)

To use MTP as default, enable developer options and choose file transfer as default mode for usb configuration

Only for A51 4G variant, 5G has different SoC therefore not supported

EFE - Enabled FBE, the one without EFE suffix is decrypted build. applies from Apr 25 builds

Downloads

ROM:

A51 Builds by Royna - Browse /LineageOS-T at SourceForge.net

sourceforge.net

Feel free to join support telegram group here

Kernel source: Here

If you want to help me: Donate
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
ChangeLog

- 2023/01/28

Initial build

- 2023/02/01

ROM side

Fix headset audio (Reverted to stock audio libs, may fix other audio issues)

Adjust screen max brightness/Auto brightness values. (Values from TrebleDroid GSI rro for A51)

Fix padding (Again GSI values)

Switch to EROFS for /vendor

Kernel Side Changelogs

Import EROFS driver

Import Android Incremental-FS driver

Import NTFS3 driver from Paragon software

- 2023/02/25

ROM side

Extend max brightness to 365 (Same as OneUI stock)

- 2023/03/23

ROM Side

Enable FBE

Add support for display doze

Uprev camera provider HAL to 2.6

Fixes FOD by boosting brightness when finger is touched

Also works even if Night Light/Extra Dim is on

Kernel Side

Fix proximity reversed values

Fix problems enabling dual AP feature

More same as kernel changelogs

- 2023/04/26

Kernel)

- Enable Wi-Fi AP auto recovery

- Kill logspam of ABox and media driver

- Kill freqboost of ABox for heating (fixup previous call audio bug)

- Implement FOD wakeup for A51 (fixup previous fod area sleep bug)

ROM)

- Fix back NFC for A51

- Fix DRM L1

- Fix offline charging

- Fix distorted bt audio in calls
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
For the TWRP for Android 13 bootloader, check this
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] tanovicd123:
Thanks for the rom! I will try it as soon as i install gapps. Also, what on bootloader version do i have to ve (Android 12, 13)?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
13, the latest one

(Else won't boot)
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] tanovicd123:
Then what recovery do i use?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] skymterix:
bro there isnt no recovery for android 13 on a51 is there another way to do it
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
I will provide TWRP for A13 shortly

(Edit: check 3rd post)
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] tanovicd123:
The phone wont boot. Any suggestions why?

(Edit: Works fine now)
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
Can I flash magisk for root (ramdisk support)? Is there also lineageos recovery to flash instead of twrp? Last, is selinux enforcing or permissive?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Try, yes will be uploaded today, enforcing and user build
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] cantthinkofagoodusername:
sorry to bother, but for some reason i cant access my internal storage in any way with this rom installed (not with my phone nor my pc) i have the android 13 bootloader installed and precisely followed every step. what went wrong?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
Hello, is there any possibility that this rom will be ported to the official lineage operating system in the future? I am grateful for your support for our device.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] testchmb:
hi, why are you using kernel 4.14? i thought android 13 must be use 5.15
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Adnan7995:
Exactly. Thats why I'm not flashing it.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
? Does S20 have 5.15 kernel to get android 13? Minimum requirement is 4.14. 5.15 is for phones released with a13 and even it is a not a requirement, OEMs can choose 5.10.

5.15 is the latest GKI version.

Also if it can't boot then why did I post?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
No, it's not correct. Even official lineage 20 (Samsung) devices have 4.14 kernel.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] goldyit:
lineage 20-20230201 fingerprint not working
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] testchmb:
Hi, how to install Google Phone? I tryed to install it from playstore using nikgapps, but i cant bc it says that my phone not supporting it. I also tryed to install MidThegapps but it didnt work
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Peam03:
How do I flash the Android 13 bootloader? The A51 4G didn't get Android 13 officially, right?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
it has official a13
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] skymterix:
it did get android 13
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
Bug report

In the quick panel, the bar with the power and settings buttons looks weird. (looks shady especially in light theme)

↓↓↓

But when the system colors are changed from the wallpapers and styles section, the bar appears as it should, but after a while it breaks back down.

↓↓↓

The same error occurs when using 3-Button navigation. The bar appears nested with buttons. ↓↓↓
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] hellt57:
Screen flickers when you put it to your ear during a call. There is no such problem on GSI firmware. sensors are OK

UPD:

Hover proximity value near the ear

Hover proximity value on a table with an open sensor

I've been looking for a few days now how to set up this sensor

Does anyone know what config file is responsible for this?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] hacker812c:
Great Job thank you
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] jer194:
Thanks for sharing! I assume this TWRP version is mandatory for Samsung Stock A13 ROM.

I have been able to unlock the bootloader, and am able to flash it via

> heimdall flash --RECOVERY recovery.img --no-reboot --verbose

However, I just don't manage to immediately get into recovery mode afterwards (using 'volume up' key),

instead it always goes back to stock ROM, and TWRP is lost.

Any idea what I am doing wrong?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
I am not sure if exynos devices have vbmeta included to recovery. If not, you need to flash it explicitly.

Also, you need to go to recovery right away. If you boot to samsung logo, recovery is wiped
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] jer194:
Thanks for your reply!

" you need to go to recovery right away."

That's exactly my problem: I want to do that, but I just don't manage to do it, using the usual (?) method: press 'volume up' and 'sidekey' at the same time ...

It just brings me back to stock ...
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
I am not sure about the key combo for recovery, but I see volume down and power (not sure if it needs usb connected to PC): https://www.hardreset.info/devices/samsung/samsung-galaxy-a51/recovery-mode/
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] jer194:
Thanks again!

After a loong detour (tried via Magisk, downloading stock ROM), and phone not booting anymore,

eventually I was able to get into TWRP (using 'power' and 'vol up').

Now I am on the latest LOS (from today) :-)
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
@Royna can we please have lineage recovery (I have asked again for it)...
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Try to flash the latest build I attempted to fix it
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
It's kinda broken (no fastboot etc) so
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
That's a problem for the future, as twrp does not support ota updates.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Ok then I will ship it with next release of this rom. I think fastboot etc bugs will be solved at that time too
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] bassti774:
How can i wipe system and gapps?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
twrp>wipe>advaced wipe

•Dalvik/Sanat önbelleği

•Data

•Cache

After doing this, you can flash.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Moe_iq:
The fingerprint work just at max brightness . how can we fix it?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] ibtsam3301:
Proximity sensor not working on calls. amy suggestions???
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
To be fixed next release
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Wip
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Will be fixed, found fix for it
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
Also, very very important! Encryption does not work... please add it to "what's not working". Will you fix it please as it poses a security threat especially in recovery where data are unencrypted?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Dharmesh khara:
my phone not starting after this
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Dharmesh khara:
only booing with samsung logo
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
New build is up
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Eleandal:
Hello,

Upon upgrading, I encountered the same issue as above, this build makes my phone not boot up, I had to downgrade to 20.0-20230225
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] iMr3dd:
does fingerprint unlock work on this rom?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
screen brightness is fully increased to scan fingerprint. Can't the brightness increase locally as in stock?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Well see
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
As of https://github.com/LineageOS/android_device_samsung_a51,

Now it's official
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] BrotherBoard:
very nice job ⭐
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
This is great news. Thank you very much for your efforts.👏👏
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Adnan7995:
Nice to see this as official. Does fingerprint work?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] skymterix:
i have to ask is it possible to install on one ui 5.1 ?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
No, or you can test
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Royna:
Yes with global brightness boost
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Fat_Chip69:
Hello! I flashed this on my A51 phone not too long ago, but today I came across a bizzare issue. After leaving the phone on for a while, I found the screen dimmed with the LineageOs working logo on screen. Pressing any button didn’t seem to do anything and the only way to get the device out of this “state” was to fully restart it. Is there any way to fix this?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] laser_unicorn:
Awesome stuff, really !!

Can someone who already installed the March build check whether the phone encryption is working? This is the only criterion for me really :)
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
What's the problem when it's going to be official? Sad to see it unoffical again. what's the problem?
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] TestUserG:
Developer does not have the device (https://review.lineageos.org/c/LineageOS/hudson/+/353564) and he cannot accept donations because of his age. The only solution is for someone else to maintain it for official for whatever rom.
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] Lipsum26:
Wow. It's amazing that he does such excellent work even though he doesn't have this device. I wish I could help.😔
[Samsung Galaxy A51 ROMs, Kernels, Recoveries, & Ot] vinnievh:
Thank you so much for this rom!!

Baraly any gsis worked and I wanted to get rid of oneui, it works like a charm!