[Android Software/Hacking General [Developers Only]] Pachacouti:
Well, while you were typing your msg, I was doing this:

(warning, my adb log... read each line...)

Armor_X5_Q:/ # exit

Armor_X5_Q:/ # exit

Armor_X5_Q:/ # ^C

130|Armor_X5_Q:/ # exit

D:\0\AdbStation>so the order is

'so' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

Armor_X5_Q:/ # exit

D:\0\AdbStation>adb su

adb.exe: unknown command su

D:\0\AdbStation>adb shell su

^C

D:\0\AdbStation>had to escape freeze

'had' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

Armor_X5_Q:/ # su whoami

Armor_X5_Q:/ # su --help

SuperSU v2.82 (ndk:arm64-v8a) - Copyright (C) 2012-2017 - Chainfire & CCMT

Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:

-c, --command COMMAND pass COMMAND to the invoked shell

-cn, --context CONTEXT switch to SELinux CONTEXT before invoking

-h, --help display this help message and exit

-, -l, --login pretend the shell to be a login shell

-m, -p,

-mm, --mount-master connect to a shell that can manipulate the

master mount namespace - requires su to be

running as daemon, must be first parameter

-mns, --mount-namespace PID enter mount namespace used by PID

--preserve-environment do not change environment variables

-s, --shell SHELL use SHELL instead of the default detected shell

-v, --version display public version and exit

-V display internal version and exit

Usage#2: su LOGIN COMMAND...

Usage#3: su {-d|--daemon|-ad|--auto-daemon|-r|--reload}

auto version starts daemon only on SDK >= 18 or

if SELinux is set to enforcing

(call only from a root session)

Usage#4: su {-i|--install|-u|--uninstall}

perform post-install / pre-uninstall maintenance

(call only from a root session)

Usage#5: su --id pid

identify eldest parent of pid

(call only from a root session)

Armor_X5_Q:/ # so su is actually working with boot-debug.img

sh: so: inaccessible or not found

127|Armor_X5_Q:/ # so now reflash stock boot ok?

sh: so: inaccessible or not found

127|Armor_X5_Q:/ # ok?

sh: ok?: inaccessible or not found

127|Armor_X5_Q:/ # ^C

130|Armor_X5_Q:/ # exit

130|Armor_X5_Q:/ # exit

D:\0\AdbStation>notice how i exit, twice in 2 seperate search's

'notice' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell exit

D:\0\AdbStation>adb shell

Armor_X5_Q:/ # exit

D:\0\AdbStation>but if I type su

'but' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

Armor_X5_Q:/ # su

Armor_X5_Q:/ # exit

Armor_X5_Q:/ # cant exit

/system/bin/sh: cant: inaccessible or not found

127|Armor_X5_Q:/ # su

Armor_X5_Q:/ # ^C

130|Armor_X5_Q:/ #

130|Armor_X5_Q:/ # exit

130|Armor_X5_Q:/ # exit

D:\0\AdbStation>unless I type exit twice after ctrl/c

'unless' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>so stock boot time, r u ready

'so' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb reboot bootloader

D:\0\AdbStation>fastboot flash boot boot.img

Sending 'boot' (32768 KB) OKAY [ 0.780s]

Writing 'boot' OKAY [ 0.515s]

Finished. Total time: 1.435s

D:\0\AdbStation>fastboot flash recovery recovery.bin

fastboot: error: cannot load 'recovery.bin': No such file or directory

D:\0\AdbStation>fastboot flash recovery recovery.img

Sending 'recovery' (20646 KB) OKAY [ 0.671s]

Writing 'recovery' OKAY [ 0.328s]

Finished. Total time: 0.998s

D:\0\AdbStation>ok, so now I'm stock, vbmeta bein legit kicks in

'ok' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>fastboot reboot

Rebooting OKAY [ 0.000s]

Finished. Total time: 0.016s

D:\0\AdbStation>boot into gui

'boot' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

adb.exe: no devices/emulators found

D:\0\AdbStation>need to regrant keys etc

'need' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

Armor_X5_Q:/ $ su

1|Armor_X5_Q:/ $ see?

/system/bin/sh: see?: inaccessible or not found

127|Armor_X5_Q:/ $ su whoami

1|Armor_X5_Q:/ $ su --help

SuperSU v2.82 (ndk:arm64-v8a) - Copyright (C) 2012-2017 - Chainfire & CCMT

Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:

-c, --command COMMAND pass COMMAND to the invoked shell

-cn, --context CONTEXT switch to SELinux CONTEXT before invoking

-h, --help display this help message and exit

-, -l, --login pretend the shell to be a login shell

-m, -p,

-mm, --mount-master connect to a shell that can manipulate the

master mount namespace - requires su to be

running as daemon, must be first parameter

-mns, --mount-namespace PID enter mount namespace used by PID

--preserve-environment do not change environment variables

-s, --shell SHELL use SHELL instead of the default detected shell

-v, --version display public version and exit

-V display internal version and exit

Usage#2: su LOGIN COMMAND...

Usage#3: su {-d|--daemon|-ad|--auto-daemon|-r|--reload}

auto version starts daemon only on SDK >= 18 or

if SELinux is set to enforcing

(call only from a root session)

Usage#4: su {-i|--install|-u|--uninstall}

perform post-install / pre-uninstall maintenance

(call only from a root session)

Usage#5: su --id pid

identify eldest parent of pid

(call only from a root session)

Armor_X5_Q:/ $ yeah, su in effect ;)

/system/bin/sh: syntax error: unexpected ')'

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $ su

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $

1|Armor_X5_Q:/ $ su

1|Armor_X5_Q:/ $ ^C

130|Armor_X5_Q:/ $

130|Armor_X5_Q:/ $ exit

D:\0\AdbStation>see? only one exit this time...

'see?' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell su --help

SuperSU v2.82 (ndk:arm64-v8a) - Copyright (C) 2012-2017 - Chainfire & CCMT

Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:

-c, --command COMMAND pass COMMAND to the invoked shell

-cn, --context CONTEXT switch to SELinux CONTEXT before invoking

-h, --help display this help message and exit

-, -l, --login pretend the shell to be a login shell

-m, -p,

-mm, --mount-master connect to a shell that can manipulate the

master mount namespace - requires su to be

running as daemon, must be first parameter

-mns, --mount-namespace PID enter mount namespace used by PID

--preserve-environment do not change environment variables

-s, --shell SHELL use SHELL instead of the default detected shell

-v, --version display public version and exit

-V display internal version and exit

Usage#2: su LOGIN COMMAND...

Usage#3: su {-d|--daemon|-ad|--auto-daemon|-r|--reload}

auto version starts daemon only on SDK >= 18 or

if SELinux is set to enforcing

(call only from a root session)

Usage#4: su {-i|--install|-u|--uninstall}

perform post-install / pre-uninstall maintenance

(call only from a root session)

Usage#5: su --id pid

identify eldest parent of pid

(call only from a root session)

D:\0\AdbStation>adb shell su -c mount -o rw,remount /

D:\0\AdbStation>bingo

'bingo' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>see?

'see?' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell su -c mount -o rw,remount /system_root

D:\0\AdbStation>weird, huh?

'weird' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>no root app installed

'no' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell

Armor_X5_Q:/ $ cd system

Armor_X5_Q:/system $ cd xbin

Armor_X5_Q:/system/xbin $ ls

chromeos libsupol.so su suinit sukernel supolicy trace

Armor_X5_Q:/system/xbin $ su

1|Armor_X5_Q:/system/xbin $ suinit --help

1|Armor_X5_Q:/system/xbin $ cant get hash, dont need it...

/system/bin/sh: cant: inaccessible or not found

127|Armor_X5_Q:/system/xbin $ #

127|Armor_X5_Q:/system/xbin $ sudo su

/system/bin/sh: sudo: inaccessible or not found

127|Armor_X5_Q:/system/xbin $ su sudo

1|Armor_X5_Q:/system/xbin $ cd /

Armor_X5_Q:/ $ exit

D:\0\AdbStation>adb root

adbd cannot run as root in production builds

D:\0\AdbStation>pardon?

'pardon?' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>adb shell su -c whoami

D:\0\AdbStation>adb shell

Armor_X5_Q:/ $ adb shell su -c whoami

/system/bin/sh: adb: inaccessible or not found

127|Armor_X5_Q:/ $ su -c whoami

1|Armor_X5_Q:/ $ su -c mount -o rw,remount rootfs /

1|Armor_X5_Q:/ $ su -c mount -o rw,remount vendor

1|Armor_X5_Q:/ $ how do I...

/system/bin/sh: how: inaccessible or not found

127|Armor_X5_Q:/ $ no complaints from fone or su.

/system/bin/sh: no: inaccessible or not found

127|Armor_X5_Q:/ $

127|Armor_X5_Q:/ $

127|Armor_X5_Q:/ $

127|Armor_X5_Q:/ $

127|Armor_X5_Q:/ $

127|Armor_X5_Q:/ $ exit

D:\0\AdbStation>adb disable-verity

disable-verity only works for userdebug builds

verity cannot be disabled/enabled - USER build

D:\0\AdbStation>adb shell su -c disable-verity

D:\0\AdbStation>lol

'lol' is not recognized as an internal or external command,

operable program or batch file.

D:\0\AdbStation>