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端使用)

JBLin 發表在 痞客邦 留言(0) 人氣()

pid: 

android.os.Process.myPid()

uid:

JBLin 發表在 痞客邦 留言(0) 人氣()

1.需要以下權限
INTERACT_ACROSS_USERS (signature|system)

JBLin 發表在 痞客邦 留言(0) 人氣()

gradle 加入 

android {

        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
}

gradle(project)

JBLin 發表在 痞客邦 留言(0) 人氣()

新增:adb shell pm create-user userName
移除:adb shell pm remove-user UserID

JBLin 發表在 痞客邦 留言(0) 人氣()

shift+alt+s,选择generate getters and getters,


JBLin 發表在 痞客邦 留言(0) 人氣()

參考文件: https://howtodoinjava.com/spring-boot2/resttemplate/spring-restful-client-resttemplate-example/

    final String uri = "http://localhost:8080/springrestexample/employees/{id}";

JBLin 發表在 痞客邦 留言(0) 人氣()

在AOP Around 取得token後比對Redis內的token

    @Around("cut()") //環繞通知

JBLin 發表在 痞客邦 留言(0) 人氣()

1.pom.xml依賴

        <dependency>

JBLin 發表在 痞客邦 留言(0) 人氣()

1.前往此網址:https://github.com/microsoftarchive/redis/releases
2.下載最新版本.ZIP壓縮檔

JBLin 發表在 痞客邦 留言(0) 人氣()