簡體   English   中英

在Android Studio中以調試模式更改應用的UID

[英]change UID of app in debug mode in Android studio

我想測試具有相同UID的兩個應用之間的共享數據。 如何更改android studio中應用的UID並為兩個不同的應用設置相同的UID?

您需要使用sharedUserId ,它將在兩個不同的應用程序之間共享數據。

在清單中:

<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"

適用於Android開發人員的清單元素

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM