Skip to content
vacuumbeef edited this page May 22, 2023 · 31 revisions

OUTDATED

Proceed to the new wiki for the proper Droidian port

EVERYTHING BEHIND THIS LINE IS OBSOLETE

Installation guide

It is expected that you already have unlocked bootloader and installed TWRP or maybe any other recovery capable of flashing zips.

I'm also making a list of better apps to use, it's small for now, but you can check it out here.

Preparations

  1. Download LineageOS rom and adaptation from the latest release.
  2. Download latest stable Droidian rootfs from here (droidian-OFFICIAL-phosh-phone-rootfs-api30-arm64). You can also download devtools to have additional features, out-of-the-box ssh for example, so it's recommended.
  3. Place everything on your SD card, or just in some directory if you want to adb sideload.

Do not use usb 3.0 ports for sideloading, it can lead to problems

Installation

  1. Reboot into TWRP
  2. Factory reset, format data
  3. Flash LineageOS rom
  4. Flash Droidian rootfs (and optionally devtools).
  5. Flash droidian-adaptation-vayu
  6. Reboot
  7. While booting do not press anything. After POCO logo, the Droidian logo will appear very shortly and disappear after a second or two, wait and do not press anything. The password is 1234.

After install

  1. Go to terminal - rm ~/.local/share/keyrings/*
  2. Go to Software -> Updates, refresh, download and install updates.
  3. Reboot (it can freeze, so you may need to force-reboot by long-pressing power button)

To change default password - sudo passwd droidian in terminal

Sometimes on the first boot there can be no sound and keyboard - just reboot by longpress.

Starting with the new version of adaptation (11.05.23), almost all fixes mentioned in the next section are already applied out of the box.

The things user still may want to do:

Fixes and hacks

Power saving mode when the screen is off

Enable batman service - sudo systemctl enable batman (again, the password is 1234)

Get more disk space

By default the available space is only 8gb. To increase it:

  1. Reboot to recovery
  2. Go to terminal
  3. df -h /data/ to check how much space you can get (the size column)
  4. e2fsck -f /data/rootfs.img
  5. resize2fs /data/rootfs.img 32G - resizes to 32gb obviously, you can change to the value from the first command from the size column
  6. Reboot to system

Mobile Data

Run sudo /usr/share/ofono/scripts/list-contexts

It will output details about your APN, which you should use to set up Mobile Data in the Settings app (Access Point Names). After that data should work within GUI. You may need to turn Mobile Data on and off, but usually you just need to wait a little. Right now after reboot you need to turn it off and on again.

Move the clock from under the frontal camera

Create gtk.css file in ~/.config/gtk-3.0/ directory with the following contents:

.phosh-topbar-clock {
   margin-left: 75px;
}

Wider keyboard with comma on the main view

I made slightly customized us and ru layouts for squeekboard. It's a little wider than original, so it extends to the edges of the screen and also have comma key on the default view, so you don't need to switch to numbers to type it.

To use it you need to download corresponding yaml file from this repo.

Put the yaml file into ~/.local/share/squeekboard/keyboards and it will work immediately. If you don't like it, just remove the file or rename it to something.

And you can make your own, it's amazingly simple.

Camera

While camera works, it works only after you open, close, open again the Camera app. And it is in wrong orientation.

Waydroid

Just install waydroid from repo, sudo apt install waydroid

Official waydroid instructions

To remove unwanted android apps from phosh app drawer, you can edit corresponding desktop files in ~/.local/share/applications/ directory. Add this line in a file of every app you don't want to show in the app drawer:

NoDisplay=True

Flatpak

To use flatpak with flathub, in terminal do:

flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && flatpak remote-add --user --if-not-exists kdeapps http://distribute.kde.org/kdeapps.flatpakrepo

Add the following to /etc/apt/sources.list

deb http://droidian-libhybris.repo.droidian.org/bullseye-flatpak/ bullseye main
deb http://droidian-halium-wrappers.repo.droidian.org/bullseye-tls-padding-flatpak/ bullseye main

This will switch to using GPU accelerated flatpaks.

Default scaling

If you want, you can change default scaling by editing /usr/share/phosh/phoc.ini

[output:HWCOMPOSER-1]
scale = 3

Useful/debugging repos for convenience

Add following to /etc/apt/sources.list

deb http://droidian-stated.repo.droidian.org/bullseye-initial-implementation/ bullseye main
deb http://droidian-libhybris.repo.droidian.org/bookworm-wayland-egl-displays/ bookworm main
deb http://droidian-droidian-quirks.repo.droidian.org/bookworm-webkit-accel/ bookworm main