[Android General] mirfatif:
ANDROID vs LINUX: INIT PROCESSES and SERVICES

ANDROID 8.0

PPID PID TT CMD
0 1 ? /init
1 402 ? /sbin/ueventd
1 428 ? /system/bin/logd
1 429 ? /system/bin/servicemanager
1 430 ? /system/bin/hwservicemanager
1 431 ? /vendor/bin/vndservicemanager /dev/vndbinder
1 446 ? /system/bin/vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
1 458 ? /system/bin/hw/android.hidl.allocator@1.0-service
1 465 ? /vendor/bin/hw/android.hardware.usb@1.0-service
1 460 ? /vendor/bin/hw/android.hardware.cas@1.0-service
1 461 ? /vendor/bin/hw/android.hardware.configstore@1.0-service
1 462 ? /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
1 464 ? /vendor/bin/hw/android.hardware.health@1.0-service
1 466 ? /vendor/bin/hw/android.hardware.vibrator@1.0-service
1 467 ? /vendor/bin/hw/android.hardware.wifi@1.0-service
1 468 ? /vendor/bin/hw/vendor.qti.hardware.iop@1.0-service
1 469 ? /vendor/bin/hw/vendor.qti.hardware.perf@1.0-service
1 470 ? /system/bin/healthd
1 476 ? /vendor/bin/sensors.qcom
1 472 ? /vendor/bin/rmt_storage
1 474 ? /vendor/bin/tftp_server
1 481 ? /system/bin/lmkd
1 477 ? /system/bin/gx_fpd
1 479 ? /vendor/bin/pm-service
1 480 ? /vendor/bin/qseecomd
480 568 ? \_ /vendor/bin/qseecomd
1 482 ? /system/bin/surfaceflinger
1 483 ? /system/bin/thermalserviced
1 485 ? /vendor/bin/pm-proxy
1 853 ? /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.0-service-custom
1 2127 ? /system/vendor/bin/cnd
1 2129 ? /system/vendor/bin/ipacm-diag
1 2128 ? /system/vendor/bin/netmgrd
1 2130 ? /system/vendor/bin/qti
1 2131 ? /vendor/bin/hw/rild -c 2
1 2134 ? /system/vendor/bin/adsprpcd
1 2137 ? zygote64
2137 2267 ? \_ xposed_logcat
2267 2271 ? | \_ logcat -v time -s XposedStartupMarker:D Xposed:I appproc:I XposedInstaller:I art:F
2137 2984 ? \_ system_server
2137 3238 ? \_ com.android.systemui
2137 3351 ? \_ com.qualcomm.qti.telephonyservice
2137 3365 ? \_ com.android.phone
2137 3506 ? \_ com.qualcomm.qcrilmsgtunnel
2137 3993 ? \_ com.google.android.gms.persistent
2137 4020 ? \_ org.lineageos.audiofx
2137 4070 ? \_ com.android.smspush
2137 4089 ? \_ com.google.android.inputmethod.latin
2137 4106 ? \_ com.teslacoilsw.launcher
2137 4131 ? \_ org.lineageos.profiles
2137 4188 ? \_ com.google.android.gms
2137 4205 ? \_ com.google.process.gservices
2137 4569 ? \_ android.process.media
2137 5673 ? \_ com.google.android.gms.unstable
2137 5694 ? \_ org.lineageos.lockclock
2137 5747 ? \_ org.omnirom.omnijaws
2137 6128 ? \_ com.android.bluetooth
2137 7040 ? \_ android.process.acore
2137 7696 ? \_ com.google.android.inputmethod.latin:train
2137 8096 ? \_ com.android.vending.billing.InAppBillingService.COIN
2137 8923 ? \_ com.google.android.configupdater
2137 10345 ? \_ com.android.dialer
1 2136 ? /system/vendor/bin/hvdcp_opti
1 2133 ? /system/vendor/bin/thermal-engine
1 2135 ? /system/vendor/bin/imsqmidaemon
1 2139 ? /system/bin/audioserver
1 2138 ? zygote
2138 5142 ? \_ com.android.vending
1 2140 ? /system/bin/cameraserver
1 2141 ? /system/bin/drmserver
1 2142 ? /system/bin/installd
1 2144 ? /system/bin/keystore /data/misc/keystore
1 2145 ? /system/bin/mediadrmserver
1 2156 ? media.extractor aextractor
1 2165 ? /vendor/bin/hw/vendor.qti.gnss@1.0-service
1 2158 ? media.metrics diametrics
1 2159 ? /system/bin/mediaserver
1 2160 ? /system/bin/netd
2160 2276 ? \_ /system/bin/iptables-restore --noflush -w -v
2160 2277 ? \_ /system/bin/ip6tables-restore --noflush -w -v
2160 7456 ? \_ /system/bin/dnsmasq-orig --keep-in-foreground --no-resolv --no-poll --dhcp-authoritative --dhcp-option-force=43,ANDROID_METERED --pid-file --listen-mark 0xf0063 --dhcp-range=192.168.43.2,192.168.43.254,1h
1 2161 ? /system/bin/storaged
1 2162 ? /system/bin/wificond
1 2164 ? /vendor/bin/hw/rild
1 2163 ? media.codec hw/android.hardware.media.omx@1.0-service
1 2170 ? /system/bin/gatekeeperd /data/misc/gatekeeper
1 2167 ? /system/vendor/bin/loc_launcher
2167 2239 ? \_ slim_daemon --sap PREMIUM
2167 2240 ? \_ xtra-daemon
1 2169 ? /system/bin/mm-qcamera-daemon
1 2231 ? /system/vendor/bin/wcnss_service
1 2229 ? /system/bin/tombstoned
1 2249 ? /vendor/bin/mm-pp-dpps
1 2274 ? /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
1 3319 ? /system/bin/webview_zygote32
1 3610 ? /system/vendor/bin/ims_rtp_daemon
1 3611 ? /system/vendor/bin/imsdatadaemon
1 3724 ? /system/vendor/bin/imsrcsd
1 7453 ? /vendor/bin/hostapd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf
1 8459 ? /system/bin/adbd --root_seclabel=u:r:su:s0
1 8463 ? /system/bin/mdnsd
1 440 ? magisk_daemon -post-fs
440 10948 pts/3 \_ sh -c LD_LIBRARY_PATH=/tmp/mirfatif/lib /tmp/mirfatif/xbin/sh
10948 10951 pts/3 \_ /tmp/mirfatif/xbin/sh
10951 11206 pts/3 \_ /tmp/mirfatif/xbin/sh /tmp/mirfatif/bin/pss
11206 11207 pts/3 \_ /data/data/com.termux/files/usr/bin/ps f --ppid 2 -p 2 --deselect -o ppid,pid,tty,cmd

UBUNTU 16.04

PPID PID TT COMMAND
0 1 ? /sbin/init
1 328 ? /lib/systemd/systemd-journald
1 342 ? /lib/systemd/systemd-udevd
1 743 ? /sbin/mount.ntfs-3g /dev/sda7 /F -o rw,nosuid,nodev
1 744 ? /sbin/mount.ntfs-3g /dev/sda5 /home -o rw,permissions
1 775 ? /lib/systemd/systemd-timesyncd
1 871 ? /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 878 ? /usr/sbin/rsyslogd -n
1 880 ? /usr/sbin/vnstatd -n
1 881 ? /lib/systemd/systemd-logind
1 884 ? /usr/sbin/acpid
1 886 ? /usr/sbin/sshd -D
1 888 ? /usr/lib/bluetooth/bluetoothd
1 889 ? /usr/bin/freshclam -d --foreground=true
1 891 ? /usr/sbin/cron -f
1 892 ? /usr/sbin/thermald --no-daemon --dbus-enable
1 900 ? /usr/sbin/clamd --foreground=true
1 931 tty1 /bin/login --
931 1145 tty1 \_ -bash
1145 2192 tty1 \_ /bin/sh /usr/bin/startx
2192 2215 tty1 \_ xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.yDCz6R4byp
2215 2216 tty1 \_ /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.yDCz6R4byp
2216 2221 tty1 | \_ /usr/lib/xserver-xorg-video-intel/xf86-video-intel-backlight-helper intel_backlight
2215 2232 tty1 \_ /bin/sh /home/mirfatif/.xsession
2232 2267 ? \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch /home/mirfatif/.xsession
2232 2280 tty1 \_ /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
2280 2290 tty1 \_ xfce4-session
2290 2328 tty1 \_ /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service
2290 2329 tty1 \_ lxpolkit
2290 2338 tty1 \_ xautolock -time 10 -locker xflock4
2290 2339 tty1 \_ dhcpcd-gtk
2290 2345 tty1 \_ indicator-keylock
2290 2356 tty1 \_ indicator-netspeed-unity
1 950 ? /usr/sbin/irqbalance --pid=/var/run/irqbalance.pid
1 964 ? wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf -iwlp2s0
1 971 ? /sbin/dhcpcd
1 1140 ? /lib/systemd/systemd --user
1140 1142 ? \_ (sd-pam)
1 1343 tty6 /sbin/agetty --noclear tty6 linux
1 1467 tty2 /sbin/agetty --noclear tty2 linux
1 2226 ? /usr/lib/policykit-1/polkitd --no-debug
1 2270 tty1 /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch /home/mirfatif/.xsession
1 2271 ? /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
1 2295 ? /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd
1 2299 ? /usr/bin/gpg-agent --sh --daemon --write-env-file /home/mirfatif/.cache/gpg-agent-info
1 2301 tty1 xfwm4
1 2305 tty1 xfce4-panel
2305 2390 tty1 \_ /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libwhiskermenu.so 6 16777244 whiskermenu Whisker Menu Show a menu to easily access installed applications
2390 2517 tty1 | \_ /usr/lib/notepadqq/notepadqq-bin
2390 2526 tty1 | \_ xfce4-terminal --maximize
2526 2531 tty1 | \_ gnome-pty-helper
2526 2532 pts/0 | \_ bash
2532 10220 pts/0 | | \_ sudo chroot /alarm
10220 10221 pts/0 | | \_ /usr/bin/qemu-aarch64-static /bin/bash -i
2526 11207 pts/2 | \_ bash
11207 11435 pts/2 | \_ /bin/sh /bin/pss
11435 11436 pts/2 | \_ ps axf -o ppid,pid,tty,args
2305 2391 tty1 \_ /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libindicator-plugin.so 7 16777248 indicator Indicator Plugin Provides a panel area for Unity indicators. Indicators allow applications and system services to display their status and interact with the user.
2305 2415 tty1 \_ /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libsystray.so 15 16777249 systray Notification Area Area where notification icons appear
2305 2416 tty1 \_ /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 4 16777250 pulseaudio PulseAudio Plugin Adjust the audio volume of the PulseAudio sound system
2305 2417 tty1 \_ /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libdatetime.so 11 16777251 datetime DateTime Date and Time plugin with a simple calendar
1 2307 tty1 Thunar --daemon
1 2309 tty1 xfdesktop
1 2310 ? xfsettingsd
1 2350 ? /usr/lib/dhcpcd-dbus/dhcpcd-dbus
1 2352 ? xfce4-power-manager
1 2358 ? /usr/lib/at-spi2-core/at-spi-bus-launcher
2358 2363 ? \_ /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
1 2365 ? /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
1 2375 ? /usr/lib/gvfs/gvfsd
1 2376 ? /usr/lib/upower/upowerd
1 2386 ? /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
1 2444 tty1 upstart --user --startup-event indicator-services-start
1 2449 ? /usr/bin/pulseaudio --start --log-target=syslog
1 2452 ? /usr/lib/rtkit/rtkit-daemon
1 2474 ? /usr/lib/gvfs/gvfs-udisks2-volume-monitor
1 2477 ? /usr/lib/udisks2/udisksd --no-debug
1 2485 ? /usr/lib/gvfs/gvfs-goa-volume-monitor
1 2490 ? /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
1 2495 ? /usr/lib/gvfs/gvfs-afc-volume-monitor
1 2501 ? /usr/lib/gvfs/gvfs-mtp-volume-monitor
1 2509 ? /usr/lib/gvfs/gvfsd-trash --spawner :1.29 /org/gtk/gvfs/exec_spaw/0
1 2741 tty1 /opt/google/chrome/chrome
2741 2750 tty1 \_ /opt/google/chrome/chrome --type=zygote
1 2812 ? /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets
1 9366 ? /usr/lib/gvfs/gvfsd-metadata
1 10910 ? adb -P 5037 fork-server server