Skip to content

Instantly share code, notes, and snippets.

@rightisleft
Created March 7, 2016 21:54
Show Gist options
  • Save rightisleft/0bc60ca3eaf18dd9c9cb to your computer and use it in GitHub Desktop.
Save rightisleft/0bc60ca3eaf18dd9c9cb to your computer and use it in GitHub Desktop.
➜ augmate-installer git:(master) ✗ node test
adb,devices
sudo requires your password: #node-sudo-passwd#
List of devices attached
016837F61701000B device
Child exited with code 0
x[0] is: 016837F61701000B
x[1] is: device
x[0] is: true
x[1] is: true
adb,reboot-bootloader
Child exited with code 0
Will wait 20 seconds for fastboot to turn on:
Seconds Elpased: 0
sudo,fastboot,devices
Child exited with code 0
isFastBootDeviceAttached std:
x[1] is: false
x[0] is: false
Seconds Elpased: 1
sudo,fastboot,devices
Child exited with code 0
isFastBootDeviceAttached std:
x[1] is: false
x[0] is: false
Seconds Elpased: 2
sudo,fastboot,devices
Child exited with code 0
isFastBootDeviceAttached std:
x[1] is: false
x[0] is: false
Seconds Elpased: 3
sudo,fastboot,devices
Child exited with code 0
isFastBootDeviceAttached std:
x[1] is: false
x[0] is: false
Seconds Elpased: 4
sudo,fastboot,devices
016837F61701000B fastboot
Child exited with code 0
isFastBootDeviceAttached std: 016837F61701000B fastboot
x[1] is: true
x[0] is: true
Fastboot Found...
ANDROID_PRODUCT_OUT=/Users/jackmurphy/projects/augmate/augmate-installer/images/glass/augmate,fastboot,-w,flashall
Erase successful, but not automatically formatting.
File system type not supported.
Erase successful, but not automatically formatting.
File system type not supported.
--------------------------------------------
Bootloader Version...: 0.5
Baseband Version.....:
Serial Number........: 016837F61701000B
--------------------------------------------
checking product...
OKAY [ 0.002s]
sending 'boot' (5494 KB)...
OKAY [ 0.238s]
writing 'boot'...
OKAY [ 0.916s]
sending 'recovery' (6192 KB)...
OKAY [ 0.268s]
writing 'recovery'...
OKAY [ 1.044s]
sending 'system' (612988 KB)...
OKAY [ 25.733s]
writing 'system'...
OKAY [ 75.393s]
erasing 'userdata'...
OKAY [ 1.194s]
erasing 'cache'...
OKAY [ 0.302s]
rebooting...
finished. total time: 105.103s
Child exited with code 0
AUGMATE: Flashing Done
Will wait 600 seconds for ADB to turn on:
Tick Count: 0
adb wait-for-device && adb devices
Tick Count: 1
Tick Count: 2
Tick Count: 3
Tick Count: 4
Tick Count: 5
Tick Count: 6
Tick Count: 7
Tick Count: 8
Tick Count: 9
Tick Count: 10
Tick Count: 11
Tick Count: 12
Tick Count: 13
Tick Count: 14
Tick Count: 15
Tick Count: 16
Tick Count: 17
Tick Count: 18
Tick Count: 19
Tick Count: 20
Tick Count: 21
Tick Count: 22
Tick Count: 23
Tick Count: 24
Tick Count: 25
Tick Count: 26
Tick Count: 27
Tick Count: 28
Tick Count: 29
Tick Count: 30
Tick Count: 31
Tick Count: 32
Tick Count: 33
Tick Count: 34
Tick Count: 35
Tick Count: 36
Tick Count: 37
Tick Count: 38
Tick Count: 39
Tick Count: 40
Tick Count: 41
Tick Count: 42
Tick Count: 43
Tick Count: 44
Tick Count: 45
Tick Count: 46
Tick Count: 47
Tick Count: 48
Tick Count: 49
Tick Count: 50
Tick Count: 51
Tick Count: 52
Tick Count: 53
Tick Count: 54
Tick Count: 55
Tick Count: 56
Tick Count: 57
Tick Count: 58
Tick Count: 59
Tick Count: 60
Tick Count: 61
Tick Count: 62
Tick Count: 63
Tick Count: 64
Tick Count: 65
Tick Count: 66
Tick Count: 67
Tick Count: 68
Tick Count: 69
Tick Count: 70
Tick Count: 71
Tick Count: 72
Tick Count: 73
Tick Count: 74
Tick Count: 75
Tick Count: 76
Tick Count: 77
Tick Count: 78
Tick Count: 79
Tick Count: 80
Tick Count: 81
Tick Count: 82
Tick Count: 83
Tick Count: 84
Tick Count: 85
Tick Count: 86
Tick Count: 87
Tick Count: 88
Tick Count: 89
Tick Count: 90
Tick Count: 91
Tick Count: 92
Tick Count: 93
Tick Count: 94
Tick Count: 95
Tick Count: 96
Tick Count: 97
Tick Count: 98
Tick Count: 99
Tick Count: 100
Tick Count: 101
Tick Count: 102
Tick Count: 103
Tick Count: 104
Tick Count: 105
Tick Count: 106
Tick Count: 107
Tick Count: 108
Tick Count: 109
Tick Count: 110
Tick Count: 111
Tick Count: 112
Tick Count: 113
Tick Count: 114
Tick Count: 115
DeviceOut: List of devices attached
016837F61701000B device
adb,shell,service,check,package
sudo requires your password: #node-sudo-passwd#
Service package: found
Child exited with code 0
PackageOut: Service package: found
x[0] is: 016837F61701000B
x[1] is: device
x[0] is: true
x[1] is: true
adb,install,-r,/Users/jackmurphy/projects/augmate/augmate-installer/apks/configuration.apk
5355 KB/s (5664055 bytes in 1.032s)
pkg: /data/local/tmp/configuration.apk
Success
Child exited with code 0
AUGMATE: APKS INSTALLED
deviceID: 016837F61701000B
AUGMATE: SEED COPIED
pushed PushTransfer {
_stack: [],
stats: { bytesTransferred: 0 },
_events: { cancel: [Function], end: [Function] },
_eventsCount: 2 }
NODE SENT: am broadcast -a com.augmate.updater.LOCAL_UPDATE -n com.augmate.updater/.receivers.LocalUpdateReceiver -f32 -e seed_path seed.json
[016837F61701000B] Broadcasting: Intent { act=com.augmate.updater.LOCAL_UPDATE flg=0x20 cmp=com.augmate.updater/.receivers.LocalUpdateReceiver (has extras) } sticky=false
Broadcast completed: result=0
AUGMATE: PROVISION INTENT SENT
Start Listening to Logcat Out
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
I/StatusPoster( 1079): Received trigger to use local provisioning.
I/StatusPoster( 1079): Starting local provisioning process
I/StatusPoster( 1079): seed.json
I/StatusPoster( 1079): {"environment":"4","provisioning_token":"55555217283810","ssid":"bgc-wireless","password":"335madison","type":"wpa"}
I/StatusPoster( 1079): Seed file deleted
I/StatusPoster( 1079): From Wifi Admin: Reconnecting to wifi
I/StatusPoster( 1079): From Wifi Admin: Should be connected
I/StatusPoster( 1079): Received seed file
I/StatusPoster( 1079): Token: 55555217283810
I/StatusPoster( 1079): Environment: 4
I/StatusPoster( 1079): Provisioning device using environment=4, token=55555217283810, wifi-mac-address=f8:8f:ca:11:24:a6
I/StatusPoster( 1079): API gave us deviceId=61, organizationId=1
I/StatusPoster( 1079): PROVISION SUCCESS
I/StatusPoster( 1079): PROVISION DEVICE ID 61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment