Using /tools/hci/ from AOSP (make file is Android.mk.disabled) The Next CEO of Stack OverflowStop EditText from gaining focus at Activity startupHow do I make links in a TextView clickable?Passing additional variables from command line to makeIs there a way to get the source code from an APK file?ndk-gdb error: device does not support the application's targetted CPU ABIsHow to make debug build of specific module under AOSP tree?Building/installing Android Wear AOSPWhy is ADB unauthorised to debug my device on which I installed AOSP?AOSP not booting on Nexus 5Building module in Android Open Source Project

Multiple labels for a single equation

What's the best way to handle refactoring a big file?

What does "Its cash flow is deeply negative" mean?

How do scammers retract money, while you can’t?

How did people program for Consoles with multiple CPUs?

How do I reset passwords on multiple websites easily?

Can we say or write : "No, it'sn't"?

Are there any limitations on attacking while grappling?

How to prevent changing the value of variable?

Indicator light circuit

How to start emacs in "nothing" mode (`fundamental-mode`)

To not tell, not take, and not want

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

In excess I'm lethal

Return the Closest Prime Number

Would a completely good Muggle be able to use a wand?

Is it possible to search for a directory/file combination?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Why do airplanes bank sharply to the right after air-to-air refueling?

Why has the US not been more assertive in confronting Russia in recent years?

What connection does MS Office have to Netscape Navigator?

Contours of a clandestine nature

Sending manuscript to multiple publishers



Using /tools/hci/ from AOSP (make file is Android.mk.disabled)



The Next CEO of Stack OverflowStop EditText from gaining focus at Activity startupHow do I make links in a TextView clickable?Passing additional variables from command line to makeIs there a way to get the source code from an APK file?ndk-gdb error: device does not support the application's targetted CPU ABIsHow to make debug build of specific module under AOSP tree?Building/installing Android Wear AOSPWhy is ADB unauthorised to debug my device on which I installed AOSP?AOSP not booting on Nexus 5Building module in Android Open Source Project










0















I am trying to send and receive HCI events/commands using an Android device (pixel 2) for testing purposes at work. I've tried doing this a number of ways - but recently stumbled upon this in the AOSP source code.



This seems to be exactly what I'm looking for (or close to it), but I am unsure of how to actually use this.



I've built AOSP (walleye for pixel 2) more than a few times in userdebug and engineer mode, and have adb/fastboot, etc already setup in an Ubuntu environment, so the build process is not new to me.



With all of that said, my first question:
Do I need to remove .disabled from the android.mk file? Will this result in the tool being built with the OS?



If so, how do I access the tool once it is built.
If not, how might I build this tool (main.cc in the file linked above) and where would I find it once built.



**EDIT::
No responses but a with a few days of experimentation I've figured it out:
Its very straightforward, but I'll leave this here in case anyone else has a similar question in the future.



1) Change Android.mk.disabled to Android.mk



2) Build the OS or that specific module of the OS (Plenty of good explanations on that process can be found here on SO.)



3) Flash the OS containing the newly built Module onto your device



4) In this case, we turned main.c into an executable. Use adb to locate and run that executable once its on your device. (This part is conjecture, I haven't been back to work to try it out yet)










share|improve this question




























    0















    I am trying to send and receive HCI events/commands using an Android device (pixel 2) for testing purposes at work. I've tried doing this a number of ways - but recently stumbled upon this in the AOSP source code.



    This seems to be exactly what I'm looking for (or close to it), but I am unsure of how to actually use this.



    I've built AOSP (walleye for pixel 2) more than a few times in userdebug and engineer mode, and have adb/fastboot, etc already setup in an Ubuntu environment, so the build process is not new to me.



    With all of that said, my first question:
    Do I need to remove .disabled from the android.mk file? Will this result in the tool being built with the OS?



    If so, how do I access the tool once it is built.
    If not, how might I build this tool (main.cc in the file linked above) and where would I find it once built.



    **EDIT::
    No responses but a with a few days of experimentation I've figured it out:
    Its very straightforward, but I'll leave this here in case anyone else has a similar question in the future.



    1) Change Android.mk.disabled to Android.mk



    2) Build the OS or that specific module of the OS (Plenty of good explanations on that process can be found here on SO.)



    3) Flash the OS containing the newly built Module onto your device



    4) In this case, we turned main.c into an executable. Use adb to locate and run that executable once its on your device. (This part is conjecture, I haven't been back to work to try it out yet)










    share|improve this question


























      0












      0








      0








      I am trying to send and receive HCI events/commands using an Android device (pixel 2) for testing purposes at work. I've tried doing this a number of ways - but recently stumbled upon this in the AOSP source code.



      This seems to be exactly what I'm looking for (or close to it), but I am unsure of how to actually use this.



      I've built AOSP (walleye for pixel 2) more than a few times in userdebug and engineer mode, and have adb/fastboot, etc already setup in an Ubuntu environment, so the build process is not new to me.



      With all of that said, my first question:
      Do I need to remove .disabled from the android.mk file? Will this result in the tool being built with the OS?



      If so, how do I access the tool once it is built.
      If not, how might I build this tool (main.cc in the file linked above) and where would I find it once built.



      **EDIT::
      No responses but a with a few days of experimentation I've figured it out:
      Its very straightforward, but I'll leave this here in case anyone else has a similar question in the future.



      1) Change Android.mk.disabled to Android.mk



      2) Build the OS or that specific module of the OS (Plenty of good explanations on that process can be found here on SO.)



      3) Flash the OS containing the newly built Module onto your device



      4) In this case, we turned main.c into an executable. Use adb to locate and run that executable once its on your device. (This part is conjecture, I haven't been back to work to try it out yet)










      share|improve this question
















      I am trying to send and receive HCI events/commands using an Android device (pixel 2) for testing purposes at work. I've tried doing this a number of ways - but recently stumbled upon this in the AOSP source code.



      This seems to be exactly what I'm looking for (or close to it), but I am unsure of how to actually use this.



      I've built AOSP (walleye for pixel 2) more than a few times in userdebug and engineer mode, and have adb/fastboot, etc already setup in an Ubuntu environment, so the build process is not new to me.



      With all of that said, my first question:
      Do I need to remove .disabled from the android.mk file? Will this result in the tool being built with the OS?



      If so, how do I access the tool once it is built.
      If not, how might I build this tool (main.cc in the file linked above) and where would I find it once built.



      **EDIT::
      No responses but a with a few days of experimentation I've figured it out:
      Its very straightforward, but I'll leave this here in case anyone else has a similar question in the future.



      1) Change Android.mk.disabled to Android.mk



      2) Build the OS or that specific module of the OS (Plenty of good explanations on that process can be found here on SO.)



      3) Flash the OS containing the newly built Module onto your device



      4) In this case, we turned main.c into an executable. Use adb to locate and run that executable once its on your device. (This part is conjecture, I haven't been back to work to try it out yet)







      android makefile android-source android.mk hci






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 15:45







      Samuel

















      asked Mar 21 at 16:57









      SamuelSamuel

      34




      34






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285565%2fusing-tools-hci-from-aosp-make-file-is-android-mk-disabled%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285565%2fusing-tools-hci-from-aosp-make-file-is-android-mk-disabled%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript