`,
closeButton: false
})
- persistantData.set('keepBackups', user.backups.org)
- persistantData.set('testBackups', user.backups.test)
- persistantData.set('skipConfirm', user.backups.skipconfirm)
+ saveInstallerOps(user)
if (fs.existsSync(`${tmpdir}`)) {
aioLog('Delete old _copy_to_usb folder...')
try {
@@ -405,12 +403,28 @@ function buildTweak (user) {
} else if (user.speedoOps.bg.id === 31) {
addTweak('19_speedo-old_background.txt', true)
}
+ if (user.speedoOps.sbtemp) {
+ addTweak('19_speedo-sbtemp.txt', true)
+ }
+ if (user.speedoOps.temperature.id === 43) {
+ addTweak('19_speedo-temp.txt', true)
+ }
+ if (user.speedoOps.effic.id === 41) {
+ addTweak('19_speedo-sbtemp.txt', true)
+ }
+ if (user.speedoOps.digiclock) {
+ addTweak('19_speedo-digiclock.txt', true)
+ }
addTweak('19_speedo-i2.txt', true)
addTweakDir('speedometer', true)
- if (user.speedoOps.mod) {
+ if (user.speedoOps.mod || user.speedoOps.simpmod) {
addTweak('19_speedo_variant-i.txt', true)
addTweakDir('speedometer_mod', true)
}
+ if (user.speedoOps.simpmod) {
+ addTweak('19_speedo_bar.txt', true)
+ addTweakDir('speedometer_bar', true)
+ }
}
if (user.options.indexOf(21) !== -1) {
addTweak('08_orderflac-i.txt')
@@ -423,7 +437,8 @@ function buildTweak (user) {
if (user.options.indexOf(25) !== -1) {
addTweak('25_androidauto-i.txt')
addTweakDir('androidauto', true)
- if(user.aaBetaVer){
+ if(user.aaBetaVer) {
+ addTweak('25_androidautob-i.txt')
addTweakDir('androidautob', true)
}
}
@@ -453,6 +468,9 @@ function buildTweak (user) {
if (user.options.indexOf(17) !== -1) {
addTweak('17_videoplayer-i.txt')
addTweakDir('videoplayer', true)
+ if(user.vpUnicode) {
+ addTweak('17_videoplayer-unicode.txt')
+ }
}
if (user.options.indexOf(27) !== -1) {
addTweak('27_aioapp-i.txt')
@@ -559,6 +577,8 @@ function buildTweak (user) {
if (user.swapOps.mount) {
swapdest = '/config/swapfile/'
addTweak('18_swapfile-i.txt')
+ } else {
+ swapdest = '/'
}
}
// Finish with the end script
@@ -893,12 +913,18 @@ function usbDrives () {
})
appendAIOlog(`Error finding USB drives: ${error}`)
}
+ try {
dsklst.forEach((drive) => {
if (!drive.system) {
disks.push({'desc': drive.description, 'mp': `${drive.mountpoints[0].path}`})
usbDriveLst.push({'text': ` ${drive.mountpoints[0].path} ${drive.description.replace(' USB Device', '')}`, 'value': drive.mountpoints[0].path})
}
})
+ } catch(e) {
+ appendAIOlog("Error: " + e)
+ disks = null
+ }
+
introJs().hideHints()
var usb = disks
var lst = ''
@@ -933,12 +959,12 @@ function usbDrives () {
if (!result) {
unzipSwapfile(null)
} else {
- persistantData.set('delCopyFolder', $('#rmCpDirCheck').prop('checked'))
+ settings.set('delCopyFolder', $('#rmCpDirCheck').prop('checked'))
copyToUSB(result)
}
}
})
- $('#rmCpDirCheck').prop('checked', persistantData.get('delCopyFolder'))
+ $('#rmCpDirCheck').prop('checked', settings.get('delCopyFolder'))
} else if (usb.length === 1) {
lst = `
${langObj.popupMsgs[6].msg}:
`
for (var k = 0; k < usb.length; k++) {
@@ -964,12 +990,12 @@ function usbDrives () {
if (!result) {
unzipSwapfile(null)
} else {
- persistantData.set('delCopyFolder', $('#rmCpDirCheck').prop('checked'))
+ settings.set('delCopyFolder', $('#rmCpDirCheck').prop('checked'))
copyToUSB(usb[0].mp)
}
}
})
- $('#rmCpDirCheck').prop('checked', persistantData.get('delCopyFolder'))
+ $('#rmCpDirCheck').prop('checked', settings.get('delCopyFolder'))
return usb
}
})
@@ -1036,7 +1062,7 @@ function unzipSwapfile (dest) {
}, 35000)
setTimeout(function () {
if (document.getElementById('swapLogView')) {
- document.getElementById('swapLogView').innerHTML = `${langObj.popupMsgs[16].msg}: ${langObj.tweakOps[17].toolTip}`
+ document.getElementById('swapLogView').innerHTML = `${langObj.popupMsgs[16].msg}: ${langObj.tweakOps[19].toolTip}`
}
}, 40000)
try {
@@ -1074,7 +1100,7 @@ var openUSB = ''
function finishedMessage (mp) {
// Finished message
if (mp) {
- if (persistantData.get('delCopyFolder')) {
+ if (settings.get('delCopyFolder')) {
cleanCopyDir()
cp2usb = ''
}
@@ -1094,7 +1120,7 @@ function finishedMessage (mp) {
className: 'finishedMessage',
closeButton: false
})
- finalbox.on('shown.bs.modal',function(){
+ finalbox.on('shown.bs.modal',function() {
$("#startOver").focus();
})
}, 100)
@@ -1108,6 +1134,11 @@ function postInstallTitle () {
$('.twkfltr').hide()
document.getElementById(`mzd-title`).innerHTML = `${viewLog}${document.getElementById('mzd-title').innerHTML}${strtOver}`
}
+function saveInstallerOps (user) {
+ settings.set('keepBackups', user.backups.org)
+ settings.set('testBackups', user.backups.test)
+ settings.set('skipConfirm', user.backups.skipconfirm)
+}
function cleanCopyDir () {
rimraf(`${tmpdir}`, function () { appendAIOlog(`
Deleted '_copy_to_usb' Folder
`) })
}
@@ -1136,10 +1167,10 @@ function fullSystemRestore (user) {
addRootFiles()
tweaks2write.push(`${builddir}00___fullRestore.sh`)
if(fs.existsSync(`${extradir}/color-schemes/Red/jci.zip`)) {
- mkdirp.sync(`${tmpdir}/config/color-schemes`)
+ mkdirp.sync(`${tmpdir}/config/color-schemes/Red`)
aioLog(`Unzipping Red color theme folder`)
extract(`${extradir}/color-schemes/Red/jci.zip`, {dir: `${tmpdir}/config/color-schemes/Red`}, function (err) {
- if (err) { aioLog(err, err) }
+ if (err) { aioLog(err) }
aioLog(`Red Color Scheme Added Successfully`)
})
}
@@ -1216,7 +1247,7 @@ function addWifiApp (user) {
size: "small",
title: "Values Were Not Changed",
message: "WiFi App Will not be installed",
- callback: function(){
+ callback: function() {
rimraf.sync(`${tmpdir}/00-start-wifiAP/`)
printAIOlog()
}
diff --git a/app/assets/vendor/w3.css b/app/assets/vendor/w3.css
index c89b4a9..7be5685 100644
--- a/app/assets/vendor/w3.css
+++ b/app/assets/vendor/w3.css
@@ -108,7 +108,7 @@ ul.w3-ul li:last-child{border-bottom:none}
.w3-accordion-content a{padding:6px 16px;display:block}.w3-accordion-content a:hover{background-color:#ccc}
.w3-progress-container{width:100%;height:1.5em;position:relative;background-color:#f1f1f1}
.w3-progressbar{background-color:#757575;height:100%;position:absolute;line-height:inherit}
-.bootbox-form .checkbox input[type=checkbox],input[type=checkbox].w3-check,input[type=radio].w3-radio{width:24px;height:24px;position:relative;top:6px;visibility:visible;}
+.bootbox-form .checkbox input[type=checkbox],input[type=checkbox].w3-check,input[type=radio].w3-radio{width:24px;height:24px;position:relative;/*top:6px;*/visibility:visible;}
input[type=checkbox].w3-check:checked+.w3-validate,input[type=radio].w3-radio:checked+.w3-validate{color:#009688}
input[type=checkbox].w3-check:disabled+.w3-validate,input[type=radio].w3-radio:disabled+.w3-validate{color:#aaa}
.w3-responsive{overflow-x:auto}
diff --git a/app/controllers/home.js b/app/controllers/home.js
index 2e098e5..2a023ef 100644
--- a/app/controllers/home.js
+++ b/app/controllers/home.js
@@ -37,7 +37,7 @@
$scope.faqs = langObj.FAQs
$scope.popupMsgs = langObj.popupMsgs
$scope.colors = langObj.colors
- $scope.rmCpDir = persistantData.get('delCopyFolder') || false
+ $scope.rmCpDir = settings.get('delCopyFolder') || false
$scope.loc = persistantData.get('locale') || 'en-US'
$scope.twkfltr = ''
$scope.bgSec = 60
@@ -62,9 +62,10 @@
advancedOps: false,
dataDump: false,
aaBetaVer: false,
+ vpUnicode: false,
darkMode: settings.get('darkMode') || false,
flipOption: settings.get('flipOption') || '',
- transMsg: persistantData.get('transMsg') || false,
+ transMsg: settings.get('transMsg') || false,
copydir: persistantData.get('copyFolderLocation')
}
$scope.user.autorun = {
@@ -88,9 +89,9 @@
uninst: false
}
$scope.user.backups = {
- org: persistantData.get('keepBackups') || false,
- test: persistantData.get('testBackups') || false,
- skipconfirm: persistantData.get('skipConfirm') || false
+ org: settings.get('keepBackups') || false,
+ test: settings.get('testBackups') || false,
+ skipconfirm: settings.get('skipConfirm') || false
}
$scope.user.boot = {
logo1: 0,
@@ -117,9 +118,15 @@
xph: {id: 11},
sml: {id: 22},
bg: {id: 30},
+ effic: {id: 40},
+ temperature: {id: 42},
+ startbar: {id:45},
color: null,
mod: false,
modAlt: false,
+ simpmod: false,
+ sbtemp: false,
+ digiclock: false,
opac: 0
}
$scope.user.statusbar = {
diff --git a/app/files/screenshots/barSpeedo.jpg b/app/files/screenshots/barSpeedo.jpg
new file mode 100644
index 0000000..e9b5ea6
Binary files /dev/null and b/app/files/screenshots/barSpeedo.jpg differ
diff --git a/app/files/screenshots/barSpeedo2.jpg b/app/files/screenshots/barSpeedo2.jpg
new file mode 100644
index 0000000..b111b75
Binary files /dev/null and b/app/files/screenshots/barSpeedo2.jpg differ
diff --git a/app/files/screenshots/mzd_SpeedoCompass.gif b/app/files/screenshots/mzd_SpeedoCompass.gif
index 77000cd..6096a14 100644
Binary files a/app/files/screenshots/mzd_SpeedoCompass.gif and b/app/files/screenshots/mzd_SpeedoCompass.gif differ
diff --git a/app/files/tweaks/00_intro.txt b/app/files/tweaks/00_intro.txt
index ba75c23..18c4506 100644
--- a/app/files/tweaks/00_intro.txt
+++ b/app/files/tweaks/00_intro.txt
@@ -1,5 +1,5 @@
#!/bin/sh
-# tweaks.sh - MZD-AIO-TI Version 2.7.2
+# tweaks.sh - MZD-AIO-TI Version 2.7.4
# Special thanks to Siutsch for collecting all the tweaks and for the original AIO
# Big Thanks to Modfreakz, khantaena, Xep, ID7, Doog, Diginix, oz_paulb & lmagder
# For more information visit https://mazdatweaks.com
@@ -9,5 +9,5 @@
hwclock --hctosys
# AIO Variables
-AIO_VER=2.7.2
-AIO_DATE=2017.11.27
+AIO_VER=2.7.4
+AIO_DATE=2017.12.24
diff --git a/app/files/tweaks/17_videoplayer-i.txt b/app/files/tweaks/17_videoplayer-i.txt
index d6690ae..7e7fd4e 100644
--- a/app/files/tweaks/17_videoplayer-i.txt
+++ b/app/files/tweaks/17_videoplayer-i.txt
@@ -2,10 +2,10 @@
# Video_Player by many many people
# V3.1 - Mods by vic_bam85 & Trezdog44
#######################################################################
-show_message "VIDEOPLAYER v3.1\nMODS BY VIC_BAM85 & TREZDOG44"
+show_message "VIDEOPLAYER v3.2\nMODS BY VIC_BAM85 & TREZDOG44"
log_message "============*********** INSTALL VIDEOPLAYER ************============="
-log_message "=== Begin Installation of VideoPlayer V3.1 ==="
+log_message "=== Begin Installation of VideoPlayer V3.2 ==="
if [ "${TESTBKUPS}" = "1" ]
then
@@ -56,10 +56,13 @@ fi
count=$(grep -c '/jci/gui/addon-common/websocketd --port=9998 sh' /jci/scripts/stage_wifi.sh)
if [ "$count" = "0" ]
then
- cp /jci/scripts/stage_wifi.sh /jci/scripts/stage_wifi.sh.old
- echo -e '\n\n\n### Video player' >> /jci/scripts/stage_wifi.sh
- echo -e '\n/jci/gui/addon-common/websocketd --port=9998 sh &' >> /jci/scripts/stage_wifi.sh
- chmod 755 /jci/scripts/stage_wifi.sh
+ #echo -e '\n\n\n### Video player' >> /jci/scripts/stage_wifi.sh
+ #echo -e '\n/jci/gui/addon-common/websocketd --port=9998 sh &' >> /jci/scripts/stage_wifi.sh
+ sed -i '/#!/ a\### Video player' /jci/scripts/stage_wifi.sh
+ sleep 1
+ sed -i '/Video player/ i\ ' /jci/scripts/stage_wifi.sh
+ sed -i '/Video player/ a\/jci/gui/addon-common/websocketd --port=9998 sh &' /jci/scripts/stage_wifi.sh
+ chmod 755 /jci/scripts/stage_wifi.sh
log_message "=== Modified Stage_wifi.sh ==="
fi
@@ -69,6 +72,27 @@ add_app_json "_videoplayer" "Video Player"
cp -a ${MYDIR}/config/videoplayer/jci/gui/apps/* /jci/gui/apps/
chmod 755 -R /jci/gui/apps/_videoplayer/
+log_message "=== Copy VideoPlayer Files ==="
+
+
+cp -a ${MYDIR}/config/videoplayer/usr/lib/gstreamer-0.10/* /usr/lib/gstreamer-0.10/
+chmod 755 -R /usr/lib/gstreamer-0.10/libgstautodetect.so
+log_message "=== Copy libs to usr/lib/gstreamer-0.10 ==="
+
+
+count=$(grep -c '/imx-mm/video-codec' /etc/profile)
+if [ "$count" = "0" ]
+ then
+ sed -i 's/\/imx-mm\/parser/\/imx-mm\/parser:\/usr\/lib\/imx-mm\/video-codec/g' /etc/profile
+ log_message "=== Fix exports / codecs ==="
+fi
+
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/imx-mm/video-codec
+
+rm -f /tmp/root/.gstreamer-0.10/registry.arm.bin
+/usr/bin/gst-inspect
+log_message "=== Updated gstreamer registry ==="
+
# patch systemApp.js if needed for v59+ app list
if ! grep -Fq "_videoplayer" /jci/gui/apps/system/js/systemApp.js && [ ${APP_PATCH_59} -eq 0 ]
then
diff --git a/app/files/tweaks/17_videoplayer-unicode.txt b/app/files/tweaks/17_videoplayer-unicode.txt
new file mode 100644
index 0000000..d652580
--- /dev/null
+++ b/app/files/tweaks/17_videoplayer-unicode.txt
@@ -0,0 +1,3 @@
+# change to Unicode mode as default
+sed -i 's/var defaultUnicode = false;\/\/ Change to true for Unicode Mode/var defaultUnicode = true;\/\/ Change to false for ASCII Mode/g' /jci/gui/apps/_videoplayer/js/videoplayer-v2.js
+log_message "=== CHANGED VIDEO PLAYER TO DEFAULT UNICODE MODE ==="
diff --git a/app/files/tweaks/18_swapfile-i.txt b/app/files/tweaks/18_swapfile-i.txt
index 09175a7..1d19ff2 100644
--- a/app/files/tweaks/18_swapfile-i.txt
+++ b/app/files/tweaks/18_swapfile-i.txt
@@ -38,10 +38,10 @@ then
else
echo '### find swap file' >> /jci/scripts/stage_wifi.sh
echo ' sleep 5' >> /jci/scripts/stage_wifi.sh
- echo ' USBDRV=$(ls /mnt | grep sd)" resources"' >> /jci/scripts/stage_wifi.sh
+ echo ' USBDRV=$(ls /tmp/mnt | grep sd)" resources"' >> /jci/scripts/stage_wifi.sh
echo ' for USB in $USBDRV' >> /jci/scripts/stage_wifi.sh
echo ' do' >> /jci/scripts/stage_wifi.sh
- echo ' USBPATH=/tmp/mnt/${USBDRV}' >> /jci/scripts/stage_wifi.sh
+ echo ' USBPATH=/tmp/mnt/${USB}' >> /jci/scripts/stage_wifi.sh
echo ' SWAPFILE="${USBPATH}"/swapfile' >> /jci/scripts/stage_wifi.sh
echo ' if [ -e "${SWAPFILE}" ]' >> /jci/scripts/stage_wifi.sh
echo ' then' >> /jci/scripts/stage_wifi.sh
@@ -60,11 +60,15 @@ log_message "=== Swap File Added To USB Drive
log_message "=== Deleting Tweak Files ==="
rm -fr ${MYDIR}/config
rm -fr ${MYDIR}/config_org
+rm -fr ${MYDIR}/bakups
+rm -fr ${MYDIR}/VehDataPull
rm -f ${MYDIR}/cmu_dataretrieval.up
rm -f ${MYDIR}/dataRetrieval_config.txt
rm -f ${MYDIR}/jci-autoupdate
+rm -f ${MYDIR}/MZD_LOG.md
+rm -f ${MYDIR}/AIO_info.json
+rm -f ${MYDIR}/headunit.log
rm -f ${MYDIR}/tweaks.sh
-rm -fr ${MYDIR}/VehDataPull
log_message "===========********** END INSTALLATION OF SWAP FILE **********==========="
log_message " "
diff --git a/app/files/tweaks/19_speedo-analog.txt b/app/files/tweaks/19_speedo-analog.txt
index f220312..044c8c9 100644
--- a/app/files/tweaks/19_speedo-analog.txt
+++ b/app/files/tweaks/19_speedo-analog.txt
@@ -1,4 +1,4 @@
# csetting speedometer variant start in analog mode
-show_message "SETTING ANALOG STARTUP MODE ..."
+# show_message "SETTING ANALOG STARTUP MODE ..."
sed -i 's/var startAnalog = false;/var startAnalog = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== START MODED SPEEDOMETER IN ANALOG MODE ==="
diff --git a/app/files/tweaks/19_speedo-digiclock.txt b/app/files/tweaks/19_speedo-digiclock.txt
new file mode 100644
index 0000000..630319b
--- /dev/null
+++ b/app/files/tweaks/19_speedo-digiclock.txt
@@ -0,0 +1,3 @@
+# Digital Clock Mod
+sed -i '/Remove this/d' /jci/gui/apps/_speedometer/css/StatusBarSpeedometer.css
+log_message "=== Digital Clock Mod ==="
diff --git a/app/files/tweaks/19_speedo-english.txt b/app/files/tweaks/19_speedo-english.txt
index 088abe5..c174979 100644
--- a/app/files/tweaks/19_speedo-english.txt
+++ b/app/files/tweaks/19_speedo-english.txt
@@ -1,4 +1,4 @@
# change to english version
-show_message "CHANGE SPEEDOMETER TO ENGLISH..."
+# show_message "CHANGE SPEEDOMETER TO ENGLISH..."
sed -i 's/var language = "DE";/var language = "EN";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO ENGLISH VERSION ==="
diff --git a/app/files/tweaks/19_speedo-french.txt b/app/files/tweaks/19_speedo-french.txt
index c3555c5..b088c6c 100644
--- a/app/files/tweaks/19_speedo-french.txt
+++ b/app/files/tweaks/19_speedo-french.txt
@@ -1,4 +1,4 @@
# change to french version
-show_message "CHANGE SPEEDOMETER TO FRENCH..."
+# show_message "CHANGE SPEEDOMETER TO FRENCH..."
sed -i 's/var language = "DE";/var language = "FR";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO FRENCH VERSION ==="
diff --git a/app/files/tweaks/19_speedo-i1.txt b/app/files/tweaks/19_speedo-i1.txt
index 5c69886..b3cfff2 100644
--- a/app/files/tweaks/19_speedo-i1.txt
+++ b/app/files/tweaks/19_speedo-i1.txt
@@ -1,5 +1,5 @@
# Speedometer v4.8
-show_message "DIGINIX'S SPEEDOMETER v4.8 WITH ROTATING COMPASS\nAND ADDITIONAL GPS INFOS IN STATUSBAR"
+show_message "INSTALL SPEEDOMETER v5.0 ..."
log_message "==========**************** INSTALL SPEEDOMETER *****************========="
log_message "=== Begin Installation of Speedometer ==="
@@ -18,7 +18,7 @@ rm -fr /jci/gui/addon-speedometer
rm -fr /jci/gui/speedometer
rm -fr /jci/gui/apps/_speedometer
-sed -i '/Speedo-Compass-Video_Tweak/d' /jci/scripts/stage_wifi.sh
+sed -i '/Speedo-Compass-Video/d' /jci/scripts/stage_wifi.sh
sed -i '/v3.2/d' /jci/scripts/stage_wifi.sh
sed -i '/Removed requirement/d' /jci/scripts/stage_wifi.sh
sed -i '/# mount /d' /jci/scripts/stage_wifi.sh
@@ -39,6 +39,7 @@ sed -i '/Log data collection/d' /jci/scripts/stage_wifi.sh
sed -i '/get-log-data.sh/d' /jci/scripts/stage_wifi.sh
sed -i '/addon-speedometer.sh &/d' /jci/scripts/stage_wifi.sh
sed -i '/addon-player.sh &/d' /jci/scripts/stage_wifi.sh
+sed -i '/stage_vehSpeed.sh/d' /jci/scripts/stage_wifi.sh
sed -i '/mount of SD card/d' /jci/scripts/stage_wifi.sh
sed -i '/sleep 40/d' /jci/scripts/stage_wifi.sh
sed -i '/sleep 55/d' /jci/scripts/stage_wifi.sh
@@ -56,6 +57,7 @@ sed -i '/#!/ a\ ' /jci/scripts/stage_wifi.sh
# cp -a ${MYDIR}/config/speedometer/jci/opera/opera_dir/userjs/speedometer-startup.js/jci/opera/opera_dir/userjs/
# Remove startup file from userjs
rm -f /jci/opera/opera_dir/userjs/speedometer-startup.js
+rm -f /jci/opera/opera_dir/userjs/speedometer.js
#if [ -e /jci/gui/apps/_mzdmeter/js/mzdmeter.js ]
#then
# log_message "=== Mzdmeter installed copied startup file ==="
@@ -101,18 +103,13 @@ fi
# add commands for speedometer to stage_wifi.sh
if [ -e /jci/scripts/stage_wifi.sh ]
then
- if grep -Fq "### Speedometer" /jci/scripts/stage_wifi.sh
+ if grep -Fq "speedometer.sh &" /jci/scripts/stage_wifi.sh
then
log_message "=== Speedometer entry already exists in /jci/scripts/stage_wifi.sh ==="
else
sed -i '/#!/ a\### Speedometer' /jci/scripts/stage_wifi.sh
sleep 1
sed -i '/Speedometer/ i\ ' /jci/scripts/stage_wifi.sh
- fi
- if grep -Fq "speedometer.sh &" /jci/scripts/stage_wifi.sh
- then
- log_message "=== Speedometer entry already exists in /jci/scripts/stage_wifi.sh ==="
- else
sed -i '/### Speedometer/ a\/jci/gui/addon-common/websocketd --port=55554 /jci/gui/apps/_speedometer/sh/speedometer.sh &' /jci/scripts/stage_wifi.sh
log_message "=== Added speedometer entry to /jci/scripts/stage_wifi.sh ==="
cp /jci/scripts/stage_wifi.sh "${MYDIR}/bakups/test/stage_wifi_speedometer-after.sh"
diff --git a/app/files/tweaks/19_speedo-i2.txt b/app/files/tweaks/19_speedo-i2.txt
index 303be09..d298efa 100644
--- a/app/files/tweaks/19_speedo-i2.txt
+++ b/app/files/tweaks/19_speedo-i2.txt
@@ -1,7 +1,7 @@
if [ ${TESTBKUPS} = "1" ]
then
cp -a /jci/gui/apps/_speedometer/js/speedometer-startup.js ${MYDIR}/bakups/test/
- cp -a /jci/scripts/stage_wwifi.sh ${MYDIR}/bakups/test/stage_wwifi-after_speedo.sh
+ cp -a /jci/scripts/stage_wifi.sh ${MYDIR}/bakups/test/stage_wifi-after_speedo.sh
fi
log_message "=======********** END INSTALLATION OF SPEEDOMETER **********======="
diff --git a/app/files/tweaks/19_speedo-italian.txt b/app/files/tweaks/19_speedo-italian.txt
index a2c82e3..9e2427f 100644
--- a/app/files/tweaks/19_speedo-italian.txt
+++ b/app/files/tweaks/19_speedo-italian.txt
@@ -1,4 +1,4 @@
# change to Italian version
-show_message "CHANGE SPEEDOMETER TO ITALIAN..."
+# show_message "CHANGE SPEEDOMETER TO ITALIAN..."
sed -i 's/var language = "DE";/var language = "IT";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO ITALIAN VERSION ==="
diff --git a/app/files/tweaks/19_speedo-kml.txt b/app/files/tweaks/19_speedo-kml.txt
new file mode 100644
index 0000000..ac22ed2
--- /dev/null
+++ b/app/files/tweaks/19_speedo-kml.txt
@@ -0,0 +1,3 @@
+# cchange km/l to L/100km
+sed -i 's/var fuelEffunit_kml = false;/var fuelEffunit_kml = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
+log_message "=== km/L => L/100km ==="
diff --git a/app/files/tweaks/19_speedo-mph.txt b/app/files/tweaks/19_speedo-mph.txt
index 8cf7d60..26ae32f 100644
--- a/app/files/tweaks/19_speedo-mph.txt
+++ b/app/files/tweaks/19_speedo-mph.txt
@@ -1,4 +1,4 @@
# change to version with mph
-show_message "CHANGE SPEEDOMETER TO MPH ..."
+# show_message "CHANGE SPEEDOMETER TO MPH ..."
sed -i 's/var isMPH = false;/var isMPH = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO MPH ==="
diff --git a/app/files/tweaks/19_speedo-old_background.txt b/app/files/tweaks/19_speedo-old_background.txt
index ee8fa99..d57bb34 100644
--- a/app/files/tweaks/19_speedo-old_background.txt
+++ b/app/files/tweaks/19_speedo-old_background.txt
@@ -1,4 +1,4 @@
# Original speedometer background
-show_message "SET ORIGINAL SPEEDOMETER BACKGROUND ..."
+# show_message "SET ORIGINAL SPEEDOMETER BACKGROUND ..."
sed -i 's/var original_background_image = false;/var original_background_image = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== SET ORIGINAL SPEEDOMETER BACKGROUND ==="
diff --git a/app/files/tweaks/19_speedo-own_background.txt b/app/files/tweaks/19_speedo-own_background.txt
index 43e9c10..0efcc92 100644
--- a/app/files/tweaks/19_speedo-own_background.txt
+++ b/app/files/tweaks/19_speedo-own_background.txt
@@ -1,5 +1,5 @@
# own background
-show_message "SET BACKGROUND OPACITY TO ${OPACITY}"
+# show_message "SET BACKGROUND OPACITY TO ${OPACITY}"
log_message "=== Set background opacity to ${OPACITY} ==="
if [ ! ${OPACITY} = 0 ]
then
diff --git a/app/files/tweaks/19_speedo-polish.txt b/app/files/tweaks/19_speedo-polish.txt
index 952238d..31901ee 100644
--- a/app/files/tweaks/19_speedo-polish.txt
+++ b/app/files/tweaks/19_speedo-polish.txt
@@ -1,4 +1,4 @@
# change to polish version
-show_message "CHANGE SPEEDOMETER TO POLISH..."
+# show_message "CHANGE SPEEDOMETER TO POLISH..."
sed -i 's/var language = "DE";/var language = "PL";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO POLISH VERSION ==="
diff --git a/app/files/tweaks/19_speedo-sbtemp.txt b/app/files/tweaks/19_speedo-sbtemp.txt
new file mode 100644
index 0000000..519339a
--- /dev/null
+++ b/app/files/tweaks/19_speedo-sbtemp.txt
@@ -0,0 +1,3 @@
+# no small speedometer in statusbar
+sed -i 's/var sbTemp = false;/var sbTemp = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
+log_message "=== ADD TEMPERATURE TO STATUSBAR ==="
diff --git a/app/files/tweaks/19_speedo-slovak.txt b/app/files/tweaks/19_speedo-slovak.txt
index a72641e..1404c2b 100644
--- a/app/files/tweaks/19_speedo-slovak.txt
+++ b/app/files/tweaks/19_speedo-slovak.txt
@@ -1,4 +1,4 @@
# change to slovak version
-show_message "CHANGE SPEEDOMETER TO SLOVAK..."
+# show_message "CHANGE SPEEDOMETER TO SLOVAK..."
sed -i 's/var language = "DE";/var language = "SK";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO SLOVAK VERSION ==="
diff --git a/app/files/tweaks/19_speedo-small_speedo_off.txt b/app/files/tweaks/19_speedo-small_speedo_off.txt
index 32573a5..c25a4d2 100644
--- a/app/files/tweaks/19_speedo-small_speedo_off.txt
+++ b/app/files/tweaks/19_speedo-small_speedo_off.txt
@@ -1,4 +1,4 @@
# no small speedometer in statusbar
-show_message "DISABLE SMALL SPEEDOMETER IN STATUSBAR ..."
+# show_message "DISABLE SMALL SPEEDOMETER IN STATUSBAR ..."
sed -i 's/var enableSmallSbSpeedo = true;/var enableSmallSbSpeedo = false;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== DISABLE SMALL SPEEDOMETER IN STATUSBAR ==="
diff --git a/app/files/tweaks/19_speedo-small_speedo_on_vehicle.txt b/app/files/tweaks/19_speedo-small_speedo_on_vehicle.txt
index 1a72eb2..d8a95a8 100644
--- a/app/files/tweaks/19_speedo-small_speedo_on_vehicle.txt
+++ b/app/files/tweaks/19_speedo-small_speedo_on_vehicle.txt
@@ -1,5 +1,5 @@
# show the vehicle speed instead of the gps speed in the small speedometer
-show_message "CHANGE TO VEHICLE SPEED IN SMALL SPEEDO ..."
+# show_message "CHANGE TO VEHICLE SPEED IN SMALL SPEEDO ..."
sed -i 's/
0<\/div>/
0<\/div>/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
sed -i 's/.gpsSpeedValue/.vehicleSpeed/g' /jci/gui/apps/_speedometer/css/StatusBarSpeedometer.css
log_message "=== CHANGE TO VEHICLE SPEED IN SMALL SPEEDO ==="
diff --git a/app/files/tweaks/19_speedo-spanish.txt b/app/files/tweaks/19_speedo-spanish.txt
index 4457b6c..2ab7831 100644
--- a/app/files/tweaks/19_speedo-spanish.txt
+++ b/app/files/tweaks/19_speedo-spanish.txt
@@ -1,4 +1,4 @@
# change to spanish version
-show_message "CHANGE SPEEDOMETER TO SPANISH..."
+# show_message "CHANGE SPEEDOMETER TO SPANISH..."
sed -i 's/var language = "DE";/var language = "ES";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO SPANISH VERSION ==="
diff --git a/app/files/tweaks/19_speedo-temp.txt b/app/files/tweaks/19_speedo-temp.txt
new file mode 100644
index 0000000..4530316
--- /dev/null
+++ b/app/files/tweaks/19_speedo-temp.txt
@@ -0,0 +1,3 @@
+# change temp from C to F
+sed -i 's/var tempIsF = false;/var tempIsF = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
+log_message "=== TEMPERATURE SET TO FAHRENHEIT ==="
diff --git a/app/files/tweaks/19_speedo-turkish.txt b/app/files/tweaks/19_speedo-turkish.txt
index f8d2b00..a49da04 100644
--- a/app/files/tweaks/19_speedo-turkish.txt
+++ b/app/files/tweaks/19_speedo-turkish.txt
@@ -1,4 +1,4 @@
# change to Turkish version
-show_message "CHANGE SPEEDOMETER TO TURKISH..."
+# show_message "CHANGE SPEEDOMETER TO TURKISH..."
sed -i 's/var language = "DE";/var language = "TR";/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
log_message "=== CHANGED SPEEDOMETER TO TURKISH VERSION ==="
diff --git a/app/files/tweaks/19_speedo-u.txt b/app/files/tweaks/19_speedo-u.txt
index 8e73934..ab61320 100644
--- a/app/files/tweaks/19_speedo-u.txt
+++ b/app/files/tweaks/19_speedo-u.txt
@@ -97,10 +97,17 @@ fi
log_message "=== cleanup old versions ==="
rm -fr /jci/gui/addon-player
rm -fr /jci/gui/addon-speedometer
-rm -fr /jci/gui/speedometer
rm -fr /jci/gui/apps/_speedometer
+rm -fr /jci/gui/speedometer
rm -f /jci/opera/opera_dir/userjs/addon-startup.js
rm -f /jci/scripts/stage_wifi.sh.bak?
+rm -f /jci/scripts/get-vehicle-speed.sh
+rm -f /jci/scripts/stage_vehSpeed.sh
+rm -f /jci/scripts/get-vehicle-fuel.sh
+rm -f /jci/scripts/get-gps-speed.sh
+rm -f /jci/scripts/get-engine-speed.sh
+rm -f /jci/scripts/get-gear-position.sh
+rm -f /jci/scripts/get-temp.sh
if [ "${TESTBKUPS}" = "1" ]
then
diff --git a/app/files/tweaks/19_speedo_bar.txt b/app/files/tweaks/19_speedo_bar.txt
new file mode 100644
index 0000000..1ecee50
--- /dev/null
+++ b/app/files/tweaks/19_speedo_bar.txt
@@ -0,0 +1,15 @@
+# Speedometer v5.0
+show_message "INSTALL DIGITAL BAR SPEEDOMETER VARIANT ..."
+log_message "=========********** INSTALL DIGITAL BAR SPEEDOMETER ************========="
+
+cp -a ${MYDIR}/config/speedometer_bar/jci /
+log_message "=== Speedometer Bar Variant Installed ==="
+
+cp -a ${MYDIR}/config/speedometer_bar/speedometer-config.js /jci/gui/apps/_speedometer/js
+log_message "=== Copied Speedometer Config File ==="
+
+sed -i 's/var barSpeedometerMod = false;/var barSpeedometerMod = true;/g' /jci/gui/apps/_speedometer/js/speedometer-startup.js
+log_message "=== Set flag for bar speedometer in speedometer-startup.js ==="
+
+log_message "=========************ END DIGITAL BAR SPEEDOMETER **************========="
+log_message " "
diff --git a/app/files/tweaks/19_speedo_variant-i.txt b/app/files/tweaks/19_speedo_variant-i.txt
index 618b5ed..c4d9511 100644
--- a/app/files/tweaks/19_speedo_variant-i.txt
+++ b/app/files/tweaks/19_speedo_variant-i.txt
@@ -1,9 +1,13 @@
-show_message "INSTALL SPEEDOMETER VARIANT BY: PNEDKOV ..."
-log_message "========****** INSTALL SPEEDOMETER VARIANT BY: PNEDKOV ... ******========"
+show_message "INSTALL SPEEDOMETER VARIANT"
+log_message "========****** INSTALL SPEEDOMETER VARIANT ... ******========"
# Copy modded speedo files
cp -a ${MYDIR}/config/speedometer_mod/jci /
log_message "=== Speedometer Variant Installed ==="
+chmod 755 /jci/fonts/Crysta.ttf
+chmod 755 /jci/fonts/CHN/Crysta.ttf
+chmod 755 /jci/fonts/JP/Crysta.ttf
+
log_message "=======******** END INSTALLATION OF SPEEDOMETER VARIANT *********========"
log_message " "
diff --git a/app/files/tweaks/24_castscreen-i.txt b/app/files/tweaks/24_castscreen-i.txt
index cca41ef..cc4f9f5 100644
--- a/app/files/tweaks/24_castscreen-i.txt
+++ b/app/files/tweaks/24_castscreen-i.txt
@@ -23,18 +23,15 @@ if [ -e /jci/scripts/stage_wifi.sh ]
then
if grep -Fq "watch /jci/scripts/mirroring.sh &" /jci/scripts/stage_wifi.sh
then
- echo "exist"
- log_message "=== Modifications already done to stage_wifi.sh ==="
+ log_message "=== Castscreen Receiver already in stage_wifi.sh ==="
else
- if [ ! -e /jci/scripts/stage_wifi.sh.org ]
- then
- cp -a /jci/scripts/stage_wifi.sh /jci/scripts/stage_wifi.sh.org
- log_message "=== Backup of stage_wifi.sh to stage_wifi.sh.org ==="
- fi
- echo "### Castscreen receiver watch" >> /jci/scripts/stage_wifi.sh
- echo "watch /jci/scripts/mirroring.sh &" >> /jci/scripts/stage_wifi.sh
- sed -i '/Castscreen receiver watch/ i\ ' /jci/scripts/stage_wifi.sh
- log_message "=== Modifications added to /jci/scripts/stage_wifi.sh ==="
+ #echo "### Castscreen receiver watch" >> /jci/scripts/stage_wifi.sh
+ #echo "watch /jci/scripts/mirroring.sh &" >> /jci/scripts/stage_wifi.sh
+ sed -i '/#!/ a\#### Castscreen receiver' /jci/scripts/stage_wifi.sh
+ sleep 1
+ sed -i '/Castscreen receiver/ i\ ' /jci/scripts/stage_wifi.sh
+ sed -i '/Castscreen receiver/ a\watch /jci/scripts/mirroring.sh &' /jci/scripts/stage_wifi.sh
+ log_message "=== Castscreen Receiver added to stage_wifi.sh ==="
if [ "${TESTBKUPS}" = "1" ]
then
cp /jci/scripts/stage_wifi.sh ${MYDIR}/bakups/test/stage_wifi_castscreen-after.sh
diff --git a/app/files/tweaks/25_androidauto-i.txt b/app/files/tweaks/25_androidauto-i.txt
index 7ea545a..c2d3152 100644
--- a/app/files/tweaks/25_androidauto-i.txt
+++ b/app/files/tweaks/25_androidauto-i.txt
@@ -1,6 +1,6 @@
# Install Android Auto Headunit App
-show_message "INSTALL ANDROID AUTO HEADUNIT APP v1.07 ..."
-log_message "====******* INSTALL ANDROID AUTO HEADUNIT APP v1.07... *******===="
+show_message "INSTALL ANDROID AUTO HEADUNIT APP ..."
+log_message "====************ INSTALL ANDROID AUTO HEADUNIT APP v1.08...*********===="
log_message "=== Begin Installation Of Android Auto Headunit App ==="
TESTBKUPS=1
if [ "${TESTBKUPS}" = "1" ]
@@ -44,9 +44,13 @@ sed -i '/#!/ a\ ' /jci/scripts/stage_wifi.sh
# check for 1st line of stage_wifi.sh
if grep -Fq "#!/bin/sh" /jci/scripts/stage_wifi.sh
then
- echo -e "\n\n### Android Auto start" >> /jci/scripts/stage_wifi.sh
- sleep 1
- echo -e "headunit-wrapper &" >> /jci/scripts/stage_wifi.sh
+ #echo -e "\n\n### Android Auto start" >> /jci/scripts/stage_wifi.sh
+ #sleep 1
+ #echo -e "headunit-wrapper &" >> /jci/scripts/stage_wifi.sh
+ sed -i '/#!/ a\#### Android Auto start' /jci/scripts/stage_wifi.sh
+ sleep 1
+ sed -i '/Android Auto start/ i\ ' /jci/scripts/stage_wifi.sh
+ sed -i '/Android Auto start/ a\headunit-wrapper &' /jci/scripts/stage_wifi.sh
log_message "=== Added Android Auto entry to /jci/scripts/stage_wifi.sh ==="
else
cp -a "${MYDIR}/config/androidauto/stage_wifi.sh" /jci/scripts/
diff --git a/app/files/tweaks/25_androidautob-i.txt b/app/files/tweaks/25_androidautob-i.txt
new file mode 100644
index 0000000..428b355
--- /dev/null
+++ b/app/files/tweaks/25_androidautob-i.txt
@@ -0,0 +1,6 @@
+# Android Auto Headunit App w/ Disabled Car Navigation
+if [ -e ${MYDIR}/config/androidautob/data_persist/dev/bin/headunit ]
+then
+ cp -a ${MYDIR}/config/androidautob/data_persist/dev/bin/headunit /tmp/mnt/data_persist/dev/bin
+ log_message "=== Copied Android Auto v1.08b ==="
+fi
diff --git a/app/files/tweaks/27_aioapp-i.txt b/app/files/tweaks/27_aioapp-i.txt
index 0667ea6..b397251 100644
--- a/app/files/tweaks/27_aioapp-i.txt
+++ b/app/files/tweaks/27_aioapp-i.txt
@@ -1,8 +1,8 @@
#######################################################################
# AIO Tweaks Headunit App
-# V0.4 By: Trezdog44
+# V0.4a By: Trezdog44
#######################################################################
-show_message "INSTALLING AIO TWEAKS APP v0.4..."
+show_message "INSTALLING AIO TWEAKS APP v0.4a..."
log_message "=========************ INSTALL AIO TWEAKS APP *************==========="
if [ "${TESTBKUPS}" = "1" ]
@@ -46,13 +46,16 @@ sed -i '/AIO/d' /jci/scripts/stage_wifi.sh
sed -i '/--port=9997/d' /jci/scripts/stage_wifi.sh
sed -i '/--passenv/d' /jci/scripts/stage_wifi.sh
-echo -e '\n\n\n### AIO Tweaks App' >> /jci/scripts/stage_wifi.sh
-echo -e '\n/jci/gui/addon-common/websocketd --passenv $(env | grep XDG_ | sed "s/=.*$//g" | tr "\\n" ",")PATH,SHELL --port=9997 sh &' >> /jci/scripts/stage_wifi.sh
-chmod 755 /jci/scripts/stage_wifi.sh
-
+#echo -e '\n\n\n### AIO Tweaks App' >> /jci/scripts/stage_wifi.sh
+#echo -e '\n/jci/gui/addon-common/websocketd --passenv $(env | grep XDG_ | sed "s/=.*$//g" | tr "\\n" ",")PATH,SHELL --port=9997 sh &' >> /jci/scripts/stage_wifi.sh
+sed -i '/#!/ a\### AIO Tweaks App' /jci/scripts/stage_wifi.sh
+sleep 1
+sed -i '/AIO Tweaks/ i\ ' /jci/scripts/stage_wifi.sh
+sed -i '/AIO Tweaks/ a\/jci/gui/addon-common/websocketd --passenv $(env | grep XDG_ | sed "s/=.*$//g" | tr "\\n" ",")PATH,SHELL --port=9997 sh &' /jci/scripts/stage_wifi.sh
# delete empty lines
sed -i '/^ *$/ d' /jci/scripts/stage_wifi.sh
sed -i '/#!/ a\ ' /jci/scripts/stage_wifi.sh
+chmod 755 /jci/scripts/stage_wifi.sh
log_message "=== Set Websocketd for AIO in Stage_wifi.sh ==="
@@ -69,7 +72,7 @@ fi
# add preload to the AA json entry if needed
if ! grep -q "AIO-startup.js" /jci/opera/opera_dir/userjs/additionalApps.json
then
- sed -i 's/"label": "AIO Tweaks" }/"label": "AIO Tweaks", "preload": "AIO-startup.js" }/g' /jci/opera/opera_dir/userjs/additionalApps.json
+ sed -i 's/"label": "AIO Tweaks" \}/"label": "AIO Tweaks", "preload": "AIO-startup.js" \}/g' /jci/opera/opera_dir/userjs/additionalApps.json
log_message "=== Added AIO-startup.js to AIO Tweaks json entry ==="
fi
diff --git a/app/files/tweaks/casdk/scripts/casdk.aio b/app/files/tweaks/casdk/scripts/casdk.aio
index 3a72423..c1a1c33 100644
--- a/app/files/tweaks/casdk/scripts/casdk.aio
+++ b/app/files/tweaks/casdk/scripts/casdk.aio
@@ -1,2 +1,2 @@
-AIO_VER=2.4.0
+AIO_VER=2.7.4
CASDK_VER=0.0.4
diff --git a/app/files/tweaks/config/aio-app/data_persist/dev/system_restore/restore.sh b/app/files/tweaks/config/aio-app/data_persist/dev/system_restore/restore.sh
index afa2046..9d892ed 100644
--- a/app/files/tweaks/config/aio-app/data_persist/dev/system_restore/restore.sh
+++ b/app/files/tweaks/config/aio-app/data_persist/dev/system_restore/restore.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# restore.sh - MZD-AIO-TI Version 2.7.2
+# restore.sh - MZD-AIO-TI Version 2.7.4
# The Full Restore script for the AIO Tweaks app
# For more information visit http://mazdatweaks.com
# By Trezdog44 - Trevelopment.com
@@ -9,7 +9,7 @@ hwclock --hctosys
# AIO Variables
AIO_VER=0.4
-AIO_DATE=2017.10.20
+AIO_DATE=2018.01.01
# TO DELETE ALL BACKUP FILES CHENGE DEL_BAKUPS=0 TO DEL_BAKUPS=1
DEL_BAKUPS=0
diff --git a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/AIO-startup.js b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/AIO-startup.js
index b512857..9f097a9 100644
--- a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/AIO-startup.js
+++ b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/AIO-startup.js
@@ -4,16 +4,17 @@ function applyTweaks(){
if (!window.jQuery) {
utility.loadScript("addon-common/jquery.min.js");
}
- var tweaks = localStorage.aiotweaks;
- if(tweaks && tweaks.length > 0) {
+ var tweaks = localStorage.getItem("aio.tweaks") || "";
+ if(tweaks.length > 0) {
var AIOcss = document.createElement("link");
AIOcss.href = "apps/_aiotweaks/css/_aiotweaksApp.css";
AIOcss.rel = "stylesheet";
AIOcss.type = "text/css";
body.insertBefore(AIOcss, body.firstChild);
- var savedTweaks = JSON.parse(tweaks) || "";
- body.className = savedTweaks;
+ body.className = tweaks;
}
}
+framework.transitionsObj._genObj._TEMPLATE_CATEGORIES_TABLE.AIOTweaksTmplt = "Detail with UMP";
+
applyTweaks();
diff --git a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/_aiotweaksApp.js b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/_aiotweaksApp.js
index 84e5060..b7d5847 100644
--- a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/_aiotweaksApp.js
+++ b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/_aiotweaksApp.js
@@ -45,10 +45,12 @@ _aiotweaksApp.prototype.appInit = function()
//@formatter:on
//@formatter:off
- this._messageTable = {
- // haven't yet been able to receive messages from MMUI
+ this._messageTable =
+ {
+ //Speed Handlers
+ "Global.AtSpeed" : this._AtSpeedMsgHandler.bind(this),
+ "Global.NoSpeed" : this._NoSpeedMsgHandler.bind(this)
};
- //@formatter:on
};
/**
@@ -56,6 +58,12 @@ _aiotweaksApp.prototype.appInit = function()
* CONTEXT CALLBACKS
* =========================
*/
+_aiotweaksApp.prototype._AtSpeedMsgHandler = function (msg){
+ log.info("AIO Tweaks App Received AtSpeedMsg" + msg);
+}
+_aiotweaksApp.prototype._NoSpeedMsgHandler = function (msg){
+ log.info("AIO Tweaks App Received NoSpeedMsg" + msg);
+}
_aiotweaksApp.prototype._StartContextReady = function ()
{
framework.common.setSbDomainIcon("apps/_aiotweaks/app.png");
@@ -65,7 +73,7 @@ _aiotweaksApp.prototype._StartContextOut = function ()
{
var currTwks = document.getElementsByTagName("body")[0].className;
if(currTwks.length > 0) {
- localStorage.aiotweaks = JSON.stringify(currTwks);
+ localStorage.setItem("aio.tweaks",currTwks);
}
};
/**
diff --git a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/mzd.js b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/mzd.js
index fcaf045..07def6d 100644
--- a/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/mzd.js
+++ b/app/files/tweaks/config/aio-app/jci/gui/apps/_aiotweaks/js/mzd.js
@@ -1,14 +1,15 @@
// *****************************
-// ** AIO Tweaks App v0.4 - mzd.js
+// ** AIO Tweaks App v0.4a - mzd.js
// ** All the functions for Buttons in AIO Tweaks App
// ** By Trezdog44
// *****************************
/* jshint -W117 */
-var wsAIO = null;
+
var AArunning = false;
-var AIOvideo = false;
var appListData = [];
-var aioWsVideo = null;
+//var wsAIO = null;
+//var aioWsVideo = null;
+//var AIOvideo = false;
$(document).ready(function(){
try
{
@@ -25,27 +26,27 @@ $(document).ready(function(){
// AIO info
getAppListData();
$('button').on('click',function(){$('button').removeClass('selectedItem');$(this).addClass('selectedItem')});
- $("#aioInfo").on("click",function(){showAioInfo("
AIO Tweaks App v0.4
This is an experimental app by Trezdog44 made to test the capabilities, functionalities, and limitations of apps in the MZD Infotainment System. This app has some useful and fun functions although it is not guaranteed that everything works. There may be non-functioning or experimental features.
This is an experimental app by Trezdog44 made to test the capabilities, functionalities, and limitations of apps in the MZD Infotainment System. This app has some useful and fun functions although it is not guaranteed that everything works. There may be non-functioning or experimental features.
Below the speedometer is km/h or mph, depending on the setting
Speed range up to 240 km/h
Consumption values
Optimized graphics modules with new speedometer pointer
Small speedometer needle for top speed in the analog part
The picture for the speedometer scale has different lengths or bright lines for 5, 10 and 20 km/h jumps
Right table English or German and color / size optimized
All numbers have a slight shadow around to better stand out from the background.
On travel direction rotating compass central to the current speed
Animated overlay in the status with GPS speed and direction of travel in each menu can be prepared by touch at the clock
Latitude and longitude in the right table
When the Navi or Rear Camera is started, it automatically appears
For the small speedo in the status bar you have to install date_to_statusbar mod V2.2 too. Therefore it will be automatically selected, if not already done.",
+ "INST": "Install speedometer",
+ "DEINST": "Remove speedometer",
+ "toolTip": "
Speedometer With Compass in the Application Menu.
Below the speedometer is km/h or mph, depending on the setting
Speed range up to 240 km/h
Consumption values
Optimized graphics modules with new speedometer pointer
Small speedometer needle for top speed in the analog part
The picture for the speedometer scale has different lengths or bright lines for 5, 10 and 20 km/h jumps
Right table English or German and color / size optimized
All numbers have a slight shadow around to better stand out from the background.
On travel direction rotating compass central to the current speed
Animated overlay in the status with GPS speed and direction of travel in each menu can be prepared by touch at the clock
Latitude and longitude in the right table
When the Navi or Rear Camera is started, it automatically appears
unter dem Tacho steht km/h oder mph, je nach Einstellung
Geschwindigkeitsbereich bis 240 km/h
Verbrauchswerte
Optimierte Grafikbausteine mit neuem Tachozeiger
Kleine Tachonadel für Topspeed im analogen Teil
Das Bild für die Tachoskala hat unterschiedlich lange oder helle Striche für 5, 10 und 20 km/h Sprünge
Rechte Tabelle komplett deutsch und Farbe/Größe optimiert
Alle Zahlen haben einen leichten Schatten um sich besser vom Hintergrund abzuheben.
Fahrtrichtungsabhängig rotierender Kompass zentral um die aktuelle Geschwindigkeit
Längen- und Breitengrad in rechter Tabelle
Animiertes Overlay in der Statusbar mit GPS Speed und Fahrtrichtung welches in jedem Menü angezeigt werden kann, durch Touch auf die Uhr kann es ein-/ausgeblendet werden
Wenn das Navi oder Rückfahrkamera gestartet wird, erscheint es automatisch
Für den kleinen Speedo in der Statusbar muss der 'date_to_statusbar' Mod V2.2 mit installiert werden, dieser wird nun also automatisch mit ausgewählt, falls nicht schon geschehen.
Speedometer íránytűvel App-ként mutatása az alkalmazás menüben
a sebességmérő alatt km/h vagy mph látszik a beállítások függvényében
Max. mutatható sebesség: 240 km/h
Fogyasztási adatoks
Optimalizált grafikus elemek új sebességmérővel
Kis sebességmérő tű, mely a legnagyobb sebességet mutatja az analóg skálán
A skála különböző hosszúságú és világosságú az 5, 10 ill. 20 km/h-s felbontás függvényében
Jobboldali táblázat német és angol szövegekre lett optimalizálva
Minden számnak van árnyéka a jobb olvashatóság érdekében
Haladási iránytól függő iránytű a sebesség körül
Animált felület a fejlécben GPS által mért sebességgel és haladási iránnyal, mely egy érintéssel az órára bármelyik menüben előhozható vagy elrejthető
Szélességi és hosszúsági fokok a jobboldali táblázatban
Ha a navigáció vagy a tolatókamera aktiválódik, automatikusan elindul
A kis sebességmérő fejlécben való mutatása a \"dátum a fejlécben\" mod V2.2 igényli, ezért ez automatikusan kiválasztásra kerül, ha nem történt még meg..",
"img": "mzd_SpeedoCompass.gif",
"safetylvl": "safe",
diff --git a/app/opts/17options.htm b/app/opts/17options.htm
index e3aa477..347ff87 100644
--- a/app/opts/17options.htm
+++ b/app/opts/17options.htm
@@ -9,10 +9,18 @@
-->
ID7_recovery scripts - A collection of autorun scripts by id7, made for recovering from a catastrophic event that results in the loss of SSH access and/or the ability to install tweaks with MZD-AIO-TI. Install recovery pack BEFORE updating firmware and it will automatically detect and restore SSH access if it is lost for any reason.
-
Auto WiFi AP - Starts the WiFi AP on boot runs a DHCP server. You MUST CHANGE VALUES 'YourSSID' and 'YourSSIDPassword' to run the wifi app! The app will not start if the values are not changed. Parameters of AP: 801.11G, channel=9, WPA2, AES is fixed but can be modified at line ~40 of jci-wifiap.sh CMU IP: 192.168.53.1 open SSH ports 22, 24000, 36000
+
Auto WiFi AP - Starts the WiFi AP on boot runs a DHCP server. You MUST CHANGE VALUES 'YourSSID' and 'YourSSIDPassword' to run the wifi app! The app will not start if the values are not changed. Parameters of AP: 801.11G, channel=9, WPA2, AES is fixed but can be modified at line ~40 of jci-wifiap.sh CMU IP: 192.168.53.1 open SSH ports 22, 24000, 36000 SCRIPT TO UNINSTALL WIFI AP ONLY
Auto ADB - Starts SSH over ADB via port 2222. You must use an Android device with 'Android Debugging' enabled in 'Developer Options' to make this SSH connection over USB or WiFi. Over USB connect using shell command SSH --host=localhost --port=2222 or SSH client localhost:2222 (or 127.0.0.1:2222)
Dryrun Script - This script is used to test and confirm the autorun installation is working properly. It is recommended to use this after installing autorun for the first time. This script (run.sh) can be used by itself or it can be moved to an SD card or another USB drive to test after the installation is complete.
WARNING: V59.00.502+ HAS LOCKED OUT TWEAKS INSTALLATION
-
IF YOU ARE CONSIDERING UPDATING TO V59.00.502 THEN INSTALLING THE ID7_RECOVERY PACK WILL ALLOW FOR A SEAMLESS UPDATE WITHOUT ANY LOSS OF ACCESS
-
IF YOU HAVE ALREADY UPDATED OR PURCHASED THE VEHICLE WITH V59.OO.502 YOUR ONLY OPTION RIGHT NOW IS TO CONNECT VIA SERIAL CONNECTION . THEN YOU WILL NEED TO INSTALL THE ID7_RECOVERY PACK AFTER GAINING SERIAL ACCESS.
-
-
Its been a while since the last update because I have been very busy but since I do this for fun there are many improvements. Thanks for the support!
-
-
+
+
WARNING: V59.00.502+ HAS LOCKED OUT TWEAKS INSTALLATION
+
IF YOU ARE CONSIDERING UPDATING TO V59.00.502 OR HIGHER THEN INSTALLING THE ID7_RECOVERY PACK WILL ALLOW FOR A SEAMLESS UPDATE WITHOUT ANY LOSS OF ACCESS
+
IF YOU HAVE ALREADY UPDATED OR PURCHASED THE VEHICLE WITH V59.OO.502+ YOUR ONLY OPTION RIGHT NOW IS TO CONNECT VIA SERIAL CONNECTION . THEN YOU WILL NEED TO INSTALL THE ID7_RECOVERY PACK AFTER GAINING SERIAL ACCESS.
+
+
Hi Everyone!
+
This is the most solid AIO release to date.
+ Performance has been improved for the Video Player App, Speedometer App, and AIO Tweaks App, a new variant has been added to the Speedometer, and Android Auto Headunit App works better than ever.
+ AIO is used by tens of thousands all over the world and has become the safest, easiest, and best way to modify your MZD Infotainment System.
+ I am so proud of this app and thank each and every one of you for tweaking!
All Bluetooth Calling & Video Focus Issues are fixed
-
Release Audio Focus (To Radio, USB Audio, etc.) with FAV () Button
-
Control USB Audio with Next/Prev steering wheel buttons when it has Audio Focus
-
Fix for GPS, Mazda Navigation and HUD features will now function correctly
-
Black screen issues are memory related and can be avoided by minimizing the amount of memory being used by the system. This can be done by:
-
-
Removing Nav SD card and other connected USB devices.
-
Speedometer and CastScreen apps use active memory, uninstalling them will improve AA performance.
-
Reboot the system, connect your phone after reboot.
-
Use the Swapfile for additional memory.
-
+
Fixed music not resuming after phone calls
+
More code optimizations
+
All Audio Focus transitions are smooth
+
Navigation Fixes
+
Option to disable processing car GPS in case there are still navigation issues
+
There may still be navigation issues with FW v56 with a Nav SD card connected (Disconnecting Nav SD card fixes the issue)
-
-
VideoPlayer v3.1
-
-
-
Fully Multicontroller Navigable
-
Navigate "Video Options/Info" panel with Control Knob.
-
-
Rotate to choose
-
Push to toggle option
-
Tilt up/down to close options/info panel
-
Tilt left right to choose between info and options
-
-
Change Highlight Color
+
Speedometer v5.0
-
Choices: Red, Blue, Green, Pink
-
-
Fixed bug: random never played the last video in the list
+
Major performance improvements to all styles and variants. (All variants use the same data collection script)
+
Every variation value is configurable and toggleable
+
Added option for starting temperature (°C & °F)
+
and fuel efficiency (km/L & L/100km)
-
-
AIO Tweaks v0.4
-
-
-
Mount SwapFile
-
-
Mount an unmounted SwapFile
-
-
Some shell commands with output (command shown in message when one is used)
-
-
Running Processes: ps
-
Disk Space: df -h
-
Memory Info: cat /proc/swaps && cat /proc/meminfo
-
E-mail me for requests/suggestions
-
-
Select Tweaks with command knob
-
-
Rotate to choose
-
Push to Select
-
-
Scroll message box by rotating/tilting command knob
-
-
Tilt up at the top and pushing select close the message box
-
Tilt up to reopen
-
Works well when checking headunit.log
-
-
Irrelevant options are now hidden
-
-
Ex: If CastScreen is not installed the CastScreen Start/Stop options will be hidden
-
-
General little fixes
-
There are MANY failed legitimate attempts in the AIO Tweaks App code most notable of which include "Show Backup Camera," "Take Screenshot" and global "Pause/Play Music". If you think you can get something to work that I have not, go for it!
+
+
Digital Bar Speedometer Mod
+
4 values in the right column
+
Cycle through 3 groups of 5 values on the bottom row.
+
Including Main speed that's 20 values!
+
Command knob "select" to change bottom bar values.
+
Tilt up to toggle mph & km/h
+
Tilt right to
+
Toggle km/L & L/100km (in km/h mode)
+
Toggle °C & °F (in mph mode)
-
-
Speedometer to StatusBar
-
+
+
Tilt left to toggle background.
+
Tilt down to toggle the speedometer in statusbar extra values between Heading/Altitude & Temperature/Fuel Efficiency
+
Fully Customizable - Value positions can be customized in and easy and intuitive way, Even the Main speedometer value can be changed to any value
Outside Temperature & Current Drive Fuel Efficiency
+
Tap the statusbar speedometer to toggle the extra values (same as tilt down when speedometer is open)
+
+
+
Digital Clock Mod
+
Use the font from the digital bar speedometer on the statusbar speedometer & clock.
+
+
+
+
AIO Tweaks v0.4a
-
Now Speedometer to StatusBar moves the 'volume meter' and 'contact loading meter' a little bit to the left so they do not overlap the numbers.
+
Removed superfluous/experimental code that may be causing the app to freeze for some.
-
-
Swapfile
-
+
Video Player v3.2
-
Choose to mount on boot (on by default) or copy without mounting.
+
Option to use Unicode Mode by default (still toggleable inside the app)
+
I need a lot of color in my life so now you can choose between 8!
+
Red, Green, Blue, Violet, Orange, Teal, Slate, and White.
+
+
+
Merged improvements by VIC_BAM85
+
Sort order now is case insensitive (only for ASCII mode Not Unicode)
+
You start with selection on the last played video
+
Small fixes on the FF / RW in order to make only one call
+
Added a plugin to the cmu in order to allow fullscreen toggle (commander up while playing) so it changes while playing the video, resize and rotate (not available on the GUI yet)
+
Delete the gstreamer registry on start in order to fix the plugin repository (Resets to the one without the codecs at car restart)
+
+
+
+
Swapfile
-
Mounted automatically when starting the VideoPlayer App
-
Can be mounted manually with the AIO Tweaks App
-
Swapfile can be copied by itself onto the root of a separate USB drive containing music and/or videos and mounted during run-time as needed
-
+
Fixed swap memory mounting on boot
+
Improvements to how swapfile is mounted and order of apps initializing during boot
-
-
App Changes
-
+
All Apps
-
Skip Confirmation choice will persist
+
Now use built in framework transitions for smoother opening and closing
+
Improvements with initialization methods & startup scripts