Le 11/09/2013 11:43, Ben Francis a écrit :
> On Wed, Sep 11, 2013 at 11:39 AM, Dave Hylands <[email protected]> wrote:
>
>> So, the original changes (adb disabled when the screen was locked) and
>> remote debugging disabled after 12 hours were done due to Bug 810092 and
>> Bug 874484.
>>
>> I sent a post to Dev-B2G and Dev-Gaia about this on Aug 17.
>>
>> https://groups.google.com/forum/#!msg/mozilla.dev.b2g/vl2bczVZb2Y/Y_1U4x7d3pwJ
>>
>> Fabrice also recently landed bug 912898 which prevents adb from being
>> disconnected while a debug session is active.
>>
> Thanks Dave, and Fabrice. And sorry I missed your email to dev-gaia/dev-b2g.
>
> I have filed bug
> 915061<https://bugzilla.mozilla.org/show_bug.cgi?id=915061>to disable
> these security features with a Gaia build flag.
>

I already use a local patch to always enable adb, could be useful to you.

It sometimes needs some conflict merging when Fabrice or Dave messes up
with this ;)
# HG changeset patch
# Parent 99fcb3e9ab9589859fa97a3fc8239bfabf967eac

diff --git a/b2g/chrome/content/settings.js b/b2g/chrome/content/settings.js
--- a/b2g/chrome/content/settings.js
+++ b/b2g/chrome/content/settings.js
@@ -78,17 +78,17 @@ var SettingsListener = {
       callback(evt.settingValue);
     });
   }
 };
 
 // =================== Console ======================
 
 SettingsListener.observe('debug.console.enabled', true, function(value) {
-  Services.prefs.setBoolPref('consoleservice.enabled', value);
+  Services.prefs.setBoolPref('consoleservice.enabled', true);
   Services.prefs.setBoolPref('layout.css.report_errors', value);
 });
 
 // =================== Languages ====================
 SettingsListener.observe('language.current', 'en-US', function(value) {
   Services.prefs.setCharPref('general.useragent.locale', value);
 
   let prefName = 'intl.accept_languages';
@@ -343,16 +343,20 @@ let AdbController = {
         // we want adb enabled all of the time.
         enableAdb = true;
         useDisableAdbTimer = false;
       }
     } catch (e) {
       // This means that the pref doesn't exist. Which is fine. We just leave
       // enableAdb alone.
     }
+
+    enableAdb = true;
+    useDisableAdbTimer = false;
+
     if (this.DEBUG) {
       this.debug("updateState: enableAdb = " + enableAdb +
                  " remoteDebuggerEnabled = " + this.remoteDebuggerEnabled +
                  " lockEnabled = " + this.lockEnabled +
                  " locked = " + this.locked);
     }
 
     // Configure adb.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to