trojan-gfw / igniter

A trojan client for Android (UNDER CONSTRUCTION).
GNU General Public License v3.0
3.31k stars 732 forks source link

Feature: Android TV support #146

Open wongsyrone opened 4 years ago

kidbai commented 4 years ago

+1

alanjbleung commented 4 years ago

+1

GaranYeon commented 4 years ago

+1

TheFlySnail commented 4 years ago

+1

ephen commented 4 years ago

这个软件功能在 TV 上用起来很优秀,就是 UI 希望能优化下: 启动页面建议不要默认就填写节点信息,做成默认能选择一个节点点击立即连接(没有节点就指引去配置)。

改成这样其实安卓手机也适用

目前在 TV 上的问题,主要就是“start”按钮在最下面,上面都是输入框,导致使用遥控器时每按一个“下”键,都呼出输入法,好久才能按到“start”按钮,比较痛苦。

oasiscifr commented 4 years ago

@ephen Good point. https://developer.android.com/training/tv/start/navigation

xenstar commented 4 years ago

Really need this function. Would make the trojan experience so much better.

xenstar commented 4 years ago

I have checked today in Mi Box 4 (Android). Basically it works on smart tv, but when I stopped the connection it was kinda stuck. So I had to force close the application. Other than that, it worked which surprised me.

terryyizhong commented 4 years ago

应该还没有支持电视吧。 非常希望能支持电视, 现在点连接就显示 很抱歉已停止运行。

ephen commented 4 years ago

应该还没有支持电视吧。 非常希望能支持电视, 现在点连接就显示 很抱歉已停止运行。

我家小米 4c 可以用。

wongsyrone commented 4 years ago

The latest git HEAD already tested on TCL 65C10

terryyizhong commented 4 years ago

Thanks for your replies! @ephen 你是用的最新的release的apk吗? did you mean latest apk file in releases or latest source code? @wongsyrone

wongsyrone commented 4 years ago

Latest source code with the latest igniter-go-libs

terryyizhong commented 4 years ago

I am not familiar with android compile, looking forward the new released apk!

wongsyrone commented 4 years ago

Please try https://github.com/trojan-gfw/igniter/releases/tag/v0.9.5-beta

TchaikovDriver commented 4 years ago

I am not familiar with android compile, looking forward the new released apk!

Generally speaking, Igniter should work on standard Android TV released in recent years. In some vendor ROMs, for optimization or other purposes, manufacturer would remove features that they think it unnecessary for TV, like VPN, for example. In this circumastance, Igniter will not work because of lack of required runtime support.

terryyizhong commented 4 years ago

Got it, thanks a lot!

terryyizhong commented 4 years ago

Unfortuanately, I test the new release apk on my android TV, still not work. maybe it's like TchaikovDriver said, they remove the feature? My TV is : kernel version 3.10.86 gfkfcmo@compile04 Thanks anyway~

code2u commented 3 years ago

+1 希望能够支持Android Tv和chrome OS中的play store

calidion commented 2 years ago

我在看是不是可以开发TV相关的版本,但是发现最小的SDK版本要求有些太高了。 大部分的TV的Android版本都是5,版本是22的。 但是这个GO库好像要求必须是23。 这样很多TV用不了。 如果GO库能解决这个问题,那么提取公共库,UI重新实现一下。就可以支持更多的版本了。 包括TV, Wear OS, Automotive这些。

所以go库能不能支持更低的版本呢?

TheFlySnail commented 2 years ago

邮件已收到,祝您生活愉快~~

calidion commented 2 years ago

对这个支持感兴趣的,可以关注一下这个项目:

https://github.com/low-api-support-trojan

我已经重新编译了golibs。将支持的API缩小到了level 16. 目标是支持更多的android 版本,更多的屏幕。

calidion commented 2 years ago

https://github.com/low-api-support-trojan/igniter/releases/tag/las-v0.1.0

第一个版本编译完成发布,支持Android 5.0

未来会更新UI代码与C++代码,尽量保持与主版本在低层代码一致。 UI可能会有一定的不同。

目前已经测试了两个版本。x86的版本没有经过真机测试。

calidion commented 2 years ago

添加x86_64支持。

calidion commented 1 year ago

https://github.com/low-api-support-trojan/igniter/releases/tag/las-v0.2.1

添加自动启动功能。对于TV用户应该可以方便一些不用每次都控制器选择点击了。

TheFlySnail commented 1 year ago

邮件已收到,祝您生活愉快~~

calidion commented 1 year ago

las v0.3.0 发布, 优化了对TV的支持,修复了VPN多次开启导致的自动启动失效的问题。

TV 支持 Android 5.0 版本 以上。

https://github.com/low-api-support-trojan/igniter/releases/tag/las-v0.3.0

Screenshot from 2022-10-15 20-48-37 Screenshot from 2022-10-15 20-52-59