Are we allowed to download the piano app on our phones to practice maqamaat (in tuning), or to play simple tunes like twinkle twinkle, happy birthday etc.?

Yes no problem, since piano is used for music that is not played in areas of haram