Skip to content

Commit

Permalink
v2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevelopment committed Nov 26, 2017
1 parent 0ec99dd commit 7f3f9bc
Show file tree
Hide file tree
Showing 72 changed files with 1,834 additions and 972 deletions.
37 changes: 33 additions & 4 deletions app/assets/css/index.css
Expand Up @@ -107,6 +107,14 @@ footer,
.showNav .w3-navbar {
width:100%;
}
div#header,
#notices,
nav#mySidenav,
header span#openNav,
header span#openSidePanel,
.w3-container.mainContainer {
transition: .8s ease;
}
.showNav ~.ng-scope .w3-container.mainContainer .twkfltr {
top: 50px;
}
Expand Down Expand Up @@ -878,7 +886,7 @@ label.w3-validate + .tooltip > .tooltip-inner {
width: 800px!important;
}
/* DARK MODE */
.w3-black .w3-dropdown-content a {
.w3-black .w3-dropdown-content a {
color: #000;
}
.w3-black #helpMenuTop a {
Expand Down Expand Up @@ -923,6 +931,10 @@ body.w3-black {
.w3-black .accordion-content .w3-panel .w3-btn {
color: #fff;
}
.w3-black label.w3-label.checkAutorun {
color: #fff;
border-color: #fff;
}
.tweak-inst-title {
font-family: "stencil";
}
Expand Down Expand Up @@ -1460,6 +1472,10 @@ tr#uistyle-mainlabel.color td input[type="color"] {
.useColorBG.w3-right {
width: 50%;
}
#sidePanel .AAmsg,
#sidePanel td.aa-side.w3-col label {
font-size:16px;
}
@media only screen and (min-width: 1400px) {
div#options, #extraOptions {
width:49%;
Expand Down Expand Up @@ -1812,8 +1828,8 @@ a.handle:active {
max-width: 800px;
}
#autoHelp {
margin-top: 125px;
min-width: 600px;
margin-top: 125px;
min-width: 600px;
}
.featherlight.autoHelpBox .featherlight-content #autoHelp {
margin-top: 0;
Expand Down Expand Up @@ -1887,6 +1903,11 @@ input#id7Recovery {
outline-offset: -10px;
outline: 2px dotted #ff0000;
}
#sidePanel td.aa-side.w3-col label,
#sidePanel td.aa-side.w3-col input {
margin-top: 0;
padding-bottom: 10px;
}
.featherlight-content .anonCloseBtn {
display: none;
}
Expand All @@ -1909,10 +1930,18 @@ button.btn.btn-primary[data-bb-handler="confirm"]:hover {
}
label.w3-label.checkAutorun {
position: absolute;
top: 125px;
top: 95px;
right: 15px;
font-size: 20px;
color: #000;
text-align: center;
z-index: 99;
transition: .8s ease;
}
.showNav label.w3-label.checkAutorun {
top: 125px;
}
.w3-navbar *,
.w3-sidenav * {
cursor: pointer;
}
26 changes: 12 additions & 14 deletions app/assets/js/build-tweaks.js
Expand Up @@ -40,10 +40,10 @@ var filesComplete = true // Flag to signal the files have all been copied
var disclaimerAndAudioFlag = false // Flag to prevent disclaimer&audiosource folder from being copied twice
var errFlag = false // Error flag
var copySwapfile = false // Swapfile flag
var speedcamPatchFlag = false // Speedcam Patch flag
var tweaks2write = [] // Queue for order consistantcy writing tweaks.sh (Always starts with 00_intro.txt)
var tmpdir = path.normalize(path.join(persistantData.get('copyFolderLocation'), '_copy_to_usb')) // Place to hold USB drive files before copying
var themeColor = 'Red'
var swapdest = ''
/* *********\
|* START BUILD OF TWEAKS.SH & ASSOCIATED FILES *|
\********** */
Expand All @@ -58,14 +58,14 @@ function buildTweakFile (user) {
/* Start Writing Log Files */
AIO_LOG += `- Tweak Files Location: ${tmpdir}\r\n`
AIO_LOG_HTML += `<li><b>Tweak Files Location: ${tmpdir}</b></li>`
/* Attach Hints */
/* Building Dialog */
bootbox.dialog({
message: `<div style='text-align:center;'>${langObj.popupMsgs[0].msg}<br><div id='userLogView' style='text-align:center;' ></div><br><img class='loader' src='./files/img/load-1.gif' alt='...' /></div><div id='copy-loc'>${langObj.popupMsgs[1].msg}: ${tmpdir}<span class="w3-close icon-x w3-right" onclick="$(this).parent().hide()"></span></div>`,
closeButton: false
})
persistantData.set('keepBackups', user.backups.org)
persistantData.set('testBackups', user.backups.test)
persistantData.set('skipConfirm', user.backups.skipconfirm)
if (fs.existsSync(`${tmpdir}`)) {
aioLog('Delete old _copy_to_usb folder...')
try {
Expand Down Expand Up @@ -423,6 +423,9 @@ function buildTweak (user) {
if (user.options.indexOf(25) !== -1) {
addTweak('25_androidauto-i.txt')
addTweakDir('androidauto', true)
if(user.aaBetaVer){
addTweakDir('androidautob', true)
}
}
if (user.options.indexOf(11) !== -1) {
addTweak('11_msgreplies-i.txt')
Expand Down Expand Up @@ -553,7 +556,10 @@ function buildTweak (user) {
// in the script is to remove all of the other tweak files
if (user.options.indexOf(18) !== -1) {
copySwapfile = true
addTweak('18_swapfile-i.txt')
if (user.swapOps.mount) {
swapdest = '/config/swapfile/'
addTweak('18_swapfile-i.txt')
}
}
// Finish with the end script
addTweak('00_end.txt')
Expand Down Expand Up @@ -1010,6 +1016,7 @@ function unzipSwapfile (dest) {
nocopy = true
dest = `${tmpdir}`
}
dest = `${dest}${swapdest}`
if (copySwapfile) {
copySwapfile = false
appendAIOlog(`<li style='color:#005182'>${langObj.popupMsgs[13].msg}: ${dest.replace(':', '')}</li>`)
Expand All @@ -1033,11 +1040,11 @@ function unzipSwapfile (dest) {
}
}, 40000)
try {
fs.mkdirSync(`${dest}/config/swapfile/`)
fs.mkdirSync(`${dest}`)
} catch (e) {
appendAIOlog(`<li style='color:#ff0000'>${e} Swapfile Already Exists, Overwriting...</li>`)
}
extract(`${approot}/files/tweaks/config/swapfile/swapfile.zip`, {dir: `${dest}/config/swapfile/`}, function (err) {
extract(`${approot}/files/tweaks/config/swapfile/swapfile.zip`, {dir: `${dest}`}, function (err) {
if (err) {
appendAIOlog(`<li style='color:#ff0000'>${err} Swapfile Error</li>`)
console.error(err, err)
Expand Down Expand Up @@ -1065,7 +1072,6 @@ var cp2usb = `<button class="w3-round-large w3-teal w3-btn w3-ripple w3-hover-pi
var saveBtn = `<button class="w3-round-large w3-purple w3-btn w3-ripple w3-hover-deep-orange w3-large w3-border w3-border-green" style="letter-spacing:.81px" title="Save Options" onclick="$('#save-btn').click()"><span class="icon-floppy-disk"></span> ${langObj.menu.save.toolTip}</button>`
var openUSB = ''
function finishedMessage (mp) {
cleanUpTempFolders()
// Finished message
if (mp) {
if (persistantData.get('delCopyFolder')) {
Expand Down Expand Up @@ -1105,14 +1111,6 @@ function postInstallTitle () {
function cleanCopyDir () {
rimraf(`${tmpdir}`, function () { appendAIOlog(`<li style='color:#ff3366'>Deleted '_copy_to_usb' Folder</li>`) })
}
function cleanUpTempFolders () {
if (speedcamPatchFlag) {
rimraf(path.normalize(path.join(`${__dirname}`, '../org')), function (e) {
if (e) { appendAIOlog(e) }
appendAIOlog(`<li style='color:#ff3366'>Deleted Temporary Folders</li>`)
})
}
}
function buildCASDK (user) {
mkdirp.sync(`${tmpdir}/casdk/`)
addRootFiles()
Expand Down
61 changes: 18 additions & 43 deletions app/assets/js/index.js
Expand Up @@ -58,10 +58,6 @@ function getBackground () {
return `${tempDir}/background.png`
}
function saveMenuLock () {
persistantData.get('menuLock')
if (!persistantData.has('menuLock')) {
persistantData.set('menuLock', true)
}
persistantData.set('menuLock', !persistantData.get('menuLock'))
$('body, .hideNav, .w3-overlay').toggleClass('showNav')
}
Expand Down Expand Up @@ -118,7 +114,7 @@ function autoHelp () {
}
function myStance () {
ipc.send('reset-window-size')
$.featherlight('views/stance.htm',{closeSpeed:2000,variant:'myStance'})
$.featherlight('views/stance.htm',{closeSpeed:2000,variant:'myStance',afterClose:updateNotesCallback})
}
function announcement() {
var anoncmntNum = localStorage.getItem('anoncmnt')
Expand All @@ -144,7 +140,7 @@ function showAnnouncement () {
$.featherlight('https://aio.trevelopment.com/aio.php',{closeSpeed:1000,variant:'announcementWindow'})
}
function hideAnnouncement (anonNum) {
$('.communicationFile').remove()
$('.communicationFile').hide()
$.featherlight.close()
localStorage.setItem('anoncmnt', anonNum)
}
Expand All @@ -166,16 +162,23 @@ function updateNotes () {
}, 2000)
}
function firstTimeVisit () {
if (!persistantData.has('ver270')) {
if (!persistantData.has('updateVer') || persistantData.get('updateVer') < 271) {
myStance()
persistantData.set('ver270', false)
persistantData.set('updateVer', 272)
persistantData.set('updated', false)
persistantData.delete('ver270')
persistantData.delete('message-502')
persistantData.delete('message-503')
persistantData.delete('new-update-first-run')
} else {
updateNotesCallback()
}
}
function updateNotesCallback () {
if (visits > 0) {
if(!persistantData.get('ver270')) {
if(!persistantData.get('updated')) {
updateNotes()
persistantData.set('ver270', true)
persistantData.set('updated', true)
}
} else {
$('body').prepend('<div id="super-overlay" style="z-index:999999;width:9999px;height:9999px;display:block;position:fixed;background:transparent;"></div>')
Expand Down Expand Up @@ -316,7 +319,7 @@ function getParameterByName (name, url) {
url = url.toLowerCase() // This is just to avoid case sensitiveness
name = name.replace(/[[\]]/g, '\\$&').toLowerCase()// This is just to avoid case sensitiveness for query parameter name
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url)
results = regex.exec(url)
if (!results) return ''// url.substr(url.lastIndexOf('/') + 1)
if (!results[2]) return ''
return decodeURIComponent(results[2].replace(/\+/g, ' '))
Expand Down Expand Up @@ -371,7 +374,7 @@ function saveAIOLogHTML () {
a.click()
}
function checkForUpdate (ver) {
$.featherlight(`https://aio.trevelopment.com/update.php?ver=270`,{closeSpeed:100,variant:'checkForUpdate'})
$.featherlight(`https://aio.trevelopment.com/update.php?ver=271`,{closeSpeed:100,variant:'checkForUpdate'})
}
function formatDateCustom (dateFormatType) {
var currentTime = new Date()
Expand Down Expand Up @@ -401,9 +404,6 @@ function formatDateCustom (dateFormatType) {
function getAIOver () {
return app.getVersion()
}
/* setInterval(function(){
$('#IN21, #UN8').prop('disabled',true)
},1000) */
function showCompatibility () {
$(`<div id="compatibilityCheck" class="w3-small w3-padding" style="width:100%;max-width:1200px;margin:auto;background:rgba(0,0,0,.8);color:#fff;">
<header class="w3-container w3-indigo">
Expand All @@ -413,44 +413,19 @@ function showCompatibility () {
</header>
<div class="w3-container">
<div class="w3-panel w3-center">
<H2> **AIO IS COMPATIBLE WITH ALL FW V55, V56, V58, AND V59 UP TO V59.00.502** </H2>
<!--H5>ALL TWEAKS HAVE BEEN TESTED ON FW VERSIONS:</H5>
<div class="all-compat" style="">
55.00.650A-NA 55.00.750B-NA 55.00.753A-NA 55.00.760A-NA 56.00.100A-ADR 56.00.230A-ADR 56.00.240B-ADR 56.00.511A-ADR 56.00.512A-ADR 56.00.513C-ADR 56.00.514A-ADR 56.00.100A-CHN 56.00.100A-EU 56.00.230A-EU 56.00.511A-EU 56.00.512A-EU 56.00.513B-EU 56.00.513C-EU 56.00.521A-NA 56.00.521A-EU 56.00.401A-JP 59.00.331A-EU 58.00.250A-NA 58.00.251A-ADR 59.00.330A-NA 59.00.441A-NA 59.00.443A-NA 59.00.443C-EU 59.00.330A-EU 59.00.330A-ADR 59.00.342A-ADR 59.00.442A-ADR 59.00.443C-ADR 59.00.446A-NA 59.00.450A-NA 59.00.447A-EU 59.00.449A-EU 59.00.326A-ADR
</div></div>
<div class="w3-border w3-border-red w3-col w3-padding">
Advanced Option <b>Media Order Patch & FLAC Support</b> -
<div class="all-compat" style="">
55.00.650A-NA 55.00.753A-NA 55.00.760A-NA 56.00.100A-ADR 56.00.230A-EU 56.00.240B-ADR 56.00.511A-EU 56.00.512A-EU 56.00.521A-NA 58.00.250A-NA 59.00.326A-ADR 59.00.331A-EU 56.00.513C-EU 56.00.513B-EU 56.00.513C-ADR 59.00.330A-ADR 59.00.342A-ADR 59.00.441A-NA 59.00.443C-EU-->
</div>
</div>
<!--div class="additional-sompat-check">These tweaks have additional compatibility checks for firmware specific files:
<li>No More Disclaimer</li> <li>Order of Audio Source List</li> <li>Improved List Loop</li> <li>Date To Statusbar Mod</li></div--></div>`).insertAfter($('#mzd-title'))
<H2> **AIO IS COMPATIBLE WITH ALL FW V55, V56, V58, AND V59 UP TO V59.00.504** </H2>
</div>`).insertAfter($('#mzd-title'))
}
$(function () {
$('.toggleExtra.1').addClass('icon-plus-square').removeClass('icon-minus-square')
//$('#IN6').click(function(){$('#UN7').prop('checked',true);$('#UN8').prop('checked',true);})
setInterval(function () {
if (!$('#IN23').prop('disabled')) { $('#IN23').prop('disabled', true) }
if (!$('#IN21').prop('disabled')){$('#IN21').prop('disabled',true);}
//if (!$('#UN23').prop('disabled')) { $('#UN23').prop('disabled', true) }
//if (!$('#UN21').prop('disabled')){$('#UN21').prop('disabled',true);}
}, 2000)
setTimeout(function () {
$('#IN21').click(function () {
snackbar('THERE MAY BE ISSUES REGARDING COMPATIBILITY WITH THIS TWEAK. AFTER INSTALLING, YOUR USB PORTS MAY BECOME UNREADABLE TO THE CMU. <h3>DO NOT PREFORM THIS INSTALL UNLESS YOU KNOW HOW TO RECOVER YOUR CMU VIA SSH</h3>')
})
$('#IN21, #IN23, #IN24, #IN25').click(function () {
if (!$('#sshbringback').prop('checked')) { $('#sshbringback').click() }
if (!$('#wifi').prop('checked')) { $('#wifi').click() }
snackbar('THERE MAY BE ISSUES REGARDING COMPATIBILITY WITH THIS TWEAK. AFTER INSTALLING, YOUR USB PORTS MAY BECOME UNREADABLE TO THE CMU. <h3>AUTORUN-RECOVERY SCRIPT WILL BE INSTALLED IN CASE RECOVERY BY SD CARD SLOT IS NEEDED TO RECOVER USB FUNCTION</h3>')
})
$('#advancedOptions').click(function () {
snackbarstay('These Tweaks are disabled due to DMCA takedown request (Speedcam) or due to unresolved issues (Media Order Patch & FLAC Support)')
$('.advancedOp, #twkOpsTitle').toggle()
$('.sidePanel').toggleClass('adv')
if ($('#IN21').prop('checked')) { $('#IN21').click() }
if ($('#IN23').prop('checked')) { $('#IN23').click() }
if ($('#UN23').prop('checked')) { $('#UN23').click() }
})
}, 1000)
})
5 changes: 0 additions & 5 deletions app/changelog.htm
Expand Up @@ -3,18 +3,13 @@ <h1 id="">MZD-AIO-TI v2 CHANGELOG</h1>

<h4>2.7.0</h4>

<h6>The software distribution service bintray.com has cancelled my account because they had recently seen the DMCA Takedown notice in the MZD-AIO-TI GitHub repository from March 6th, 2017. Although I explained that the NNG files had been removed immediately upon receiving the notice they only agreed to leave the versions that had already been uploaded (Ending with v2.6.8) but would block my account from uploading any future versions. Therefor Automatic updates may of may not work in this version until I find another distribution solution. So in case new updates do not download automatically &quot;Check For Update&quot; has been added in the top menu bar under the &quot;Download&quot; menu.</h6>

<h5>Android Auto v1.04</h5>

<ul><li><strong><em>Bluetooth Call Bug Fixed!!!</em></strong> <em>Big thanks to @lmagder for fixing the headunit code after @Trezdog44 found the root of the issue with the &#39;Bluetooth call patch&#39;</em></li><li>Video focus is lost at the beginning and end of a call due to the system expecting a context change. Press the FAV (&lt;span class=&quot;icon-star&quot;&gt;&lt;/span&gt;) Button to get video focus back and AA will function normally.</li><li>Phone button opens AA phone screen, also call buttons work for answering and ending calls.</li><li>N\AV button opens the AA home screen</li><li>Tap the black box on the credit screen to display contents of the headunit.log file.</li><li>Added the Android Auto Icon to the statusbar</li><li>(The &#39;Bluetooth Call Patch&#39; from AA 1.03 is no longer needed from this version on.)<ul><li>(If it was applied will be reverted back to normal)</li></ul></li></ul>

<h5>VideoPlayer v3.0</h5>

<ul><li>Gave the VideoPlayer its own Icon</li><li>Toggle Unicode Mode On/Off with &quot;U&quot; Icon (If you have a lot of videos you will see the difference in load time)</li><li>Information/Options Panel, Open/Close with &quot;i&quot; Icon</li><li>Close by pressing command knob</li><li>Option: Hide/Show Unicode button</li><li>Video Title to Statusbar</li><li>Test Error Message</li><li>I put this in for me to test the error message because all my videos are formatted <strong>360p MP4 H264 AAC</strong> so I rarely hit a memory error.</li><li>Select options with left/right now includes reboot, show/hide background and info/options button.</li><li>Memory Error Message is now very informative</li><li>Offers Suggestions to Avoid Future Errors</li><li>Changed highlight color to blue</li></ul>

<h5>AIO Tweaks v0.3</h5>

<ul><li>Start Headunit Process<ul><li>Will now successfully Start Android Auto Headunit Process</li><li>Also Active Headunit stdout will pop up</li></ul></li><li>View Headunit Log<ul><li>Shows the existing headunit.log file in a window</li></ul></li><li>Screen off<ul><li>Turns the screen off</li></ul></li><li>wifiAP<ul><li>Starts Wifi Access Point</li><li>(start_wifi.sh; jci-wifiap.sh start)</li></ul></li><li>Stop Firewall<ul><li>Stops the firewall</li><li>(jci-fw.sh stop)</li></ul></li><li>System Restore <em>WARNING: This will remove all tweaks and uninstall all AIO apps</em><ul><li>Restore you system on the fly with a slimmed down restore script</li><li>Removes all tweaks and AIO apps including this one</li><li>Does not restore Color Scheme (all those image files take up a lot of space)</li><li>Very small and safe only targets and restores from internal backups.</li><li>Asks for verification twice to ensure it is not accidentally run.</li></ul></li><li>Env - Environment variables<ul><li>For informational/educational purposes</li><li>Also used by developers for fun times</li></ul></li><li><p>Fixed saving issue with the tweak toggle buttons</p></li><li><p>General Improvements/Bug Fixes</p><ul><li>On Startup looks for some AIO log files loads FW version if found.</li><li>If FW version is found An &quot;i&quot; Icon will appear in the top menu bar to the left of the &quot;reload&quot; icon.</li><li>Click the icon to show your FW version, future plans to display more pertinent information as well.</li><li>Added Save Button to Success Dialog</li><li>Added To Top Menu &quot;Downloads &gt; Check For Update&quot;</li><li>Small logging fixes in autorun and recovery scripts</li><li>Fixed WiFiAP files not copying when it was the only autorun script chosen</li><li>Many other small improvements/fixes</li></ul></li></ul>

<h4 id="2-6-8">v2.6.8</h4>
Expand Down

0 comments on commit 7f3f9bc

Please sign in to comment.