MCPcopy Create free account
hub / github.com/danielpaulus/quicktime_video_hack / activate

Function activate

main.go:317–329  ·  view source on GitHub ↗

This command is for testing if we can enable the hidden Quicktime device config

(device screencapture.IosDevice)

Source from the content-addressed store, hash-verified

315
316// This command is for testing if we can enable the hidden Quicktime device config
317func activate(device screencapture.IosDevice) {
318 log.Debugf("Enabling device: %v", device)
319 var err error
320 device, err = screencapture.EnableQTConfig(device)
321 if err != nil {
322 printErrJSON(err, "Error enabling QT config")
323 return
324 }
325
326 printJSON(map[string]interface{}{
327 "device_activated": device.DetailsMap(),
328 })
329}
330
331func deactivate(device screencapture.IosDevice) {
332 log.Debugf("Disabling device: %v", device)

Callers 1

mainFunction · 0.85

Calls 4

EnableQTConfigFunction · 0.92
printErrJSONFunction · 0.85
printJSONFunction · 0.85
DetailsMapMethod · 0.80

Tested by

no test coverage detected