[英]change UID of app in debug mode in Android studio
i want testing share data between two apps that have same UID. 我想测试具有相同UID的两个应用之间的共享数据。 how change UID of apps in android studio and set a same UID for two diffrent apps? 如何更改android studio中应用的UID并为两个不同的应用设置相同的UID?
You need to use sharedUserId
which will share data between two different apps. 您需要使用sharedUserId
,它将在两个不同的应用程序之间共享数据。
In manifest: 在清单中:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="string"
android:sharedUserId="your_uid_in_string" // change here..
android:sharedUserLabel="string resource"
android:versionCode="integer"
Manifest Elements for Android Developers 适用于Android开发人员的清单元素
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.