Academics in China - promoted via connections My friend has told me his own story. He's a researcher and he's trying to publish his paper. His supervisor is a Chinese researcher, but they're working in the states. My friend has written all the code and contributed to everything for the project (including writing the paper). However, his supervisor is insisting to add three professors to the authors' contribution. In the contribution, it's clear my friend is merely a software developer while the other authors contribute the ideas, paper and case studies.

My friend isn't very happy because merely implementing an algorithm would not be a good career path for him. More importantly, those three professors did absolutely nothing, but they did indirectly provide funding for the project.

My friend is a fresh PHD graduate. His supervisor is an average post-doc, he's building his own career path as well. The supervisor told my friend it's normal to add unrelated names, something he'd been doing quite lot in China. In fact, he said everything about research in China is about connection. The more high-ranked names you add, the more likely those professors will "pay back" and find someway to promote you or land you a job/project later. He claims that's exactly why nobody cared Tu Yoyyou, before she won the Nobel prize. She was always a brilliant researcher but she didn't know how to use connections to make a better career path for herself.

My friend was further told that he would have a brilliant research career if he allowed himself be a software developer for this project. The professors wouldn't be happy if their names weren't on it. He was told it wouldn't be wise for him to being "blacklisted": it's not what you can do to make you a good researcher, it's about whom you know that distinguish yourself from other researchers.

His supervisor has written the authors' contributors for the three professors and is about to send the paper to a journal.

Question: 

Is this normal in the Western world and what should he do?
I am a postdoc in China, and have been here since almost 2 years. I am looking forwards to leaving mainly because I cannot cope with their cultural ways at work, e.g. how the local academia works. The supervisor mentioned in this question does speak the truth about gift authorships in Chinese science, thus firstly let me acknowledge his sincere contribution and advice. As another answer states clearly, ultimately such decision lies in the hands of the true first author and his/her advisor. However there is the conflict of standards over international ethics and clan-specific ethics.
Typically what happens is exactly this: a young researcher gets stuck in a moral dilemma with collaborators and is advised to either abide or walk out. The problem is, too often morally questionable standards are not announced before a project starts and abusers rely on the lateness of the dilemma to push for a win-win situation. Adding to the problem, Mainland Chinese people are culturally prone to speak through contextualised subtle insinuations, leaving a lot of margin for belated misunderstanding when dealing with other cultures. 

Surely by this point a decision was already taken on this specific conflict, but I will leave here the main advice to others in potentially similar situation. Gift authorship from my experience seems widespread in Chinese academia. Engaging in scientific collaboration with Mainland China academics is therefore prone to lead to conflicts over ICMJE and similar guidelines on authorships and other aspects. This is not to say gift authorship doesn't take place elsewhere as well, however the local approach tends to be more straightforward and intense than elsewhere (i.e. absolute zero intellectual contribution; numerous added names; openly offended if denied).
As I believe supporting parasitic academics rapidly leads to bad quality science and somewhat kills the original meaning in the career for most people involved, I refrain from providing gift authorships as best as possible while always reciting the international guidelines. I hereby recommend other serious colleagues to do and preach the same, even if some conflict ensues.