- Follow instructions to install the prebuilt version for rpi from here: https://wiki.mozilla.org/Hacking_b2g_on_Raspberry_Pi
- Boot rpi and connect to wired network. Find the IP it's registered via
nmap --open -p 5555 192.168.2.*
- Connect over adb: (f.e.)
adb connect 192.168.2.100
- Checkout jan-os/gecko-dev, rpi branch; and use it as your
GECKO_PATH
- Think this only works on Ubuntu by the way, but:
- In B2G, ./config.sh rpi && ./build.sh gecko && ./flash.sh gecko
- Checkout jan-os/janos, gpio branch
- Run
make reset-phone
adb logcat
to see if flashing succeeded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div { | |
border-radius: 50%; | |
position: absolute; | |
width: 100px; | |
height: 100px; | |
background: linear-gradient(90deg, orange, blue) | |
} | |
div.move-out { | |
animation: 10s weird-move-out infinite; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pin = '0000'; | |
var icc = navigator.mozIccManager.getIccById(navigator.mozIccManager.iccIds[0]); | |
if (icc.cardState === 'pinRequired') { | |
var req = icc.unlockCardLock({ lockType: 'pin', pin: pin }); | |
req.onsuccess = function() { | |
console.log('pin unlocked'); | |
var r2 = icc.setCardLock({ lockType: 'pin', pin: pin, enabled: false }); | |
r2.onsuccess = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dom/apps/AppsUtils.jsm b/dom/apps/AppsUtils.jsm | |
index b44c11e..edc5caa 100644 | |
--- a/dom/apps/AppsUtils.jsm | |
+++ b/dom/apps/AppsUtils.jsm | |
@@ -33,7 +33,7 @@ this.EXPORTED_SYMBOLS = | |
["AppsUtils", "ManifestHelper", "isAbsoluteURI", "mozIApplication"]; | |
function debug(s) { | |
- //dump("-*- AppsUtils.jsm: " + s + "\n"); | |
+ dump("-*- AppsUtils.jsm: " + s + "\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.mozBluetooth.defaultAdapter.startLeScan([]).then(handle => { | |
console.log('Start scanning', handle); | |
handle.ondevicefound = e=> { | |
var record = parseScanRecord(e.scanRecord); | |
if (record) { | |
console.log('Found an iBeacon', record.uuid, record.major, record.minor, e.rssi); | |
} | |
} | |
setTimeout(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var server = net.createServer(function(socket) { | |
console.log('Listening yo'); | |
socket.on('data', function(data) { | |
if (data.length === 1 && data[0] === 0x00) { | |
return; // some sort of ping? | |
} | |
// so all messages end with 0x00 so skip that | |
var obj = data.toString('utf8', 0, data.length - 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef EMSCRIPTEN_MMAP_H_ | |
#define EMSCRIPTEN_MMAP_H_ | |
#ifndef EMSCRIPTEN | |
#define define_mmap_write(T, name) \ | |
void mmap_write_##name(void* map, size_t index, T value) { \ | |
((T*)map)[index] = value; \ | |
} | |
#define define_mmap_read(T, name) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert('hoi'); | |
alert(1+1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hello this is a test | |
/// <reference path="jquery-1.4.1.js" /> | |
/* | |
* jQuery plugin: zoekbox - v1.0.0 | |
* (c) 2010-2011 funda real estate <jan@funda.nl> - http://www.funda.nl | |
* | |
* This is the core library for EVERYTHING that uses the zoekbox; | |
* either geo, nieuwbouw-projects, or even the names of all funda employees | |
* therefore NEVER EVER add anything that is implementation-specific to this code. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hoi not authenticated |
OlderNewer