Customize shortcuts

773 views
Skip to first unread message

syl...@rentoo.immo

unread,
Dec 4, 2018, 1:13:10 PM12/4/18
to comp.mobile.nokia.8110
Hello guys,

To personalise your shortcut you can unzip /system/b2g/webapps/launcher.gaiamobile.org/application.zip, then use a service like https://beautifier.io to make the file app.bundle.js more readable.

a bit after line 4200 you will find :

{
                        name: "volume",
                        icon: "sound-max",
                        isShortcut: !0,
                        title: "volume",
                        order: {
                            portrait: 1,
                            landscape: 1
                        },
                        click: function(t) {
                            return e.volumeManagerTimer ? void("ArrowUp" !== t && "ArrowDown" !== t || (e.enterVolumeManagerMode(), navigator.volumeManager["request" + t.slice(5)]())) : (e.enterVolumeManagerMode(), void navigator.volumeManager.requestShow())
                        }
                    }, {
                        name: "brightness",
                        icon: "brightness",
                        isShortcut: !0,
                        title: "brightness",
                        subtitle: "percentage-number",
                        order: {
                            portrait: 2,
                            landscape: 2
                        },
                        cskType: "toggle",
                        click: e.toggleBrightness.bind(e)
                    }, {
                        name: "flashlight",
                        icon: "flashlight-on",
                        iconInactived: "flashlight-off",
                        title: "flashlight",
                        removed: !0,
                        order: {
                            portrait: 4,
                            landscape: 3
                        },
                        cskType: "toggle",
                        click: v.default.toggle.bind(v.default)
                    }, {
                        name: "camera",
                        icon: "camera",
                        isShortcut: !0,
                        title: "camera",
                        order: {
                            portrait: 7,
                            landscape: 6
                        },
                        cskType: "launch",
                        click: function() {
                            y.default.launch("manifestURL", "app://camera.gaiamobile.org/manifest.webapp")
                        }
                    }, {
                        name: "store",
                        icon: "calculator",
                        isShortcut: !0,
                        title: "calculator",
                        order: {
                            portrait: 5,
                            landscape: -1
                        },
                        cskType: "launch",
                        click: function() {
                            y.default.launch("manifestURL", "app://calculator.gaiamobile.org/manifest.webapp")
                        }
                    }, {
                        name: "settings",
                        icon: "settings",
                        isShortcut: !0,
                        title: "settings",
                        order: {
                            portrait: 8,
                            landscape: 7
                        },
                        cskType: "launch",
                        click: function() {
                            y.default.launch("manifestURL", "app://settings.gaiamobile.org/manifest.webapp")
                        }
                    }, {
                        name: "wifi",
                        icon: "wifi-32px",
                        iconInactived: "wifi-off-32px",
                        title: "wifi",
                        observerSetting: "wifi.enabled",
                        removed: !0,
                        order: {
                            portrait: 0,
                            landscape: 0
                        },
                        cskType: "toggle"
                    }, {
                        name: "network",
                        icon: "network-activity",
                        iconInactived: "network-activity-off",
                        title: "cellular-data",
                        observerSetting: "ril.data.enabled",
                        order: {
                            portrait: 3,
                            landscape: 4
                        },
                        cskType: "toggle"
                    }, {
                        name: "bluetooth",
                        icon: "bluetooth-32px",
                        iconInactived: "bluetooth-off-32px",
                        title: "bluetooth",
                        removed: !0,
                        observerSetting: "bluetooth.enabled",
                        order: {
                            portrait: 6,
                            landscape: 5
                        },
                        cskType: "toggle"
                    }

Here I've replaced airplane mode by the settings app.
All the app you can launch are here: /system/b2g/webapps

There is also some settings switch, but you will probably have to add more js to catch your case.

then rezip to application.zip and replace it on the device:
adb push application.zip /system/b2g/webapps/launcher.gaiamobile.org/application.zip

Enjoy :)

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 6:26:45 AM1/11/19
to comp.mobile.nokia.8110

Screenshot_3.png

Hi Sylvain 
i've read and replaced shortcuts
But here is problem
i am using windows 10
waiting for your response ,

John-David Deubl

unread,
Jan 11, 2019, 7:56:59 AM1/11/19
to comp.mobile.nokia.8110
http://adbshell.com/commands/adb-push

I think you have to specify source and destination 

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 7:58:10 AM1/11/19
to comp.mobile.nokia.8110
i'll try and inform now

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John-David Deubl

unread,
Jan 11, 2019, 8:01:00 AM1/11/19
to comp.mobile.nokia.8110
Can I also change the shortcuts for the keyboard in this file?

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:01:30 AM1/11/19
to comp.mobile.nokia.8110
this is the line i don't understand|
adb push application.zip /system/b2g/webapps/launcher.gaiamobile.org/application.zip 
how to write  

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:02:42 AM1/11/19
to comp.mobile.nokia.8110
May be you can..

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To post to this group, send email to banana...@googlegroups.com.

John-David Deubl

unread,
Jan 11, 2019, 8:05:04 AM1/11/19
to comp.mobile.nokia.8110
do you downloaded with adb pull the application.zip file ?


Am Freitag, 11. Januar 2019 14:01:30 UTC+1 schrieb Hossain Mohammed Shoaib:
this is the line i don't understand|
adb push application.zip /system/b2g/webapps/launcher.gaiamobile.org/application.zip 
how to write  

On Fri, Jan 11, 2019 at 6:57 PM Hossain Mohammed Shoaib <hossainmohammedshoaib01@gmail.com> wrote:
i'll try and inform now

On Fri, Jan 11, 2019 at 6:57 PM John-David Deubl <struk...@gmail.com> wrote:
http://adbshell.com/commands/adb-push

I think you have to specify source and destination 

Am Freitag, 11. Januar 2019 12:26:45 UTC+1 schrieb Hossain Mohammed Shoaib:

Screenshot_3.png

Hi Sylvain 
i've read and replaced shortcuts
But here is problem
i am using windows 10
waiting for your response ,

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:07:32 AM1/11/19
to John-David Deubl, comp.mobile.nokia.8110
yes now showing that
Screenshot_4.png

On Fri, Jan 11, 2019 at 7:05 PM John-David Deubl <struk...@gmail.com> wrote:
do you downloaded with adb pull the application.zip file ?

Am Freitag, 11. Januar 2019 14:01:30 UTC+1 schrieb Hossain Mohammed Shoaib:
this is the line i don't understand|
adb push application.zip /system/b2g/webapps/launcher.gaiamobile.org/application.zip 
how to write  

On Fri, Jan 11, 2019 at 6:57 PM Hossain Mohammed Shoaib <hossainmoha...@gmail.com> wrote:
i'll try and inform now

On Fri, Jan 11, 2019 at 6:57 PM John-David Deubl <struk...@gmail.com> wrote:
http://adbshell.com/commands/adb-push

I think you have to specify source and destination 

Am Freitag, 11. Januar 2019 12:26:45 UTC+1 schrieb Hossain Mohammed Shoaib:

Screenshot_3.png

Hi Sylvain 
i've read and replaced shortcuts
But here is problem
i am using windows 10
waiting for your response ,

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.

John-David Deubl

unread,
Jan 11, 2019, 8:13:30 AM1/11/19
to comp.mobile.nokia.8110
Do you have root access to your phone?


Am Freitag, 11. Januar 2019 14:07:32 UTC+1 schrieb Hossain Mohammed Shoaib:
yes now showing that
Screenshot_4.png

On Fri, Jan 11, 2019 at 7:05 PM John-David Deubl <struk...@gmail.com> wrote:
do you downloaded with adb pull the application.zip file ?

Am Freitag, 11. Januar 2019 14:01:30 UTC+1 schrieb Hossain Mohammed Shoaib:
this is the line i don't understand|
adb push application.zip /system/b2g/webapps/launcher.gaiamobile.org/application.zip 
how to write  

On Fri, Jan 11, 2019 at 6:57 PM Hossain Mohammed Shoaib <hossainmohammedshoaib01@gmail.com> wrote:
i'll try and inform now

On Fri, Jan 11, 2019 at 6:57 PM John-David Deubl <struk...@gmail.com> wrote:
http://adbshell.com/commands/adb-push

I think you have to specify source and destination 

Am Freitag, 11. Januar 2019 12:26:45 UTC+1 schrieb Hossain Mohammed Shoaib:

Screenshot_3.png

Hi Sylvain 
i've read and replaced shortcuts
But here is problem
i am using windows 10
waiting for your response ,

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:14:19 AM1/11/19
to John-David Deubl, comp.mobile.nokia.8110
none

To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/2f55f97d-24bf-43ec-9a69-d40d044d44de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:14:40 AM1/11/19
to John-David Deubl, comp.mobile.nokia.8110
that means it not work?

John-David Deubl

unread,
Jan 11, 2019, 8:18:09 AM1/11/19
to comp.mobile.nokia.8110
I think only with root access is it possible to edit files in /system/


Am Freitag, 11. Januar 2019 14:14:40 UTC+1 schrieb Hossain Mohammed Shoaib:
that means it not work?

none

To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/2f55f97d-24bf-43ec-9a69-d40d044d44de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

Luxferre

unread,
Jan 11, 2019, 8:18:46 AM1/11/19
to comp.mobile.nokia.8110
You have to have substituted adbd (patched into boot or recovery partition) to have root ADB access for this to work.


On Friday, January 11, 2019 at 3:14:40 PM UTC+2, Hossain Mohammed Shoaib wrote:
that means it not work?

none

To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/2f55f97d-24bf-43ec-9a69-d40d044d44de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahackers+unsubscribe@googlegroups.com.

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:24:02 AM1/11/19
to Luxferre, comp.mobile.nokia.8110
So i can't change anything..😖😖😖😖😖😖😖😖
i've only OmniSD safer mode v13
however thanks 

John-David Deubl
and dear Luxferre



On Fri, Jan 11, 2019 at 7:18 PM Luxferre <subor...@gmail.com> wrote:
You have to have substituted adbd (patched into boot or recovery partition) to have root ADB access for this to work.

On Friday, January 11, 2019 at 3:14:40 PM UTC+2, Hossain Mohammed Shoaib wrote:
that means it not work?

none

To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/f1015d64-1d61-4198-8ab1-3d3ab971a1e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/2f55f97d-24bf-43ec-9a69-d40d044d44de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/afaf9cd3-741f-4a55-9177-369563d12ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

To post to this group, send email to banana...@googlegroups.com.

Hossain Mohammed Shoaib

unread,
Jan 11, 2019, 8:28:17 AM1/11/19
to Luxferre, comp.mobile.nokia.8110
i've a question when i install a app
where it located like pre-installed 
system/b2g/webapps

speeduploop

unread,
Jan 11, 2019, 8:38:21 AM1/11/19
to comp.mobile.nokia.8110
For adb-pull directly from those path you need 'adb root' (patched adb / adb-insecure) -- but telnet-backdoor works indirectly.
--> copy file to a 'pullable' folder like /data/local/tmp or copy it to sdcard...

Sylvain D

unread,
May 4, 2019, 2:47:31 PM5/4/19
to comp.mobile.nokia.8110
 
 Where are the shortcuts icons located and how to add custom?
 

perry

unread,
May 4, 2019, 3:08:17 PM5/4/19
to comp.mobile.nokia.8110
i tried in adb shell with 
find / -name "*wifi*"

but nothing
do have WebIde installed ? maybe with the debugger you can see the path of the icon

Sylvain D

unread,
May 4, 2019, 3:26:27 PM5/4/19
to comp.mobile.nokia.8110
Gerda doesn't allow me to use webide for now!

Also I can't change the 'title' : blank instead of my custom title

I Understand I Exist

unread,
May 4, 2019, 6:16:34 PM5/4/19
to comp.mobile.nokia.8110
Dude, add a shortcut in the menu for the launcher app then use the app to do whatever, its way simpler to creat shortcuts in an app rather than in the whole system

Lexa Relloem

unread,
May 5, 2019, 5:45:51 AM5/5/19
to comp.mobile.nokia.8110
customized shortcuts are great, this should be integrated in coming firmwares. 
until then and for the non-techies here, is it somehow possible to have an app doing this ?

Sylvain D

unread,
May 7, 2019, 5:55:46 PM5/7/19
to comp.mobile.nokia.8110
Very funny,
 now that I have replaced wifi.enable and data.enable shortcuts toggles 
by wifi.tether.enable and usb.tether.enable
I can have both tethering methods to work simultaneously!

I have also a shortcut from desktop : arrowright will open custom-launcher, which is very nice!

Arindam Biswas

unread,
May 12, 2019, 1:47:36 PM5/12/19
to comp.mobile.nokia.8110
That should be pretty useful. Could you give me a rough idea of what you did to make arrowright open custom-launcher and share your app.bundle.js from launcher.gaiamobile.org?

Sylvain D

unread,
May 12, 2019, 8:34:11 PM5/12/19
to comp.mobile.nokia.8110
A bit after line 4600 of app.bundle.js, I copied the function to give you an example : 

{
                key: "onKeyDown",
                value: function(e) {
                    var t = this;
                    if (this.mcc = I.default.getDataMcc(), this.simmcc = I.default.getSimmcc(), "complete" === document.readyState && !b.default.query("LaunchStore.isLaunching")) {
                        var n = e.key;
                        if (!this._longPressTimer) {
                            switch (n) {
                                case "Call":
                                    return void E.default.launch("manifestURL", "app://communications.gaiamobile.org/manifest.webapp");
                                case "SoftLeft":
                                    E.default.launch("iac", "notice");
                                case "Enter":
                                    this.simmcc ? "460" !== this.simmcc && "250" !== this.simmcc || b.default.request("openSheet", "appList") : "460" !== this.mcc && "250" !== this.mcc || b.default.request("openSheet", "appList");
                                    break;
                                case "SoftRight":
                                    return void b.default.request("openSheet", "instantSettings")
                            }
                            this._longPressTimer = setTimeout(function() {
                                switch (t.clearLongPressTimer(), t._longPressActionTriggered = !0, n) {
                                    case "ArrowUp":
                                        S.default.toggle();
                                        break;
                                         case "ArrowLeft":
                                    return void E.default.launch("manifestURL", "app://email.gaiamobile.org/manifest.webapp");
                                    break;
                                    case "ArrowDown":
                                    return void E.default.launch("manifestURL", "app://contact.gaiamobile.org/manifest.webapp");
                                     break;
                                    case "ArrowRight":
                                    return void E.default.launch("manifestURL", "app://custom.launcher.org/manifest.webapp");
                                    break;

                                    case "Enter":
                                        t.simmcc ? "460" !== t.simmcc && "250" !== t.simmcc && I.default.apps.some(function(e) {
                                            "Assistant" === e.manifest.name && e.launch()
                                        }) : "460" !== t.mcc && "250" !== t.mcc && I.default.apps.some(function(e) {
                                            "Assistant" === e.manifest.name && e.launch()
                                        });
                                        break;
                                    default:
                                        t._longPressActionTriggered = !1
                                }
                            }, this.longPressDuration)
                        }
                    }
                }
            }, 


speeduploop

unread,
May 12, 2019, 8:48:33 PM5/12/19
to comp.mobile.nokia.8110
Interesting... seems that the app-drawer and google-assistant isn't allowed for chinese or russian SIMs... ;)

Arindam Biswas

unread,
May 13, 2019, 4:22:56 AM5/13/19
to comp.mobile.nokia.8110
Thanks! 👍

Arindam Biswas

unread,
May 15, 2019, 9:27:23 AM5/15/19
to comp.mobile.nokia.8110
Do you know what
 case "ArrowUp":
                                       S.default.toggle();
                                       break;
does? What is the S object?

Arindam Biswas

unread,
May 15, 2019, 9:48:31 AM5/15/19