Skip to content

Instantly share code, notes, and snippets.

@conoro
Created August 10, 2020 11:31
Show Gist options
  • Save conoro/2108fa5a58b72ec45524067cc3b1e635 to your computer and use it in GitHub Desktop.
Save conoro/2108fa5a58b72ec45524067cc3b1e635 to your computer and use it in GitHub Desktop.
Setting up a KaiOS Dev Environment on Windows in August 2020

Horrendous list of deprecated, missing or old tools/files that you have to use to develop on KaiOS in 2020. This is how I got it working.

  • Install Firefox 59 from here: https://ftp.mozilla.org/pub/firefox/releases/59.0/win64/ in a non-standard location
  • Immediately go into Firefox Settings and disable automatic-updates or it'll get rid of version 59 after it restarts (you may have to do this several times)
  • Unzip ADB Tools to c:\platform-tools and add that to the Windows Path
  • Enable Developer mode on your phone "Device > Developer > Debugger > ADB and DevTools" if that menu is visible.
  • If Developer menu not visible, type the following on your phone: *#*#0574#*#*
  • And then go into the ADB setting that appears on the screen and enable it
  • Then type the following on your phone: *#*#33284#*#* to enable developer mode
  • Plug your phone into your PC with a USB cable and unlock the screen
  • Open a Command Prompt in Windows and type adb devices and hope fully it will list your phone
  • Install a missing Cert in Firefox by downloading it from Mozilla and then going to the Authorities tab of the Certificate Viewer in Firefox settings and importing the Cert
  • Download their sample app with git clone https://github.com/kaiostech/sample-vanilla.git
  • cd sample-vanilla
  • Edit package.json and remove the reference to kdeploy 🙄
  • npm install -g @filipe_x3/kdeploy
  • npm install
  • npm run build
  • In Firefox 59 launch Web Developer > WebIDE
  • Install the ADB Helper Add-On by Clicking the button
  • Close and re-open the WebIDE
  • Your phone should be listed
  • Click on it
  • Hopefully (if they haven't broken something else), you should be now connected to the phone
  • Click "Open Packaged App"
  • Browse to the build sub-directory of sample-vanilla
  • The sample To-Do app will be uploaded to the phone and should be visible on the screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment