Editing system files
For setting up services like Gapps, and resizing the SD card to reflect the full SD card capacity, please follow the FAQ on KonstaKang’s release page directly. These apps can also be pushed using the ADB method below.
KonstaKang LineageOS 21 for Raspberry PI 5
Editing system files can be done using ADB. Firstly, to enable ADB, we need to enable developer options, on the PI android OS, go to Settings >> About and tap on “Software Information” several times. This will create a new menu option called Developer Options, Inside that menu we can select “Enabled Developer Options” also, enable “USB Debugging”.
Once done, go to the settings menu again and navigate to Raspberry PI Settings, scroll down and enable ADB from the menu options.
Now, we are ready to connect over ADB. Download the ADB Platform Tools for your operating system.
Open a new terminal or command prompt window and navigate to the folder when the adb.exe file exists. We can now connect using adb. Replace with the IP address of your Raspberry PI. The below is an example only and will differ for each system.
cd C:\Users\User\Downloads\platform-tools
Now, connect using ADB.
adb connect 192.168.0.50
Once connected, we need to enable ADB in root mode,
adb root
Then we need to make the filesystem writable for making changes to files.
adb remount
Now, we enter the adb shell,
adb shell
Now, we can use standard Linux commands to edit files and navigate the directories etc. Some useful commands are
nano
cd
ls
cat
stty
cp
rm
For example, to edit the /boot/config.txt
nano /boot/config.txt
To view the serial output of a serial device at ttyS0
cat /dev/ttyS0 or cat /dev/ttyUSB0
If you are unsure which Serial port your serial or USB GPS is connected to for exampe, you can use
ls /dev/