问题描述
在 android studio 中创建了一个应用程序.尝试将其安装在真实设备中.我收到一个错误"出于安全考虑,您的手机已设置为阻止安装从未知来源获得的应用程序."
我通过设置并启用从未知来源安装来消除此错误.安装该应用程序后.
问题:
1) 如何在不启用未知来源选项的情况下将此应用设置为受信任的已知来源进行安装.
即使我尝试在 android studio 中创建签名的 APK.但仍有真实设备报告为未知来源.
有人可以帮助我将 App 设为可信的已知来源吗?
推荐答案
Google Play 商店以外的所有应用都会出现未知来源错误.
您必须将您的 apk 文件上传到您的 google play 开发者控制台,并且用户必须通过 Google Play 下载您的应用程序.否则,用户应从设置中启用未知来源复选框以安装应用程序.
当您签署您的应用程序时,您将防止篡改原始来源,当攻击者篡改您的应用程序并使用他的密钥操作系统对其进行签名时,将提醒用户卸载该应用程序并安装新版本以防止数据劫持.但这仍然不能使该应用成为受信任的应用.
因此,Google Play 商店之外的所有已签名或未签名的应用都被视为来源不明的应用.
问题描述
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?
推荐答案
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.