Skip to content

MrScratchcat/MrScratch-phone

Repository files navigation

alt text

#Phone setup

#Install emulator

sudo apt install curl ca-certificates -y && curl https://repo.waydro.id | sudo bash && sudo apt install waydroid -y && sudo waydroid init -s GAPPS -f

#After installation run:

sudo waydroid shell

#Run this in this shell:

ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"

#This command will output an number copy the number and past it at this website: https://www.google.com/android/uncertified

#Give the Google services some minutes to reflect the change, then restart waydroid

#Install waydroid for kali:

cd && sudo apt update && sudo apt upgrade -y && export distro=bullseye && sudo curl https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg
echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ ${distro} main" | \
  sudo tee /etc/apt/sources.list.d/waydroid.list && sudo apt update
sudo apt install -y \
  build-essential cdbs devscripts equivs fakeroot \
  git git-buildpackage git-lfs \
  libgbinder-dev && sudo wget https://raw.githubusercontent.com/MrCyjaneK/waydroid-build/main/build_changelog \
  -O /usr/bin/build_changelog
sudo chmod +x ${_} && mkdir ~/build-packages
cd ${_}
git clone https://github.com/waydroid/gbinder-python
cd gbinder-python
build_changelog
sudo mk-build-deps -ir -t "apt -o Debug::pkgProblemResolver=yes -y --no-install-recommends"
sudo debuild -b -uc -us
sudo apt install -f -y ../*.deb && sudo apt install waydroid -y && cd && sudo rm -rf build-packages

#Reboot now and then switch your desktop to plasma on wayland #Then execute the other instructions

#if your waydroid container doesnt have internet then execute this:

sudo sed -i~ -E 's/=.\$\(command -v (nft|ip6?tables-legacy).*/=/g'   /usr/lib/waydroid/data/scripts/waydroid-net.sh

#then reboot

#if your using an nvidia gpu then add this to your grub parameter:

sudo nano /etc/default/grub
nvidia_drm.modeset=1

About

i make a phone build with the pi4-8GB/pi5-8GB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages