是否有可能开发在Android定制的API?如果是这样,怎么样? [英] Is it possible to develop a custom API on Android? If so, how?

查看:153
本文介绍了是否有可能开发在Android定制的API?如果是这样,怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Android是开源的,我正在考虑制订一个自定义的API,主要用于实现一个门户网站登录模块。

Since Android is open-source, I am considering developing a custom API on it, mainly for implementing a web portal login module.

基本功能应包括:


  • 获取无线客户端的MAC地址;

  • 重定向他们的HTTP请求;

  • 端口/ DNS过滤/基于MAC地址阻塞;

  • 而且,包装所有这些功能到定制的API,因此,它可能是
    提供给潜在客户。

是否有可能开发在Android这样的定制API?如果是这样,怎么样?

Is it possible to develop such a custom API on Android? If so, how?

任何合理的意见都欢迎。谢谢你。

Any reasonable comments are welcome. Thank you.

推荐答案

你的一些目标,就需要最起码的root访问权限,或某些类型的用户互动的成立。

Some of your goals would require root access at the very least, or some kind of user interaction for set up.

总而言之,这是可能的。你不得不结束了编写自己的应用程序,读取相关数据,用根来修改IP表,并在用户设置代理服务拦截HTTP流量。

All in all, it is possible. You'd have to end up writing your own app that reads the relevant data, uses root to modify IP Tables, and has the user set up a proxy service to intercept HTTP traffic.

一旦你有了这个设置,您可以通过自己的应用程序向第三方揭露它。

Once you have this set up, you can expose it via your own application to third parties.

如果你打算做这个没有用户交互,或需要安装在设备上的其他应用程序,你将不得不做,在源头code和重建Android的图像要在运行它的每台设备,将要求所有潜在用户在使用它之前闪烁你的Andr​​oid ROM映像到他们的设备。

If you plan on doing this without user interaction, or needing another app installed on the device, you will have to do it in source code and rebuild the Android image for every device you want to run it on, and will require any potential users to flash your Android ROM image onto their device before using it.

这篇关于是否有可能开发在Android定制的API?如果是这样,怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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