diff --git a/proprietary-blobs.txt b/proprietary-blobs.txt index 2c4da2b..76c4298 100644 --- a/proprietary-blobs.txt +++ b/proprietary-blobs.txt @@ -313,6 +313,9 @@ vendor/lib/libsensor_reg.so bin/sensors.qcom lib/hw/lights.msm8226.so vendor/lib/libbmc050.so +vendor/lib/libsensor_test.so +vendor/lib/libsensor_thresh.so +vendor/lib/libsensor_user_cal.so # Perf bin/mpdecision diff --git a/rootdir/init.w7.usb.rc b/rootdir/init.w7.usb.rc index 6118662..4ab0628 100755 --- a/rootdir/init.w7.usb.rc +++ b/rootdir/init.w7.usb.rc @@ -25,105 +25,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +on init + write /sys/class/android_usb/android0/f_rndis/wceis 1 -on post-fs-data - chown system system /sys/class/android_usb/android0/f_cdrom_storage/lun/cdrom_usbmode - chmod 0660 /sys/class/android_usb/android0/f_cdrom_storage/lun/cdrom_usbmode - -on chargerlogo_usb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 6300 - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions charge_only - write /sys/class/android_usb/android0/enable 1 - -# LGE USB compositions -# boot -on property:sys.usb.config=boot - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=boot,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -# pc_suite -on property:sys.usb.config=pc_suite - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=pc_suite,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -# usb_tethering -on property:sys.usb.config=ecm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61FE - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,ecm - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ecm,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61FE - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,ecm,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} +on fs + mkdir /dev/usb-ffs 0770 shell shell + mkdir /dev/usb-ffs/adb 0770 shell shell + mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 + write /sys/class/android_usb/android0/f_ffs/aliases adb on property:sys.usb.config=rndis write /sys/class/android_usb/android0/enable 0 @@ -142,17 +51,11 @@ on property:sys.usb.config=rndis,adb start adbd setprop sys.usb.state ${sys.usb.config} -# mtp on property:sys.usb.config=mtp write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 setprop sys.usb.state ${sys.usb.config} @@ -160,48 +63,16 @@ on property:sys.usb.config=mtp,adb write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61F1 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/functions acm,diag,mtp,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=mtp_only - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 631C - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions mtp - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=mtp_only,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 61F9 - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions mtp,adb + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 - start adbd + start adbd setprop sys.usb.state ${sys.usb.config} -# ptp on property:sys.usb.config=ptp write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 631E - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions ptp + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 setprop sys.usb.state ${sys.usb.config} @@ -209,46 +80,16 @@ on property:sys.usb.config=ptp,adb write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 631D - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions ptp,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp_only - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 631E - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions ptp - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp_only,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 631D - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions ptp,adb + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 - start adbd + start adbd setprop sys.usb.state ${sys.usb.config} -# mass_storage on property:sys.usb.config=mass_storage write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61A6 - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions mass_storage + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 setprop sys.usb.state ${sys.usb.config} @@ -256,41 +97,12 @@ on property:sys.usb.config=mass_storage,adb write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 61A6 - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions mass_storage,adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -# autorun -on property:sys.usb.config=cdrom_storage - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 630E - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions cdrom_storage - write /sys/class/android_usb/android0/f_cdrom_storage/lun/file /system/usbautorun.iso - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=cdrom_storage,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 630E - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions cdrom_storage - write /sys/class/android_usb/android0/f_cdrom_storage/lun/file /system/usbautorun.iso + write /sys/class/android_usb/android0/functions ${sys.usb.config} write /sys/class/android_usb/android0/enable 1 + start adbd setprop sys.usb.state ${sys.usb.config} -# charge_only -on property:sys.usb.config=charge_only +on property:sys.usb.config=charging write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/idVendor 1004 write /sys/class/android_usb/android0/idProduct 6300 @@ -301,45 +113,3 @@ on property:sys.usb.config=charge_only write /sys/class/android_usb/android0/enable 1 setprop sys.usb.state ${sys.usb.config} -on property:sys.usb.config=charge_only,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 1004 - write /sys/class/android_usb/android0/idProduct 631F - write /sys/class/android_usb/android0/bDeviceClass 0 - write /sys/class/android_usb/android0/bDeviceSubClass 0 - write /sys/class/android_usb/android0/bDeviceProtocol 0 - write /sys/class/android_usb/android0/functions adb - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -# QCT -on property:sys.usb.config=qmicm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 05C6 - write /sys/class/android_usb/android0/idProduct 9025 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_rmnet/transports smd,bam - write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=qmicm,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 05C6 - write /sys/class/android_usb/android0/idProduct 9025 - write /sys/class/android_usb/android0/bDeviceClass 239 - write /sys/class/android_usb/android0/bDeviceSubClass 2 - write /sys/class/android_usb/android0/bDeviceProtocol 1 - write /sys/class/android_usb/android0/f_diag/clients diag - write /sys/class/android_usb/android0/f_acm/acm_transports tty - write /sys/class/android_usb/android0/f_rmnet/transports smd,bam - write /sys/class/android_usb/android0/functions diag,adb,acm,rmnet - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config}