Can't 17 give energy to Goku to restore Goku's power? In the tournament of power we've seen Freezer giving energy to Goku to restore Goku's power, after he run out of energy when he used for the first time incomplete Ultra Instinct 



Then in Dragon Ball Z we've seen how 17 gave energy to Goku for him to create a Genki Dama



Since 17 has infinite energy, why cant he give energy to Goku to restore his energy just like Freezer did before?
Firstly, the Energy given for the Spirit Bomb is different from the Energy given by Freiza and Vegeta to Goku. Goku can gather this energy from inanimate life forms and surrounding objects as well for the spirit bomb. Hence, in other words, Goku can't gather energy from a rock and regain stamina.Secondly, the androids have infinite "Stamina" which prevents them from getting tired like a normal individual. This might be because of mechanical part fitted inside Android 17. So it would be impossible for Android 17 to share his energy with Goku. A better analogy would be something like this.Let us assume there exist 2 human beings and 1 robot. Human beings need x amount of blood to survive while the robot has a fitted energy source which is different from blood but always keeps them alive.If one human is deprived of blood, he needs to rely on the other human and can't ask help from the robot despite him having an infinite energy source because the human has a different anatomy compared to the robot.