Vicamo Yang於 2013年4月26日星期五UTC+8下午3時48分01秒寫道:
> On 04/22/2013 06:32 PM, Tank wrote:> Hi,
> 
> >
> 
> > 1.
> 
> > I wrote an app and add it to the directory /gaia/test_apps,
> 
> >
> 
> > The only way to make it available in my B2G emulator is to
> 
> > ./build.sh -j4
> 
> >
> 
> > I was thinking it should work by executing the script
> 
> > ./build.sh gaia, but this doesnt work.
> 
> 
> 
> I think that's quite normal. Build target gaia depends only on gaia
> 
> internal stuff, but to make your app installed into emulator you'll have
> 
> to rebuild disk images as well, and they're only build when you builds all.
> 
> 
> 
> > Is this normal? the fully build took long time to go.
> 
> 
> 
> Hmmm, you can launch your emulator and `make install-gaia` instead.
> 
> 
> 
> > 2.
> 
> > My intention is to write an app to access the hardware hal layer,
> 
> > Let's say, vibrator, through XPCOM.
> 
> > I know the hardware components are not available in the emulator.
> 
> > All things for me is to get familiar with xpcom and get a
> 
> > response message from the hal layer. Can I do this in emulator?
> 
> > Is there any detail tutorial for  this exercise?
> 
> 
> 
> B2G emulator doesn't handle vibrator hw-control event. The HAL part is
> 
> already in AOSP and so is B2G emulator. To complete it, one could simply
> 
> add some code in external/qemu/android/qemulator.c to simulate vibrator
> 
> behaviour. I've just file an enhancement bug for this:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=866002
> 
  I guess I just checked what you mean by "hw-control event", thanks. : )

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

Reply via email to