Moto G22 - phhusson/treble_experimentations GitHub Wiki

Tested & Working with android_13.0.0_r41 ci-20230417

Hardware Support (Android 13)

Component Comment
Camera βœ“
Speaker / Mic βœ“ (Volume bar is too large so audio could distort, need workaround idk how atm)
Bluetooth βœ“ (Requires further testing)
WiFi βœ“
SIM / Mobile Data / Voice βœ“
VoLTE ? (Needs further testing, i will update)

Since this device has MTK SoC, i really suggest to dump all partitions using MTKClient just type -python mtk rl foldername --skip userdata to dump all partitions except userdata, copy boot_.bin, vbmeta_.bin after complete, follow the steps to unlock bootloader, search the commands in MTKClient readme and flash vbmeta.img.empty from mtkclient folder with this command -python mtk w vbmeta vbmeta.img.empty

Now the actual installation begins

  • fastboot reboot fastboot to boot into fastbootd, this is necessary to access system/vendor/product/... partitions
  • in this mode if fastboot devices throws nothing, install Rescue and Smart Assistant to get fastbootd drivers
  • now flash system as usual fastboot flash system.img
  • if this command fails, image is too big, delete product partition to get some space with fastboot delete-logical-partition product_a, replace product_a to product_b if active slot is b and rerun the system flash command.
  • now in the phone move with vol and select with power, don't reboot yet, go to into recovery mode and here wipe data factory reset, dont wipe in fastboot to avoid encryption issues
  • reboot

Workarounds

If you don't have internet but wifi/mobile is really working use this command to fix it

adb shell settings put global restricted_networking_mode 0 Context about why this happenshere

If 3.5mm jack is not detected

  • Go to Settings
  • Phh Treble Settings
  • Misc Features
  • Check Use alternate way to detect headsets
  • Reboot

No adaptative brightness

Needs overlay, i will make one Soonβ„’

GSI Gotchas

Here i will document anything "weird" i encounter using this, with a workaround

  • If for some reason you installed GSI without deleting Google Accounts in your previous system, DON'T skip the SetupWizard with the "Corner Trick", or you will be trapped in a FRP Lock (phone will be fully usable but you can't install external .APKs), if you already did this mistake, format data in recovery and complete the SetupWizard.