Changes

Jump to: navigation, search

User Services/Try FMD

116 bytes added, 21:46, 10 July 2014
no edit summary
== Get Find My Device Working ==
=== FxOS 2.0 Aurora ===2.0 is set to work with stage servers till 7/9/2014 1. set fxa to use stage serversdownload this: https://gist.github.com/edmoz/5596162  $ chmod +x modPref.sh $ ./modPref.sh pull edit prefs.js and add this to the bottom on it’s own line:  user_pref("identity.fxaccounts.auth.uri", "https://api-accounts.stage.mozaws.net/v1"); 2. Run this  $ ./modPref.sh push prefs.js  3. on Flame, sign into Fxa, verify email if needed, the verify link should be to  https://accounts.stage.mozaws.net/v1/verify_email?…  Note: even if you have an existing account before, you may not have created one in the Stage Database. Just create it again. 4. sign into: https://fmd.stage.mozaws.net if you look in console i see and it correctly finds my location:"device:updated" "2731a65040a15a6080c6b48d4231b4d9" Object { hasPasscode: undefined, latitude: 37.xx, longitude: -122.xx, altitude: 0, located: true, time: Date 2014-06-20T21:48:46.000Z } "{"Latitude":37.xx,"Longitude":-122.23120187,"Altitude":0,"Time":1403300926000,"Cmd":{"t":{"la":37.xx,"lo":-122.xx,"ok":true,"ti":1.403300926e+12}}}" device.js:50 ring, lost mode, erase all work as expected. === FxOS 2.1 Master ===As of Requirement: build flashed after 15:36 PST - 7/910/2014
# On FxOS, goto Settings > Find My Device
# sign in and with existing Firefox Account or create a new one, then enable FMD
# goto https://find.firefox.com
# sign in with the same useras step #2# It should find you.locate your device
== End 2 End Test ==
Note: i haven’t been able to figure out if this can be done at runtime editable file vs build then flash. I wasn’t able to find any files with the fmd endpoint URI
==== Set FMD and Gaia URLS ====
$ git clone https://github.com/mozilla-b2g/gaia.git
$ cd gaia
https://github.com/6a68/gaia/commit/00ec611f5d1dfc3f86bf1c139e460aae178f3d08
$ make reset-gaia
 
If you want to confirm the URLs are written correctly to your phone.
on desktop unzip and view
js/config.js
 
==== Set Firefox Account URL ====
 
1. set fxa to use stage servers
download this: https://gist.github.com/edmoz/5596162
 
$ chmod +x modPref.sh
$ ./modPref.sh pull
 
edit prefs.js and add this to the bottom on it’s own line:
 
user_pref("identity.fxaccounts.auth.uri", "https://api-accounts.stage.mozaws.net/v1");
 
2. Run this
 
$ ./modPref.sh push prefs.js
 
 
3. on Flame, sign into Fxa, verify email if needed, the verify link should be to
 
https://accounts.stage.mozaws.net/v1/verify_email?…
 
Note: even if you have an existing account before, you may not have created one in the Stage Database. Just create it again.
 
4. sign into:
 
https://fmd.stage.mozaws.net
 
if you look in console i see and it correctly finds my location:
"device:updated" "2731a65040a15a6080c6b48d4231b4d9" Object { hasPasscode: undefined, latitude: 37.xx, longitude: -122.xx, altitude: 0, located: true, time: Date 2014-06-20T21:48:46.000Z } "{"Latitude":37.xx,"Longitude":-122.23120187,"Altitude":0,"Time":1403300926000,"Cmd":{"t":{"la":37.xx,"lo":-122.xx,"ok":true,"ti":1.403300926e+12}}}" device.js:50
 
ring, lost mode, erase all work as expected.
== Test Servers ==
Confirm
964
edits

Navigation menu