# Check if we have a swap device enabled
if [ $(do_shell "cat /proc/swaps | wc -l") -lt 2 ]
then
echo "Enabling swap device"
SWAP=1
do_shell "dd if=/dev/zero of=/data/tmpswap bs=2048M count=1"
do_shell "mkswap /data/tmpswap"
do_shell "swapon /data/tmpswap"
# We need to low the aggressiveness of LMK so the device doesn't reboot.
echo "Reducing LowMemoryKiller agressiveness"
do_shell "echo 9999 > /sys/module/lowmemorykiller/parameters/adj"
do_shell "echo 1 > /sys/module/lowmemorykiller/parameters/minfree"
fi
if [ -n "$SWAP" ]
then
do_shell "sync"
do_shell "swapoff /data/tmpswap"
do_shell "rm -rf /data/tmpswap"
fi
Tree: halium-7.1
usb: Manufacturer: GNU/Linux Deviceappears indmesgon host.Troubleshooting:
Added manually inlibnativehelper/include/nativehelperdownload here.Maybe I'm missing a project in my manifest.xml?, I know there must be a better way to fix this.
It was, Halium/android was missing android_libcore repo Add libcore android#17
Fixed by removing all .apk/.jar references inside
proprietary-files.txtin device tree Loup-ROM/android_device_xiaomi_santoni@28243c1Loup-ROM/android_device_xiaomi_santoni@4d16924
error: ext4_allocate_best_fit_partial: failed to allocate "X" blocks, out of space?fixed after using this patch Make system.img the right size for the device halium-scripts#4
/var/lib/lxc/android/rootfs Input/output errorfixed after removing f2fs support in device tree Loup-ROM/android_device_xiaomi_santoni@07c073b
kernel: IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissionsfixed by applying this patch to the kernel Halium/android_kernel_lge_bullhead@a34bb3a...0b64b0c
and adding
pm-servicetonet_rawgroup Loup-ROM/android_device_xiaomi_santoni@46d4423for wifi to work I had to run this:
echo sta > /sys/module/wlan/parameters/fwpathThe solution is to add a swap device temporarily and reduce the aggressiveness of the LMK.
Add these lines before
echo "transfering rootfs tarball ... "inhalium-installscriptThen add these inside
cleanup_devicefunction to remove the swap file.Sources