在服务器端模仿Google帐户

发布于 2024-11-05 19:56:54 字数 622 浏览 3 评论 0原文

我最近购买了一台 Android 设备。现在我想知道我是否可以模仿它用来与 Google 服务器通信的协议? 我基本上想设置某种“Google 帐户”,该帐户不会由 Google 提供服务,但与 Android 设备完全兼容。那么,Android 是否使用某种 WebDAV 协议来访问日历、联系人等内容?它使用什么类型的协议来发送邮件(是 IMAP,因为我会在 PC 上配置我的帐户,还是其他一些只有 Google 知道的协议?) 或者我只需要模仿 GData 协议? 有没有办法改变 Android 与之对话的主机?

我知道有像 Google Apps 这样的东西。它们允许您设置自己的 Google 的一小部分,据我所知可以连接到 Android 设备(我想您只需在用户名后使用您的域创建一个 Google 帐户),但所有内容仍然托管在 Google 服务器和 Android 上仍在与 Google 主机对话。

如果没有任何进展,我可能会创建某种服务提供商,就像 Facebook、Twitter 和 Google 的服务提供商一样,但现在我想探索在服务器端实现这一点的可能性。

并不是说我不信任谷歌。我只是不太喜欢有人在我不拥有的文件中处理我生活中有价值的部分。如果有人找到了在 Google 服务器上chown文件的方法,则假设此问题无效;)。

I recently bought an Android device. Now I'm wondering if can I mimic protocols it uses to communicate with Google servers?
I basically want to setup some kind of "Google account", which wouldn't be served by Google, but would be fully compatible with Android devices. So, does Android use some kind of WebDAV protocol for accessing things like calendar, contacts? What kind of protocol does it use for mail (is it IMAP, as I would configure my account on a PC or some other Google-only-knows-what-is-it protocol?)
Or do I just have to mimic GData protocols?
Is there even a way to change host which Android talks to?

I know that there are things like Google Apps. They allow you to setup your own, very little part of Google, which AFAIK can be connected to Android device (you just have to create an Google account with your domain after username, I suppose), but everything's still hosted on Google servers and Android still talks to Google host.

If nothing works out, I could probably create some kind of service provider, which would act like those for Facebook, Twitter and Google, but for now I want to explore possibility of doing it on the server-side.

Not that I don't trust Google. I just don't really like someone handling valuable part of my life in files I don't own. Assume this question void if someone found a way of chowning files on Google servers ;).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

残龙傲雪 2024-11-12 19:56:54
  1. 不,您无法“重定向”Android 上的 Google 应用与您的服务器通信。

  2. Google 通过各种 API (GDATA) 公开他们的应用程序(gmail、日历、文档等),因此我认为他们的 Android 应用程序使用这些应用程序。

  3. 即使您“模仿”这些协议,您也无法重定向应用程序,因为据我所知它们使用 SSL。

    即使

  4. 只需创建您自己的客户端和服务器软件,通过 SSL 保护连接即可一切就绪。您甚至不必编写软件,因为有数千个用于电子邮件、日历、文档共享等的开源服务器应用程序。

如果您正在考虑在没有服务器的情况下使用 Google 客户端并建议自行替代,比你显然不了解开发这样一个服务的复杂性。您是否意识到每天有成千上万的顶尖开发人员为此工作?

如果您不信任应用程序服务提供商(Google、Facebook 等),请不要使用他们的服务。对于信用卡公司、银行、移动、电信等其他服务提供商来说也是如此。

  1. No, you can not "redirect" google apps on Android to talk to your servers.

  2. Google exposes their Apps (gmail, calendar, docs, etc..) via various APIs (GDATA), so I suppose their Android apps use those.

  3. Even if you "mimic" those protocols, you could not redirect the apps, because AFAIK they use SSL.

  4. Just create your own client and server software, secure the connection via SSL and you are all set. You even don't have to write the software as there are thousands open-source server apps for email, calendaring, doc sharing, etc..

If you are thinking of using Google clients without their servers and proposing a roll-your-own replacement, than you clearly do not understand the complexity of developing such a service. Do you realize there are thousands of top-notch devs working daily on this?

If you dont trust application service providers (Google, Facebook, etc..) than don't use their services. Same goes for other service providers like credit card companies, banks, mobile, telco, etc..

狼亦尘 2024-11-12 19:56:54

如果你有一部root过的手机,模仿谷歌服务器可能会很酷。例如,通过将 sqlite 数据库中的日历 https url 更改为您自己的服务器。
对于日历,我猜这是卡尔达夫,但应该正式写在某个地方。

是的,它们是 Android 的 caldav-sync 工具,但它们都完全糟糕(Hypermatic 糟糕得多,但它已被放弃,并且不是开源的)

If you have a rooted phone it could be quite cool to mimic google server. For example by changing the calendar https url in the sqlite database to your own server.
For calendar, I guess this is Caldav, but should be written down somewhere officially.

And yes, their are caldav-sync tools for Android, but they all suck completely (Hypermatic sucks less, but it has been abandoned, and is not open source)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文