How to check if APK is signed or “debug build”?

后端 未结 10 1953
我在风中等你
我在风中等你 2020-11-29 16:34

As far as I know, in android \"release build\" is signed APK. How to check it from code or does Eclipse has some kinda of secret defines?

I need thi

10条回答
  •  感动是毒
    2020-11-29 16:50

    A debug build is signed as well, just with a different key. It's generated automatically by Eclipse, and its certificate is valid for one year only. What's the problem with android:debuggable? You can get this value from code using PackageManager.

提交回复
热议问题