Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 初始化失败 #29

Closed
moosetk opened this issue Dec 18, 2017 · 25 comments
Closed

Python 初始化失败 #29

moosetk opened this issue Dec 18, 2017 · 25 comments

Comments

@moosetk
Copy link

moosetk commented Dec 18, 2017

1.1.4 on Android 7.0
screenshot_20171218-101526

@XndroidDev
Copy link
Owner

有过一个反馈, 是权限问题
#22
目前不清楚为什么chmod执行后仍然不可读

@XndroidDev
Copy link
Owner

你有给root权限吗

@moosetk
Copy link
Author

moosetk commented Dec 18, 2017

给了root权限

@XndroidDev
Copy link
Owner

app-debug.apk.zip
(先去掉.zip拓展名) 卸载后安装这个, 将日志发过来.
@iopxiang @lunjielee

@moosetk
Copy link
Author

moosetk commented Dec 19, 2017

xndroid-logs.tar.gz.zip

@lunjielee
Copy link

lunjielee commented Dec 19, 2017 via email

@XndroidDev
Copy link
Owner

@lunjielee 日志发过来

@XndroidDev
Copy link
Owner

@iopxiang @lunjielee
麻烦重新卸载后测试这个 https://raw.githubusercontent.com/XndroidDev/Xndroid-update/master/update/app-debug.apk 无论是否正常运行都将日志发过来

@785045633
Copy link

785045633 commented Dec 20, 2017

xndroid-logs.tar(1).gz
一加3,8.0,启动失败后直接死机.
screenshot_20171220-085316
@XndroidDev

@XndroidDev
Copy link
Owner

Android 7.0 以上的文件权限很奇怪,即使chmod,chown,chgrp java进程中一直不可读, 不知道是不是Android 故意限制的。 @iopxiang @lunjielee @785045633 ,你们用的什么授权工具, SuperSU 还是 magisk
还有

CANNOT LINK EXECUTABLE "getprop": "/data/data/net.xndroid/files/xndroid_files/python/lib/libcrypto.so.1.0.0" is 32-bit instead of 64-bit

看来Android对native进程越来越不友好了, 还是我的Android 6.0 好用

@XndroidDev
Copy link
Owner

XndroidDev commented Dec 20, 2017

@785045633 你试试清除应用数据或卸载后 不要给root权限,能否正常使用。

注意:清除应用数据或卸载后再试,无论是否正常运行都将日志发过来

@moosetk
Copy link
Author

moosetk commented Dec 20, 2017

@XndroidDev 我用的magisk

@amiglistimo
Copy link

用了debug版还是不行(SuperSU,手机:三星note5),日志如下:
root模式下xndroid-logs.tar.gz
VPN模式下xndroid-logs.tar.gz
20171220_111916
screenshot_20171220-111812

@moosetk
Copy link
Author

moosetk commented Dec 20, 2017

初始化没问题了,但无法导入证书,每次退出不能保存appid
xndroid-logs.tar.gz

@XndroidDev
Copy link
Owner

@iopxiang 因为java进程中root创建的文件不可读, 误以为文件不存在, 会重新解压。还不清楚为什么会这样

@XndroidDev
Copy link
Owner

@Gogo008 日志中看上去 fqrouter和xx-net 运行的都没有问题, 还不清楚为什么会超时

@lunjielee
Copy link

lunjielee commented Dec 20, 2017 via email

@785045633
Copy link

@XndroidDev 授权工具用的是SuperSU 卸载后再装,不给权限可以使用,XX-NET页面第一次进去直接闪退,后面进去XX-NET页面显示请检查浏览器代理设置,但不影响使用。另外再问下手机app怎么使用X-TUNNEL
tim 20171220162433
screenshot_20171220-163405
没有授权xndroid-logs.tar.gz

@XndroidDev
Copy link
Owner

@785045633#14

@XndroidDev
Copy link
Owner

@iopxiang @lunjielee @785045633 @Gogo008

给root权限, 卸载后重新下载测试一下这个
https://raw.githubusercontent.com/XndroidDev/Xndroid-update/master/update/app-debug.apk

无论是否正常运行都将日志发过来

@785045633
Copy link

785045633 commented Dec 22, 2017

@XndroidDev root模式致命错误,VPN模式可以进
VPN-xndroid-logs.tar.gz

_20171222173016

root-xndroid-logs.tar.gz
_20171222172756

@XndroidDev
Copy link
Owner

XndroidDev commented Dec 22, 2017

@785045633
感谢反馈, 修复了些问题, 重新编译了
给root权限, 卸载后再重新下载试试
https://raw.githubusercontent.com/XndroidDev/Xndroid-update/master/update/app-debug.apk

无论是否正常运行都将日志发过来

@785045633
Copy link

785045633 commented Dec 22, 2017

@XndroidDev 十分感谢 ,root模式可以用了。网页版Google和YOUTUBE无法打开
screenshot_20171222-195359
Root-xndroid-logs.tar.gz

@XndroidDev
Copy link
Owner

@785045633
网页版youtube 和 google 打不开是因为 XX-Net的 br编码 没有处理好
XX-net/XX-Net#8852 (comment)
建议使用firefox, chrome,
或尝试将XX-Net更新到 3.8.7(可能仍然会有问题)

另外 fqdns的日志里 发现了 之前没见过的异常, 不清楚是否影响使用

Traceback (most recent call last):
  File "/home/dejavu/Projects/python-for-android/build/python-install/lib/python2.7/site-packages/gevent/greenlet.py", line 328, in run
  File "/data/data/net.xndroid/files/xndroid_files/fqrouter/manager/fqdns.py", line 142, in handle
    self.handler(self.sendto, request, address)
  File "/data/data/net.xndroid/files/xndroid_files/fqrouter/manager/fqdns.py", line 243, in __call__
    request = dpkt.dns.DNS(raw_request)
  File "/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dpkt.py", line 72, in __init__
    self.unpack(args[0])
  File "/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py", line 256, in unpack
    q, off = self.unpack_q(buf, off)
  File "/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py", line 227, in unpack_q
    q.name, off = unpack_name(buf, off)
  File "/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py", line 84, in unpack_name
    n = ord(buf[off])
IndexError: string index out of range
<Greenlet at 0xf3733670L: <bound method HandlerDatagramServer.handle of <HandlerDatagramServer at 0xf370be50L fileno=23 address=10.1.2.3:12345>>('@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_', ('192.168.1.107', 37909))> failed with IndexError

@XndroidDev
Copy link
Owner

br编码问题已修复, 请更新到最新版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants