PROGRESS
"I remember when a few months ago I used my phone as a source of music by connecting 3.5mm jack to my phone and Y splitter to 2 rca ports on the amp, music was without interference. "
This really says a lot right here. In your first post you mention that you ruled out the headunit yet when you eliminate it from the stack there is no more whine? If you can play music from a phone via an adapter into the amplifier with no interference then all your problems are in the HU.
I know some people have actually grounded the rca's to the casing of the head unit via a wiring wound around the outer shell on the rear of the headunit. I know a lot of the adapters for headunits are plastic now so the casing isn't attaching via metal to the car chassis anymore due to that plastic. They do make ground loop filters just for the head unit itself but you mentioned an attempt at that. I take it you don't have any headunits just sitting around as your latest statement tells me that either the HU is defective or the grounding there is not good.
I know I said I tried it, which I did. But I need to revisit this.
Basically when I started this thread, I knew nothing about audio. So I was just mindlessly trying what people suggested without understanding what I was doing.
After trying for so long and no success, I came back to the only thing that has worked before. 3.5mm Y rca adapters.
The reason I didn't put so much faith in it before, is because when I plugged 2 rcas from HU to amp, it played way better than if I plug all 4.
Another factor is that I had whine with rcas plugged just into the amp, and not connected to the head unit.
And the third factor was that it's a second headunit.
And that's why I wanted to try phone jack to 4 rca adapter, but I don't know if it's possible and if such adapters exist...
So today I tried using just the old 3.5mm to 2 rca adapter and had no whine. I mean at least something works, so I decided to really concentrate on this stage.
I found 3.5mm to 4 rca adapter on Amazon. It's some no name brand with no reviews, so no clue if it's any good, but at least something to try.
I then tried connecting just 2 rcas to headunit and amp. The music kinda played muffled and not full frequency. The whine was pretty bad as well. I already tried grounding rcas to HU body and didn't feel like that would work but for some reason I felt like trying it.
So I tried connecting rca ports on headubit to the body of the headunit.
The whine completely disappeared!
I attached the wire to HU and as soon as I barely touched any of the 6 rca ports of the headunit with the other end of the wire, the whine was gone.
Now, unfortunately, this does not fix all my problems...
When I connected all 4 channels instead of 2, the whine kinda creeped back, although a lot less loud.
I tried moving rca cables around and connecting them to different ports on the headunit one by one, two, three, four.
And it's kinda weird. Some speakers/tweeters sounded great, some muffled, some had a bit of static, some a bit of whine. So it's like out of 4 doors, each played differently.
This is kinda weird behavior and it really make me feel like the headunit is the problem. Or a major contributor.
So I ordered more rca cables just to rule them out one more time
Amazon Basics 2-Male to 2-Male RCA Audio Stereo Subwoofer Cable - 8 Feet
Amazon Basics 2-Male to 2-Male RCA Audio Stereo Subwoofer Cable - 8 Feet : Amazon.ca: Electronics
These seem to be bulletproof cables!
Also ordered a brand new headunit
Alpine UTE-73BT Mech-less Digital Media Receiver with Bluetooth® Wireless Technology
Alpine UTE-73BT Mech-less Digital Media Receiver with Bluetooth® Wireless Technology : Amazon.ca: Electronics
I feel like it's really weird that the more rcas I connect to the headunit, the worse it's playing, and doesn't play equal in all doors.
With how much $ and time I've spent so far, I feel trying out another headunit would be worth a try!