16 Commits

Author SHA1 Message Date
Volodymyr Zhdanov
b6f59d3316
sm6250-common: rootdir: Don't enable a2dp offload from rootdir
* this breaks a2dp toggle

Change-Id: I20335149e99a48c7ff8219f94d7a6280e49d7f58
2021-09-09 18:46:09 +02:00
Volodymyr Zhdanov
836bc2c0a3
sm6250-common: rootdir: Remove service for unused wigignpt
Change-Id: I08c9e6e30aee9b606982e10b0a78515475cd3597
2021-09-09 18:46:09 +02:00
Albert I
23d6c382f2
sm6250-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2021-09-09 18:46:09 +02:00
Albert I
b09005f206
sm6250-common: Configure zRAM using fstab
* "32-bit overflow" CAF mentioned in the function wrapper inside post-boot
  script sounds very bs, since if it's 64-bit it won't be affected anyways

* We do the setup using fstab instead to allow setting up more flags such
  as setting up backing device and compression streams; as such kanged from
  Pixels

* zRAM size = 50% physical memory size to satisfy what CAF really wants

* Use LZ4 compression even for regular devices

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ia6efb3d28e56fb026d9b28fc6633b2eac77dfa47
2021-09-09 18:46:08 +02:00
Alexander Winkowski
f1b745f78f
sm6250-common: fstab: Enable new encryption flags
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I63c3e85ec90af17b3c9b40acd30d1458da7eac0a
2021-09-09 18:46:08 +02:00
Alexander Winkowski
e9ddd276cb
sm6250-common: fstab: Add UFS sysfs path
Change-Id: I3b0a34c75ca391f84830640d3c2adab717040a42
2021-09-09 18:46:07 +02:00
Demon000
0adcfcde85
sm6250-common: rootdir: Add /boot to fstab
Build process errors out without this.

Traceback (most recent call last):
  File "build/make/tools/releasetools/ota_from_target_files", line 2455, in <module>
    main(sys.argv[1:])
  File "build/make/tools/releasetools/ota_from_target_files", line 2429, in main
    output_file=args[1])
  File "build/make/tools/releasetools/ota_from_target_files", line 1103, in WriteFullOTAPackage
    common.CheckSize(boot_img.data, "boot.img", target_info)
  File "/home/aicp-dev/rom/lineage-17.1/build/make/tools/releasetools/common.py", line 1190, in CheckSize
    p = info_dict["fstab"][mount_point]
KeyError: '/boot'

Change-Id: I30a396ea62e6e48420c0dd41533c156e90032929
2021-09-09 18:46:07 +02:00
Adam Shih
5cf344ba4d
sm6250-common: rootdir: Remove sdcard legacy support
[    1.667218] audit: type=1400 audit(1804301.953:5): avc:  denied  { write } for  pid=507 comm="init" name="/" dev="tmpfs" ino=17273 scontext=u:r:vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=0
[    1.667362] init: Command 'symlink /sdcard /mnt/sdcard' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:87) took 1ms and failed: symlink() failed: Permission denied
[    1.669181] init: Command 'symlink /sdcard /storage/sdcard0' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sm8150.rc:88) took 1ms and failed: symlink() failed: Read-only file system

Bug: 131295392
Test: modify rc file, push to device and find error log gone
Change-Id: I24b6f5ac58159a1172a286eb680ded326c7319f9
(cherry picked from commit b1a63f1a7a99fb6c5a526c73426cab0bbf29a352)
Signed-off-by: Jason(HeWei) Sung <jasonsung@google.com>
2021-09-09 18:46:07 +02:00
orgesified
95a05c717d
sm6250-common: rootdir: Remove useless mkdir commands
init    : Command 'mkdir /firmware 0771 system system' action=early-init (/vendor/etc/init/hw/init.target.rc:31) took 0ms and failed: Not a directory on /firmware
init    : Command 'mkdir /bt_firmware 0771 system system' action=early-init (/vendor/etc/init/hw/init.target.rc:32) took 0ms and failed: Not a directory on /bt_firmware
init    : Command 'mkdir /dsp 0771 media media' action=early-init (/vendor/etc/init/hw/init.target.rc:33) took 0ms and failed: Not a directory on /dsp

Signed-off-by: orgesified <me@orgesified.ml>
Change-Id: I129f6fd9210076fffa1912e3dd6dcec32bd5acf6
2021-09-09 18:46:06 +02:00
Ethan Chen
09ab0b4905
sm6250-common: rootdir: Remove bogus tombstone directory directives
* /data/tombstones and /data/vendor/tombstones are both created by
  the system's init.rc.
* Creating /tombstones at the root isn't allowed since the root is
  a ramdisk and mounted read-only.

Change-Id: I04586994280ae48f36542f56e1cace422943376b
2021-09-09 18:46:06 +02:00
Alexander Winkowski
94c1f3209c
sm6250-common: rootdir: Configure cpusets on init
This should be done earlier:
libprocessgroup: Failed to open /dev/cpuset/camera-daemon/tasks: No such file or directory: No such file or directory
libprocessgroup: Failed to apply CameraServiceCapacity task profile: No such file or directory

Change-Id: I9edbdad2e764667a4624b181e0426f14ed9be616
2021-09-09 18:46:06 +02:00
Alexander Winkowski
df538ecabc
sm6250-common: rootdir: Update USB controller configuration
* For USB init scripts from vendor/qcom/opensource/usb/etc

Change-Id: Ia77c3271cc5f81230c6028b6340fdecf21412532
2021-09-09 18:46:06 +02:00
UtsavBalar1231
cd444b3f63
sm6250-common: rootdir: Cleanup Xiaomi's derp
E ueventd : /vendor/ueventd.rc: 418: Invalid section keyword found

Change-Id: I418720d35c74bd2d96ef0f68a590900a06bf7a32
2021-09-09 18:46:05 +02:00
UtsavBalar1231
e9af1ad77a
sm6250-common: rootdir: Properly label /sys/kernel/qvr_external_sensor/fd
E ueventd : /vendor/ueventd.rc: 175: /sys/ lines must have 5 entries

Change-Id: Ib614f778f734da76b3fbe07615f9323058c8631e
2021-09-09 18:46:05 +02:00
Alexander Winkowski
77999ac063
sm6250-common: Clean up rootdir
* Remove unused/duplicated parts
* Make changes to do without other scripts

Co-authored-by: Demon000 <demonsingur@gmail.com>
Change-Id: I8e758337488dc19ecb47ec1b583fba33ef05882d
2021-09-09 18:46:05 +02:00
Alexander Winkowski
4a2375f2bc
sm6250-common: rootdir: Import rootdir files
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ibcf71853e6d45b4ca6948f5267f2af26bf8b812a
2021-09-09 18:46:05 +02:00