Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, lib, pkgs, ... }:
- {
- mobile.device.name = "oneplus-cheeseburgerdumplings";
- mobile.device.info = rec {
- format_version = "0";
- name = "OnePlus OnePlus 5/5T";
- manufacturer = "OnePlus";
- date = "";
- dtb = "";
- modules_initfs = "";
- arch = "aarch64";
- keyboard = false;
- external_storage = false;
- dev_touchscreen = "/dev/input/event5";
- dev_touchscreen_calibration = "";
- dev_keyboard = "";
- flash_method = "fastboot";
- kernel_cmdline = "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swi>
- generate_bootimg = true;
- flash_offset_base = "0x00000000";
- flash_offset_kernel = "0x00008000";
- flash_offset_ramdisk = "0x01000000";
- flash_offset_second = "0x00f00000";
- flash_offset_tags = "0x00000100";
- flash_pagesize="4096";
- vendor_partition = "/dev/block/by-name/vendor";
- gadgetfs.functions = {
- rndis = "gsi.rndis";
- };
- kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
- };
- mobile.hardware = {
- soc = "qualcomm-msm8998";
- ram = 1024 * 6;
- screen = {
- width = 2160; height = 1920;
- };
- };
- mobile.system.type = "android";
- mobile.usb.mode = "gadgetfs";
- # Google
- mobile.usb.idVendor = "2A70";
- # Oneplus 5?
- mobile.usb.idProduct = "F00E";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement