2018-11-18 02:24:55 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
mobile.device.name = "motorola-addison";
|
2020-05-24 00:27:57 +03:00
|
|
|
mobile.device.identity = {
|
2020-04-04 07:23:58 +03:00
|
|
|
name = "Moto Z Play";
|
2018-11-18 02:24:55 +03:00
|
|
|
manufacturer = "Motorola";
|
2020-05-24 00:27:57 +03:00
|
|
|
};
|
|
|
|
|
2018-11-18 02:24:55 +03:00
|
|
|
mobile.hardware = {
|
|
|
|
soc = "qualcomm-msm8953";
|
|
|
|
ram = 1024 * 3;
|
|
|
|
screen = {
|
|
|
|
width = 1080; height = 1920;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-25 01:39:21 +03:00
|
|
|
mobile.boot.stage-1 = {
|
|
|
|
kernel.package = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
|
|
|
|
};
|
|
|
|
|
2020-05-24 09:44:21 +03:00
|
|
|
mobile.system.android.bootimg = {
|
2020-05-25 01:39:21 +03:00
|
|
|
dt = "${config.mobile.boot.stage-1.kernel.package}/dtbs/motorola-addison.img";
|
2020-05-24 09:44:21 +03:00
|
|
|
flash = {
|
|
|
|
offset_base = "0x80000000";
|
|
|
|
offset_kernel = "0x00008000";
|
|
|
|
offset_ramdisk = "0x01000000";
|
|
|
|
offset_second = "0x00f00000";
|
|
|
|
offset_tags = "0x00000100";
|
|
|
|
pagesize = "2048";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-05-24 01:14:10 +03:00
|
|
|
boot.kernelParams = [
|
|
|
|
"androidboot.console=ttyHSL0"
|
|
|
|
"androidboot.hardware=qcom"
|
|
|
|
"user_debug=30"
|
|
|
|
"msm_rtb.filter=0x237"
|
|
|
|
"ehci-hcd.park=3"
|
|
|
|
"androidboot.bootdevice=7824900.sdhci"
|
|
|
|
"lpm_levels.sleep_disabled=1"
|
|
|
|
"vmalloc=350M"
|
|
|
|
"buildvariant=userdebug"
|
|
|
|
];
|
|
|
|
|
2020-01-14 03:43:58 +03:00
|
|
|
mobile.usb.mode = "android_usb";
|
|
|
|
# Google
|
|
|
|
mobile.usb.idVendor = "18D1";
|
|
|
|
# "Nexus 4"
|
|
|
|
mobile.usb.idProduct = "D001";
|
|
|
|
|
2019-09-22 05:42:41 +03:00
|
|
|
mobile.system.type = "android";
|
2018-11-18 02:24:55 +03:00
|
|
|
}
|