[Android Software/Hacking General [Developers Only]] patkszen:
Hi all, I'm a total noob, patience much appreciated. Just installed magsik v16 and nethunter on nexus 6p running oreo 8.1, stock kernel.

I'm not able to install chroot from nethunter app, it's "error in the chroot download......", network is fine, tried over different wifi's and over 4G etc, tried putting kalifs-amd64-full.tar.xz on internal storage, it would decompress it, ask which metadata package to install, I'd go for nethunter but still no chroot

04-10 21:39:43.091 621 774 D fpc_tac : nav_start
04-10 21:39:43.101 621 774 D fpc_tac : fpc_tee_nav_loop waiting for finger down
04-10 21:39:44.015 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:44.015 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:45.769 10866 10897 I getEventCount: 0
04-10 21:39:46.586 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:46.586 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:47.166 22462 22462 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
04-10 21:39:47.278 22462 22462 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
04-10 21:39:47.311 22462 22462 D AndroidRuntime: Calling main entry com.android.commands.am.Am
04-10 21:39:47.330 22462 22462 D AndroidRuntime: Shutting down VM
04-10 21:39:47.385 423 423 D SurfaceFlinger: duplicate layer name: changing com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity to com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity#1
04-10 21:39:48.181 423 423 D SurfaceFlinger: duplicate layer name: changing com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity to com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity#2
04-10 21:39:49.131 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:49.131 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 21:39:49.400 854 854 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@18b39ad
04-10 21:39:49.569 22484 22484 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
04-10 21:39:49.599 21703 21703 W Notification: Use of stream types is deprecated for operations other than volume control
04-10 21:39:49.600 21703 21703 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
04-10 21:39:49.602 854 3795 E NotificationService: No Channel found for pkg=com.offsec.nethunter, channelId=null, id=1, tag=null, opPkg=com.offsec.nethunter, callingUid=10102, userId=0, incomingUserId=0, notificationUid=10102, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE)
04-10 21:39:49.626 423 423 D SurfaceFlinger: duplicate layer name: changing com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity to com.offsec.nethunter/com.offsec.nethunter.AppNavHomeActivity#1
04-10 21:39:49.692 22484 22484 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
04-10 21:39:49.730 22484 22484 D AndroidRuntime: Calling main entry com.android.commands.am.Am
04-10 21:39:49.750 22484 22484 D AndroidRuntime: Shutting down VM
04-10 21:39:51.770 10866 10897 I getEventCount: 0
04-10 21:39:51.788 854 854 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@318bbbf

I think the below is relevant to when I try to install from kalif file which I put on the phone

04-10 22:14:29.775 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 22:14:31.875 21703 21703 D PACKS: : PACKS:kali-linux-nethunter
04-10 22:14:31.882 854 2903 I ActivityManager: START u0 {act=com.offsec.nhterm.RUN_SCRIPT_NH cat=[android.intent.category.DEFAULT] cmp=com.offsec.nhterm/.RunScriptNetHunter (has extras)} from uid 10102
04-10 22:14:32.010 10352 10352 W Notification: Use of stream types is deprecated for operations other than volume control
04-10 22:14:32.010 10352 10352 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
04-10 22:14:32.011 854 1074 E NotificationService: No Channel found for pkg=com.offsec.nhterm, channelId=null, id=1, tag=null, opPkg=com.offsec.nhterm, callingUid=10103, userId=0, incomingUserId=0, notificationUid=10103, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE)
04-10 22:14:32.011 10352 10352 D Term : TermService started
04-10 22:14:32.012 10352 10352 I TermService: Activity called onBind()
04-10 22:14:32.039 10352 10352 I TermService: Activity binding to service
04-10 22:14:32.040 10352 10352 D RUN_SCRIPT_NH: CMD: echo -ne "\033]0;Updating\007" && clear;apt-get install kali-linux-nethunter && echo "
04-10 22:14:32.040 10352 10352 D RUN_SCRIPT_NH: CMD: Kali Linux Nethunter setup is complete.
04-10 22:14:32.040 10352 10352 D RUN_SCRIPT_NH: CMD: Enjoy. (You can close the terminal now)
04-10 22:14:32.040 10352 10352 D RUN_SCRIPT_NH: CMD: "
04-10 22:14:32.040 10352 10352 D initialCommand: echo -ne "\033]0;Updating\007" && clear;apt-get install kali-linux-nethunter && echo "
04-10 22:14:32.040 10352 10352 D initialCommand: Kali Linux Nethunter setup is complete.
04-10 22:14:32.040 10352 10352 D initialCommand: Enjoy. (You can close the terminal now)
04-10 22:14:32.040 10352 10352 D initialCommand: "
04-10 22:14:32.040 10352 10352 D MM createTermSession: /sbin/su -c /data/data/com.offsec.nethunter/files/scripts/bootkalicmd: echo -ne "\033]0;Updating\007" && clear;apt-get install kali-linux-nethunter && echo "
04-10 22:14:32.040 10352 10352 D MM createTermSession: Kali Linux Nethunter setup is complete.
04-10 22:14:32.040 10352 10352 D MM createTermSession: Enjoy. (You can close the terminal now)
04-10 22:14:32.040 10352 10352 D MM createTermSession: "
04-10 22:14:32.042 10352 10352 D CS: shell: /sbin/su -c /data/data/com.offsec.nethunter/files/scripts/bootkali
04-10 22:14:32.042 10352 10352 D CS parse: : /sbin/su -c /data/data/com.offsec.nethunter/files/scripts/bootkali
04-10 22:14:32.051 10352 10352 D STS: ^^ : /sbin/su -c /data/data/com.offsec.nethunter/files/scripts/bootkali cmd: echo -ne "\033]0;Updating\007" && clear;apt-get install kali-linux-nethunter && echo "
04-10 22:14:32.051 10352 10352 D STS: ^^ : Kali Linux Nethunter setup is complete.
04-10 22:14:32.051 10352 10352 D STS: ^^ : Enjoy. (You can close the terminal now)
04-10 22:14:32.051 10352 10352 D STS: ^^ : "
04-10 22:14:32.053 854 5444 I ActivityManager: START u0 {act=com.offsec.nhterm.private.OPEN_NEW_WINDOW cat=[android.intent.category.DEFAULT] flg=0x10000000 cmp=com.offsec.nhterm/.TermInternal} from uid 10103
04-10 22:14:32.173 10352 10352 I Term : Bound to TermService
04-10 22:14:32.173 10352 10352 I TermService: Activity binding to service
04-10 22:14:32.180 10352 10352 D populateWindowList: in Not null
04-10 22:14:32.181 10352 10352 D populateWindowList: in selectedTab
04-10 22:14:32.181 10352 10352 D onUpdate: 0
04-10 22:14:32.181 10352 10352 D onUpdate: 0
04-10 22:14:32.184 10352 10352 D new getView: 0
04-10 22:14:32.184 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.184 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.185 10352 10352 D new getView: 0
04-10 22:14:32.185 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.185 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.200 10352 10352 D CS: InitialCmd: echo -ne "\033]0;Updating\007" && clear;apt-get install kali-linux-nethunter && echo "
04-10 22:14:32.200 10352 10352 D CS: InitialCmd: Kali Linux Nethunter setup is complete.
04-10 22:14:32.200 10352 10352 D CS: InitialCmd: Enjoy. (You can close the terminal now)
04-10 22:14:32.200 10352 10352 D CS: InitialCmd: "
04-10 22:14:32.200 10352 25386 I Term : waiting for: 25375
04-10 22:14:32.200 10352 10352 D new getView: 0
04-10 22:14:32.200 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.200 10352 10352 D mPendingPathBroadcasts: Tamano = 1
04-10 22:14:32.203 10352 25385 D TermSession.java: : new Handler
04-10 22:14:32.204 10352 25385 D TermSession.java: : writeToOutput()
04-10 22:14:32.243 854 980 I WindowManager: Failed to capture screenshot of Token{c7141e7 ActivityRecord{e94b3a6 u0 com.offsec.nhterm/.RunScriptNetHunter t140 f}} appWin=Window{d8a86df u0 com.offsec.nhterm/com.offsec.nhterm.RunScriptNetHunter} drawState=4
04-10 22:14:32.253 10352 25384 W System.err: java.io.IOException: read failed: EIO (I/O error)
04-10 22:14:32.253 10352 25384 W System.err:	at libcore.io.IoBridge.read(IoBridge.java:538)
04-10 22:14:32.253 10352 25384 W System.err:	at java.io.FileInputStream.read(FileInputStream.java:254)
04-10 22:14:32.253 10352 25384 W System.err:	at android.os.ParcelFileDescriptor$AutoCloseInputStream.read(ParcelFileDescriptor.java:940)
04-10 22:14:32.253 10352 25384 W System.err:	at java.io.FileInputStream.read(FileInputStream.java:228)
04-10 22:14:32.253 10352 25384 W System.err:	at android.os.ParcelFileDescriptor$AutoCloseInputStream.read(ParcelFileDescriptor.java:931)
04-10 22:14:32.253 10352 25384 W System.err:	at com.offsec.nhterm.a.l$2.run(Unknown Source:8)
04-10 22:14:32.253 10352 25384 W System.err: Caused by: android.system.ErrnoException: read failed: EIO (I/O error)
04-10 22:14:32.253 10352 25384 W System.err:	at libcore.io.Linux.readBytes(Native Method)
04-10 22:14:32.253 10352 25384 W System.err:	at libcore.io.Linux.read(Linux.java:184)
04-10 22:14:32.253 10352 25384 W System.err:	at libcore.io.BlockGuardOs.read(BlockGuardOs.java:251)
04-10 22:14:32.253 10352 25384 W System.err:	at libcore.io.IoBridge.read(IoBridge.java:528)
04-10 22:14:32.253 10352 25384 W System.err:	... 5 more
04-10 22:14:32.254 10352 25386 I Term : Subprocess exited: 1
04-10 22:14:32.259 10352 10352 D noning SI EXIT: ???
04-10 22:14:32.259 10352 10352 D noning FINISH: ???
04-10 22:14:32.259 10352 10352 D onupdateeeeee: tamano 0
04-10 22:14:32.271 10352 10352 D onUpdate: 0
04-10 22:14:32.304 25371 25371 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
04-10 22:14:32.327 1050 1050 W GInputConnectionWrapper: Fixing selection indices to 0, 0
04-10 22:14:32.425 25371 25371 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
04-10 22:14:32.462 25371 25371 D AndroidRuntime: Calling main entry com.android.commands.am.Am
04-10 22:14:32.502 10352 10352 W MessageQueue: Handler (com.offsec.nhterm.a.l$3$1) {f999561} sending message to a Handler on a dead thread
04-10 22:14:32.502 10352 10352 W MessageQueue: java.lang.IllegalStateException: Handler (com.offsec.nhterm.a.l$3$1) {f999561} sending message to a Handler on a dead thread
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.enqueueMessage(Handler.java:662)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.sendMessageAtTime(Handler.java:631)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.sendMessageDelayed(Handler.java:601)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.sendEmptyMessageDelayed(Handler.java:565)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.sendEmptyMessage(Handler.java:550)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.offsec.nhterm.a.l.b(Unknown Source:6)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.offsec.nhterm.a.l.a(Unknown Source:10)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.offsec.nhterm.a.l.d(Unknown Source:8)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.offsec.nhterm.e$3.run(Unknown Source:23)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.handleCallback(Handler.java:790)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Handler.dispatchMessage(Handler.java:99)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.os.Looper.loop(Looper.java:164)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at android.app.ActivityThread.main(ActivityThread.java:6494)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at java.lang.reflect.Method.invoke(Native Method)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
04-10 22:14:32.502 10352 10352 W MessageQueue:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
04-10 22:14:32.519 25371 25371 D AndroidRuntime: Shutting down VM
04-10 22:14:33.076 854 863 I zygote64: NativeAlloc concurrent copying GC freed 34075(1853KB) AllocSpace objects, 0(0B) LOS objects, 42% free, 17MB/30MB, paused 187us total 107.971ms
04-10 22:14:33.769 10866 10897 I getEventCount: 0
04-10 22:14:34.355 10866 10866 I putmethod.latin: type=1400 audit(0.0:1826): avc: denied { read } for name="vmstat" dev="proc" ino=4026548020 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=1
04-10 22:14:34.358 10866 10866 I putmethod.latin: type=1400 audit(0.0:1827): avc: denied { open } for path="/proc/vmstat" dev="proc" ino=4026548020 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=1
04-10 22:14:34.358 10866 10866 I putmethod.latin: type=1400 audit(0.0:1828): avc: denied { getattr } for path="/proc/vmstat" dev="proc" ino=4026548020 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=1
04-10 22:14:34.543 854 854 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@6749163
04-10 22:14:38.103 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 22:14:38.104 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 22:14:39.769 10866 10897 I getEventCount: 0
04-10 22:14:42.134 854 985 I nanohub : osLog: [AR_CHRE] still: 90
04-10 22:14:42.136 854 985 I nanohub : osLog: [AR_CHRE] ON => IDLE
04-10 22:14:43.210 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]
04-10 22:14:43.210 587 1385 E QC-QMI : linux_qmi_qmux_io_wake_unlock: Err in writing wakelock=qmuxd_port_wl_0, error [1:eek:peration not permitted]