sony-pioneer: Edit automatically generated device config as needed
{ pkgs, ... }:
-/*
- * This file has been generated by autoport.
- * **Do not** open a Pull Request without having verified the port works.
- */
{
mobile.device.name = "sony-pioneer";
mobile.device.identity = {
mobile.hardware = {
soc = "qualcomm-sdm660";
- ram = 1024 * 0/* (in MB) To be filled by the user */;
+ ram = 1024 * 3;
screen = {
- width = 0/* To be filled by the user */; height = 0/* To be filled by the user */;
+ width = 1080; height = 1920;
};
};
};
mobile.system.android = {
- /* The detection for ab_partitions is really not great.
- * Verify your device "has slots" with fastboot.
- * The most likely value has been selected.
- */
ab_partitions = true;
- /* Your kernel knows about `skip_initramfs`.
- * - Remove the following lines from this file if your device **does use**
- * the A/B partition scheme.
- * - If your device **does not** use the A/B partition scheme (does not
- * have slots) the following values should be set to true if the
- * bootloader adds `skip_initramfs` to the kernel command line options.
- */
- # boot_as_recovery = true;
- # has_recovery_partition = true;
bootimg.flash = {
offset_base = "0x00000000";
};
};
- /* If your device has A/B partitions, the partition label is "vendor_a".
- * Otherwise it's "vendor".
- * The most likely value has been selected.
- */
mobile.system.vendor.partition = "/dev/disk/by-partlabel/vendor_a";
boot.kernelParams = [
mobile.usb.mode = "gadgetfs";
- /* To be changed by the author, though those may or may work with any device. */
- # Google
- mobile.usb.idVendor = "18D1";
- # "Nexus 4"
- mobile.usb.idProduct = "D001";
+ # Sony
+ mobile.usb.idVendor = "0FCE";
+ # Xperia XA2
+ mobile.usb.idProduct = "71F7";
mobile.usb.gadgetfs.functions = {
/* The following is a common valid value for rndis. Uncomment it and try it out. */
