yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
So that basically looks the same as if you were to hit the capture logs button from within twrp. Either way, i see the error.

The issue seems to be similar to this

https://github.com/CaptainThrowback/android_device_htc_m8/issues/6

I'll have to sit down with gerrit later and see what he's got and what lineage is talking about as a fix. But capt throwback is one of the main devs of things, obviously he's looking into it himself for his device
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] dreamo.22:
does it work on j510h??

give me a direct link to the twrp so that I can flash it via odin

give me steps I will test it on my j510h
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] NecromancerViper:
Uuuuseee Gooogle
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] dreamo.22:
I am asking if it works on j510h and your telling me to use google?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I did add a line in there to make it compatible, it should be. I haven't really received feedback, so i assume it works until someone says it doesn't
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
There were new advisory opinions issued by twrp team regarding encryption. I would like to test what i have out before messing with the code. Is anyone available to test a new build out for encryption?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
if you want i can test it, but idk if los17.1 encryption is fully working
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Link?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
https://github.com/TeamWin/android_device_qcom_twrp-common

I guess this is how they want things now. I'll agree that it does seem to be geared for devices that need the whole twrp encryption compatibility thing, i've got to look at what if the next step is this is the standard in order to stay official.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I'll do up a j5xnlte build tonight
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] jorel221:
deleted
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Slight delay, i'm trying to figure out why i j5xnlte is giving me lunch errors when that j5xltemcc or whatever it is does not
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Delete
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
[MENTION=8368333]Bogdans29[/MENTION] [MENTION=5230062]daywalk3r666[/MENTION] [MENTION=9057033]Francisco Funes[/MENTION]

Encryption test candidate

https://drive.google.com/file/d/1te_MGawFSxESN7H8f-OYkkDP68oi25WA/view?usp=sharing
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] NecromancerViper:
Francisco is sleeping rn ?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] The Penguin:
Encryption? I need to encrypt the device via settings app?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Yes, from settings app. it was something i was working on fixing up. Make sure you backup internal storage first in case it bootloops or fails. I believe i have it adjusted right.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
thx for sharing but i can't test it before weekend.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Its ok, no rush. Besides, for some reason i think i have a touch issue with the kernel in it. I'll build another one with the fix in it and post that one as well in case that fix didn't make the first build
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
sry can't test your twrp because lineage won't start encryption.

https://gitlab.com/LineageOS/issues/android/-/issues/1027

idk if this is a solution
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Hmm, maybe, the partition size isn't something i've messed with yet. I can crank out another build when i get home and tweak it.

Touch worked or did not work?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
touch is working
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Nice, ok then whatever i did fixed the issue on that without removing a kernel commit
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
New test build

https://drive.google.com/file/d/1yRwWydXOeWisCgnyI8byRUIjCWRBhSGt/view?usp=drivesdk
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
sry i can not get the encryption to work.

with the gitlab solution i ran into bootloop. i will try on weekend another rom.maybe its los or source code bug

edit: on samsung s4 the same behavier.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
something is wrong with this build. it causes a bootloop for recovery modus. only download modus was working. very dangerous for linux user :D:D:D

thanks god a mix from heimdall and jodin fix this bootloop :laugh:
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I think i know the cause of that, i added some kernel commits beyond what was needed for the j5108L or whatever the chinese one is. I can revert them

It also looks like i should dig back into jens's gitea and see if there were any commits i may have missed, i believe i found one, but i never pushed my working repo to github, so idk for sure

Edit - now that i think about it, what you just said is part of how i was left with no way to bring my j5 back to life, in combination with the dead usb port. It rebooted in the middle of a flash, and left me dead in the water. Good to know that its a kernel commit and not an issue in the device trees
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] The Penguin:
Hello again, sorry for replying three days late, i can't test encryption because this is my primary device and i have a lot of important data in it, i still can test other things like backup/restore or flashing zips if you want, sorry.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
your twrp 3.4.0-0 testbuild seems to work

https://ibb.co/1zw4KbR

https://ibb.co/0GzPDXs

but after booting in los and reboot into recovery.twrp needs to long to decrypt and the process failed

idk if this it a los issue
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Oh nice. Well thats a start. I do have a new build with what i was probably missing, thank you jenslody. And the kernel i brought back down to los16 base, and added just the commits that added support for j5, j3, and j7 from los17.1 branch, since some of those commits overlapped.

Decrypt takes too long? Hmm, ok, maybe i need to look at the decryption side of things now. I'm thinking its going to be in line with what capt throwback was saying in that repo i linked to a few posts ago
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
i think its was my fault. i encrypt the device with derpfest and then i restore my los backup.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Could be. I'm still not sure if i have the decrypt right. Like i know that if encrypted, you should be able to get into twrp with or without a password. But if there is a password, and its not entered in, you see jumbled up names on internal storage. But decryption is also the other half of the function. I'll keep working at it

Correct kernel commits and the changes i mentioned in the last post. Nothing added from today's decrypt discussion

https://drive.google.com/file/d/1stfu7xVUpUA4dovYiQHhwIS5mgkNZUpu/view?usp=drivesdk
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
touch not working and it seems twrp has no access to internal storage. its start with the " first install" screen.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
los16 kernel as is with no extra commits = broken touch

Extra commits = working touch, but random reboots.

los16 kernel w/j5108L commits and nothing more = broken touch

Ok, so its back to my original solution then, revert the one kernel commit ( https://github.com/Galaxy-MSM8916/a...f48f3ff74b78393a922dad8686f127283b14d2580d4cc ) that logs were telling me is the issue. This is good news. Once touch is back up and running, that first install screen should be able to go away, but i am suprised that it showed up.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Test update

Kernel commit affecting touch reverted

Adjusted some things on dt

Disregard, mount issues
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Mtp, adb, mounting, encryption, should all be working. New naming scheme per commit by twrp team. I just threw it in a zip (non flashable zip). Don't encrypt with android 11 yet
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Ex novo:
With this TWRP version can I encrypt the Francisco Funes CR Droid ROM that I am using on my phone?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
As long as it is not android 11, yes you should be able to
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Ex novo:
Okay, I'll try later. Thank you very much for making this possible.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Ex novo:
Unfortunately the encryption of the crDroid ROM did not work. The device went into bootloop.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
new test build

-repo-sync and merged some things into hardware_samsung

-clean merge of commits on msm8916-common instead of my random fix things as needed method
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Ota dosent work
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I don't like the troubles OTA has been giving us. But i know its not your fault. Has it worked on any of my recent builds?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
I tryed.. it dosent work..
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
New test build. Cryptfs_hw updated to 9.0 branch. Still baffled on the ota not working
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Update

3.5.0_9

Changelog

- TWRP repo sync

- Built completely on 9.0 trees (device, kernel, and twrp)

- Fix tzdata errors

- Encryption should be fully working now

- Android 11 compatible

- J510H support dropped

- J5108/J5xltecmcc support added
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Links are in the first post. I know they pushed out a 3.5.0 already for some j5 devices, for some reason it failed, so this will be the -0 release when it gets pushed out.

edit - j5xnlte has not built yet
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Builds are now up
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Ex novo:
Made a clean flash from the Cr Droid 10 ROM and then tried to encrypt. The system has restarted and has not been encrypted. On the second attempt went into bootloop and had to format data and reinstall the ROM.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Can anyone else confirm that encryption is still an issue on new official builds?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
How i van check is it encrypted?

I tried works well for me A11 bliss vanila ...
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
It does? Ok, thats good. I wonder if its a rom issue for crdroid then
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Ex novo:
Were you able to encrypt Jenslody's BlissRoms 14.0? I ask because on the homepage says that one of the ROM bug is encryption and I would like to install an encrypted rom on my phone for security reasons.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Idk whan i go in TWRP im going to encrypt and select

Oh s.... i doing it wrong.. I will try whan i charche my phone to 100% and report results
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Sorry i was doing it wrong.. i will try again in a 30min and report results
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I see what you mean. My j5 is broken, i can't do any testing, but i have an idea on why.

Android 11 brought in new encryption/decryption protocol. Roms were building fine, as was aosp based recovery. Twrp and ofox builds were viewing things as encrypted (file names all jumbled up).

The fix was merged on or about december 16, when the twrp source code was 3.4.0 (later updated to 3.5.0 on dec 28).

Jens's twrp build is 3.3.1, and built on feb 15, 2020, while mine is 3.5.0, and built after the encryption fix was merged.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Encryption does not work bootloop using lastest bliss build and twrp
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I'm tracing things back, its possible keymaster 4.0 is the issue, as it is not in the official release, but present in my personal test builds. Can anyone confirm if keymaster 4.0 is present on the roms in sbin, either on system, product, or vendor
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
do you mean this files?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I'm tracing things back, its possible keymaster 4.0 is the issue, as it is not in the official release, but present in my personal test builds. Can anyone confirm if keymaster 4.0 is present

Yes that one. For some reason test builds on here have it, and official builds do not. Also, was there any mtp/adb issues?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
i will check it later but i don't remember any issues
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
mtp and adb works without any problems. but i'm not encrypted
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Ok, just checking. I had a report come in on mtp failing and i wanted to check around before i did anything major. I do think that its keymaster 4.0 thats causing the issue with encryption. Going back to the test build prior to the screenshots showing encrypted, its present there, but not present in official build.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
You publishing recovery that is for J5 2015 instead for 2016.

J500 is 2015

J510 is 2016

Your lastest recovery 3.5.1 have error that image is larger than targeted davice..
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
same here. but i think it was a automatic build from twrp
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Hmmm i didn't think about that.. it can be..
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Agree with @daywalk3r666 it was an automatic build. I didn't even know that they had released an update until the 18th, 4 days after that build was released. I'm looking into it now. also, seems to be a 2016 device issue.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
try this @Bogdans29 @daywalk3r666
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
this version works
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
one question. did you remove some features? twrp doesn't recognize the magisk.apk
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Nice, thats good news. I have no idea why 2015 models were normal and 2016 models became bloated, but i'm glad to see that its working now. On a side note, other added changes were made, and i *think* that the encryption issue may be fixed now. But making sure the recovery was the right size was more important.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Bash and nano were removed, i can run a test build and add those in there to see what the size is when i get home. In the meantime you could rename it from apk to zip.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
yeah i know.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Can you test does ota works?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I'm guessing that was nano that controlled that feature from what i'm reading
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
i think nothing has changed with ota. my bugreport is still open and nobody has reply. but i can test it later
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
now installing magisk.apk is working.it seems my theme was fault.now i remove it and its work.🤬🤬🤬🤬

and the button charge twrp folder is now there:LOL:
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Oh ok, nice. Yeah themes sometimes break things
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
After playing around with the code, nano and bash will be dropped, otherwise it will be too big
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Private builds - good to go, public builds - not good. I'm reaching out to figure out why this is happening. Use the private build from the previous page until I sort this mess out
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
https://build.twrp.me/twrp-3.5.2_9-0-j5xnlte.img

@daywalk3r666 @Bogdans29 test this please
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
installion works.no errors.tomorrow i will check the other functions
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] abdogeni:
Thank your for keeping support for this amazing device, i think i don't need to upgrade because this phone still rock everyday thanks to devs like you, keep up bro.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Bogdans29:
Ota is still broken..
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
jw, can you go to the terminal in twrp and navigate to cache/recovery and run ls -l

Those are lower case letter L , let me know what the output is
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] daywalk3r666:
i think ota is done because the los-legacy build is eol. i don't know if other roms has ota support
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] mxnerd:
Can this TWRP be used on Samsung Duos J510UN (2016)?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
I believe that it would install correctly, but idk if it would work, as i don't have the un variant added.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] mxnerd:
Thanks. I will try it later. But I haven't done this for a long time, I already forgot how to take the proper steps. I think I need to root the device first. How do I do that?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] AadikarBhandari:
Hello J5 2016 Twrp (Maintainer) Person, Are the twrp images supported on J510FN? Flashes from odin good, shows twrp loading logo page, then stays like that for far too long. over 10 minutes, and never loads.

Anything to try?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] palmbeach05:
Yes they are. What bootloader do you have? LP or MM?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] AadikarBhandari:
Latest stock firmware, it should be nougat 7.1.1.

Previously, when it was MM, twrp 3.3.1-0 and 3.3.1-1 got installed and it was working. Blissrom got installed with camera not working, and frequent reboots, after a while the rom failed to load, struck on booting logo. After flashing blissrom R, twrp got struck on loading screen. So we flashed latest stock firmware, twrp was giving same error. Old version twrp 3.1 launched, but gave error 7 and 1 while installing roms. Twrp 3.5.2-9 downloaded from here also got struck on twrp loading screen. After flashing orangefox from twrp that got launched, orangefox was also struck on its loading screen.

We just flashed LineageOSRecovery-lineage-14.1_j3_20180109_j5xnlte.tar

This recovery opened up as twrp, and we managed to flash lineagerom, derpfest . Later, blissrom R same file, got flashed with no errors.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] Hnojohn:
will this work on a GN variant of J5 2016?
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] RootedLee:
@Hnojohn yes, see https://twrp.me/samsung/j5xnlte.html

Also:

twrp-3.6.0_9-0-j5xnlte.img	14.5M	2021-11-23 02:26:37 UTC

source: https://eu.dl.twrp.me/j5xnlte/
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] abdogeni:
@palmbeach05 Thank you for supporting this device this long, and we hope you still maintain it, because I don't see a reason to upgrade, the phones are still the same, this device have an AMOLED panel that some recent phones don't have. This phone can run android 11 smoothly and can support 90Hz refresh rate too, it only needs software development, this is why I hope developers keep supporting and maintaining this device because it deserves.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] RootedLee:
twrp-3.6.1_9-0-j5xnlte.img	14.5M	2022-03-07 04:31:28 UTC

source: https://eu.dl.twrp.me/j5xnlte
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] denmasgie:
I need custom rom for sm-j510un please
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] abdogeni:
Maybe you have a bad battery, it is not providing enough power to the phone so this result in this behaviour, and 10 tabs of chrome!!! This is a lot if you ask me, the phone have only 2 GB of RAM, it's a normal behaviour then.

I use the stock ROM for now, I think it's better in some ways, the screen is very good, the camera too, ultimate battery saver, and many other things that I miss in custom ROMs. I use some tools to debloat the stock ROM, some developer settings too, and black theme to save more battery.

Not only that, but I just love this phone, I have an iPhone SE 1st generation, but I keep coming back to my J5 2016.
[Samsung Galaxy J5 (2016) ROMs, Kernels, Recoveries] hifriend:
i have a problem i do everything right the moment i remove the battery and try to enter twrp, the phone doesnt boot in twrp...

i remove the "auto rebooot" option .
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Vbhvsharmax:
my touch is not working in recovery mode only in sar twrp and orange fox10 but everything is fine in twrp and orange fox 9..... any solutions or anyone faced same problem??

My device is system as root ... I don't know how!

???

Anyone plz help
[Xiaomi Redmi Note 5 / 5 Plus Questions & Answers] Vbhvsharmax:
my touch is not working in recovery mode only in sar twrp and orange fox10 but everything is fine in twrp and orange fox 9..... any solutions or anyone faced same problem??

My device is system as root ... I don't know how!

???
[Samsung Galaxy S7 Edge Questions and Answers] iRomulls:
Ay hello guys, is there any way to install Samsung's stock camera on AOSP? I'm at LOS 16.1, and native camera sucks. I've already installed GCam, but I want the stock app too
[Samsung Galaxy S7 Edge Questions and Answers] kadabra12:
This Is not possible, you can't never use stock camera in aosp rom, you can use footej camera , i'm using It on pixel experience and is very very good app
[Samsung Galaxy S7 Edge Questions and Answers] iRomulls:
Yeah it's possible. It only needs the framework from stock rom, I used to use the stock camera app on custom roms in my Motorola
[Samsung Galaxy S7 Edge Questions and Answers] kadabra12:
You are right, everything is possible but i think with Motorola fw is much easy because Motorola fw is near 100% stock android, Samsung experience (the framework) Is closed source and isn'possible to extract and used in aosp rom due the copyright of framework and the complexity of its integration in the android os, maybe i'm wrong but i never see a stock Samsung framework working on aosp rom in many years of Samsung device i used and modded
[Samsung Galaxy S7 Edge Questions and Answers] Fusseldieb:
I remember back in the days of my S3. There was, for some time, a zip file floating around, which had the whole Samsung Camera, and it worked on AOSP.

I remember opening the zip before installing just out of curiosity and there were a whole bunch of files, not just an apk.

Some years later, I searched for it again, to no avail. It vanished from the face of the internet.
[Galaxy Grand Duos i9082 General] Gothik:
...

Sadly, last November, my cellphone was stolen.