You need to find the correct firmware for your device model code. And you need to software for specifically made for firmware install purpose. It mostly calls as Flash Tool. Different flash tool available each devices product name compatible. As an example, Samsung has the most trusted Flash tool "Odin3". Another brand has separate tools like that. Ex: SP Flash Tool...