How to fix Unknown sources error during App install?

青春壹個敷衍的年華 提交于 2020-01-06 05:31:30

问题


Created an App in android studio. While try to install it in real device. I am getting an error "For Security, your phone is set to block installation of apps obtained from Unknown sources."

I removed this error by going to setting and enabled install from Unknown sources. After that app get installed.

Question:
1) How can i make this app as trusted known source for installation without making Unknown sources option enabled.

Even i tried to create a signed APK in android studio. But Still real device is reporting as Unknown sources.

Can someone help me to make App as trusted known source?


回答1:


All apps outside of Google Play Store will get the Unknown Source Error.

You must upload your apk file to your google play developer console and user must download your app via Google Play. Otherwise user should enable the Unknown Sources checkbox from the settings in order to install the app.

When you sign your application, you will prevent from tampering the original source and when the attacker tampered your application and signed it with his key OS will alert the user to uninstall the app and install the fresh version to prevent data hijacking. But this still doesn't make the app as trusted app.

Hence all the apps, signed or unsigned, outside the Google Play Store are considered as app from unknown source.




回答2:


in any android device you need to enable Unknown sources for any application.so that unknown sources is not an error it only for security in all android device.

when ever you install app any unknown sources for mobile it can't give permission to install so you want to enable it.

if you install app from google play store then it is trusted source so it does not need to enable unknown source.

if you want to install your app without enable Unknown sources then you need to publish your app in Google play store.



来源:https://stackoverflow.com/questions/52219060/how-to-fix-unknown-sources-error-during-app-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!