diff --git a/cmd/tailscale/main.go b/cmd/tailscale/main.go index 5d0d308..aa83275 100644 --- a/cmd/tailscale/main.go +++ b/cmd/tailscale/main.go @@ -117,7 +117,7 @@ func main() { fatalErr(err) } a.appDir = appDir - a.store = newStateStore(a.appDir, a.jvm, a.appCtx) + a.store = newStateStore(a.jvm, a.appCtx) go func() { if err := a.runBackend(); err != nil { fatalErr(err) diff --git a/cmd/tailscale/store.go b/cmd/tailscale/store.go index e96e8f6..6ae77ed 100644 --- a/cmd/tailscale/store.go +++ b/cmd/tailscale/store.go @@ -16,8 +16,6 @@ import ( // backend by androidx.security.crypto.EncryptedSharedPreferences (see // App.java). type stateStore struct { - dataDir string - jvm jni.JVM // appCtx is the global Android app context. appCtx jni.Object @@ -27,11 +25,10 @@ type stateStore struct { decrypt jni.MethodID } -func newStateStore(dataDir string, jvm jni.JVM, appCtx jni.Object) *stateStore { +func newStateStore(jvm jni.JVM, appCtx jni.Object) *stateStore { s := &stateStore{ - dataDir: dataDir, - jvm: jvm, - appCtx: appCtx, + jvm: jvm, + appCtx: appCtx, } jni.Do(jvm, func(env jni.Env) error { appCls := jni.GetObjectClass(env, appCtx)