Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Sony Xperia Z3 and Z3 Compact #10

Open
wants to merge 2 commits into
base: UKM-Enhanced
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion data/UKM/config.json.generate.misc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cat << CTAG
action:"generic /sys/class/timed_output/vibrator/amp"
}},'
fi`
`if [ -f "/sys/devices/virtual/timed_output/vibrator/vtg_level" ]; then
`if [ -f "/sys/devices/virtual/timed_output/vibrator/vtg_level" ] && [ -f "/sys/devices/virtual/timed_output/vibrator/vtg_min" ] && [ -f "/sys/devices/virtual/timed_output/vibrator/vtg_max" ]; then
VTGLVL=\`$BB cat /sys/devices/virtual/timed_output/vibrator/vtg_level\`
VTGMIN=\`$BB cat /sys/devices/virtual/timed_output/vibrator/vtg_min\`
VTGMAX=\`$BB cat /sys/devices/virtual/timed_output/vibrator/vtg_max\`
Expand All @@ -118,6 +118,20 @@ cat << CTAG
action:"generic /sys/devices/virtual/timed_output/vibrator/vtg_level"
}},'
fi`
`if [ -f "/sys/devices/virtual/timed_output/vibrator/vtg_level" ] && [ ! -f "/sys/devices/virtual/timed_output/vibrator/vtg_min" ] && [ ! -f "/sys/devices/virtual/timed_output/vibrator/vtg_max" ]; then
VTGLVL=\`$BB cat /sys/devices/virtual/timed_output/vibrator/vtg_level\`
$BB echo '{ SPane:{
title:"Vibrator Strength VTG"
}},
{ SSeekBar:{
description:"Allows to set the intensity of the vibrator.",
step:1,
min:12,
max:31,
default:'$VTGLVL',
action:"generic /sys/devices/virtual/timed_output/vibrator/vtg_level"
}},'
fi`
`if [ -f "/sys/class/misc/vibratorcontrol/vibrator_strength" ]; then
VIBRATOR=\`$BB cat /sys/class/misc/vibratorcontrol/vibrator_strength\`
$BB echo '{ SPane:{
Expand Down
6 changes: 4 additions & 2 deletions data/UKM/device/.device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ case $DEVICE in
#togari|C68xx = Sony Xperia Z Ultra, shamu = Nexus 6, , d2* = Samsung Galaxy S3, jflte* = Samsung Galaxy S4, klte* = Samsung Galaxy S5
grouper|tilapia)
CONFIG="deb";; #Nexus 7 2012
falcon*|peregrine*|sirius|D65??|titan*)
CONFIG="bacon";; #falcon* = Moto G 2013, peregrine* = Moto G 4G 2013, sirius|D65xx = Sony Xperia Z2, titan* = Moto G 2014
falcon*|peregrine*|titan*)
CONFIG="bacon";; #falcon* = Moto G 2013, peregrine* = Moto G 4G 2013, titan* = Moto G 2014
sirius|D65??|leo|D66??|Z3|aries|D58??|Z3C)
CONFIG="shinano";; #sirius|D65xx = Sony Xperia Z2, leo|D66??|Z3 = Sony Xperia Z3, aries|D58??|Z3C = Sony Xperia Z3 Compact
*)
CONFIG="";; #Not defined
esac;
Expand Down
Loading