Is there a way to determine whether an Android application is signed for production or debug at runtime?

后端 未结 4 498
执念已碎
执念已碎 2021-02-06 15:33

Is there a way to determine whether an Android application is signed for production or debug at runtime?

4条回答
  •  不思量自难忘°
    2021-02-06 16:13

    The post android-automatically-choose-debug-release-maps-api-key Has another packagemanger based solution. Basicaly you compare to the hashCode of the actual signatuse. Working well for me for sorting out the maps key automaticaly

提交回复
热议问题