Partition sizes can be found by query-ing sysfs.
For example, for super partition.
> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root 16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
259 1 8388608 sda17
The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.
Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.
Change-Id: Ic65df8e093a601e3f603c40174b116b20072ee27
* This libinit has been made to commonize device variants props handling
[dereference23: Adapt for Xiaomi SM6250]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
Test: manual testing - ensure that the brightness value in
Settings>Display>Brightness Level can go the full range from 0% to 100%.
[wight554: adapted for our value]
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: Ife1f2796bb3b8ec5f508903afd30a31556b49cbe
The stock configuration oddly sets this reside on /data/nfc which is not
writable by modern policy. Instead, all vendor runtime data should go
into /data/vendor.
Signed-off-by: Marijn Suijten <marijns95@gmail.com>
Change-Id: I60a94a39239268046016fcf8be4a613ef4ae6541
Earlier implementation uses DEFAULT_OFFHOST_ROUTE to update Tech A,B
route location and also as route location for payment apps not having
route location (secureElementName attribute).
Tech F is handled separately using DEFAULT_NFCF_ROUTE.
New change introduces DEFAULT_TECH_ABF_ROUTE config which will be
used to update Tech A,B,F and DEFAULT_NFCF_ROUTE will not be used anymore.
DEFAULT_OFFHOST_ROUTE will be used only to update route location for
payment apps not having route location (secureElementName attribute).
Change-Id: If9ee25038d5b05a1a5bbf04f3a51c9ac1324ae74
[dereference23: Rely on libinit instead of device codename]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ic135add84d3e1d88a852b798b312b2ea025866a4