I did search online and found a root file named G130HNXXU0ANH2_ROOT.tar. The method described in various android forums did not work : everything seems fine, but when I restart my phone and check with SuperSU, I am not root.

and I suspect the reason is that my phone has a different baseband number. Mine is G130HNXXU0APA2. Considering the name of the root file name, it might only work on baseband number G130HNXXU0ANH2.

1 Answer
1

The standard way of rooting is to use a custom recovery to install a SuperSU zip, which not only contains the SuperSU app itself, but also proper binaries and tools. Luckily, this unloved device still has a custom recovery available in this XDA-Developers thread.

Install the CWM package via Odin, then install SuperSU from it. Don't bother with the build.prop and custom ROM mess, those are for another purpose.

I was helped by @Andy's answer and I wanted to add more details about the rooting of the Samsung Galaxy Young 2 (SM-G130HN). Bebs

Root

After the first steps described in the question, I had to try another rooting method. I found one in this post How do I root my Android device?, and the ont that worked is

@Bebs That's quite a long edit you did there, could've been a standalone answer... I approved the edit at this moment, but if I have time later I will try to merge this to remove some irrelevant details and reduce clutter. For now, problem solved :) Let's delete the comments we left above.
– Andy YanJan 20 '17 at 10:42