[samsung-kminilte] ADB sideloading doesn't work
c0rn3j@Luxuria : ~
[0] % pmbootstrap install --android-recovery-zip
[22:22:25] *** (1/4) PREPARE NATIVE CHROOT ***
[22:22:25] *** (2/4) CREATE DEVICE ROOTFS ("samsung-kminilte") ***
[22:22:25] Update package index for armhf (4 file(s))
[sudo] password for c0rn3j:
[22:22:33] (rootfs_samsung-kminilte) install
[22:22:36] (rootfs_samsung-kminilte) write /etc/os-release
[22:22:36] (rootfs_samsung-kminilte) mkinitfs samsung-kminilte
[22:22:39] *** SET LOGIN PASSWORD FOR: 'c0rn3j' ***
New password:
Retype new password:
passwd: password updated successfully
[22:22:43] NOTE: No valid keymap specified for device
[22:22:45] *** (3/4) CREATING RECOVERY-FLASHABLE ZIP ***
[22:22:45] (buildroot_armhf) install
[22:22:47] (buildroot_armhf) create recovery zip
[22:23:21] *** (4/4) FLASHING TO DEVICE ***
[22:23:21] Run the following to flash your installation to the target device:
[22:23:21] * pmbootstrap flasher --method adb sideload
[22:23:21] Flashes the installer zip to your device.
[22:23:21] * If this does not work, you can also create a symlink to the generated zip with 'pmbootstrap export' and flash outside of pmbootstrap.
[22:23:21] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[22:23:21] Done
c0rn3j@Luxuria : ~
[0] % pmbootstrap flasher --method adb sideload
[22:23:47] Update package index for x86_64 (4 file(s))
[22:23:49] (native) install android-tools
< wait for any device >
* daemon not running; starting now at tcp:5038
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 23655
--- adb starting (pid 23655) ---
adb I 08-09 20:23:49 23655 23655 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 08-09 20:23:49 23655 23655 main.cpp:57] Version ADB_VERSION
adb I 08-09 20:23:49 23655 23655 main.cpp:57] Installed as /usr/bin/adb
adb I 08-09 20:23:49 23655 23655 main.cpp:57]
adb I 08-09 20:23:49 23655 23655 adb_auth_host.cpp:416] adb_auth_init...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
* failed to start daemon
error: cannot connect to daemon
[22:23:50] NOTE: The failed command's output is above the ^^^ line in the log file: /home/c0rn3j/.local/var/pmbootstrap/log.txt
[22:23:50] ERROR: Command failed: (native) % adb -P 5038 wait-for-usb-sideload
[22:23:50] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.
Trying to execute that command myself works.
c0rn3j@Luxuria : ~
[1] % adb -P 5038 wait-for-usb-sideload
* daemon not running; starting now at tcp:5038
* daemon started successfully
log.txt
< wait for any device >
(024078) [22:28:50] (native) % adb -P 5038 wait-for-usb-sideload
* daemon not running; starting now at tcp:5038
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 24085
--- adb starting (pid 24085) ---
adb I 08-09 20:28:50 24085 24085 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 08-09 20:28:50 24085 24085 main.cpp:57] Version ADB_VERSION
adb I 08-09 20:28:50 24085 24085 main.cpp:57] Installed as /usr/bin/adb
adb I 08-09 20:28:50 24085 24085 main.cpp:57]
adb I 08-09 20:28:50 24085 24085 adb_auth_host.cpp:416] adb_auth_init...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
* failed to start daemon
error: cannot connect to daemon
(024078) [22:28:52] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(024078) [22:28:52] NOTE: The failed command's output is above the ^^^ line in the log file: /home/c0rn3j/.local/var/pmbootstrap/log.txt
(024078) [22:28:52] ERROR: Command failed: (native) % adb -P 5038 wait-for-usb-sideload
(024078) [22:28:52] See also: <https://postmarketos.org/troubleshooting>
(024078) [22:28:52] Traceback (most recent call last):
File "/home/c0rn3j/pmbootstrap/pmb/__init__.py", line 62, in main
getattr(frontend, args.action)(args)
File "/home/c0rn3j/pmbootstrap/pmb/helpers/frontend.py", line 183, in flasher
pmb.flasher.frontend(args)
File "/home/c0rn3j/pmbootstrap/pmb/flasher/frontend.py", line 133, in frontend
sideload(args)
File "/home/c0rn3j/pmbootstrap/pmb/flasher/frontend.py", line 109, in sideload
pmb.flasher.run(args, "sideload")
File "/home/c0rn3j/pmbootstrap/pmb/flasher/run.py", line 54, in run
pmb.chroot.root(args, command, output="interactive")
File "/home/c0rn3j/pmbootstrap/pmb/chroot/root.py", line 90, in root
output_return, check, kill_as_root)
File "/home/c0rn3j/pmbootstrap/pmb/helpers/run_core.py", line 265, in core
raise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: (native) % adb -P 5038 wait-for-usb-sideload