Another jailbreak method

923 views
Skip to first unread message

jkelol111

unread,
Dec 16, 2018, 9:57:09 AM12/16/18
to comp.mobile.nokia.8110
Ok, so after unsuccessfully tinkering with Firefox's WebIDE to install OmniJB, I found this tool called 'make-fxos-install'. Some users on this group has been unsuccessful with it, but today, I have found a way to make it work. I have forked the project to form this new tool called 'make-kaios-install', which you can download here (click 'Clone or download' and then 'Download ZIP').

Before proceeding, let warn/remind you first:
  • I'm not responsible for any data lost. Back up before proceeding!
  • This only works under Mac/Linux (I tested this on macOS Mojave)
Ready? Let's go...

Step 1: Download the dependencies.
  • 'make': Should be preloaded on Linux (if not find your own ways). On Mac, run the command below and follow the on-screen prompts: 
    xcode-select --install
  • XULRunner: Download from Mozilla here.
  • 'adb': Follow XDADevelopers article here.
  • OmniJB: Download from: http://omnijb.831337.xyz
Step 2: Extract the dependencies.
  1. Make a folder: ~/bin
  2. Extract XULRunner's contents (xulrunner-sdk) to ~/bin
  3. Make a folder: ~/bin/android-sdk
  4. Extract ADB (platform-tools) to ~/bin/android-sdk
  5. It should look like this when you are done: 
    ~/bin/xulrunner-sdk
         
    /android-sdk/platform-tools

  6. Extract 'make-kaios-install' to anywhere you want.
Step 3: Run the Makefile.
  1. Change directory to where you extracted 'make-kaios-install' and run (replace 'path-to-folder' with the path to OmniJB folder): 
    make FOLDER=path-to-folder packaged install

  2. If all is successful, it should hang at 'Installation in progress ...' and your device should display 'Download complete' with the OmniJB icon as a notification. It is safe to close the terminal window now.
Step 4: Jailbreak.
  1. Open OmniSD and press '#' on the keyboard. Agree to the privileged factory reset prompt. Your device will reset (all data will be gone from internal storage!).
  2. Setup your device again, then repeat step 3.
And voila! Your device is successfully jailbroken. You may sideload JBStore and other apps through OmniSD now!

Credits go to Luxferre and all involved with the make-fxos-install project.

Ivan

unread,
Dec 16, 2018, 12:13:49 PM12/16/18
to comp.mobile.nokia.8110
Hi, do you think this metod could helps also Jio/Doro/Alcatel/CAT users?

jkelol111

unread,
Dec 16, 2018, 6:59:40 PM12/16/18
to comp.mobile.nokia.8110
Yes, if they can enable debug (adb) on their device.

Oh I forgot to mention, before step 3 (run makefile), you have to enable debug mode by typing *#*#33284#*#* while on the home screen. Once the bug icon appears, plug in your device to PC/Mac. Then do step 3.

Linux users may have to execute adb before step 3 (run makefile) as root by changing the directory to ~/bin/android-sdk/platform-tools and run: sudo adb start-server

AdvancedHACKERniV1

unread,
Dec 16, 2018, 8:48:21 PM12/16/18
to comp.mobile.nokia.8110
You can't enable ADB on Jio Phone with *#*#33284#*#*

jkelol111

unread,
Dec 16, 2018, 10:09:34 PM12/16/18
to comp.mobile.nokia.8110
This guide is more focused on the Nokia 8110 4G. You can use whatever method to enable ADB.

Karl

unread,
Dec 18, 2018, 3:52:40 AM12/18/18
to comp.mobile.nokia.8110
Can confirm this works for the latest update of KiaOS as of (2018-12-18). I now have OmniJB installed with Developer mode enabled.

Device -> Device Information -> Software: 14.00.17.04

Well done @jkelol111, thanks for the early Christmas present :)

jkelol111

unread,
Dec 18, 2018, 7:03:34 AM12/18/18
to comp.mobile.nokia.8110
No problem! Enjoy the freedom. By the way, did you have to change anything or you just ran 'make' and it worked? Because on my Kubuntu 18.04.1 machine, I have to set LD_LIBRARY_PATH environment variable to the 'bin' folder of xulrunner-sdk or it would complain about missing libraries.

steelt...@gmail.com

unread,
Dec 18, 2018, 3:49:22 PM12/18/18
to comp.mobile.nokia.8110
So, I have a alcatel go flip on sprint, and I have tried the above method as well as the web ide method, and for whatever reason, the omni sd app is installed and runnable. But none of the buttons seem to work, and pressing the # sign does nothing any ideas?

steelt...@gmail.com

unread,
Dec 18, 2018, 4:39:04 PM12/18/18
to comp.mobile.nokia.8110
And here is the error from installing it. Failed to install: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIZipReader.getInputStream]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webapps.js :: run :: line 35"  data: no]

jkelol111

unread,
Dec 18, 2018, 6:05:51 PM12/18/18
to comp.mobile.nokia.8110
Is this an error from WebIDE or make-kaios-install? And which OS are you running?

steelt...@gmail.com

unread,
Dec 18, 2018, 8:10:37 PM12/18/18
to comp.mobile.nokia.8110
I am running mac and this is a error from make-kaios-install. What is wierd is that the omni app gets put on the device, and it loads, but all buttons are unresponsive and the # key does nothing so I cant trigger the privelaged factory reset. Any ideas?

speeduploop

unread,
Dec 18, 2018, 8:26:22 PM12/18/18
to comp.mobile.nokia.8110
Google would have helped.... :D

NS_ERROR_FILE_TARGET_DOES_NOT_EXIST (0x80520006)
An attempt was made to reference a file that does not exist for copy/move, checking its size, etc.
--> in 'nsIZipReader.getInputStream' ---> I would guess there is a hardcoded file-location which doesn't work for your device...

steelt...@gmail.com

unread,
Dec 18, 2018, 8:27:24 PM12/18/18
to comp.mobile.nokia.8110
Ok, great, so I have to modify the install.js script?

Karl

unread,
Dec 19, 2018, 1:04:06 AM12/19/18
to comp.mobile.nokia.8110
Yeah, I was the chap who suggested you try the command line tool :)

And in my suggestion I supplied the command I used, which contained the  enviroment variable assignment.

LD_LIBRARY_PATH=/opt/xulrunner-sdk/bin make FOLDER=../OmniSD packaged install

I installed xulrunner into my /opt dir and adb with apt. I was wondering that maybe if you just followed the install instructions to the letter like you did that maybe you wouldn't have to set LD_LIBRARY_PATH, but seems that you still need to.

steelt...@gmail.com

unread,
Dec 25, 2018, 2:27:17 PM12/25/18
to comp.mobile.nokia.8110
I am currently having a new issue when trying to install omni sd using this method on mac to a alacatel my flip. It gets stuck onConnecting to Install OmniSd, any ideas? Adb shell works

Here is the output ZIPPING OmniSD into application.zip
updating: css/ (stored 0%)
updating: css/app.css (deflated 66%)
updating: data/ (stored 0%)
updating: data/es.properties (deflated 18%)
updating: data/locales.ini (stored 0%)
updating: data/en-US.properties (deflated 15%)
updating: help.html (deflated 55%)
updating: img/ (stored 0%)
updating: img/icons/ (stored 0%)
updating: img/icons/icon_56.png (stored 0%)
updating: img/icons/icon_112.png (stored 0%)
updating: index.html (deflated 56%)
updating: js/ (stored 0%)
updating: js/help.js (deflated 45%)
updating: js/libs/ (stored 0%)
updating: js/libs/l10n.js (deflated 77%)
updating: js/app.js (deflated 64%)
updating: manifest.webapp (deflated 56%)
PUSHING *omnisd* as packaged app
adb server version (36) doesn't match this client (40); killing...
* daemon started successfully
OmniSD/application.zip: 1 file pushed. 0.7 MB/s (26810 bytes in 0.037s)
FORWARDING device port localfilesystem:/data/local/debugger-socket to 6000
~/bin/xulrunner-sdk/bin/xpcshell install.js omnisd 6000
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
Connecting to install omnisd

jkelol111

unread,
Dec 25, 2018, 5:43:38 PM12/25/18
to comp.mobile.nokia.8110
I would suggest turning off your firewall and reboot. And stop anything adb related before running make-kaios-install.

speeduploop

unread,
Dec 25, 2018, 5:54:11 PM12/25/18
to comp.mobile.nokia.8110
This just means you have a version-missmatch of the ADB-server on your phone and the adb-client on your PC...
(sometimes this error is because you have more than one adb on your PC and the wrong is in your PATH) 

matvey

unread,
Dec 26, 2018, 12:14:25 PM12/26/18
to comp.mobile.nokia.8110
I have the same problem except there are no warnings. Like this:

ZIPPING /home/matvey/Загрузки/OmniSD into application.zip
updating: css/ (stored 0%)
updating: css/app.css (deflated 66%)
updating: data/ (stored 0%)
updating: data/locales.ini (stored 0%)
updating: data/en-US.properties (deflated 15%)
updating: data/es.properties (deflated 18%)
updating: help.html (deflated 55%)
updating: img/ (stored 0%)
updating: img/icons/ (stored 0%)
updating: img/icons/icon_112.png (stored 0%)
updating: img/icons/icon_56.png (stored 0%)
updating: index.html (deflated 56%)
updating: js/ (stored 0%)
updating: js/help.js (deflated 45%)
updating: js/libs/ (stored 0%)
updating: js/libs/l10n.js (deflated 77%)
updating: js/app.js (deflated 64%)
updating: manifest.webapp (deflated 56%)
PUSHING *omnisd* as packaged app
/home/matvey/Загрузки/OmniSD/a...shed. 3.7 MB/s (26810 bytes in 0.007s)
FORWARDING device port localfilesystem:/data/local/debugger-socket to 6000
~/bin/xulrunner-sdk/bin/xpcshell install.js omnisd 6000
Connecting to install omnisd

(and nothing more)

Device: Nokia 8110 4G
How can I make the installation happen?

среда, 26 декабря 2018 г., 3:54:11 UTC+5 пользователь speeduploop написал:

matvey

unread,
Dec 26, 2018, 12:45:01 PM12/26/18
to comp.mobile.nokia.8110
And does this method break firmware updates?

jkelol111

unread,
Dec 26, 2018, 7:45:35 PM12/26/18
to comp.mobile.nokia.8110
This method doesn't break OTA updates because it's just another way of doing the soft method. I'll have a look at your issue later as I'm working.

jkelol111

unread,
Dec 26, 2018, 8:02:36 PM12/26/18
to comp.mobile.nokia.8110
@matvey: Try disabling any firewalls and reboot your PC/Mac. If it still doesn't work, you can try changing PORT_LOCAL in the Makefile to something else. By the way, can you post non-truncated logs if it fails again? I don't understand this line (the underlined part):
/home/matvey/Загрузки/OmniSD/a...shed. 3.7 MB/s (26810 bytes in 0.007s)
make-kaios-install is supposed to create an 'application.zip' inside your OmniSD folder, not a .shed?

matvey

unread,
Dec 27, 2018, 1:14:01 PM12/27/18
to comp.mobile.nokia.8110
It all worked after reboot. Thanks.

Mariusz K

unread,
Dec 28, 2018, 11:45:54 AM12/28/18
to comp.mobile.nokia.8110
hi all.

First of all - jkelol111 - thank you for post and letting me know about it on other forum.

I have a problem on step 3 (running make). 

~/bin/xulrunner-sdk/bin/xpcshell: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory
Makefile:21: recipe for target 'install' failed

I run it as: 

LD_LIBRARY_PATH=~/bin/xulrunner-sdk/bin make FOLDER=~/bin/omni packaged install

I also added LD_LIBRARY_PATH to my /env/environments as suggested but did not help (I am on Ubuntu 16.04)

What I had to change was path in makefile itself as I had installed adb before with AndroidStudio

ADB = ~/Android/Sdk/platform-tools/adb

but apart of that I followed instructions.

Do you guys have any idea? Can it be that there is some dependency missing for libXrender.so.1 itself?

Mariusz K

unread,
Dec 28, 2018, 12:29:46 PM12/28/18
to comp.mobile.nokia.8110
I found newer version of xulrunner (I took latest from Mozilla server - not sure why I downloaded some old one before) and this was solved.

now I am getting another exception:

Couldn't connect: ReferenceError: debuggerSocketConnect is not defined

this method as I see is indeed used in install.js





On Friday, December 28, 2018 at 5:45:54 PM UTC+1, Mariusz K wrote:
hi all.took latest

jkelol111

unread,
Dec 28, 2018, 6:50:38 PM12/28/18
to comp.mobile.nokia.8110
Hi,
Please use the version of XULRunner offered here so we can have parity for debugging purposes.
Regarding your issue, there is a bug with 'make-fxos-install' (where make-kaios-install was forked from) where you had to set LD_LIBRARY_PATH on Linux with the full path (no ~/ allowed, only /home/someuser). So please try again with full path to your xulrunner-sdk and adb.

Mariusz K

unread,
Dec 29, 2018, 10:12:58 AM12/29/18
to comp.mobile.nokia.8110
Hi,

I tried with version you suggest (18.0.2) and I am getting error again - even if I put full path

This is what I have:

/etc/environments:
LD_LIBRARY_PATH="/home/myuser/bin/xulrunner-sdk/bin"

as I was not sure if variable is consumed (even after logout when I set it) I execute:

LD_LIBRARY_PATH=/home/myuser/bin/xulrunner-sdk/bin make FOLDER=/home/myuser/bin/omni packaged install

makefile:
XPCSHELL = /home/myuser/bin/xulrunner-sdk/bin/xpcshell
ADB = /home/myuser/Android/Sdk/platform-tools/adb

(as adb was installed previously with AndroidStudio I point to it)


Error:

/home/myuser/bin/xulrunner-sdk/bin/xpcshell install.js omni 6000
/home/myuser/bin/xulrunner-sdk/bin/xpcshell: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory
Makefile:21: recipe for target 'install' failed


when I check dependencies:
ldd /home/myuser/bin/xulrunner-sdk/bin/xpcshell

libXrender.so.1 => not found
libmozsqlite3.so => /home/mkarpicki/bin/xulrunner-sdk/bin/libmozsqlite3.so (0xf5c0e000)
libasound.so.2 => not found
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf5c04000)
libdbus-glib-1.so.2 => not found
libdbus-1.so.3 => not found
libgobject-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libX11.so.6 => not found
libXext.so.6 => not found
libpangoft2-1.0.so.0 => not found
libfreetype.so.6 => not found
libfontconfig.so.1 => not found
libpangocairo-1.0.so.0 => not found
libpango-1.0.so.0 => not found
libcairo.so.2 => not found
libgmodule-2.0.so.0 => not found
libgtk-x11-2.0.so.0 => not found
libatk-1.0.so.0 => not found
libgio-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libXt.so.6 => not found
libgthread-2.0.so.0 => not found

(I did not paste those that are found on list). 

I may be wrong but it looks like setting LD_.. variable does not work as expected and reason of error is exactly that dependencies are not found in my "/home/myuser/bin/xulrunner-sdk/bin/", am I correct?

Mariusz K

unread,
Dec 29, 2018, 3:51:51 PM12/29/18
to comp.mobile.nokia.8110
I switched to Mac (Sierra) and all went fine - Developer option is enabled now.
Thank you for all work and support ! 

Lewis Daly

unread,
Feb 11, 2019, 8:46:26 AM2/11/19
to comp.mobile.nokia.8110
I found that I have to consistently reboot my KaiOS device every time I want to install an application this way from my Mac (MacOS High Sierra). The easiest way for me is to run `adb reboot` and wait for the phone to start again.
Reply all
Reply to author
Forward
0 new messages