A smartphone by its nature is a surveillance device no matter what operating system is on it. As long as the cellular radio is on and you are connecting to towers, your location is being tracked.
How can you tell if the battery is dead in a phone that you don’t control? Take a heat gun to it to melt the glue, disassemble, and test the battery with a multimeter?