How do I block my phone by being tracked?

Go to your phone’s settings and tap on Privacy. Then, look for Location Services and select the option. The final step requires you to turn off the Location Services. As soon as you turn off the Location Services, your phone will immediately stop sharing your location with any apps that may be using it.

I did not know that location is required when installing apps

With some, it is generated.