在多个Android应用程序preserving登录会话 [英] Preserving login session across multiple Android apps

查看:107
本文介绍了在多个Android应用程序preserving登录会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个在同一系统登录两个应用程序,但他们有不同的功能,不能同时为在同一时间安装。我可以签署的两个应用程序具有相同签名都没问题,甚至使他们在同一个进程中运行。

I have two apps that both log in to the same system but they have separate functions and may not both be installed at the same time. I can sign the two apps with the same signature no problem, even make them run in the same process.

如何可以存储在这样一种方式,它是由这两个应用程序的共享,但仍然可以从未知的应用程序固定在登录cookie(除其他事项外)?

How can I store the login cookie (among other things) in such a way that it is shared by both apps and still be secured from unknown apps?

推荐答案

共享的用户ID应该让你访问对方的专用存储,你只需要弄清楚如果对方已经安装,找出绝对路径它的专用存储,然后看看,看看它是否有该cookie。希望你不会饿死在哲学家的表。

Shared user ID should get you access to each other's private storage, you would just need to figure out if the other was already installed, figure out the absolute path to its private storage and then look and see if it had the cookie. Hopefully you won't starve at the table of philosophers.

这篇关于在多个Android应用程序preserving登录会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆