i2pd-android icon indicating copy to clipboard operation
i2pd-android copied to clipboard

use the non-gui daemon as an external OS process

Open egphilippov1 opened this issue 3 years ago • 9 comments

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

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

egphilippov1 avatar Sep 27 '22 02:09 egphilippov1

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

r4sas avatar Sep 27 '22 07:09 r4sas

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

комментарии 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

egphilippov1 avatar Oct 03 '22 16:10 egphilippov1

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

egphilippov1 avatar Oct 03 '22 16:10 egphilippov1

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

egphilippov1 avatar Oct 03 '22 16:10 egphilippov1

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

egphilippov1 avatar Oct 03 '22 17:10 egphilippov1

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

egphilippov1 avatar Oct 08 '22 07:10 egphilippov1

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

egphilippov1 avatar Oct 08 '22 07:10 egphilippov1

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

egphilippov1 avatar Oct 08 '22 07:10 egphilippov1

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

egphilippov1 avatar Oct 08 '22 08:10 egphilippov1

Related and superseded by #50.

egphilippov1 avatar Jan 25 '23 19:01 egphilippov1