什么是sharedUserId在Android中,以及如何使用它?使用它、sharedUserId、Android

2023-09-12 06:12:27 作者:牛逼哄哄

我很困惑的sharedUserID.what在使用sharedUserId的?如何使用?凡在Android的使用?

解决方案

SharedUserId用于共享数据,处理两个或多个应用程序之间等。 它是在AndroidManifest.xml中定义的一样,

 清单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
   机器人:sharedUserId =android.uid.shared
机器人:sharedUserLabel =@字符串/ sharedUserLabel
 

和在Android.mk定义共享参数的应用程序一样,

       

LOCAL_CERTIFICATE:=共享

  

希望它帮助你。

I am confused in sharedUserID.what is use of sharedUserId?How to use?Where to use in android?

解决方案 Android逆向之旅 Android中的sharedUserId属性详解

SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManiFest.xml like,

 manifest xmlns:android="http://schemas.android.com/apk/res/android"
   android:sharedUserId="android.uid.shared"
android:sharedUserLabel="@string/sharedUserLabel"

and define the shared parameter in Android.mk for that app, like,

LOCAL_CERTIFICATE := shared

Hope its helpful to you..

 
精彩推荐
图片推荐