adb pull /system/b2g/webapps/system.gaiamobile.org
Open the
2./js/sound_manager.js
file in the application.zip using a text editor. Use a website like beautifier.io to read javascript in a more understandable format.
3.Search for "hash"
you will see this line : window.addEventListener('holdhash', this);
add this new line below it : window.addEventListener('holdstar', this);
4. continue the search
you will see this : case 'holdhash':
below it you will see this : this.toggleVibrate();
change this.toggleVibrate(); as this : this.enterSilentMode('notification');
5.now just copy lines from "case 'holdhash' :" to "break;"
now paste those lines just below "break;"
it will be like this : case 'holdhash':
if (Service.query('getTopMostWindow').isHomescreen && Service.query('getTopMostUI').name === 'AppWindowManager' && document.activeElement.tagName.toLowerCase() === 'iframe') {
this.enterSilentMode('notification');
}
break;
now change holdhash to case 'holdstar':
change this.enterSilentMode('notification'); as this : this.leaveSilentMode('notification');
Check attached images if you have confusion.
6.Push the app and its folder on the data partition, exactly in/data/local/webapps
using a temporary root access:
adb push system.gaiamobile.org /data/local/webapps
7. Get the webapps.json file:
adb pull /data/local/webapps/webapps.json
And change the value of the system.gaiamobile.org app
"basePath": "/system/b2g/webapps",
in this way
"basePath": "/data/local/webapps",
adb push webapps.json /data/local/webapps/
adb reboot
Plese tell me ivan bro