yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] aala27:
Hey mate,

See link to RR 10 rom. It seems as through everything works ok except for the audio coming from the loudspeakers. Audio from headphones, bluetooth etc works fine. This was the same issue I had building the RR Pie rom but I used Virsys' fix and it worked for that rom. Not sure what the issue is now.

Let me know if you have any idea.

https://drive.google.com/file/d/1hns5Gf0ietXca1bZK5MwK6l7n4DsBoUZ/view?usp=sharing

Cheers,
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
It says I need a google account to get RR 10. I was able to download RR 9 without one. Can you please change the permissions so I can download 10 without a login? Once I download 10, I will see if I can help you by looking at the logcat.

BTW, I downloaded RR 9 and get the same results as you. The spen only works in portrait mode. 90, 180 and 270 have incorrect mouse pointer display.

Also, when I asked about which module or procedure, I wasn't asking about the driver (Wacom). As soon as I saw your P550_defconfig, I knew it was the wacom driver. What I'm asking is what module or program actually draws the mouse pointer that shows up the lcd.

When I look at getevent -l | grep event3, I think the wacom driver is properly reporting the X and Y coordinates where the pen is hovering or touching with 0,0 at top left corner and 768, 1024 at bottom right corner. I want to see the code where it actually takes the X and Y coordinates from the wacom driver and use them to draw the mouse pointer on the lcd.

Clearly, something in the code doesn't take into account of the screen rotation.

PS. I did a make clean so I can build an eng build so I can get some logcat messages. It will take 8 hours to compile. I'm also looking at the wacom driver code to see where I can put in some print statements with respect to the screen orientation.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
For 17.1 or Android 10, the msm8916 team changed the path as per

https://github.com/Galaxy-MSM8916/a...mmit/c5cef5644e014e0e70c825cbf99bcaea795dc4e3

# Audio

- AUDIO_CONFIG_PATH := hardware/qcom/audio-caf/msm8916/configs

+ AUDIO_CONFIG_PATH := hardware/qcom-caf/msm8916/audio/configs

Just make sure your roomservice.xml matches correct path. I made that mistake in SM-T560NU and didn't have external audio until I switched it over. The SM-T560NU shares same msm8916 common/kernel code as the SM-T550/SM-P550.

You can see my repo diff and roomservice.xml for the SM-T560NU (post #3) at

https://xdaforums.com/galaxy-tab-e/development/unofficial-lineageos-17-1-galaxy-tab-e-t4150709
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] aala27:
The link should be OK now. With regards to the module/program for the S Pen, I have not installed anything in addition to get this to work, just the changes made to the kernel so I am not sure which application actually draws the mouse pointer on the screen. Apologies I can't be much help on this one.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
[MENTION=7071452]aala27[/MENTION], can you post your code on github for Android 10? I would like to try your build since the virsys build ends up in a boot loop. Your RR build boots fine on my tablet.

That way, with the source code, I can examine your code for the external audio to help you fix it. No rush. I'm still woking on 16.0 (Pie). For some reason, my build is boot looping after a make clean. I must have done something wrong?

Thanks.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
And provide the roomservice.xml as well so I can try to replicate your build using the same repos.

Thank you so much so far for contributions. I may not be able to solve this spen problem, but I will give it a try as time permits.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
For those wondering about the Oct security patch, I have been trying to make a build for the last 36 hours with no success. The resulting build ends up with a boot loop.

I have tried everything including formatting my drive in case there was some corruption, but a fresh repo sync and the exact same roomservice.xml, I end up with a bootloop.

I will try again in the next couple of weeks. Maybe one of the changes made to 16.0 causing the boot loop will get reverted?

I will research the spen code as time permits, but right now, I can't do much testing as even the spen kernel that aala27 posted results in a bootloop. It's likely a 16.0 code change somewhere causing the problem as I started from fresh with a disk format.

In case anyone is wondering, I'm looking at

frameworks/native/services/inputflinger/inputreader.cpp

for clues about the spen functionality and where possibly the code does the rotation.

So just a reminder that the SM-T550 and most of the Samsung A family from 2016 has no maintainer so the code is in rough shape. The "stock" code from the msm8916 repo, while it compiles, results in a bootloop. Virsys made changes so he could boot 9.0 and 10.0. This rom is based on his 9.0 code. I tried his 10.0 code, but it ends up in a bootloop.

That's the latest update.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] aala27:
[MENTION=8726605]retiredtab[/MENTION], I have upload my code to my github. It is mainly the Galaxy-MSM8916 code with some minor changes which made it boot. I commented out everything associated with the vibrator in the msm8916-common repo and commented out a couple of vendor files. I am very new to github so I hope what I have uploaded is sufficient.

https://github.com/aala27

I will upload my RR pie code soon, hopefully this helps you in your Lineage build as RR is a Lineage based rom.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
[MENTION=7071452]aala27[/MENTION], Thank you for uploading 10.0! Can you upload your kernel for 10.0 as well. Your github has the kernel for 9.0 code only right now.

Again, no rush, I'm going to be out of town for about a week. I'm back on Oct 20th.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I found the problem of your external audio in RR 10. I noticed this right away because I spent a lot of weeks troubleshooting the SM-T350 external audio problems so I recognized the traces and knew what was likely wrong.

In the non working audio, I saw acdb_dev_id 14. I knew from troubleshooting the SM-T350 that the speaker is id 15, not 14.

It's a simple fix and I implemented by placing the files into the correct directory using twrp. I have sound with your RR 10 rom without rebuilding from source code.

You need these 2 files audio_platform_info.xml and mixer_paths.xml from

https://github.com/VirsysElectron/a...mmit/03a37d13085f7109bd80263b759c3e7aa69fdde0

Then copy them into the /vendor/etc directory using code like below

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml

The audio_platform_info.xml is missing in your RR 10 build so it defaults to 14 instead of 15. The audio_platform_info.xml defines it as 15 as you can see in the working external audio logcat.

You also need to change your mixer_paths.xml file. It has a definition for speaker-amp which is only applicable to the SM-T350 because of its proprietary amplifier which the 550 doesn't have. The definition should just be "speaker". You can see this in the logcats below.

=== logcat not working external audio ===

10-10 08:31:12.851 357 1829 D hardware_info: hw_info_append_hw_type : device_name = speaker

10-10 08:31:12.851 357 1829 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)

10-10 08:31:12.851 357 1829 D audio_route: Apply path: speaker

10-10 08:31:12.852 357 1829 W audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default

10-10 08:31:12.852 357 1829 I audio_hw_primary: select_devices Selected apptype: 69936

10-10 08:31:12.852 357 1829 I audio_hw_utils: audio_extn_utils_send_app_type_cfg app_type 69936, acdb_dev_id 14, sample_rate 48000

10-10 08:31:12.852 357 1829 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0

=== logcat working external audio ===

10-13 15:18:28.739 308 4250 D hardware_info: hw_info_append_hw_type : device_name = speaker

10-13 15:18:28.739 308 4250 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)

10-13 15:18:28.765 308 4250 D audio_route: Apply path: speaker

10-13 15:18:28.769 308 4250 W audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default

10-13 15:18:28.769 308 4250 I audio_hw_primary: select_devices Selected apptype: 69936

10-13 15:18:28.769 308 4250 V audio_hw_primary: enable_audio_route: enter: usecase(0)

10-13 15:18:28.769 308 4250 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] aala27:
Thank you very much for the fix. Have tried it and can confirm that this works.

I have uploaded the Android 10 kernel code for this device. The RR 9 code is also up on my github as requested.Like the Android 10 code, this is mainly based on the Galaxy MSM8916 code with fixes found from Virsys' T550 code. Be aware that I have not implemented the DRM fix found in the following link to my code.

https://xdaforums.com/showpost.php?p=82393631&postcount=268

The files I used for the fix are found on this post:

https://xdaforums.com/showpost.php?p=82519161&postcount=270

Hope this helps.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
[MENTION=7071452]aala27[/MENTION], for getting the spen to work, was it really just one line to add to the p550_defconfig?

Namely,

#Wacom

CONFIG_INPUT_WACOM=y

Or are there changes in the common_defconfig that I need to pickup?

I'm just trying to see what changes were made to get the spen to appear because it will help troubleshooting the 90, 180, 270 problem. Thanks.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
logcat below of tablet in portrait mode, then rotate to 90, orientation - 0 (0), 1 (90), 2 (180), 3 (270)

Line 3681 of InputReader.cpp outputs the log below so I'm in the right module/program.

I InputReader: Reconfiguring input devices. changes=0x00000004

I InputReader: Device reconfigured: id=6, name='input_mt_wrapper', size 768x1024, orientation 0, mode 4, display id 0

I InputReader: Device reconfigured: id=7, name='sec_touchscreen', size 768x1024, orientation 1, mode 1, display id 0

I InputReader: Device reconfigured: id=10, name='sec_e-pen', size 768x1024, orientation 0, mode 4, display id 0

As you can see, sec_touchscreen knows about the 90 rotation (orientation 1) and touchscreen works properly, but not the sec_e-pen driver. A simple hack would be to make the orientation of sec_e-pen = sec_touchscreen everytime there is a rotation change, but where in the code? However, I don't know if that's enough to make the spen work properly in 90, 180 and 270 mode.

Need to look around the code some more and see if the above hack is the correct way to do it or not.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I built a 17.1 image, but it's randomly reboots anywhere from 5 to 35 minutes of usage. And this isn't even using the s-pen, all it is doing is playing a youtube video using newpipe and youtube vanced. I'm not even touching the tablet. Unfortunately, when it crashes, there are no logcat messages. With the exact same 2 apps, they run fine on other non P550 tablets.

I tried building a rom with the s-pen driver and without. The s-pen driver works in 0, 90, 180, 270, but the builds are unstable. The no s-pen driver is also unstable. I also seen the tablet reboot when connected via usb so it is just not playing videos.

I also tried aala27's RR 10 build and it also randomly reboots playing videos.

I don't know where the problem lies without a logcat. I suspect it's in the kernel changes with possibly one of the parameters in common_defconfig?

I don't know what changes aala27 did so I will have to wait until he responds.

PS. I also tried building 16.0 today, but again the build boot loops as before. So right now, I have no stable working image with s-pen support. I'm not releasing these builds until the random reboots are fixed, which may be never.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] miguelfo26:
Hello.

It always give me error 7 on twrp.

Any help please
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] aala27:
Hey [MENTION=8726605]retiredtab[/MENTION],

My apologies for taking so long to respond. I do not experience reboots on the roms that I have created. Not sure what the issue seems to be there. Are you also experiencing reboots on the RR 9.0 rom as well?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
With the exact same P550, same newpipe and youtube vanced, same videos, on my 16.0 build, I get no random reboots at all.

I will await your new RR 10 build with all the bug fixes I suggested for s-pen, external audio and GPS as per my PM to you.

I'll keep trying to troubleshoot my 17.1 build, but if your new RR 10 works fine, then I won't bother with a 17.1 build. I don't care which rom as long as one of them works.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Are you using twrp 3.3.1? Are you flashing it onto a SM-P550?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] miguelfo26:
Hi.

I'm using

twrp-3.4.0-0-gt510wifi.img.tar mentioned on original post.

Yes, i have sm-p550
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
If you can wait, aala27 might have a working RR 10 build with s-pen.

The twrp 7 message can be removed by editing the zip file to remove the asserts. However, I suggest waiting for the RR 10 build.

Personally, I'm still having problems with RR 10, but aala27 says it's rock solid for him so it could be just my tablet?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
It is an excellent ROM for tab A sm_p550 I could finally prove it the truth has no bugs.

The only disadvantage is vantages for people who occupy the functionalities of the S pen.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] ncmonteiro:
SM-T550

Is it possible to use in SM-T550?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
ncmonteiro I understand that the SM-T550 runs SM-p550 roms but with the axle inverted .

I say don't install it unless you have the right device.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
retiredtab There is a possibility that a build with S-pen will come out?

By the way Merry Christmas and prosperous new year.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
If you have a SM-T550, I have a BETA for it. See

https://xdaforums.com/t/looking-for...r-17-1-unofficial-lineageos-t550-rom.4204807/
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Happy Holidays to you too.

I have tried for the last 2 months to get the S-pen build working on 16.0 and 17.1. The S-pen does work, but the builds are completely unstable. They will crash 2 minutes into watching a newpipe video.

The S-pen builds all require massive changes to the kernel config file. Unfortunately, there are about 40+ parameters that get changed in the kernel config and one or more of them is causing the instability. I have built over 50+ builds at home and can't get a stable rom with S-pen so for now I have completely given up. S-pen is not something I use and I have other rom projects that I would like to work on.

aala27 says he has a stable crDroid build for the P550 with a working S-pen, but I have no idea if he is going to share it or if he is still working on it.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
New BETA 17.1 build at

retiredtab - Browse /SM-P550/17.1 at SourceForge.net

sourceforge.net

BACKUP your data before trying.

Jan 14, 2021 release

- Jan 5 security patches

- based code on aala27 repos since virsys 17.1 repo never worked for me

- initial BETA 17.1 release

- FAQ updated
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
when I upgrade the build 2020 16.0 to the 2021 17.1 BETA my device no longer turned on, nor to enter recovery so I recommend taking precautions!
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
update the version since lineage recovery I should have eded it from 0
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I test all my builds that I upload to make sure they boot and function as I describe. Even though the X-axis is mapped backwards in TWRP 3.4.0.0, I use it for it's adb debugging features when I'm building roms. With TWRP 3.4.0.0, I had no problem flashing the Jan 2021 BETA build.

I also tested the LineageOS recovery image just now. Below is the log.

$ heimdall flash --RECOVERY recovery-p550-20200913.img
Heimdall v1.4.2

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading RECOVERY
100%
RECOVERY upload successful

Ending session...
Rebooting device...
Releasing device interface...

$ adb sideload lineage-17.1-20210114-UNOFFICIAL-BETA-gt5note10wifi.zip
Total xfer: 1.00x

After the sideload, I reboot and tablet is up and running Jan 2021 build.

======

@damismtz, can you get into download mode by pressing, power + volume down + home button? If yes, you can just reflash TWRP or LineageOS recovery and reflash the custom rom.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
BTW, the Jan 2021 rom has been downloaded 15 times from over 10 countires and so far, you are the first to say there is a problem with it booting.

retiredtab Download Statistics by Country: SM-P550

sourceforge.net
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
Gracias por la ayuda que ya ha sido capaz de solucionar el problema :D Ya estoy probando el Rom

I'll be testing the rom :D Encerio thank you very much for the contribution
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I added this to FAQ.

Q7) Can I turn off the on screen navigation keys?

A7) To turn off on screen navigation, go to settings, system, advanced, gestures, system navigation, gesture navigation.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Well I have the February security patch update built, but have problems uploading it to sourceforge the last couple of days. Will try again over the next few days.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
New build called lineage-17.1-20210215-UNOFFICIAL-gt5note10wifi.zip

Feb 15, 2021 release notes.

1. Feb 5 security patches

2. Whatever LiineageOS changed since last January release.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
It works perfectly the new build already the and tested all this week.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
Something funny is that my device is also occupied by my little brother to play and some games appeared to him with the vertical screen instead of horizontal.

But nothing serious is solved by activating the automatic rotation and putting the device in Horizontal.

View attachment 5227167View attachment 5227169View attachment 5227171View attachment 5227173
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] psuryatej:
@retiredtab

@aala27

Appreciate all your efforts in creating this ROM, can you advise if this ROM can be used on SM-P555 ?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] psuryatej:
If you don't mind me asking, is Screen cast working ?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
@psuryatej I've already tried it and the Screen cast fails just like bluetooth.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
possibly be solved by @retiredtab he works very hard to bring the builds.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I learned that screencast was dropped by Google in Android Pie. So LineageOS 16.0 would have dropped that feature. In addition, I don't have any smart TVs at home (on purpose) that have this feature. Instead, I have a PC connected to my TVs via HDMI cable.

So like audio over bluetooth a few weeks ago, I have not tested it and I don't use this feature.

Having said that, I did see an blog showing how I can turn my linux PC into a screencast receiver and I did spot some github code where this feature might be readded.

If, and that's a big if, I can get screencast working on other tablets that I have running say LineageOS 14.1 to my linux PC acting as a screencast receiver, then I might see how hard it is to readd that feature assuming it doesn't break anything.

There's another potential problem. Even if I get screencast working, it may not work on the various TVs. There may be bugs in their implementation, have newer/older revisions of the screencast protocol, etc, etc. I definitely wouldn't answer any questions regarding problems as I have no way to replicate it.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
What fails with bluetooth?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I did a quick test with all the wifi usb that I have and none support the p2p which is needed for miraclecast to work on my linux PC. So I cannot implement screencast at home.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] psuryatej:
Hi, Thanks for your response. I also have the same result on N910G International. Did you manage to collect the logs ?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
if you connect to the devices but don't stream the audio I thought it was my horn but no, I already tested with other devices and it doesn't give audio.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
there is a repository of another rom that works the screencast do not know if it is useful?

GitHub - SuperiorOS/android_hardware_qcom_media
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
I already fixed audio over bluetooth for the P550. It will be in the March security patch update. I released the fix for the T550 and it works. See

https://xdaforums.com/t/open-beta-f...neageos-t550-rom.4204807/page-4#post-84533837
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
Do not mess up my thread with other devices. Take your questions somewhere else.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] damismtz:
thank you very much :D encerio appreciates the effort.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] doctorsk:
Thanks retiredtab,

Using the Feb version and has been working beautifully for two weeks now.

Keep up the great work.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
New image called lineage-17.1-20210307-UNOFFICIAL-gt5note10wifi.zip

March 7, 2021 release notes

1. Mar 5 security patches.

2. Whatever LiineageOS changed since last February release.

3. audio over bluetooth fixed. I had to use the audio.hardware@5.0 hal.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] psuryatej:
Sorry, I didn't mean to deviate from the discussion. Just sharing my experience on my other devices.
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] psuryatej:
Thanks for the details. It seems the screen cast is working on android 10. Not sure if that would be of any help.

https://xdaforums.com/t/rom-tblte-t...ficial-8-x-9-x-and-10-x.3808352/post-84557491
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] flywithu:
Hello,

About Q9, Can I get roomservice.xml and diff files for build?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
It is added to the FAQ. Are you planning to build it for learning purposes or making a variant of this rom?
[Samsung Galaxy Tab A series ROMs, Kernels, Recover] flywithu:
Thank you. I've used the device on kids. So, I'm using google family link. But current rom doesn't work with google family link. So I want to try to find the reason with rom build.