Advertisement
Guest User

Untitled

a guest
Feb 9th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. { config, lib, pkgs, ... }:
  2.  
  3. {
  4. mobile.device.name = "oneplus-cheeseburgerdumplings";
  5. mobile.device.info = rec {
  6. format_version = "0";
  7. name = "OnePlus OnePlus 5/5T";
  8. manufacturer = "OnePlus";
  9. date = "";
  10. dtb = "";
  11. modules_initfs = "";
  12. arch = "aarch64";
  13. keyboard = false;
  14. external_storage = false;
  15. dev_touchscreen = "/dev/input/event5";
  16. dev_touchscreen_calibration = "";
  17. dev_keyboard = "";
  18. flash_method = "fastboot";
  19. 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>
  20. generate_bootimg = true;
  21. flash_offset_base = "0x00000000";
  22. flash_offset_kernel = "0x00008000";
  23. flash_offset_ramdisk = "0x01000000";
  24. flash_offset_second = "0x00f00000";
  25. flash_offset_tags = "0x00000100";
  26. flash_pagesize="4096";
  27. vendor_partition = "/dev/block/by-name/vendor";
  28. gadgetfs.functions = {
  29. rndis = "gsi.rndis";
  30. };
  31. kernel = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; };
  32. };
  33.  
  34. mobile.hardware = {
  35. soc = "qualcomm-msm8998";
  36. ram = 1024 * 6;
  37. screen = {
  38. width = 2160; height = 1920;
  39. };
  40. };
  41.  
  42. mobile.system.type = "android";
  43. mobile.usb.mode = "gadgetfs";
  44. # Google
  45. mobile.usb.idVendor = "2A70";
  46. # Oneplus 5?
  47. mobile.usb.idProduct = "F00E";
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement