1.AndroidManifest.xml 宣告對外service
<service android:name=".UserControlService"> <intent-filter> <action android:name="1"></action> </intent-filter> </service>
2.service server AIDL (實作AIDL interface給client端使用)
1.AndroidManifest.xml 宣告對外service
<service android:name=".UserControlService"> <intent-filter> <action android:name="1"></action> </intent-filter> </service>
2.service server AIDL (實作AIDL interface給client端使用)
1.需要以下權限
INTERACT_ACROSS_USERS (signature|system)
gradle 加入
android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }
gradle(project)
新增:adb shell pm create-user userName
移除:adb shell pm remove-user UserID
shift+alt+s,选择generate getters and getters,
1.前往此網址:https://github.com/microsoftarchive/redis/releases
2.下載最新版本.ZIP壓縮檔