PurpleI2P / i2pd-android

i2pd for Android
BSD 3-Clause "New" or "Revised" License
195 stars 23 forks source link

use the non-gui daemon as an external OS process #40

Closed nonlin-lin-chaos-order-etc-etal closed 1 year ago

nonlin-lin-chaos-order-etc-etal commented 2 years ago

андроед достал убивать и2пд. надо безгуевого линукс демона в гуевую прогу внедрить чтоб гуи рожал вечноживой процесс и цеплялся потом к нему

почитать про интерпроцессную коммуникацию для андроид

r4sas commented 2 years ago

Выруби DuraSpeed и всё встанет на свои места.

nonlin-lin-chaos-order-etc-etal commented 2 years ago

маленький букмарклет

комментарии unknown'a (README): https://github.com/PurpleI2P/i2pd/commit/d5214099c5f3c43b2282ca4c0d1cf33b67a98660

gha https://github.com/PurpleI2P/i2pd-android/blob/master/.github/workflows/android.yml

папка сборки https://github.com/PurpleI2P/i2pd-android/tree/master/binary/jni

вспомогательные скриптики https://github.com/PurpleI2P/i2pd-android/tree/master/contrib/binary_pack

nonlin-lin-chaos-order-etc-etal commented 2 years ago

DuraSpeed et al (app killing stuffs): https://github.com/urbandroid-team/dont-kill-my-app/issues/57

nonlin-lin-chaos-order-etc-etal commented 2 years ago

see also https://github.com/Gedsh/InviZible/wiki#prevent-invizible-from-being-killed-by-android

nonlin-lin-chaos-order-etc-etal commented 2 years ago

see also for XIAOMI https://github.com/Gedsh/InviZible/issues/144#issue-1289533367

nonlin-lin-chaos-order-etc-etal commented 2 years ago

https://stackoverflow.com/questions/70788254/child-process-should-not-die-with-parent-process

nonlin-lin-chaos-order-etc-etal commented 2 years ago

experiment 2

"So, the system may kill the process at any time to reclaim memory, and in doing so, it terminates the spawned thread running in the process. The solution to this problem is typically to schedule a JobService from the BroadcastReceiver, so the system knows that there is still active work being done in the process."

Source for the quote: https://developer.android.com/guide/components/activities/process-lifecycle

nonlin-lin-chaos-order-etc-etal commented 2 years ago

https://www.woolha.com/tutorials/android-using-jobservice-jobscheduler-for-running-repeated-background-jobs

nonlin-lin-chaos-order-etc-etal commented 2 years ago

https://developer.android.com/reference/android/app/job/JobService Added in API level 21

nonlin-lin-chaos-order-etc-etal commented 1 year ago

Related and superseded by #50.