hellozeronet / zeronet-kivy Goto Github PK
View Code? Open in Web Editor NEWAndroid client for ZeroNet
Home Page: https://zeronet.io
License: GNU General Public License v2.0
Android client for ZeroNet
Home Page: https://zeronet.io
License: GNU General Public License v2.0
02-26 15:45:00.369 4936 4936 E AndroidRuntime: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE)
[INFO ] Logger: Record log in /data/user/0/net.mkg20001.zeronet/files/app/.kivy/logs/kivy_19-02-25_4.txt
[INFO ] Kivy: v1.11.0.dev0, git-79a08b1, 20190224
[INFO ] Python: v2.7.15 (default, Feb 24 2019, 19:38:25)
[GCC 4.2.1 Compatible Android (4691093 based on r316199) Clang 6.0.2 (https://a
[INFO ] Factory: 184 symbols loaded
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "/home/data/.buildozer/android/app/main.py", line 6, in <module>
[WARNING] stderr: File "/home/data/.buildozer/android/app/os_platform.py", line 4, in <module>
[WARNING] stderr: File "/home/data/.buildozer/android/app/platform_android.py", line 9, in <module>
[WARNING] stderr: File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/__init__.py", line 30, in <module>
[WARNING] stderr: File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/ASN1.py", line 15, in <module>
[WARNING] stderr: File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/M2Crypto/BIO.py", line 11, in <module>
[WARNING] stderr: ImportError: No module named typing
Working on that in #41
@HelloZeroNet I plan to no longer maintain the app after v0.6.5.1 due to lack of time and intrest. v0.6.5.1
is a one-shot effort after which no new releases will follow.
Android 4.1.2
As I currently don't have as much time and motivation as I'd like to have to be able to work on this project (after all it's a free-time side-hustle) I'd need somebody else to maintain it. (ref #34 (comment))
I think this is a lot smarter than simply letting this project slowly die due to lack of maintaince.
If you're intrested create a pr that fixes one or more of the many issues this app currently has, comment below with the pr url and we'll talk.
Many famous app like wechat, add its own browser into its app for good experience.
In my opinion , it should be more handy and useful for the zeronet android application if the interface for zeronet , a webview which loads http://127.0.0.1:43110 as the zeronet index page or something else such as previously provided profile page, can be ran after the launch of the zeronet python script at once.
In case of that , the development of this application can mainly focus on the HTML and the web design which can easily interact with the users trying build his own social network on this app. It shall be much easier for users that there are available platform for social development , such as forum or friend search engine , and the profile which includes their portrait , status and all kind of things he/she want to share and the a manager for photos. This kind of things are presented in ZeroTalk , ZeroBoard ,etc , but they are not friendly and lack of beauty aesthetically.
I suppose it would be better for marketing that the android version can provide a useful and productive social platform , as well as depending on the nature of the zeronet that supports the freedom of speech and could not be ban easily.
Hi/Hello It's Good To Build A APK For Android But There Only ARM So For Any Phone But Not For Android x86 And Some Tablet
Is Possible To Build APK For ARM And x86
Thank Sick
Would help with collecting bugs better, since python-kivy creates logfiles under /data/user/0/net.mkg20001.zeronet/files/app/.kivy/logs/
which are really useful
Not an issue but I could not find contact-info or donation page for Kivy project. Interested in doing bitcoin donation to help with ZeroNet-kivy.
Tried twice installing the latest version (0.5.2.1 unsigned) to no avail. Error: "The file appears to be corrupt".
Oneplus One, Android 7.1.1, Lineage OS 14.1 20170403 nightly. Suggestions?
Buildozer seems to have improved greatly, thus removing the need for some hacks/workarounds as well as the forks.
list WIP
$CI_MODE
feature: Possibly get this merged upstream (kivy/python-for-android#1727 and kivy/python-for-android#1727)Android APP can't use tor, Add-On error shown on home page
Zeronet (Unreleased) by LiberIT
The zeronet app has not landscape mode, it's portrait forced.
On tablet/pc is not very usable.
Cordialy
Currently it errors on start. Error gets silently ignored on purpose but should be fixed
If you don't put it in app store, then I might have to.
Currently it's caching, but not really.
I'd like to use /cache
and not gitlab's internal cache, as that one saves the overhead of pushing the whole android sdk+ndk twice through the network per build.
Somehow docker-in-docker ignores the folders
Many devices on the prelaunch report (7/10) crash with this error
pixel 7.1 logcat.txt
Both files were changed and their translated counterparts need to be updated
I'm using an LG Stylo 3. I removed the most recent version and went back to the Alpha #9 release which seems to work fine. I just have this annoying "new version 0.6.4" notification on the home page.
ZeroNet is working fine for me without it enabled, and I've never noticed a problem with it disabled. Multiple times I've enabled it, but never noticing a need to. Now, I've been using ZeroNet with it disabled ever since the IPv6 pull request, because I reinstalled it since then. The permission is likely for accessing files outside ZeroNet's directory, not for accessing ZeroNet's directory.
Currently working on using gitlab ci instead of travis as it has better caching (cache can just be left as-is on worker, without having to compress & uncompress) and parallel builds
手机水平放置时,应用启动时会无视系统对屏幕方向的限制,自行横屏显示然后崩溃。竖屏启动成功后再水平放置手机会导致界面显示不全。希望能加以修复。
(Translated by Google)When the phone is placed horizontally, the application will ignore the system's restrictions on the screen orientation when it starts, and then displays it horizontally and then crashes. Vertical screen after the success of the mobile phone will be placed after the level of the interface will lead to incomplete display. Hope to be able to repair.
How to install on iOS
?
Kivy is way too buggy and using native android ui could fix many input-related crashes
Current setup is a hack
Once built, can't install on emulator.
In logcat "Commit of session ... failed: Failed to extract native libraries"
In the old version apk, trackers is invalid, even can not connect any peer.
Current approach: It works! Let's see if it does work tomorrow! Good luck!
Obviously not really future-proof (example: release history of zn-kivy)
New approach:
Most tools just do "dumb" checkouts so it doesn't really matter if we give that tool a commit, tag, or branch.
For buildozer the version can be defined via the Dockerfile in the pip install command
For p4a the version can be defined via the p4a.branch
entry in the buildozer.spec
Due to some changes in the raised SDK version (as targetSdk 26 will be mandatory) I have upgraded kivy and py4a.
I'm currently upgrading stuff and fixing any bugs that appear, meanwhile building the app is not possible!
Current issues:
[INFO]: Building gevent for armeabi-v7a
[INFO]: gevent apparently isn't already in site-packages
[INFO]: Building compiled components in gevent
[INFO]: -> directory context /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent
[INFO]: -> running python.host setup.py build_ext -v
working: File "/home/data/.buildozer/android/platform/build/build/python-instalException in thread background thread for pid 671:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/.local/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
handle_exit_code(exit_code)
File "/home/.local/lib/python2.7/site-packages/sh.py", line 1929, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /home/data/.buildozer/android/platform/build/build/python-installs/zeronet/bin/python.host setup.py build_ext -v
STDOUT:
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
running build_ext
Linking /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/lib.linux-x86_64-2.7/gevent/corecext.so to /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/gevent/corecext.so
Running '(cd "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' in /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/temp.linux-x86_64-2.7/c-ares
configure: error: in `/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares':
configure: error: C compiler cannot create executables
See `config.log' for more details
Traceback (most recent call last):
File "setup.py", line 516, in <module>
run_setup(ext_modules, run_make=run_make)
File "setup.py", line 502, in run_setup
**setup_kwds
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "setup.py", line 305, in build_extension
self.gevent_prepare(ext)
File "setup.py", line 302, in gevent_prepare
configure(self, ext)
File "setup.py", line 219, in configure_ares
rc = _system(ares_configure_command)
File "setup.py", line 172, in _system
return check_call(cmd, shell=True)
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' returned non-zero exit status 77
STDERR:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 978, in <module>
main()
File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 975, in main
ToolchainCL()
File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 512, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 149, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/data/.buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "pythonforandroid/build.py", line 573, in build_recipes
File "pythonforandroid/recipe.py", line 844, in build_arch
File "pythonforandroid/recipe.py", line 856, in build_compiled_components
File "pythonforandroid/logger.py", line 175, in shprint
File "/home/.local/lib/python2.7/site-packages/sh.py", line 720, in next
self.wait()
File "/home/.local/lib/python2.7/site-packages/sh.py", line 651, in wait
self.handle_command_exit_code(exit_code)
File "/home/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/data/.buildozer/android/platform/build/build/python-installs/zeronet/bin/python.host setup.py build_ext -v
STDOUT:
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
running build_ext
Linking /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/lib.linux-x86_64-2.7/gevent/corecext.so to /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/gevent/corecext.so
Running '(cd "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' in /home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/build/temp.linux-x86_64-2.7/c-ares
configure: error: in `/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares':
configure: error: C compiler cannot create executables
See `config.log' for more details
Traceback (most recent call last):
File "setup.py", line 516, in <module>
run_setup(ext_modules, run_make=run_make)
File "setup.py", line 502, in run_setup
**setup_kwds
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "setup.py", line 305, in build_extension
self.gevent_prepare(ext)
File "setup.py", line 302, in gevent_prepare
configure(self, ext)
File "setup.py", line 219, in configure_ares
rc = _system(ares_configure_command)
File "setup.py", line 172, in _system
return check_call(cmd, shell=True)
File "/home/data/.buildozer/android/platform/build/build/python-installs/zeronet/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/home/data/.buildozer/android/platform/build/build/other_builds/gevent-python2/armeabi-v7a/gevent/c-ares" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure --host=arm-linux-androideabi CFLAGS= LDFLAGS= CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' returned non-zero exit status 77
STDERR:
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=zeronet --bootstrap=sdl2 --requirements=sqlite3,openssl,m2crypto,gevent,msgpack-python,pil,hostpython2,git+https://github.com/kivy/plyer,android,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/data/.buildozer/android/platform/build"
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
[DEBUG]: /home/data/.buildozer/android/platform/build/dists/zeronet/src/main/java/org/kivy/android/PythonService.java:97: error: cannot find symbol
[DEBUG]: notification.setLatestEventInfo(context, serviceTitle, serviceDescription, pIntent);
[DEBUG]: ^
[DEBUG]: symbol: method setLatestEventInfo(Context,String,String,PendingIntent)
[DEBUG]: location: variable notification of type Notification
[DEBUG]: /home/data/.buildozer/android/platform/build/dists/zeronet/src/main/java/net/mkg20001/zeronet/ServiceZn.java:30: error: cannot find symbol
[DEBUG]: notification.setLatestEventInfo(context, "ZeroNet", "Zn", pIntent);
[DEBUG]: ^
[DEBUG]: symbol: method setLatestEventInfo(Context,String,String,PendingIntent)
[DEBUG]: location: variable notification of type Notification
[DEBUG]: Note: Some input files use or override a deprecated API.
[DEBUG]: Note: Recompile with -Xlint:deprecation for details.
When using the application my cpu gets really hot and my battery drains fast.
My device is a oneplus3t running Android 7.1.2, browser that I'm using is brave.
No such file or directory: '/storage/emulated/0/lib'
UiWebsocket.py line 105 > UiWebsocket.py line 212 > CryptMessagePlugin.py line 89 > builtins.py line 93 > __init__.py line 16 > builtins.py line 93 > openssl.py line 516 > openssl.py line 512 > util.py line 81
F-Droid is an installable catalogue of FOSS (Free and Open Source Software) applications for the Android platform. The client makes it easy to browse, install, and keep track of updates on your device.
It's not all Android device have Google Play Store, and some users want download and update ZeroNet from another platform(In mainland China, Google Play is blocked).
Not able to build with vagrant.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.