Snap for 11420186 from 78c26013fa
to 24Q2-release
Change-Id: I6a9220af8acc904a6440f6b604e657dccec5d4bf
This commit is contained in:
commit
8399abe2d2
6 changed files with 8 additions and 46 deletions
|
@ -3,10 +3,8 @@ import /vendor/etc/init/hw/init.gs101.rc
|
||||||
import /vendor/etc/init/hw/init.raviole.rc
|
import /vendor/etc/init/hw/init.raviole.rc
|
||||||
|
|
||||||
on init
|
on init
|
||||||
# logbuffer
|
|
||||||
chown system system /dev/logbuffer_5-0057
|
|
||||||
# nvmem dump
|
# nvmem dump
|
||||||
chown system system /sys/bus/nvmem/devices/4-00500/nvmem
|
chown system system /sys/bus/nvmem/devices/8-00500/nvmem
|
||||||
|
|
||||||
on init && property:ro.boot.vh_sched_available=0
|
on init && property:ro.boot.vh_sched_available=0
|
||||||
setprop vendor.powerhal.config powerhint-mainline.json
|
setprop vendor.powerhal.config powerhint-mainline.json
|
||||||
|
|
|
@ -3,10 +3,8 @@ import /vendor/etc/init/hw/init.gs101.rc
|
||||||
import /vendor/etc/init/hw/init.raviole.rc
|
import /vendor/etc/init/hw/init.raviole.rc
|
||||||
|
|
||||||
on init
|
on init
|
||||||
# logbuffer
|
|
||||||
chown system system /dev/logbuffer_5-0057
|
|
||||||
# nvmem dump
|
# nvmem dump
|
||||||
chown system system /sys/bus/nvmem/devices/5-00500/nvmem
|
chown system system /sys/bus/nvmem/devices/8-00500/nvmem
|
||||||
|
|
||||||
# Power Stats HAL
|
# Power Stats HAL
|
||||||
chown system system /sys/devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats
|
chown system system /sys/devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats
|
||||||
|
|
|
@ -10,10 +10,6 @@ on init
|
||||||
on init && property:ro.build.flavor=factory_slider-userdebug
|
on init && property:ro.build.flavor=factory_slider-userdebug
|
||||||
import /vendor/etc/init/hw/init.factory.rc
|
import /vendor/etc/init/hw/init.factory.rc
|
||||||
|
|
||||||
on init
|
|
||||||
# logbuffer
|
|
||||||
chown system system /dev/logbuffer_6-0057
|
|
||||||
|
|
||||||
on early-boot
|
on early-boot
|
||||||
# Wait for insmod_sh to finish all common modules
|
# Wait for insmod_sh to finish all common modules
|
||||||
wait_for_prop vendor.common.modules.ready 1
|
wait_for_prop vendor.common.modules.ready 1
|
||||||
|
|
|
@ -94,18 +94,8 @@ int main() {
|
||||||
|
|
||||||
addGs101CommonDataProviders(p);
|
addGs101CommonDataProviders(p);
|
||||||
addDisplay(p);
|
addDisplay(p);
|
||||||
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats", &buffer)) {
|
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) {
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats");
|
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats");
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats");
|
|
||||||
} else {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-8/i2c-st21nfc/power_stats");
|
|
||||||
}
|
}
|
||||||
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
|
|
@ -136,18 +136,8 @@ int main() {
|
||||||
|
|
||||||
addGs101CommonDataProviders(p);
|
addGs101CommonDataProviders(p);
|
||||||
addDisplay(p);
|
addDisplay(p);
|
||||||
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats", &buffer)) {
|
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) {
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats");
|
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats");
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats");
|
|
||||||
} else {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-8/i2c-st21nfc/power_stats");
|
|
||||||
}
|
}
|
||||||
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
|
|
@ -70,18 +70,8 @@ int main() {
|
||||||
|
|
||||||
addGs101CommonDataProviders(p);
|
addGs101CommonDataProviders(p);
|
||||||
addDisplay(p);
|
addDisplay(p);
|
||||||
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats", &buffer)) {
|
if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) {
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-3/i2c-st21nfc/power_stats");
|
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats");
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-5/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-6/i2c-st21nfc/power_stats");
|
|
||||||
} else if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats", &buffer)) {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-7/i2c-st21nfc/power_stats");
|
|
||||||
} else {
|
|
||||||
addNFC(p, "/sys/devices/platform/10960000.hsi2c/i2c-8/i2c-st21nfc/power_stats");
|
|
||||||
}
|
}
|
||||||
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
const std::string instance = std::string() + PowerStats::descriptor + "/default";
|
||||||
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue