Re: [b2g] Flame is recently constantly hot
I'm dubious, but it is possible. 1 - The bootloader could be initializing some piece of HW that the lollipop kernel changes but the kitkat one doesn't 2 - The bootloader can pass configuration options to the kernel (either through the device tree or the kernel command line). We should be able to compare the kernel command lines by looking at dmesg. The kernel prints out the command line as part of the boot sequence (fairly early on IIRC). Actually, it would be interesting to compare a boot under boot bootloaders. They should be more or less identical (there are always going to be timing diiferences). On Thu, Jul 2, 2015 at 3:24 PM, Naoki Hirata nhir...@mozilla.com wrote: I think someone was suggesting that it might be something within the lollipop bootloader. I just tried with android lollipop trying to download the firefox for android on my testing phone for aries and I'm finding that I lost 2 to 3 % battery power in the last hour. On Thu, Jul 2, 2015 at 2:57 PM, Dave Hylands dhyla...@mozilla.com wrote: Actually, it feels like something outside b2g. The numbers posted for b2g don't seem too out of whack. I'm guedsing that something related to the logcats is causing the problem. Does trace.sh only show the b2g processes? On Thu, Jul 2, 2015 at 7:03 AM, Gabriele Svelto gsve...@mozilla.com wrote: Same issue here, I noticed that the battery drained overnight and the phone didn't even have the data connection on (nor wifi enabled). I've run my own scripts this morning monitoring the system for 10 minutes and the main b2g process woke up ~120 times. So either something landed in the system app that causes the system to wake up unnecessarily or it's something within Gecko. I'll try to run a bisection if I have enough time to. Gabriele On 02/07/2015 11:22, Jovan Gerodetti wrote: Hey everyone, Since yesterday I noticed that my new Flame is constantly quite hot and yesterday the battery drained a lot quicker than before. Did anyone else experience similar issues before? I ran the trace.sh script to see which apps use most CPU time NAME PID WAKEUPS RUNTIME NEW b2g 215 1055 1484 msno (Nuwa) 469 2 68 ms no Homescreen 967 85 21 ms no Loqui IM1122 156 161 ms no Built-in Keyboa 1141 79 17 ms no Smart Collectio 214116 28 ms no Find My Device 1454 79 17 ms no Usage11301 97 31 ms no (Preallocated a 13005 100940 ms yes and in logcat the same few lines constantly show up E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) I already did a few reboots but the issue persists. Regards, Jovan ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Flame is recently constantly hot
Actually, it feels like something outside b2g. The numbers posted for b2g don't seem too out of whack. I'm guedsing that something related to the logcats is causing the problem. Does trace.sh only show the b2g processes? On Thu, Jul 2, 2015 at 7:03 AM, Gabriele Svelto gsve...@mozilla.com wrote: Same issue here, I noticed that the battery drained overnight and the phone didn't even have the data connection on (nor wifi enabled). I've run my own scripts this morning monitoring the system for 10 minutes and the main b2g process woke up ~120 times. So either something landed in the system app that causes the system to wake up unnecessarily or it's something within Gecko. I'll try to run a bisection if I have enough time to. Gabriele On 02/07/2015 11:22, Jovan Gerodetti wrote: Hey everyone, Since yesterday I noticed that my new Flame is constantly quite hot and yesterday the battery drained a lot quicker than before. Did anyone else experience similar issues before? I ran the trace.sh script to see which apps use most CPU time NAME PID WAKEUPS RUNTIME NEW b2g 215 1055 1484 msno (Nuwa) 469 2 68 ms no Homescreen 967 85 21 ms no Loqui IM1122 156 161 ms no Built-in Keyboa 1141 79 17 ms no Smart Collectio 214116 28 ms no Find My Device 1454 79 17 ms no Usage11301 97 31 ms no (Preallocated a 13005 100940 ms yes and in logcat the same few lines constantly show up E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 325): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] W/SocketClient( 196): write error (Broken pipe) I already did a few reboots but the issue persists. Regards, Jovan ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Battery shell script for aries.
Perhaps use the trace.sh script mentioned here: https://bugzilla.mozilla.org/show_bug.cgi?id=1021400#c82 On Wed, Jul 1, 2015 at 1:46 PM, Naoki Hirata nhir...@mozilla.com wrote: For the process that's using the most CPU : adb shell top Unfortunately, I'm not sure about the battery drain per app. I'm still investigating. I think we may need a gecko API? I did find dumpsys and dumpstate which might be useful for other purposes. On Wed, Jul 1, 2015 at 12:18 PM, Michael Henretty mhenre...@mozilla.com wrote: Thanks Noaki! Is there any way to tell which process is using the most CPU? Conversely, do we have any tools to tell us what apps causing battery drain? On Wed, Jul 1, 2015 at 1:06 AM, Naoki Hirata nhir...@mozilla.com wrote: Here's a script you can place on the sdcard and run from there once you chmod it. Currently, I can't seem to connect adb over wifi (bug 1179144 ). Anyways, here's the script: INTERVAL=1 CAPACITYVOLTAGE=0 while true; do PREVVOLTAGE=$CAPACITYVOLTAGE DATETIME=$(date +'%Y/%m/%d|%H:%M:%S') CAPACITYVOLTAGE=$(( $(cat /sys/devices/qpnp-charger-f612e800/power_supply/battery/voltage_now) / 1000 )) CAPACITYPERCENT=$(cat /sys/devices/qpnp-charger-f612e800/power_supply/battery/capacity) DISCHARGE=+$(( $CAPACITYVOLTAGE - $PREVVOLTAGE )) TEMP=$(( $(cat /sys/devices/qpnp-charger-f612e800/power_supply/battery/temp) / 10 )) echo ${DATETIME}|$(echo ${DISCHARGE})mA|${CAPACITYPERCENT}%|${CAPACITYVOLTAGE}mV|${TEMP}°C sleep ${INTERVAL} done ___ dev-gaia mailing list dev-g...@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-gaia ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] what is the difference between emulator and falme on the source code?
To see an explicit list of the differences, you need to compare the manifests. For example, on the flame, out/target/product/flame/system/sources.xml is the set of files used to build the flame, and for the emulator: out/target/product/generic/system/sources.xml On Mon, May 11, 2015 at 8:51 AM, Naoki Hirata nhir...@mozilla.com wrote: gaia level shouldn't be different at all. It's slightly the gecko to match the drivers and the gonk layer with the drivers to match the device versus emulator. There may be some other differences. As far as I know this is the main one. -N. On May 11, 2015, at 12:52 AM, heyi zhixing dukaizhixingh...@gmail.com wrote: Hi,all when I fetch the emulator and flame source code,use following commands: BRANCH=v2.2 ./config emulator BRANCH=v2.2 ./config flame what is the difference between emulator and falme? for example,gaia,gecko,gonk folders. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Paranoia mode?
I was able to install an ssh server (or perhaps you're referring to having an ssh client?) on my flame by following these instructions: http://dan.drown.org/android/ http://dan.drown.org/android/howto/ssh-server.html I'd like to get an ssh server integrated into the build, but that's just a side project for now. Dave Hylands - Original Message - From: André Jaenisch andre.jaeni...@openmailbox.org To: dev-g...@lists.mozilla.org Cc: dev-b2g@lists.mozilla.org Sent: Wednesday, November 12, 2014 2:39:34 PM Subject: Paranoia mode? Hello, I recently had a chat on Twitter about whether there are a SSH shell and terminal on Firefox OS (afaik, there aren't). I asked wherefore one would need those and it turns out, that the questioner thinked about using those to log into his companies' server (he's a sys admin). At least since the Snowden leaks we know, that SysAdmins are likely a target. So I tried to convince him not to tell too much (Social Engineering) and think again about it. From what I can tell, a smartphone should not be considered as trustfully as, say, a laptop, since a laptop can be built upon open components [0], whereby a smartphone cannot [1]. Someone from Mozilla replied to me, that he isn't involved in tasks, that would require that grade of paranoia. But that's not my point. My point is taking care of each other to safeguard each other. That can be proofreading (peer reviewing) other ones code before using a lib or asking about the rationales behind decisions or talk about designs of decisions/craftship of APIs (like in [2]). Mozilla is known for it's call to privacy. Let's build upon that. I'd like to hear your opinions on that. Please be kind and bear in mind, that everything you write may be archived and used against us. Best regards, André Jaenisch [0] https://www.crowdsupply.com/kosagi/novena-open-laptop [1] https://groups.google.com/d/msg/mozilla.dev.gaia/T4dzISBeDSI/GOQf-n-1ByUJ [2] https://groups.google.com/d/msg/mozilla.dev.b2g/e3T92wNy-PM/-rK-vGihBcEJ ___ dev-gaia mailing list dev-g...@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-gaia ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Trouble updating Firefox OS on Mozilla Flame
When the device goes into fastboot mode, the vendor id changes to 18d1. When the phone is in fastboot mode, you should see an entry like this when you run lsusb: Bus 003 Device 097: ID 18d1:d00d Google Inc. The line for the USB id 05c6 covers everything except fastboot mode. You need the line 18d1 for fastboot mode. Did you reload the rules and replug the USB cable AFTER reloading? Plugging in the usb cable is what udev uses as a trigger. While the phone is in fastboot mode, running lsusb should show a line like the following: Bus 003 Device 097: ID 18d1:d00d Google Inc. The 097 portion is dynamic and will change every time the device is plugged in. What does: find /dev -name 097 -ls show? (change the 097 to match the number from your lsusb output). The permissions on that file is what fastboot needs and what the udev file should be modifying. Dave Hylands - Original Message - From: Dee d...@deesaster.org To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Tuesday, November 11, 2014 8:15:03 AM Subject: Re: [b2g] Trouble updating Firefox OS on Mozilla Flame Hello Dave, I have copied this rule before from the website. Mine /etc/udev/rules.d/android.rules looks like this: SUBSYSTEM==usb, ATTR{idVendor}==05c6, MODE=0666, GROUP=plugdev But even after reloading the rules with your line below, fastboot does not work without sudo. $ fastboot devices no permissions fastboot Best regards Dominik Am 11.11.2014 um 08:26 schrieb Dave Hylands: To add a udev rule for fastboot, create a file (mine is called android.rules) in the /etc/udev/rules. directory with this in it: SUBSYSTEM==usb, ATTRS{idVendor}==18d1, MODE=0666 # Google (also fastboot) SUBSYSTEM==usb, ATTRS{idVendor}==05c6, MODE=0666 # Flame (adb) You then need to run: sudo udevadm control --reload-rules and unplug and replug the usb cable. Dave Hylands - Original Message - From: Dee d...@deesaster.org To: dev-b2g@lists.mozilla.org Sent: Sunday, November 9, 2014 8:56:34 AM Subject: Re: [b2g] Trouble updating Firefox OS on Mozilla Flame Hello again, I have solved the problem myself. I executed every line in the flash.sh and saw: $ fastboot devices no permissions fastboot So the permissions are not correct. The upgrade page says that you should not execute the script with sudo, unfortunately it does not say what I should do so that I can execute it without. (A general hint to udev is not enough.) So I executed every fastboot-line in the script with sudo and that works until: $ sudo fastboot flash custpack custpack.img target reported max download size of 301989888 bytes error: cannot load 'custpack.img': No such file or directory There is no custpack.img in the v188.zip. So I have checked the v180.zip in comparison and there are some strange things: 1. The v180.zip does not have any custpack.img either. But the flash.sh script does not have any custpack.img line. So I ignored it for v188.zip. 2. The v180-script has a line fastboot flash partition gpt_both0.bin That line is missing in the v188.zip flash.bat/sh. Is it necessary? At the end my update worked. Unfortunately my phone is in English now. :( Some bugs were fixed and some new bugs were added. :( Who's responsible for the page https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame#Updating_your_Flame%27s_software and especially for the images on this page. The script should be corrected as soon as possible. The problem with sudo fastboot should be mentioned more clearly how to fix. Best regards Dominik Am 09.11.2014 um 15:05 schrieb Dee: Hello, I own a Flame since four months. Because of some bugs and crashes I wanted to update the software. So I went to https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame#Updating_your_Flame%27s_software. I thought that I needed to update the base image first. So I've download the Base Image v188.zip and followed the instructions: $ adb devices -l List of devices attached f30ecc6b device usb:2-2 product:msm8610 model:Flame device:flame $ unzip v188.zip $ cd 188 $ mv flash.bat flash.sh $ chmod +x flash.sh $ ./flash.sh * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached f30ecc6b device Flash nCPU... waiting for device The Flame vibrated shortly and now I see the ThunderSoft logo in the display. Nothing happens at all since 30 minutes. I don't think anything else will happen. I'm not sure if it's safe to remove the phone from the USB connection or to stop the flash script. Any hints how to rescue my phone and proceed with the update? Best regards Dominik ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https
Re: [b2g] Trouble updating Firefox OS on Mozilla Flame
To add a udev rule for fastboot, create a file (mine is called android.rules) in the /etc/udev/rules. directory with this in it: SUBSYSTEM==usb, ATTRS{idVendor}==18d1, MODE=0666 # Google (also fastboot) SUBSYSTEM==usb, ATTRS{idVendor}==05c6, MODE=0666 # Flame (adb) You then need to run: sudo udevadm control --reload-rules and unplug and replug the usb cable. Dave Hylands - Original Message - From: Dee d...@deesaster.org To: dev-b2g@lists.mozilla.org Sent: Sunday, November 9, 2014 8:56:34 AM Subject: Re: [b2g] Trouble updating Firefox OS on Mozilla Flame Hello again, I have solved the problem myself. I executed every line in the flash.sh and saw: $ fastboot devices no permissions fastboot So the permissions are not correct. The upgrade page says that you should not execute the script with sudo, unfortunately it does not say what I should do so that I can execute it without. (A general hint to udev is not enough.) So I executed every fastboot-line in the script with sudo and that works until: $ sudo fastboot flash custpack custpack.img target reported max download size of 301989888 bytes error: cannot load 'custpack.img': No such file or directory There is no custpack.img in the v188.zip. So I have checked the v180.zip in comparison and there are some strange things: 1. The v180.zip does not have any custpack.img either. But the flash.sh script does not have any custpack.img line. So I ignored it for v188.zip. 2. The v180-script has a line fastboot flash partition gpt_both0.bin That line is missing in the v188.zip flash.bat/sh. Is it necessary? At the end my update worked. Unfortunately my phone is in English now. :( Some bugs were fixed and some new bugs were added. :( Who's responsible for the page https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame#Updating_your_Flame%27s_software and especially for the images on this page. The script should be corrected as soon as possible. The problem with sudo fastboot should be mentioned more clearly how to fix. Best regards Dominik Am 09.11.2014 um 15:05 schrieb Dee: Hello, I own a Flame since four months. Because of some bugs and crashes I wanted to update the software. So I went to https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame#Updating_your_Flame%27s_software. I thought that I needed to update the base image first. So I've download the Base Image v188.zip and followed the instructions: $ adb devices -l List of devices attached f30ecc6b device usb:2-2 product:msm8610 model:Flame device:flame $ unzip v188.zip $ cd 188 $ mv flash.bat flash.sh $ chmod +x flash.sh $ ./flash.sh * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached f30ecc6b device Flash nCPU... waiting for device The Flame vibrated shortly and now I see the ThunderSoft logo in the display. Nothing happens at all since 30 minutes. I don't think anything else will happen. I'm not sure if it's safe to remove the phone from the USB connection or to stop the flash script. Any hints how to rescue my phone and proceed with the update? Best regards Dominik ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Peak does not share SD-Card any more v2.1
The volume called 'sdcard' is actually the internal sdcard. What does the output of adb shell vdc volume list show? Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: alc...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Friday, October 17, 2014 8:46:01 AM Subject: Re: [b2g] Peak does not share SD-Card any more v2.1 here is the next log: 10-17 17:12:44.550 118 182 D VoldCmdListener: volume unmount sdcard force 10-17 17:12:44.550 118 182 D Vold : Volume sdcard state changing 4 (Mounted) - 5 (Unmounting) 10-17 17:12:45.660 118 182 I Vold : /mnt/secure/staging/.android_secure sucessfully unmounted 10-17 17:12:45.660 118 182 I Vold : /mnt/secure/asec sucessfully unmounted 10-17 17:12:45.720 118 182 I Vold : /mnt/secure/staging sucessfully unmounted 10-17 17:12:45.720 118 182 I Vold : /mnt/sdcard unmounted sucessfully 10-17 17:12:45.720 118 182 D Vold : Volume sdcard state changing 5 (Unmounting) - 1 (Idle-Unmounted) 10-17 17:12:45.720 118 182 D VoldCmdListener: volume share sdcard ums 10-17 17:12:45.720 118 182 D Vold : Opened lunfile /sys/class/android_usb/android0/f_mass_storage/lun0/file 10-17 17:12:45.720 118 182 D Vold : Volume sdcard state changing 1 (Idle-Unmounted) - 7 (Shared-Unmounted) 10-17 17:13:02.320 118 182 D VoldCmdListener: volume unshare sdcard ums 10-17 17:13:02.320 118 182 D Vold : Opened lunfile /sys/class/android_usb/android0/f_mass_storage/lun0/file 10-17 17:13:02.320 118 182 D Vold : Volume sdcard state changing 7 (Shared-Unmounted) - 1 (Idle-Unmounted) 10-17 17:13:02.320 118 182 D VoldCmdListener: volume mount sdcard 10-17 17:13:02.330 118 182 I Vold : /dev/block/vold/179:18 being considered for volume sdcard 10-17 17:13:02.330 118 182 D Vold : Volume sdcard state changing 1 (Idle-Unmounted) - 3 (Checking) 10-17 17:13:02.330 118 182 W Vold : Skipping fs checks 10-17 17:13:02.330 118 182 I Vold : Device /dev/block/vold/179:18, target /mnt/sdcard mounted @ /mnt/secure/staging 10-17 17:13:02.330 118 182 D Vold : Volume sdcard state changing 3 (Checking) - 4 (Mounted) 10-17 17:13:02.820 118 182 D VoldCmdListener: volume unmount sdcard force 10-17 17:13:02.820 118 182 D Vold : Volume sdcard state changing 4 (Mounted) - 5 (Unmounting) 10-17 17:13:03.880 118 182 I Vold : /mnt/secure/staging/.android_secure sucessfully unmounted 10-17 17:13:03.880 118 182 I Vold : /mnt/secure/asec sucessfully unmounted 10-17 17:13:03.920 118 182 I Vold : /mnt/secure/staging sucessfully unmounted 10-17 17:13:03.920 118 182 I Vold : /mnt/sdcard unmounted sucessfully 10-17 17:13:03.920 118 182 D Vold : Volume sdcard state changing 5 (Unmounting) - 1 (Idle-Unmounted) 10-17 17:13:03.920 118 182 D VoldCmdListener: volume mount sdcard 10-17 17:13:03.920 118 182 I Vold : /dev/block/vold/179:18 being considered for volume sdcard 10-17 17:13:03.920 118 182 D Vold : Volume sdcard state changing 1 (Idle-Unmounted) - 3 (Checking) 10-17 17:13:03.920 118 182 W Vold : Skipping fs checks 10-17 17:13:03.920 118 182 I Vold : Device /dev/block/vold/179:18, target /mnt/sdcard mounted @ /mnt/secure/staging 10-17 17:13:03.920 118 182 D Vold : Volume sdcard state changing 3 (Checking) - 4 (Mounted) 10-17 17:36:55.430 118 182 D VoldCmdListener: volume unmount sdcard force 10-17 17:36:55.430 118 182 D Vold : Volume sdcard state changing 4 (Mounted) - 5 (Unmounting) 10-17 17:36:56.490 118 182 I Vold : /mnt/secure/staging/.android_secure sucessfully unmounted 10-17 17:36:56.490 118 182 I Vold : /mnt/secure/asec sucessfully unmounted 10-17 17:36:56.540 118 182 I Vold : /mnt/secure/staging sucessfully unmounted 10-17 17:36:56.540 118 182 I Vold : /mnt/sdcard unmounted sucessfully 10-17 17:36:56.540 118 182 D Vold : Volume sdcard state changing 5 (Unmounting) - 1 (Idle-Unmounted) 10-17 17:36:56.540 118 182 D VoldCmdListener: volume share sdcard ums 10-17 17:36:56.540 118 182 D Vold : Opened lunfile /sys/class/android_usb/android0/f_mass_storage/lun0/file 10-17 17:36:56.540 118 182 D Vold : Volume sdcard state changing 1 (Idle-Unmounted) - 7 (Shared-Unmounted) just to clarify: I can access the SD Card from the device it self, but if I share the storage with a computer (I tried Windows 7, Linux and OS X) I see only the internal media storage. At the moment the only way to copy files from the card is to pull it with adb pull /emmc/* 2014-10-17 10:58 GMT+02:00 alc...@mozilla.com : Vold : ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] modifying application.zip on device
Hey Freddy, There are 2 locations on a device that a webapp might exist. For user builds, all of the apps which ship with the device are stored in /system/b2g/webapps For eng builds, all of the apps which ship with the device are stored in /data/local/webapps Apps installed from marketplace go into the /data location. I believe that /data/local/webapps/webapps.json contains a list of all of the apps and where they're located. So it may depend on the type of build that you have as to where the app is actually stored. Dave Hylands - Original Message - From: Frederik Braun fbr...@mozilla.com To: dev-b2g dev-b2g@lists.mozilla.org Sent: Tuesday, September 30, 2014 6:14:03 AM Subject: [b2g] modifying application.zip on device Hi, I was trying to poke the device in a more or less unexpected way: Pull an application.zip, make some modifications and push it back. Then reboot. The idea was for me to have a small script that keeps track of my personal modifications (i.e, removing or adding options from search/providers.json for settings app). But what I observed is that it doesn't work reliably. I have two Flames, where one is running an Aurora User build whereas the other is on a Central Engineering build. And the modifications only work on the latter, with no visible difference in logcat. The search options are still the same for the first phone, where they do change for the latter. The shell script I use is here https://gist.github.com/mozfreddyb/a2cd42f1cf8eaf1180d0 I do check if I have the permission and remount before modifying. I also reboot after having done the modifications. Anyone got any clue? Thanks! Freddy ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] After Reboot Responsiveness
I think its also important to clarify the term reboot. If you see the OEM logo (Thundersoft for the flame) then the phone was rebooted. In this scenario, the system is essentially booting up cold (linux kernel is booting, lots of system services are starting and b2g also starts). Then there is just restarting b2g When you do an OTA update it only restarts b2g, and the kernel and all of the other services don't restart. When b2g restarts you'll see some of the splash screens, but not the OEM one. From the technical perspective, its worhwhile to know if you're talking about a full reboot or just restarting b2g. Dave Hylands - Original Message - From: Marek Raida marek.ra...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Wednesday, September 17, 2014 8:17:30 AM Subject: [b2g] After Reboot Responsiveness IMO it used to be (during August at least) on v2.0 branch like that: - almost immediately after reboot, I was able to enter PIN or unlock screen and start working; regular boot or after-update boot didn't matter - the same applied for fluent user responsiveness/experience from system during application (even multiple applications) installationdownload in the background - but it has changed, approx. less then three weeks back; what I'm getting now is: - after reboot (whatewer reason, even manual one, just for fun) system displays lock screen or PIN enter screen, but there is some communication running in the background, and system is completely not responding for maybe 10-40s (it depends) - also user experience of system during app installation/downloaded worsened a lot; it is jerky now, reacting slowly or even doing something not predictible; it could be that it is downloaded faster than before, but for user it is major degradation, when system is hardly usable for him during this period But I remember much better times and not long ago. Is someone else experiencing something similar? Marek ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Understanding production vs engineering builds
You can somewhat control things by changing the VARIANT (when build for a real device/emulator) https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file There are 3 variants: VARIANT=user VARIANT=userdebug VARIANT=eng The eng variant puts the apps in /data and includes many more apps than user/userdebug. user/userdebug puts apps in /system The eng and userdebug variants have marionetter enabled by default, so you can run tests The user and userdebug variants have the updater enabled, so you can do over-the-air (OTA/FOTA) updates. make production in gaia sets PRODUCTION=1 user and user-debug both imply PRODUCTION=1 when building locally for a real device/emulator). make production is really a way to build a user version of gaia for use with nightly or B2G-desktop. Specifying VARIANT is the way to do this when building for a device/emulator Dave Hylands - Original Message - From: Sam Penrose spenr...@mozilla.com To: dev-b2g@lists.mozilla.org, dev-g...@lists.mozilla.org, Christopher Mills cmi...@mozilla.com Sent: Thursday, September 11, 2014 3:29:52 PM Subject: [b2g] Understanding production vs engineering builds We recently ran into an FxOS bug that only appeared on production builds: https://bugzilla.mozilla.org/show_bug.cgi?id=1058978#c12 I could not find documentation specifying the differences between engineering and production builds of Gecko and Gaia, and more importantly how to control them. Does such documentation exist? If not, where should I request it? Are the underlying controls independent, and if not should they be? For example, make production in Gaia wants to install on device: is there a way to create a production Gaia target without installing it on device? I routinely run custom B2G builds with custom Gaia builds -- are the production vs engineering settings for Gecko and Gaia independent, or are there known restrictions in how I can mix and match them? Thanks, Sam ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Log collection needs improvement
Even if we send the log to the parent, I'd still like to see the logcat happen in the child in the thread that originally issues the log. This accomplishes 2 things: 1 - logcat records the PID and TID of the logger. I've found this to be extremely useful information which would be lost. in logcat if the logging is done in the parent. 2 - If you do the logcat in the parent you get out-of-sequence logs. The parents logs will be logged with lower latency than the childs, which causes weird logs. When the child does the logging, the sequence is preserved. This is extremely useful when logging any type of activity which is split between the child and parent. Dave Hylands - Original Message - From: Jonas Sicking jo...@sicking.cc To: Gabriele Svelto gsve...@mozilla.com Cc: Eric Rahm er...@mozilla.com, mozilla-dev-...@lists.mozilla.org, Dave Hylands dhyla...@mozilla.com Sent: Thursday, August 28, 2014 10:09:05 AM Subject: Re: [b2g] Log collection needs improvement On Thu, Aug 28, 2014 at 1:39 AM, Gabriele Svelto gsve...@mozilla.com wrote: IPC is quite expensive in general on our implementation so even when it's non-blocking it does have a measurable performance impact on single-core devices. Bug 915733 [1] contains more information on this. There's a lot of disagreement on this. So far no one has been able to show a profile where this is the case. Every time that we have performance with IPC it is because the parent process is busy doing other things which means that it takes longer than we want to get a response. I.e. the problem is one of latency rather than throughput in every profile that anyone has been able to produce. However for logging we don't need to get any response. And it doesn't matter if the logging message appears a few ms later than when the logging call was made. So this is not a problem. If you have a profile that can show otherwise, please do share. / Jonas ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Log collection needs improvement
There is also the issue of turning the logs on/off. I've come to like the ability to use android properties, since you can manipulate them from the adb shell command line using getprop/setprop. Using preferences is nice on the desktop, because we have a UI that can be used to control them. That same UI is currently unavailable on the phone. The only reason I would use mozSettings is if I wanted some gaia UI to be able to control things. We already have code to allow changes in a mozSetting to update a preference and vice-versa. I'd like to propose that we allow properties to also be updated/have changes reflected in preferences as well. The reason console.log has issues is that console.log requests made by a child are passed via IPC to the parent, and then they're logged. With dump() the call to the android logger happens in the child. linux has an interesting approach to system logging. Everybody uses syslog, and then there is a configuration file/daemon that takes care of actually distributing the log data. On the phone, logcat already takes care of the hard part. We just need to be a bit more clever about integrating things. Right now, all dump calls come out tagged as Gecko. It probably makes sense to tag dump statements from an app using the app name. Then you'd be able to filter your logcat output and just get dumps from a particular app. You can get some very interesting logcat filters. I have a script that automatically does: adb logcat -v threadtime memalloc:I ONCRPC:S HWComposer:S Diag_Lib:S QCALOG:S QCRIL_RPC:S EventHub:I OMX.google.mp3.decoder:V You can add logging categories with :S to silence a particular category (or use *:S to silence everything) and then add back stuff you're interested in. Run adb logcat -h to get full details on filterspecs. If we want the ability to put the logging data off-device, then it probably makes sense to have a daemon that grabs data from logcat and sends it whereever it is that it needs to go. Dave Hylands - Original Message - From: Tim Chien timdr...@mozilla.com To: Gabriele Svelto gsve...@mozilla.com Cc: dev-b2g dev-b2g@lists.mozilla.org, qa-b2g qa-...@mozilla.org, Johnny Stenback j...@mozilla.com, Al Tsai at...@mozilla.com, James Lal ja...@lightsofapollo.com, Jonas Sicking jo...@sicking.cc Sent: Thursday, August 21, 2014 7:47:13 AM Subject: Re: [b2g] Log collection needs improvement On Thu, Aug 21, 2014 at 4:01 PM, Gabriele Svelto gsve...@mozilla.com wrote: On 21/08/2014 08:21, Tim Chien wrote: Previously we had a creative invention from Frsela that turning on/off a all-caps DUMP() function with mozSettings. I would love that being formalized in Gecko. https://github.com/mozilla-b2g/gaia/blob/master/shared/js/dump.js Standardizing all gaia applications on DUMP() would already be a big improvement even though the interface is currently very simple. Gecko has similar problems regarding logging with certain components being well made and others a total mess (often dumping output via 3/4 different unrelated methods). Also, the most common mechanism used in C++ code (PR_Log) is not available under chrome code and thus we normally resort to ad hoc logging solutions there (see the RIL component for example). Gabriele Yeah, but that would mean every app need to read that mozSettings value (and have the permission to access that) right? Plus log will not appear during app start-up until the mozSettings get() returns positive value. I may be naive but I would really love that being done in Gecko... -- Tim Guan-tin Chien, Engineering Manager and Front-end Lead, Firefox OS, Mozilla Corp. (Taiwan) ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] can't play mp3 files recorded on an iPhone
Sending them as an email attachment should be fine. If that doesn't work we can try something else. If my mozilla email doesn't work for some reason, you try dhylands at gmail dot com. Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Friday, August 15, 2014 12:06:14 PM Subject: Re: [b2g] can't play mp3 files recorded on an iPhone Sure, I can send you both files. They are only a couple of seconds long... What is the best way? -- Jovan Dave Hylands schrieb: Can you send me one or both files? Or send another file which reproduces the problem, preferably something fairly short. If it turns out to be a legitimate bug, it would be preferable if I have a file that I can attach to the bug (which is publically accessible). Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, August 15, 2014 10:56:11 AM Subject: [b2g] can't play mp3 files recorded on an iPhone Hello, I received two mp3 files which are recorded and sent via WhatsApp on an iPhone. The music app doesn't even find them and if I try to play them through the file browser app Files from the marketplace I only get a pop up that says unknown file type. I can play the files properly on my PC with VLC media player, so they are not corrupted and I also can play other mp3 files on my phone... just these two files don't work... Any ideas?? -- Jovan Gerodetti ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] can't play mp3 files recorded on an iPhone
Hi Jovan, I tried both files on my flame running the v123 base image (Firefox OS 1.3) and they both seemed to play fine. Which phone are you using? And with which version of Firefox OS? Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, August 15, 2014 10:56:11 AM Subject: [b2g] can't play mp3 files recorded on an iPhone Hello, I received two mp3 files which are recorded and sent via WhatsApp on an iPhone. The music app doesn't even find them and if I try to play them through the file browser app Files from the marketplace I only get a pop up that says unknown file type. I can play the files properly on my PC with VLC media player, so they are not corrupted and I also can play other mp3 files on my phone... just these two files don't work... Any ideas?? -- Jovan Gerodetti ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] accessing the real SD card via DeviceStorage on newer devices
Thank you very much Chris. From: Chris Mills cmi...@mozilla.com To: Dave Hylands dhyla...@mozilla.com Cc: Adrian Custer a...@pocz.org, dev-b2g@lists.mozilla.org Sent: Monday, August 11, 2014 4:54:34 AM Subject: Re: [b2g] accessing the real SD card via DeviceStorage on newer devices Thanks Dave, for some really useful information. I’ve compiled it together and added it to https://developer.mozilla.org/en-US/docs/Web/API/Device_Storage_API When you get the chance, could you give the first couple of sections a read through and let me know if anything sounds wrong? Will do. I also added information and useful links to https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getDeviceStorages https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getDeviceStorage A couple of related questions: 1. Are both the above Methods current, or is one being obsoleted? I can understand the difference between both, but getDeviceStorages sounds like a saner, better way to access the storage areas. Yes - those 2 are both current since about 1.1 IIRC. 2. In the getDeviceStorage page, the following text can be found: This method gives access to a unified view of all the storage area of a given type. For example, if the sdcard storage area is requested on a device with two SDCards available, the resulting DeviceStorage object gives access to the files available on both cards at the same time.” which sounds like it contradicts your text about this method accessing the storage type on the default storage area, as set by the user in their settings app. Which is it? Has this changed recently? I think that there was a period of time that we did have that behaviour, and then we changed it. So I would say that description is outdated. I think it changed during the implementation of multiple storage areas, which would have I tagged a bunch of device storage bugs as dev-doc-needed a couple weeks ago, so I imagine a bunch of them can be knocked off with your work here. Dave Hylands May thanks, Chris Mills Senior tech writer || Mozilla developer.mozilla.org || MDN cmi...@mozilla.com || @chrisdavidmills On 10 Aug 2014, at 03:25, Dave Hylands dhyla...@mozilla.com wrote: Hi Adrian, Yeah - I agree (about the unfortunate double use of sdcard). Supporting file or all as an alias for sdcard sounds reasonable to me. This would also impact the permissions in the manifest. Dave Hylands From: Adrian Custer a...@pocz.org To: Dave Hylands dhyla...@mozilla.com Cc: Moz dev-b2g list dev-b2g@lists.mozilla.org Sent: Saturday, August 9, 2014 7:29:05 AM Subject: Re: [b2g] accessing the real SD card via DeviceStorage on newer devices Hello, Thanks for the explanation! Now I think I understand it, it seems the API is using the same magic string, 'sdcard' for two different purposes. First it is the name of a storageType, used in navigator.getDeviceStorage/s( storageType ). Then it is also the storageName of the default internal storage: const st = navigator.getDeviceStorage('sdcard'); //the storageType const sn = st.storageName; //sn could be 'sdcard', the storageName Unfortunate. If the API were ever to evolve this should be resolved but until then we will have to fix the docs to prevent confusion. Probably the storageType should be called 'file' since it is storage for arbitrary files as against for 'music' or 'photo' types and the storageName is 'sdcard' for all. Actually, would it be possible to add the 'file' storageType so we could deprecate the 'sdcard' storageType and drop it in the future? cheers, ~adrian On 8/8/14 10:17 PM, Dave Hylands wrote: There may be multiple storage areas. You can call navigator.getDeviceStorages(type) to get back an array of all of storage areas. Each storage area will have a name, retrievable using .storageName attribute. If there is more than one storage area, then the internal one will be named 'sdcard' and the physical storage are will be called something else (sometimes, it's extsdcard, sometimes its sdcard1). navigator.getDeviceStorage() returns the storage area whose .default attribute is true. This is controlled by the user in Settings-Media Storage-Default media location (way down at the bottom). If you call addNamed and pass in a relative path, then it will be stored on the default storage area. The onsuccess callback will get the fully qualified name (for example /sdcard/filename) where the file was actually stored. The names of files on the sdcard storage area will be /sdcard/path/filename, and the names of files on the sdcard1 storage area will be /sdcard1/path/filename Note that the /sdcard and /sdcard1 are storage names. Their actual mount points on the system are determined via vold and/or /system/etc/volume.cfg file). DeviceStorage transparently maps the storageName
Re: [b2g] Proposal: Manage B2G.git scripts in a versioned repo
I think that the issue here, is that we don't have any scripts to do that. What I normally do: cd B2G git pull repo sync But even this could have issues when not working on master. We could create a script, and then it's an issue of problems happening when the running script updates itself. John provided some instructions for doing the entire tree setup using repo, which I think means that just a repo sync would work. Dave Hylands - Original Message - From: Gervase Markham g...@mozilla.org To: John Ford jhf...@mozilla.com, mozilla-dev-...@lists.mozilla.org Sent: Monday, August 11, 2014 5:16:15 AM Subject: Re: [b2g] Proposal: Manage B2G.git scripts in a versioned repo wOn 05/08/14 20:51, John Ford wrote: My proposal is to move nearly all of the scripts and tools in B2G.git into a repo managed repository. I'm sure there's a reason, but why would it not be easier to have the scripts you run to update all the other trees first check the B2G tree to see whether it's outdated and, if so, stop and tell the user to update it first? Or even do it automatically? Gerv ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Flame phone documentation, running adb as root
After flashing the base image, adb will wind up being disabled by default. So you'll need to go into Settings and turn it back on (IIRC it's the checkbox called Remote Debugging) in Settings-Device Information-More Information-Developer Dave Hylands - Original Message - From: Marek Raida marek.ra...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Thursday, August 7, 2014 10:20:00 PM Subject: Re: [b2g] Flame phone documentation, running adb as root well, yes. I'm on Windows with Cygwin and flashing v123 image works perfectly. However, my next attemt to flash nightly fails again and I no not know why. Perhaps someone with deeper understanding will, after look to the logcat outputs, tell me. In the meanwhile, I'll try to laborate with the flashing script a bit more... Marek ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Flame phone documentation, running adb as root
What script are you running that's failing? If it's a bash script, could you add a line near the top (after the #!/bin/bash line) that just has: set -x on it, and then run the script and send us the output? Dave Hylands - Original Message - From: Marek Raida marek.ra...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Friday, August 8, 2014 8:33:13 AM Subject: Re: [b2g] Flame phone documentation, running adb as root I'm sure I did it, checked it twice. Some other ideas, please? After flashing the base image, adb will wind up being disabled by default. So you'll need to go into Settings and turn it back on (IIRC it's the checkbox called Remote Debugging) in Settings-Device Information-More Information-Developer ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Proposal: Manage B2G.git scripts in a versioned repo
Hey John, Sounds like a good plan. I'm not familiar with repo file operations and couldn't find any documentation on this. If I wanted to make a change to the flash.sh script, can I edit the copy in the B2G directory? Or do I have to edit the one in b2g-scripts? Would it be possible to have the script in B2G be symlinks rather than copies (at least for linux)? Dave Hylands - Original Message - From: John Ford jhf...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Tuesday, August 5, 2014 12:51:52 PM Subject: Proposal: Manage B2G.git scripts in a versioned repo [bcc: dev-gaia] Hi, We store Firefox OS source code in various git repositories. We use the 'repo' tool written for the Android project to manage all of these repositories other than the top level B2G.git repository. B2G.git has a few helper scripts to simplify setting up a tree, building a tree as well as other tasks. A problem we have is that the B2G.git repository needs to be updated separately from the repo-managed repositories. Because B2G.git changes infrequently, it's often not updated and that can lead to unexplained breakage for developers. We and our partners have a lot of infrastructure in continuous integration systems which can't easily make full use of the tools stored in B2G.git without a lot of special code. My proposal is to move nearly all of the scripts and tools in B2G.git into a repo managed repository. The only things left in B2G.git would be a modified config.sh script and the repo stub script. I have a plan which should maintain the existing workflow while also letting people use the standard repo work flow. My plan is to: 1) create b2g-scripts repository, containing the B2G.git/scripts directory 2) create b2g-tools repository, containing the B2G.git/tools directory 3) move all scripts in the root of B2G.git into b2g-scripts 4) use repo file copy operations (like we do for the root Makefile) to copy those scripts back into the root of the source tree 5) remove the device configuration part of config.sh 6) create a new script, config-device.sh in b2g-scripts that has the device configuration steps. 7) have config.sh call config-device.sh after the source tree is initialized I will use Git history editing facilities to ensure that both b2g-scripts and b2g-tools maintain their respective histories. Once this is done, you would still be able to set up a fresh tree with the existing method: $ git clone https://github.com/mozilla-b2g/B2G.git $ cd B2G $ ./config.sh emulator $ ./build.sh This will continue to work as expected and will give the same entry points into the build system as we have now. Additionally, a new optional method matching the standard way of using repo is available: $ mkdir B2G $ cd B2G $ repo init -u http://github.com/mozilla-b2g/b2g-manifest.git -m emulator.xml $ repo sync $ ./config-device.sh emulator Please let me know if you have any thoughts on this issue. I would like to make sure that there is consensus about these changes before I start because testing will take some time. I will be doing as much as possible using scripts to make sure that the changes are repeatable and easy to verify. Thanks, John ___ dev-gaia mailing list dev-g...@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-gaia ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] accessing the real SD card via DeviceStorage on newer devices
There may be multiple storage areas. You can call navigator.getDeviceStorages(type) to get back an array of all of storage areas. Each storage area will have a name, retrievable using .storageName attribute. If there is more than one storage area, then the internal one will be named 'sdcard' and the physical storage are will be called something else (sometimes, it's extsdcard, sometimes its sdcard1). navigator.getDeviceStorage() returns the storage area whose .default attribute is true. This is controlled by the user in Settings-Media Storage-Default media location (way down at the bottom). If you call addNamed and pass in a relative path, then it will be stored on the default storage area. The onsuccess callback will get the fully qualified name (for example /sdcard/filename) where the file was actually stored. The names of files on the sdcard storage area will be /sdcard/path/filename, and the names of files on the sdcard1 storage area will be /sdcard1/path/filename Note that the /sdcard and /sdcard1 are storage names. Their actual mount points on the system are determined via vold and/or /system/etc/volume.cfg file). DeviceStorage transparently maps the storageName into the actual mountPoint (so you don't need the mount point if you're just accessing the files through device storage) If you want to determine the mount point to examine the filesystem from an adb shell, then you can determine the vold mount points by using the command: adb shell vdc volume list (requires a root shell) On the flame, you'll see something like: 110 0 sdcard /storage/sdcard 4 110 0 sdcard1 /storage/sdcard1 4 200 0 Volumes listed. For volumes which aren't managed by vold (the sdcard volume on a nexus 4/5 are examples of this), the mount point is found in /system/etc/volume.cfg With the engineering builds, there is a ds-test app (gaia/dev_apps/ds-test) which I use for testing things on device storage. Dave Hylands - Original Message - From: Adrian Custer a...@pocz.org To: Moz dev-b2g list dev-b2g@lists.mozilla.org Sent: Friday, August 8, 2014 5:06:41 PM Subject: [b2g] accessing the real SD card via DeviceStorage on newer devices Hey all, is there a way to access the actual SD card on newer devices using navigator.getDeviceStorage('')? While older devices had /sdcard (or really /mnt/sdcard) to access the external SD card, the trend seems to be to have that location reference built in ROM and have a secondary location for the SD card. For example, the TCP tablet has: root@android:/ # df Filesystem Size Used Free Blksize /dev 797M 32K 797M 4096 /mnt/secure 797M 0K 797M 4096 /mnt/asec 797M 0K 797M 4096 /mnt/obb 797M 0K 797M 4096 /system 1G 172M 1G 4096 /cache 1G 102M 1G 4096 /data 126M 89M 36M 4096 /mnt/sdcard 9G 84M 9G 4096 /mnt/secure/asec 9G 84M 9G 4096 /mnt/extsd 29G 4G 25G 32768 where the /mnt/sdcard is some internal block of memory and the /mnt/extsd is the 32GB SD card in the card slot. Gaia seems to be aware of these two spaces and may be using them for different purposes since I have : root@android:/ # ls /mnt/sdcard/ DCIM Documents LOST.DIR ... root@android:/ # ls /mnt/extsd/ DCIM LOST.DIR Music Pictures ... although maybe I added the directories by hand to the external SD card, I don't remember. The music app can access the music files on the card though, not sure how. The doc page https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getDeviceStorage does not mention anything. thanks for any info, ~adrian ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] ./build.sh gecko builds also Gaia
I'll sometimes create a gecko-only target and add it to gonk-misc/Android.mk around line 265: gecko-only: $(LOCAL_BUILT_MODULE) .PHONY: $(LOCAL_BUILT_MODULE) $(LOCAL_BUILT_MODULE): $(TARGET_CRTBEGIN_DYNAMIC_O) $(TARGET_CRTEND_O) $(addprefix $(TARGET_OUT_SHARED_LIBRARIES)/,$(GECKO_LIB_DEPS)) and then use ./build.sh gecko-only I'm not sure if that creates enough stuff to ./flash.sh gecko, but I typically use it for getting build errors on new code I'm writing in gecko. Dave Hylands - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: dev-b2g dev-b2g@lists.mozilla.org Sent: Tuesday, August 5, 2014 12:25:07 PM Subject: [b2g] ./build.sh gecko builds also Gaia Hi, it's been quite a long time I worked on Gecko, and now I see that merely running ./build.sh gecko also runs the gaia build. Why is this happening? The gaia build takes a really _really_ long time (especially with the default environment variables used by build.sh) and it's quite painful. I didn't see which recent changes made this, but I don't know well how the build process work in the B2G repository. Any pointer? -- Julien ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] B2G 2.1 build for flame fails
It seems that 1.3 doesn't have a Developer Menu (I saw the same thing that you did). But in the same place that you checked Developer Menu you can also enable remote debugging, which enables adb. Dave Hylands - Original Message - From: V-X -F vxfe...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Tuesday, July 29, 2014 10:20:52 PM Subject: Re: [b2g] B2G 2.1 build for flame fails Hi Dave, Thanks for the great instructions. 1. I've enabled the Developer Menu in the developer settings. 2. When I go back to the main settings I don't see the Developer menu near the bottom of the main settings screen. I'm running the Firefox Flame with OS Version 1.3.0.0-prerelease Thanks for your help! VXF On 26 July 2014 04:55, Dave Hylands dhyla...@mozilla.com wrote: Hi, You need to enable ADB, since it's disabled by default. 1 - Eanble the developer menu. This is in Settings-Device Information-More Information at the very bottom. (there were some changes about this so if you don't have this let us know) 2 - Then when you go back out to the main menu, you should see a Developer menu near the bottom of the main Settings app. 3 - Go into the Developer menu and set Debugging via USB to ADB Only. If it already says something other than Disabled, then set it to disabled first (and press OK) and then go back and set it to ADB Only. 4 - Now your device should show up 5 - Back in the main menu, go under Screen Lock and set it to disabled. Now back on your build machine rm -rf backup-flame (if it exists) rm -f out/target/product/flame/firmware.hash (if it exists) If your flame doesn't show up in adb devices then there isn't much point in proceeding any futther until you can resolve that. Dave Hylands From: v...@gmail.com vxfe...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Thursday, July 17, 2014 1:36:22 AM Subject: Re: [b2g] B2G 2.1 build for flame fails Thanks for the help Jon, I've tried adb devices and my Flame doesn't show up, although two drives are mounted (OSX 10.9.x) both called NO NAME, one is the phone and the other is a 32GB SD card. My Flame is definitely plugged directly into my MacBook Air, so I'm a bit stumped :( Thanks in advance! VXF ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g -- Sincerely, Vincent Xuan Feng ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] B2G 2.1 build for flame fails
Hi, You need to enable ADB, since it's disabled by default. 1 - Eanble the developer menu. This is in Settings-Device Information-More Information at the very bottom. (there were some changes about this so if you don't have this let us know) 2 - Then when you go back out to the main menu, you should see a Developer menu near the bottom of the main Settings app. 3 - Go into the Developer menu and set Debugging via USB to ADB Only. If it already says something other than Disabled, then set it to disabled first (and press OK) and then go back and set it to ADB Only. 4 - Now your device should show up 5 - Back in the main menu, go under Screen Lock and set it to disabled. Now back on your build machine rm -rf backup-flame (if it exists) rm -f out/target/product/flame/firmware.hash (if it exists) If your flame doesn't show up in adb devices then there isn't much point in proceeding any futther until you can resolve that. Dave Hylands - Original Message - From: v...@gmail.com vxfe...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Thursday, July 17, 2014 1:36:22 AM Subject: Re: [b2g] B2G 2.1 build for flame fails Thanks for the help Jon, I've tried adb devices and my Flame doesn't show up, although two drives are mounted (OSX 10.9.x) both called NO NAME, one is the phone and the other is a 32GB SD card. My Flame is definitely plugged directly into my MacBook Air, so I'm a bit stumped :( Thanks in advance! VXF ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] [Peak] device storage does not work properly
Hi Jovan, Device Storage gets its knowledge of which volumes exist from 2 sources. One is from the vold service. If you can get into an adb root shell (either use adb shell followed by su or adb root followed by adb shell) then you should be able to get vold's notion of volumes with this command: vdc volume list Device Storage also reads the /system/etc/volume.cfg file. I would expect this file to not be present on a geeksphone. If your vdc volume list looks wonky, then we can further investigate along those lines. vold determines its volumes by looking at /system/etc/vold.fstab (and I seem to recall older versions may have used another file as well, but I don't recall off the top of my head). Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, July 21, 2014 11:02:47 AM Subject: [b2g] [Peak] device storage does not work properly Hi, While I experimented with my own builds and the official Geeksphone builds, I recognized that with an official build everything works fine but with my builds the device storage does not work as it should. 1. The device detects no internal storage. 2. In SettingsMedia Storage it displays Internal (actually my SD-Card) and two SD-Card slots even though the Peak has only one SD-Card slot. 3. I have to select internal as default storage to be able to save files (with SD-Card I get requested to insert a SD-Card) 3. The rescanning of the media apps does not work. If they have no indexDB they will find every file and after that they doesn't recognize any change... 4. File browser apps take much longer to display the directory indexes. This all works with the official builds but not with my own builds. I experienced this problem since I create my own builds (since v1.4). Can someone think of anything how this could be fixed? -- Jovan ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] [Peak] device storage does not work properly
Hi Jovan, So this means that vold reports 3 volumes, sdcard, emcc, and fat which is why you see 3 storages in the settings app. I think that the production peak only supported a single storage area (regardless of whether there were more). New builds of FxOS support multiple volumes, so it's really just about getting things setup properly. It looks like fat is some type of loop mount of another filesystem (many internal filesystems do this). I think that FxOS normally expects the volume named sdcard to be the internal one, and anything else to be an external volume (either a physical sdcard or a USB thumb drive). I don't have a peak, so I'm not sure what the production vold.fstab looks like. I didn't think that the geeksphones had internal/external media storage areas. I though that they just had the physical sdcard (but I could be wrong). /data is an internal storage area for apps, but not for device storage. It would probably be useful to look at the output of the mount command from your phone and the production phone as well. Dave Hylands - Original Message - From: Jovan Gerodetti titannanom...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Monday, July 21, 2014 12:05:09 PM Subject: Re: [b2g] [Peak] device storage does not work properly the volume list looks like this: root@android:/ # vdc volume list 110 sdcard /mnt/sdcard 4 110 emmc /mnt/emmc 0 110 fat /mnt/fat 0 200 Volumes listed. As you thought, /system/etc/volume.cfg does not exist and /system/etc/vold.fstab contains this: dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.1/mmc_host dev_mount emmc /mnt/emmc 18 /devices/platform/msm_sdcc.3/mmc_host/mmc0 dev_mount fat /mnt/fat auto /devices/virtual/block/loop7 In addition I found this with adb logcat | grep Vold: I/Vold ( 126): Vold 2.1 (the revenge) firing up I/Vold ( 126): Load /etc/vold.origin.fstab. Do not use internal emmc partition. D/Vold ( 126): Volume sdcard state changing -1 (Initializing) - 0 (No-Media) D/Vold ( 126): Volume emmc state changing -1 (Initializing) - 0 (No-Media) D/Vold ( 126): Volume fat state changing -1 (Initializing) - 0 (No-Media) D/Vold ( 126): Volume sdcard state changing 0 (No-Media) - 2 (Pending) D/Vold ( 126): Volume sdcard state changing 2 (Pending) - 1 (Idle-Unmounted) D/VoldCmdListener( 126): volume list D/VoldCmdListener( 126): volume mount sdcard I/Vold ( 126): /dev/block/vold/179:33 being considered for volume sdcard D/Vold ( 126): Volume sdcard state changing 1 (Idle-Unmounted) - 3 (Checking) W/Vold ( 126): Skipping fs checks I/Vold ( 126): Device /dev/block/vold/179:33, target /mnt/sdcard mounted @ /mnt/secure/staging D/Vold ( 126): Volume sdcard state changing 3 (Checking) - 4 (Mounted) D/VoldCmdListener( 126): volume list -- Jovan 2014-07-21 20:45 GMT+02:00 Dave Hylands dhyla...@mozilla.com : Hi Jovan, Device Storage gets its knowledge of which volumes exist from 2 sources. One is from the vold service. If you can get into an adb root shell (either use adb shell followed by su or adb root followed by adb shell) then you should be able to get vold's notion of volumes with this command: vdc volume list Device Storage also reads the /system/etc/volume.cfg file. I would expect this file to not be present on a geeksphone. If your vdc volume list looks wonky, then we can further investigate along those lines. vold determines its volumes by looking at /system/etc/vold.fstab (and I seem to recall older versions may have used another file as well, but I don't recall off the top of my head). Dave Hylands From: Jovan Gerodetti titannanom...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, July 21, 2014 11:02:47 AM Subject: [b2g] [Peak] device storage does not work properly Hi, While I experimented with my own builds and the official Geeksphone builds, I recognized that with an official build everything works fine but with my builds the device storage does not work as it should. 1. The device detects no internal storage. 2. In SettingsMedia Storage it displays Internal (actually my SD-Card) and two SD-Card slots even though the Peak has only one SD-Card slot. 3. I have to select internal as default storage to be able to save files (with SD-Card I get requested to insert a SD-Card) 3. The rescanning of the media apps does not work. If they have no indexDB they will find every file and after that they doesn't recognize any change... 4. File browser apps take much longer to display the directory indexes. This all works with the official builds but not with my own builds. I experienced this problem since I create my own builds (since v1.4). Can someone think of anything how
Re: [b2g] Device goes offline when building.
In a user build, adb currently goes offline when the screen locks, and after 12 hours. You can disable the 12-hour timer using this script: https://gist.github.com/dhylands/6253999 On eng and user-debug builds, adb stays on all of the time. Enabling/Disabling other USB functions (USB tethering and/or USB Mass Storage) will also temporarily disable adb while the USB setting changes. This s typically for less than a second, but it will cause an adb session to be dropped. I've also filed a couple of bugs related to adb: https://bugzilla.mozilla.org/show_bug.cgi?id=1035437 - Add an adb wakelock https://bugzilla.mozilla.org/show_bug.cgi?id=1035423 - Add a property which allows adb to always stay enabled. I put these up as mentored bugs, so if anybody would like to tackle them, I'm happy to provide guidance. Dave Hylands - Original Message - From: A. Crespo madrid.cre...@gmail.com To: Andreas Pehrson pehr...@telenordigital.com Cc: Dev B2G List dev-b2g@lists.mozilla.org Sent: Sunday, July 20, 2014 1:54:32 PM Subject: Re: [b2g] Device goes offline when building. It seems to be an error related to ADB: http://playingwithsid.blogspot.com.es/2013/05/android-device-offline-fixing-adb.html I had the same issue with the Flatfish, by the way. I have fixed it using VirtualBox and loading its usb by default. It's very strange. 2014-07-20 22:21 GMT+02:00 Andreas Pehrson pehr...@telenordigital.com : Then I'm not sure what it could be. I don't have a flame myself so I'm not aware of any specific issues there. Check at what point it goes offline and maybe you can nail it down eventually. Andreas Pehrson --- Software Engineer (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com On Sun, Jul 20, 2014 at 5:25 PM, A. Crespo madrid.cre...@gmail.com wrote: Hi Andreas, Of course, I had disabled the lock screen. But maybe may it be related to it? Thanks. 2014-07-20 17:21 GMT+02:00 Andreas Pehrson pehr...@telenordigital.com : Do you have a lock screen enabled on your device? Adb is turned off when the lock screen is activated. Turn it on again by turning on the screen and unlocking the lock screen. Turn it on permanently by disabling the lock screen. Andreas Pehrson --- Software Engineer (+47) 959 60 374 | pehr...@telenordigital.com | www.telenordigital.com On Sun, Jul 20, 2014 at 4:15 PM, A. Crespo madrid.cre...@gmail.com wrote: Hi, I'm trying to build B2G for a Flame, but when I try to run build.sh, I get the following error: error: device offline. After that, I need to reattach the device to the computer to get again access by shell to the device. My udev rules are the following rules: http://paste.ubuntu.com/7825165/ So why is the Flame going offline? Best regards. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] If your flame build fails because of missing time_daemon, read this!
Here's what I did: - flash 122 base image - enable adb - disable screen lock (prevents adb from being disabled when the screen turns off) - rm -rf backup-flame and out/target/product/flame/firmware.hash - rebuild and it should pull a new backup-flame directory Dave Hylands - Original Message - From: Jonathan Hylands jhyla...@mozilla.com To: mozilla-dev-...@lists.mozilla.org Sent: Monday, July 14, 2014 9:12:16 AM Subject: Re: [b2g] If your flame build fails because of missing time_daemon, read this! I was getting this error this morning, so I tried to do this, and now I'm getting a different file error: Pulling chrome.manifest cp: cannot stat ‘../../../backup-flame/system/b2g/distribution/bundles/b2g_time/chrome.manifest’: No such file or directory Failed to pull chrome.manifest. Giving up. I used the build in https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/tinderbox-builds/b2g-inbound-flame-eng/latest/ and flashed my flame with that, and then attempted to rebuild using latest master (after deleting my backup-flame directory). I got this in the build log: 1587 files pulled. 0 files skipped. 1569 KB/s (321551578 bytes in 200.026s) so it appears all the files it is supposed to get are there. Any ideas? Thanks, Jon - Original Message - PSA: Bug 1032233 landed recently which tries to pull a time_daemon binary into the backup-flame directory. If you've been doing local builds for flame, your device may not have this file, and your build will fail. This is the same problem as the missing libgps.utils.so that happened earlier, and the steps to fix are the same (see below). Cheers, kats On 16/5/2014, 9:20, Kartikaya Gupta wrote: My flame build, which was working yesterday, broke this morning. See bug 1011481 for details, but here's the quick solution (note that this will completely erase everything on your device): - Download the latest flame.zip from the b2g-inbound pvtbuild folder [1] - Unpack it and run the ./flash.sh script inside the b2g-distro folder - Delete your backup-flame directory - Rebuild as usual The reason this happened is that some extra libraries were added to the flame build, and devices that were flashed from old pvtbuilds won't have these libraries. Therefore, if you have a backup-flame dir from prior to this change, it won't have these libraries either, and your build will fail. The new libraries were added yesterday and haven't made it into the latest mozilla-central pvtbuild yet, but they have made it into the latest b2g-inbound pvtbuild, so flashing that and rebuilding your backup-flame dir fixes it. From what Alex Lissy said I believe this might happen a few more times in the future as additional libraries are added to the flame build, so if you do get build errors in the future following these steps should fix it for you. Cheers, kats [1] https://pvtbuilds.mozilla.org/pvt/mozilla.org/b2gotoro/tinderbox-builds/b2g-inbound-flame-eng/latest/ ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] I need your help: Developing Firefox OS documentation
Hi Chris * Knowing your way around the B2G build system - it would be great to provide a really detailed view of how it works, what it does at each stage, etc. So that developers can help with it, and fix building problems as they arise (there's been a lot of traffic on the mailing list about this kind of thing recently.) The B2G build system is really just the android build system. gonk/misc/Android.mk is where we have a target called gecko, which in turn calls make to build gecko. There is also a target called profile.tar.gz defined in gaia/Android.mk Everything inside gecko then gets built using normal gecko procedures Everything inside gaia gets built using Android.mk and/or Makefile The rest is pretty much built using android build. We’ve got a fair bit of this already, in different places, but I’m sure we could organize them better, and provide a more detailed description of what happens, how it differs form Android build, how it’s the same, etc. It would be great to be able to answer all these mails we get on dev-b2g saying things like “this sucks: I tried to build for the Open C and bricked my phone. Your instructions weren’t good enough. So that doesn't really have anything to do with the build system. Unfortunately, in many cases, unbricking a phone involves using some Windows vendor tool to flash an image. And we're not authorized to redistribute the flashing tool, nor the images that could help out. So, in many cases our hands are tied, and the user needs to go to the vendor to get their phone unbricked. And for what can be done, each phone typically requires a specialized set of instructions. Somebody has to create these, and maintain them as changes occur. * What other B2G customizations can be done that are useful to talk about? What kinds of customizations? I suspect that there are many ways of customizing things, from prefs, to adding native code, and/or adding default apps. Yeah - there are bits and pieces all over the place. So creating someplace central to start would probably be good. I really don’t know what else. Whatever else we think might be worth telling the community about. Whatever might be productive for them to help with. I have started a google doc at https://docs.google.com/a/mozilla.com/document/d/1Wn-nQSHCxJnudyA0XgkVORpCGGBMUW6fOosxEXMkZ8Y/edit# Where I have started to collect useful notes. Please feel free to leave comments here, or reply to this mail. I'd really love some team members who are experienced in these areas to give me some help on putting together some truly useful docs. Why a google doc and not a wiki page? Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How to stop firefox from dropping adb? when screen is off.
If you disable the lock screen, then the adb session won't be dropped. You can also enable USB Mass Storage, and while the USB Mass Storage session is active, then the adb session also won't be dropped. It probably makes sense to alter the behaviour so that as long as a pin code isn't required, then it shouldn't drop the adb session (since, as you suggested, anybody can unlock the phone in this case). If a passcode is required to unlock, then I would argue that it should behave like it does today. If you have root access to your phone, I can tell you how to modify your phone to enable adb all the time. Dave Hylands - Original Message - From: Naoki Hirata nhir...@mozilla.com To: vampirefo kitts1...@gmail.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Friday, June 13, 2014 4:19:28 PM Subject: Re: [b2g] How to stop firefox from dropping adb? when screen is off. If you have built your device based on : http://bluishcoder.co.nz/2014/06/11/dual-booting-android-and-firefox-os.html Then it's just a matter of not using the Production=1 flag and using the VARIANT=eng flag instead. VARIANT=eng MOZILLA_OFFICIAL=1 ./build.sh That will build the engineering version. According to the website you would still have to follow the remainder of the steps to create a ROM. On Jun 13, 2014, at 4:10 PM, vampirefo kitts1...@gmail.com wrote: On Friday, June 13, 2014 6:57:33 PM UTC-4, Naoki Hirata wrote: Thanks for your input. It may be an inconvenience to you, to which I apologize that it is inconvenient. As stated before, you have the option of flashing the engineering gecko in which you will no longer be inconvenienced. Having stated that, end users that value their private data will most likely lock their phones with pass codes. There are people that do benefit from this feature ( bug 810092 ). On Jun 13, 2014, at 3:44 PM, vampirefo kitts1...@gmail.com wrote: On Friday, June 13, 2014 6:07:03 PM UTC-4, vampirefo wrote: My ZTE Open C firefox drops adb when screen is off, How to stop firefox from dropping adb connection? This is not security, it's just an inconvenience, if someone has access to my phone and knows how to use adb, then common sense says they know how to turn the screen on, please stop crippling the phone for useless security issues. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g I have no ideal what engineering gecko is, nor where to find it, nor do I know how to flash it, I am sure it's going to be a pain, for now reason, when all firefox has to do is stop, this false security stuff. So where is this engineering gecko and how do I flash it? most likely will completely lose all my settings, hours try to figuring out how to install another OSjust to have usb working as it should. Firefox sounds more like windows, making users do unnecessary stuff just cause someone's false belief of a security issue. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Smoketest Regressions on Trunk are Out of Control
Do we even have tests which run on a real device? If not, how can we write a test to verify that a call can be made? Dave Hylands - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: dev-b2g dev-b2g@lists.mozilla.org Sent: Tuesday, June 3, 2014 9:05:22 AM Subject: Re: [b2g] Smoketest Regressions on Trunk are Out of Control (answering on dev-b2g only, crossposting is painful) Le 03/06/2014 17:53, L. David Baron a écrit : On Tuesday 2014-06-03 08:13 -0700, Jason Smith wrote: I need this under control as soon as possible, as these regressions are causing the build to move towards being completely not functional. I'm also debating if we should close the Gaia tree at this point since there's now risk that we can end up with a non-functional build. Can we get this under control here? If closing the Gaia tree will help this, then let's do that. A somewhat radical proposal: 1. Close the tree, find the patches that caused the regressions, back them out, and reopen the tree. 2. Don't let the patches reland until a test has been added that is green without the patch, but would have caused orange when combined with the regression. If the regression was at a platform level or other lower level than the gaia app, the test could be too. But if that's the case it would also be good to have test coverage of the gaia apps. We're not always this strict about test coverage in Gecko-land, but it's been useful to be strict in areas with the problem of frequent regressions. Not getting tests added that catch these problems is an accumulation of technical debt. Perhaps now really is a bad time to deal with this, but there ought to be a time to do so. yes, this is exactly the path we try to follow nowadays. I hope it will make us more resilient in the future. -- Julien ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] a proposal on one tool to rule them all
Pulling from the phone probably won't be an option. unstripped libxul.so is about 700 Mb (for a non-debug emulator build). Most of our phones don't have enough space to store anything that big. We'd need to have these on a server someplace and be able to pull from the server. Dave Hylands - Original Message - From: Benoit Girard bgir...@mozilla.com To: James Burke jrbu...@gmail.com Cc: fxos-perf fxos-p...@mozilla.com, Dave Huseby dhus...@mozilla.com, dev-b2g@lists.mozilla.org Sent: Tuesday, April 8, 2014 11:43:39 AM Subject: Re: [b2g] a proposal on one tool to rule them all All that needed for that is to ship these builds without stripping the symbols (like we already do for mac/linux/fennec nightlies) and to modify profile.sh to support pulling all the information from the phone. On Tue, Apr 8, 2014 at 2:10 PM, James Burke jrbu...@gmail.com wrote: On Mon, Apr 7, 2014 at 10:34 AM, Dave Huseby dhus...@mozilla.com wrote: Thoughts? I would really like to get some feedback on this. If we think this is a good idea, it will dominate the perf dev-tools effort for the foreseeable future as it would be a tool useful for both Mozilla engineers (e.g. fxos-perf team, gaia team, etc) and 3rd party app developers. One thing that also might help make the whole perf capture easier to do today, without needing to expand the tooling: It would be nice to have a way to get symbols for use in the profile.sh workflow without needing to do a local build myself. Perhaps provide them as an option for engineering pvt builds. For some of us gaia developers, needing to maintain a local build of b2g on a laptop (plus the extra hitches if using latest OS X) means it is enough of a barrier that I have not done it recently, but at the same time have wanted to do some perf captures. James ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] black screen during boot
What does: adb shell stop b2g adb shell /system/bin/b2g.sh report? It looks like b2g isn't running. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Tuesday, April 1, 2014 11:37:42 AM Subject: Re: [b2g] black screen during boot Hi everyone, This is the boot on host via serial port connection: http://pastebin.com/h7T8XrKZ And, this is the log when I run $ adb logcat http://pastebin.com/s3AJWV27 I appreciate any kind of help. Thanks in advance Best regards, jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] b2g is not running during init process
Hi Jose, - Original Message - From: Jose Vidal jvida...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Monday, March 31, 2014 8:21:49 AM Subject: Re: [b2g] b2g is not running during init process Hi Dave, This was fixed. I used readelf -d libhardware_legacy.so Finally, I needed libwpa_client.so Actually, I have others service in different place: /system/media, /system/b2g.. etc. So, only I have add the missed libraries inside directory ?. We use a few of the low level services. What exactly is needed for each service sometimes changes from phone to phone. There are way too many variables to give you a generic answer. Is there automatic form to does that during build process? Only the parts that are built from source. Unfortunately, many of these don't have source code available. So we just copy them from the vendor phone. Each phone is slightly different. For example, for the unagi: https://github.com/mozilla-b2g/android-device-unagi/blob/master/extract-files.sh or for the hamachi: https://github.com/mozilla-b2g/android-device-hamachi/blob/master/extract-files.sh I can't tell you what's needed for a new phone, except that you need enough stuff to make everything work. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How to authorize adb service from boot
Hi Jose, I think that you probably need to disable adb secure mode. I think that you need to set ro.adb.secure=0 in the properties file which is used when the phone boots into recovery mode. I'm not sure how you actually go about doing this, but I suspect its part of the initramfs image of the recovery kernel. I haven't messed with this - I just took a look at the the adb source code (in system/core/adb). Alternatively, you could modify the source so that the daemon never starts up in secure mode. Search for ro.adb.secure in the directory above. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Monday, March 31, 2014 10:31:49 AM Subject: [b2g] How to authorize adb service from boot Hi everyone, I need to porting userdata.img I have a freescale connected to ubuntu host via serial port using minicom. From my host, when I put $ adb shell I get like response: error: device unauthorized. Please check the confirmation dialog on your device. I need to access adb service for porting userdata. Can I to activate adb from init, boot or somewhere? I hope for your help Thanks in advance. Best regards, jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How to authorize adb service from boot
Hi Jose, That looks reasonable. I'm not sure why adb wouldn't be running. Does your /init.rc have commands to start it? Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Monday, March 31, 2014 3:54:30 PM Subject: Re: [b2g] How to authorize adb service from boot Hi Dave, Thanks for your response, I have a default.prop file inside the initramfs.cpio.gz file of boot.img: = initramfs.cpio.gz = # # ADDITIONAL_DEFAULT_PROPERTIES # ro.secure=0 ro.allow.mock.location=1 ro.debuggable=1 persist.sys.usb.config=mtp,adb Mainly, I need to porting userdata,img and I can not make that because I can not to access via adb. What do you think ? How I can porting userdata.img image? Thanks in advance Best regards, jvidalsm 2014-03-31 17:43 GMT-05:00 Dave Hylands dhyla...@mozilla.com: Hi Jose, I think that you probably need to disable adb secure mode. I think that you need to set ro.adb.secure=0 in the properties file which is used when the phone boots into recovery mode. I'm not sure how you actually go about doing this, but I suspect its part of the initramfs image of the recovery kernel. I haven't messed with this - I just took a look at the the adb source code (in system/core/adb). Alternatively, you could modify the source so that the daemon never starts up in secure mode. Search for ro.adb.secure in the directory above. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Monday, March 31, 2014 10:31:49 AM Subject: [b2g] How to authorize adb service from boot Hi everyone, I need to porting userdata.img I have a freescale connected to ubuntu host via serial port using minicom. From my host, when I put $ adb shell I get like response: error: device unauthorized. Please check the confirmation dialog on your device. I need to access adb service for porting userdata. Can I to activate adb from init, boot or somewhere? I hope for your help Thanks in advance. Best regards, jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How to authorize adb service from boot
Hi Jose, - Original Message - From: Jose Vidal jvida...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Monday, March 31, 2014 4:10:32 PM Subject: Re: [b2g] How to authorize adb service from boot Hi Dave, Do you have reason. Seems totally counterintuitive to me. You'd probably need to debug adbd (or add a bunch of prints/log statments) to figure out what its really doing. I changed in init.rc file # Enable adb security for JB4.2.2 setprop ro.adb.secure 0 by # Enable adb security for JB4.2.2 setprop ro.adb.secure 1 Now, I can to access from adb $ adb shell This looks like a shell user shell. What you really want is a root user shell (which will have a # prompt). There may be rules in the init.rc (or other .rc files) which are starting adb when ro.adb.secure is set to 1? Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] question regarding realtime performance guarantees
Since Android and FxOS are both based on linux, and linux can't guarantee realtime performance, neither can guarantee realtime performance. Both Android and FxOS use garbage collected languages (Java for Android, JavaScript for FxOS) which don't use realtime garbage collectors, so even if the OS were realtime, it still wouldn't help unless the portions of interest were written in languages which don't need GC (like C or C++). Dave Hylands - Original Message - From: debami...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Thursday, March 27, 2014 9:29:31 PM Subject: [b2g] question regarding realtime performance guarantees Hello, Not sure if this is the right forum, but asking anyway as this is the next smartphone OS after Android, as I see it. Is there anyway to ensure guaranteed realtime performance for some parts of the phone OS? I want this for ensuring that basic telephony services (making/receiving a call/text) work with a realtime guarantee regardless of the state of the OS (i.e., even if it is sluggish or hanging due to some heavy apps). I feel this is an important design consideration for a mobile OS. Any inputs regarding something done on these lines in b2g, or something that can be done? Regards, Debamitro Chakraborti ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] I have chmod 0755 /system/b2g/b2g error = -30
errno 30 = EROFS - Read-only file system errno 2 = ENOENT - No such file or directory - Original Message - From: Jose Vidal jvida...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Friday, March 28, 2014 11:28:38 AM Subject: [b2g] I have chmod 0755 /system/b2g/b2g error = -30 Hi everyone, I have the loglevel 8 in init.rc and I have the next error messages: init: processing action 0x351f0 (fs) ehci_fsl_bus_suspend begins, Host 1 ehci_fsl_bus_suspend ends, Host 1 UBIFS: mounted UBI device 0, volume 0, name system UBIFS: mounted read-only UBIFS: file system size: 229318656 bytes (223944 KiB, 218 MiB, 1806 LEBs) UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: none UBIFS: reserved for root: 0 bytes (0 KiB) UBIFS: start fixing up free space UBIFS: free space fixup complete UBIFS: mounted UBI device 0, volume 3, name data UBIFS: file system size: 143990784 bytes (140616 KiB, 137 MiB, 1134 LEBs) UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: none UBIFS: reserved for root: 0 bytes (0 KiB) UBIFS: default file-system created UBIFS: mounted UBI device 0, volume 1, name cache UBIFS: file system size: 61837312 bytes (60388 KiB, 58 MiB, 487 LEBs) UBIFS: journal size: 3047424 bytes (2976 KiB, 2 MiB, 24 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: lzo UBIFS: reserved for root: 2920728 bytes (2852 KiB) UBIFS: default file-system created UBIFS: mounted UBI device 0, volume 2, name device UBIFS: file system size: 9396224 bytes (9176 KiB, 8 MiB, 74 LEBs) UBIFS: journal size: 1015809 bytes (992 KiB, 0 MiB, 6 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: lzo UBIFS: reserved for root: 443806 bytes (433 KiB) init: command 'mount_all' r=0 init: command 'chmod' r=-30 init: command 'chmod' r=-2 init: command 'chmod' r=-30 Mainly, my question is about === init: command 'chmod' r=-30 init: command 'chmod' r=-2 init: command 'chmod' r=-30 === This is caused by on fs # mount ubifs partitions mount_all /fstab.freescale chmod 0755 /system/b2g/b2g chmod 0755 /system/b2g/updater chmod 0755 /system/b2g/plugin-container Why I have these error messages? I hope for your help. Thanks in advance Best regards. jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] b2g is not running during init process
Hi Jose, - Original Message - From: Jose Vidal jvida...@gmail.com To: mozilla-dev-...@lists.mozilla.org Sent: Friday, March 28, 2014 11:38:08 AM Subject: [b2g] b2g is not running during init process Hi everyone, I'm porting B2G on freescale device. I stopped the /system/bin/b2g.sh process during init. This process is running in infinite loop. When I try run the b2g.sh manually, I have the next error message: root@android:/ # ./system/bin/b2g.sh soinfo_link_image(linker.cpp:1635): could not load library libhardware_legacy.so needed by /system/b2g/b2g; caused by soinfo_link_image(linkE 255|root@android:/ # I checked the libhardware_legacy.so lib inside the /system/lib root@android:/ # ls -l system/lib/libhardware_legacy.so -rwxrwxr-x system system 21764 2014-03-28 12:36 libhardware_legacy.so root@android:/ # Any idea which one is the problem? Probably one of the libraries that libhardware_legacy.so needs is missing. On your host machine you can go do: cd out/target/product/DEVICE-NAME/system/lib readelf -d libhardware_legacy.so and it will print out what libraries are needed to load libhardware_legacy.so Repeat readelf for each of the libraries to find out what libraries they need etc. Verify that ALL of the needed libraries are in your /system/lib Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] I get waiting for device and the 51-android.rules file is ok
If the phone shows up in adb devices, then it will definitely not show up in fastboot devices, and similary if it shows up in fastboot devices then it won't show up in db devices. It can only be in one of the 2 modes. If it shows up in adb devices, then you can generally do: adb reboot bootloader to get it into fastboot mode. Otherwise, you typically have to hold some combination of Vol-up Vol-down, home and/or power while booting in order to get it into fastboot mode (the exact sequence varies from phone to phone). Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, February 14, 2014 11:01:21 AM Subject: Re: [b2g] I get waiting for device and the 51-android.rules file is ok Hi, This is my response when I put adb server command: $ adb server cannot bind 'tcp:5037' ADB server didn't ACK * could not start server * Regards. jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Unsupported device device_id, can't flash
Hi Jose, I'd recommend that you put set -x at the top of the flash.sh script, re-run the script and see what the script is doing to detect unsupported device id. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Thursday, February 13, 2014 11:39:15 PM Subject: [b2g] Unsupported device device_id, can't flash Hi everyone, I have the next image files: out/target/product/device_id/boot.img out/target/product/device_id/ramdisk.img out/target/product/device_id/ramdisk-recovery.img out/target/product/device_id/recovery.img out/target/product/device_id/system.img out/target/product/device_id/userdata.img Now, when I use flash, I get the next error message: - $ ./flash.sh Unsupported device device_id, can't flash - Someone could give me a help, please ? Thanks in advance. Regards. jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Build failed - kernel and boot.img
You need to provide the kernel sources to build the kernel for your device (we don't have those sources). Or use some prebuilt kernel that you obtain from some other source. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Thursday, February 13, 2014 1:04:22 AM Subject: [b2g] Build failed - kernel and boot.img Hi everyone, On build process (./build.sh -j1), I get the next error message: -- make: *** No rule to make target `out/target/product/id_device/kernel', needed by `out/target/product/id_device/boot.img'. Stop. real 0m40.643s user 0m31.428s sys 0m5.100s Build failed! -- I would some tips to solve that. Thanks in advance. Regards. jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app
Hi Chris, - Original Message - From: Chris Mills cmi...@mozilla.com To: Fred Lin f...@mozilla.com, Dave Hylands dhyla...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Tuesday, February 11, 2014 1:01:42 AM Subject: Re: [b2g] Info needed: how to specify which Gaia apps are included ina Gaia build, and how to show/hide the marketplace app Thanks so much for your guidance, Dave and Fred. I have taken your words and put them into my guide: https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Hacking#Customizing_the_build-time_apps Can you let me know if it sounds correct?The demo stuff seems to have been transcribed slightly incorrectly. For whatever reason, the way the Makefile is setup, you don't do DEMO=1 make, but rather make demo. The VARIANT stuff is normally set in .userconfig. I looked at the .userconfig page and I don't see anything there, so its probably worth adding a section. You might want to skip even mentioning the demo/dogfooding stuff and just mention that apps-engineering.list is used for eng builds, and apps-production.list is used for user and user-debug, and that you can override using GAIA_APP_CONFIG I only included the Makefile snippets to provide the logic used in making the decision. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How do we use the browser to open web pages stored on the SD card?
Hey Joshua, As long as this gets implemented by using DeviceStorage to read the HTML file from the sdcard you'll be fine. If you try to read the file directly (using nsIFile) then it may work on older phones, but it definitely won't work on the newer phones (due to the way the permissions are setup). Dave Hylands - Original Message - From: Joshua Smith joshua-sm...@verizon.net To: Hugh Tay h...@hadronization.com, dev-b2g@lists.mozilla.org Sent: Monday, February 10, 2014 5:06:22 AM Subject: Re: [b2g] How do we use the browser to open web pages stored on the SD card? On 2/8/14, 9:33 AM, Hugh Tay wrote: Anyhow, I'm looking for something that could load and render the HTML in the web pages the way a browser would (e.g. FireFox for desktop), so if you're looking to add similar functionality to your app perhaps we could work something out? That functionality would not be hard to implement. In fact, let me see if I can do it today :) Prospector is currently in alpha, so it has a few issues like that. Our GitHub is https://github.com/Codexa/Prospector if you are interested. - Josh ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] utils/Compat.h: No such file or directory
Running: find . -name Compat.h on my nexus 4 tree (which is JB based) yields: ./frameworks/native/include/utils/Compat.h On my ICS based unagi tree, it yields: ./frameworks/base/include/utils/Compat.h Comparing the 2 files, it looks like they moved the file. Dave Hylands - Original Message - From: Jose Vidal jvida...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, February 10, 2014 1:26:54 PM Subject: Re: [b2g] utils/Compat.h: No such file or directory Hi, I have compared between b2g_jb_3.2 and b2g_ics_1.2 from the www.codeaurora.org repo site (platform/frameworks/base) For example, in the first repo (b2g_jb_3.2) the utils directory there is not, but the #include utils/Compat.h is called from androidfw/Asset.h. And, there is more than one. How is that possible ? What can I do. ? I my case, I' working with b2g_jb_3.2. I hope your help. Regards. jvidalsm ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] cutils/qsort_r_compat.h: No such file or directory
Hi Jose, - Original Message - From: Jose Vidal jvida...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, February 10, 2014 6:02:39 PM Subject: Re: [b2g] cutils/qsort_r_compat.h: No such file or directory Hi, Yes, maybe I make a mistake during the download. I'm making this manually. Also, I'm building my own local repo. My target is to build B2G on based Android 4.2.2 (JB) version. What repo I should use like reference ? I'm not sure. The nexus-4 was the first JB device that we added support for and its based on 4.3 Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] how b2g links to the system library
Hi Sam, - Original Message - From: Sam Lin ckjboy2...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Sunday, February 9, 2014 6:25:05 PM Subject: [b2g] how b2g links to the system library hello, I have encountered the error which is undefined reference to After investigating the issue, I found that the system library does not link to gecko. Which system library are you referring to? (There are many) Which undefined symbol are you encountering? Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] the execution of SystemWorkerManager in b2g
Hi Paul, - Original Message - From: Paul mozloverin...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, February 7, 2014 10:26:12 PM Subject: Re: [b2g] the execution of SystemWorkerManager in b2g Hey Dave, So I can think those files generate .o listed in moz.build will be compiled into libxul.so. Is this correct? I currently have a file listed in moz.build and this file has its own .o file (say abcd.o). I assume this abcd.o file will be linked to the codes which need functions in abcd.o. However, the compilation failed and it shows undefined reference to . My understanding is this should not happen since libxul.so has been loaded when the system completes its boot up. Can you teach me why this happened and how to fix it in anyway? I'd really need to see the complete error message, the actual source code and the actual changes you made to moz.build. You could have missing header files, you could have a typo in your source code, or it could be something else. There are many many many different ways that you get errors like the one you described. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] what triggers orientation sensor events?
Hi Ben, This seems to be where the polling rate is set: http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp#220 I think that this API is where it all starts: http://dxr.mozilla.org/mozilla-central/source/xpcom/system/nsIDeviceSensors.idl#28 addWindowListener http://dxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp#135 calls RegisterSensorObserver http://dxr.mozilla.org/mozilla-central/source/hal/Hal.cpp#545 which calls EnableSensorNotifications http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp#261 which calls SetSensorState http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp#246 which call SwtichSensor http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp#220 There is also this code path (actually, now that I found this path, I imagine its the path that is activating things): nsWindow constructor calls NotifyScreenInitialized: http://dxr.mozilla.org/mozilla-central/source/widget/gonk/nsWindow.cpp#154 nsAppShell::NotifyScreenInitialized creates an OrientationObserver: http://dxr.mozilla.org/mozilla-central/source/widget/gonk/nsAppShell.cpp#1023 OrientationObserer call EnableAutoOrientation http://dxr.mozilla.org/mozilla-central/source/widget/gonk/OrientationObserver.cpp#176 EnableAutoOrientation call RegisterSensorObserver http://dxr.mozilla.org/mozilla-central/source/widget/gonk/OrientationObserver.cpp#240 and follows the from RegisterSensorObserver above. Hopefully that helps. Dave Hylands - Original Message - From: Ben Kelly bke...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Saturday, February 8, 2014 6:24:58 PM Subject: [b2g] what triggers orientation sensor events? So while working on bug 965369 I instrumented the code in hal/gonk/GonkSensor.cpp and observed that the poppit app receives orientation sensor results every 50ms from the moment it is launched. These results seem to ultimately be translated into 'devicemotion' events for the app. In contrast, other apps do not trigger my GonkSensor.cpp instrumentation in a repeated manner like this. Can anyone tell me what we look for to see how we enable the accelerometer sensor for an app? I thought maybe registering for 'devicemotion' would do it, but poppit does not do that immediately. It only does that the first time it needs acceleration information, which is much later during a game. I also stripped the manifest down to just the name, icon, and invocation path using app-manager. Still the poppit app spends a ton of time processing these sensor results. Can anyone point me in the right direction? Thanks! Ben ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Advice on bug reporting
Hi Worik, - Original Message - From: Worik Stanton worik.stan...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: Mozilla B2G mailing list dev-b2g@lists.mozilla.org Sent: Saturday, February 8, 2014 7:52:39 PM Subject: Re: [b2g] Advice on bug reporting On 08/02/14 13:59, Dave Hylands wrote: Probably the 2 most useful version identifiers are the current hashes from the gaia and gecko repositories. You could create a script which contained the following: #!/bin/bash (cd gaia; echo gaia $(git rev-parse HEAD)) (cd gecko; echo gecko $(git rev-parse HEAD)) Thanks. This is cool. Version identifiers. I'm doing it in my own build script. Is there no version numbering with a strict ordering (perhaps a time stamp of the most recently updated file)? Unfortunately, no. The timestamps reflect when the commit was made, not necessarily when it was merged into the tree. And if Joe created branch A from master, and Jill created branch B, then they could both be branched from the exact same point. This would be useful for the case where Joe and Jill have both built trees (an investment of time) and are noticing different behaviours, and Joe would like to know if Jill built from more recent or less recent sources. Should I file a bug? If Joe and Jill know each others commits, then they probably figure out which one is newer by comparing histories, but I'm not sure how else to do it (perhaps somebody who knows about git can pipe up). Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] didn't build fully, now where do I look?
Do you have external/gtest in your tree? That's where the sources to build libgtest come from. Did you run: ./config.sh galaxy-s2 That should have populated external/gtest Try running repo sync from the top of your B2G tree and rerun it until you just get a few lines of output with no errors: 898 repo sync Fetching projects: 100% (79/79), done. Syncing work tree: 100% (79/79), done. Unfortunately, I no longer have a galaxy-s2 so I can't build for it. Dave Hylands - Original Message - From: Techno Buddha wrott...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, February 7, 2014 3:12:06 PM Subject: Re: [b2g] didn't build fully, now where do I look? Finished: Generating extensions run-js-command settings # create a clean folder to store data for B2G, this folder will copy to b2g output folder. rm -rf profile/defaults mkdir -p profile/defaults/pref # rename user_pref() to pref() in user.js sed s/user_pref\(/pref\(/ profile/user.js profile/defaults/pref/user.js cp profile/settings.json profile/defaults/settings.json Profile Ready: please run [b2g|firefox] -profile /andfox/B2G/gaia/profile make[1]: Leaving directory `/andfox/B2G/gaia' target Prebuilt: gaia (out/target/product/galaxys2/obj/DATA/gaia_intermediates/gaia) Gaia install path: out/target/product/galaxys2/data/local/webapps mkdir -p out/target/product/galaxys2/data/local out/target/product/galaxys2/data/local rm -rf out/target/product/galaxys2/data/local/webapps cd out/target/product/galaxys2/data/local tar xfz /andfox/B2G/out/target/product/galaxys2/obj/DATA/gaia_intermediates/gaia mkdir -p out/target/product/galaxys2/system/b2g cp /andfox/B2G/gaia/profile/user.js out/target/product/galaxys2/system/b2g/user.js make: *** No rule to make target `out/target/product/galaxys2/obj/STATIC_LIBRARIES/libgtest_intermediates/libgtest.a', needed by `out/target/product/galaxys2/obj/EXECUTABLES/binderAddInts_intermediates/LINKED/binderAddInts'. Stop. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Advice on bug reporting
Hi Worik, Probably the 2 most useful version identifiers are the current hashes from the gaia and gecko repositories. You could create a script which contained the following: #!/bin/bash (cd gaia; echo gaia $(git rev-parse HEAD)) (cd gecko; echo gecko $(git rev-parse HEAD)) Dave Hylands - Original Message - From: Worik Stanton worik.stan...@gmail.com To: Mozilla B2G mailing list dev-b2g@lists.mozilla.org Sent: Friday, February 7, 2014 4:45:09 PM Subject: [b2g] Advice on bug reporting For my sins I keep my keon updated to as bleeding edge B2G as I know how. I started from https://developer.mozilla.org/en-US/Firefox_OS/Preparing_for_your_first_B2G_build. These days each day I ./repo sync ; ./build.sh ; ./flash.sh My version number in settings-Device Information has stayed steady on 1.4.0.0-prerelease for a while now. My question is: When I make a bug report I want to be specific about which version I am running. Other than noting the time of day I ran ./repo is there somewhere I can get useful version information that is more finely grained than 1.4.0.0-prerelease? I have a meta question too: Where should I have been looking in the documentation (if anywhaere) to find out for myself? cheers Worik -- The only true evil is turning people into things Granny Weatherwax worik.stan...@gmail.com 021-1680650, (03) 4821804 Aotearoa (New Zealand) ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Trouble accessing the SD card from the Emulator build
Hi Hugh, - Original Message - From: Hugh Tay h...@hadronization.com To: dev-b2g@lists.mozilla.org Sent: Wednesday, January 29, 2014 9:41:20 AM Subject: Re: [b2g] Trouble accessing the SD card from the Emulator build Good day Dave, Thanks for the clarification, and thanks also for suggesting ways the asynchronous API can fit a synchronous model. Also, pardon me for asking (I'm still not that familiar with Mozilla's workflow), how does one contribute to the work on the FileSystem API? Perhaps I might be of some help here. Since that bug is assigned and being worked on, you should coordinate with the assignee (for bug 910412). Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Trouble accessing the SD card from the Emulator build
Hi Hugh, - Original Message - From: Hugh Tay h...@hadronization.com To: dev-b2g@lists.mozilla.org Sent: Sunday, January 26, 2014 7:58:18 AM Subject: Re: [b2g] Trouble accessing the SD card from the Emulator build Hi Dave, I've finally managed to get the DeviceStorage functionality to work within my App. Thank you so much for suggesting the troubleshooting methods I could try (no pun intended). =) Maybe in my case the problem was caused by implementing LocalStorage code together with DeviceStorage code; I separated the code piece by piece and was able to read from/write to the SD-card eventually. --- Anyhow, I have 2 other questions I would like to consult you about... The 1st is that per this Bugzilla thread - https://bugzilla.mozilla.org/show_bug.cgi?id=859696 - is deleting and re-creating a file really the only way to save changes to the file right now? yes - There is are 2 bugs which are relevant. The first is that the editable variation of get hasn't been implemented for OOP (Out-Of-Process) apps (and all apps on FxOS are OOP). Bug 771288 - Multiprocess FileHandle support Bug 859696 - [DeviceStorage] getEditable's result is not FileHandle object. Diff with spec. And there is some work for this bug Bug 910412 - Change DeviceStorage API to use FileSystem API spec which may make things easier once it lands. The 2nd is if I need to read multiple files synchronously; would that be possible? You see the trouble is, my App requires info from various files and it can't do anything else 'in the meantime' while waiting for the info, so the asynchronous method doesn't really help in this case as now I would have to hook up lots of listeners to notify me when the process is complete. Are there perhaps alternative approaches I could consider? The API is inherently asynchronous, so you can either issue all of your requests at once and use a queue to keep track of whether they're all done or not, or you can read a file, wait for the read to complete, perform the next operation, etc. ds-test does the process one file at a time approach. http://dxr.mozilla.org/mozilla-central/source/dom/devicestorage/test/test_lastModificationFilter.html is an example of another program which adds six files, one after the other, with a delay added between the first 3 and last 3 files. It starts at addOldFiles which calls addFileArray to add some files, and then does a delay and calls addFileArray to add some more files. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] the execution of SystemWorkerManager in b2g
Hi Paul, - Original Message - From: Paul mozloverin...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Thursday, January 23, 2014 1:02:18 AM Subject: Re: [b2g] the execution of SystemWorkerManager in b2g Hi Dave, Thanks for you explanation. Here are some questions that confuse me awhile. 1. How libxul.so is loaded from the main b2g app ? (Do you mean the main b2g app equals to b2g process?) Yes b2g app == b2g process. /system/b2g/libxul.so gets loaded here: http://dxr.mozilla.org/mozilla-central/source/b2g/app/nsBrowserApp.cpp#215 eventually working down to here: http://dxr.mozilla.org/mozilla-central/source/xpcom/glue/standalone/nsXPCOMGlue.cpp#256 2. In the gecko/hal/gonk folder, there are some files (such as GonkHal, GonkFMRadio and so on), these files also have their .o file in objdir-gecko. Say GonkHal.o, compared to SystemWorkerManager.o, I dont see any code to invoke this .o file. I dont understand how GonkHal.o gets linked or invoked by other files. Those particular files get linked into libxul.so from the moz.build file in the directory above. moz.build controls exactly which .o files get included into libxul.so. .o files aren't invoked. Functions are. To find out who calls a function, I normally use: http://dxr.mozilla.org/mozilla-central/search?tree=mozilla-centralq=redirect=true For example, if you type GetTimezoneOffset (a function from GonkHal.cpp) then you'll see all of the places which refernce that (you may get more as well, since dxr is essentially doing a string search). 3. If I create a .o file, will that be okay to link this file to the b2g process and make it get invoked when the system boots up? If so, is there any example available in b2g source? If you're building from source, sure. Getting things invoked really depends on what it is you're trying to do. For example, the AutoMounter's InitAutoMounter function http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/AutoMounter.cpp#717 is called from here: http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/SystemWorkerManager.cpp#242 The AutoMounter.cpp file is compiled into libxul.so because it's listed in the moz.build file here: http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/moz.build#40 Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Trouble accessing the SD card from the Emulator build
Hi Hugh, - Original Message - From: Hugh Tay h...@hadronization.com To: dev-b2g@lists.mozilla.org Sent: Monday, January 20, 2014 7:36:21 AM Subject: [b2g] Trouble accessing the SD card from the Emulator build Hello there, Nice to meet you. I'm having trouble performing file operations on the SD card through my Certified-level app. - I've added the permission to my webapp.manifest - device-storage:sdcard : { access: readwrite } - And I've verified that run-emulator.sh contains - SDCARD_SIZE=1024M SDCARD_IMG=${SDCARD_IMG:-${B2G_HOME}/out/target/product/${DEVICE}/sdcard.img} - Yet the API navigator.getDeviceStorage(sdcard) still insists on throwing Null at me and I don't know what to do. Is this an issue with the Emulator build or is there some way to enable SD-card functionality on the Emulator? So I tried running ds-test (which has the DS icon). (I left the SDCARD_SIZE at its default). It seems to be running fine in the emulator. I chose Add Del Unnamed File You can find the source for ds-test in gaia/test_apps/ds-test Was the certified app installed as part of the emulator build? I was running master fetched from last night. Were there any messages in logcat? Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] unable to build gecko
Hi Amruth, - Original Message - From: amruth vamadev amruth.vama...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Wednesday, January 22, 2014 10:03:19 AM Subject: [b2g] unable to build gecko Hi All I am unable to build gecko after checkout from github b2gdev. I need to build for arm target (arm-linux-androideabi-4.7). Can anybody suggest or point to some location with details The official location is: https://github.com/mozilla-b2g/B2G/ Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] the execution of SystemWorkerManager in b2g
Hi Paul, - Original Message - From: Paul mozloverin...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Wednesday, January 22, 2014 8:57:37 PM Subject: [b2g] the execution of SystemWorkerManager in b2g Hi, developers I found that SystemWorkerManager.o in the folder objdir-gecko. However, I tried to figure out how SystemWorkerManager.o gets invoked(loaded) in the b2g. Currently I dont find any clue in gecko. SystemWorkerManager is linked into libxul.so It gets created here: http://dxr.mozilla.org/mozilla-central/source/layout/build/nsLayoutModule.cpp#290 Could anyone give me a hint about how system loads these .o (.so) file to execute? The .o file is linked into libxul.so and libxul.so is loaded from the main b2g app. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time
Hi Julien, What I learnt for 1 year is that setTimeout should _never_ be used in tests. Tests should _never_ be asynchronous. If you use setTimeout in code, then use sinon's fake timers to linearize this code and make it synchronous. And to prove that _never_ is sometimes not really _never_ (or there's always an exception), I wrote a device storage test where I need to use setTimeout (or sometype of sleeping function). The test needs to create files with different timestamps (as read by the filesystem). I'm no JS expert, so if there is a way to do this without using setTimeout, I'd be happy to change my test. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] mavericks + vmware + hamachi: flash.sh -h works, flash.sh doesnt
Hi Julien, - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: Dave Hylands dhyla...@mozilla.com, Jared Hirsch 6...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Friday, November 15, 2013 2:27:31 AM Subject: Re: [b2g] mavericks + vmware + hamachi: flash.sh -h works, flash.sh doesnt Le 15/11/2013 01:45, Dave Hylands a écrit : So ./flash.sh someword winds up being essentially the same as ./flash.sh -f which does a fullflash. ./flash.sh with no arguments just flashes gecko and gaia. I've found that when doing a gecko/gaia flash, I often have to do a reset-gaia (make -C gaia reset-gaia) isn't it what ./flash.sh gaia does? Or maybe it does a install-gaia? Does ./flash.sh flash gecko/gaia using fastboot, or using adb? I thought it was adb. Could be useful to have comments at the start of ./flash.sh explaining basically what we can use, because reading the source code is sometimes misleading :) There are 2 ways of flashing: 1 - flashing the entire image using fastboot 2 - flashing just gecko or just gaia, which uses adb ./flash.sh gecko and ./flash.sh gaia always use adb ./flash.sh -f always uses fastboot ./flash.sh with no args uses fastboot for all devices except leo, hamachi, and helix, which use adb. ./fash.sh with no args tries to do the thing that works most consistently for a given device, and this can change over time. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] mavericks + vmware + hamachi: flash.sh -h works, flash.sh doesnt
So ./flash.sh someword winds up being essentially the same as ./flash.sh -f which does a fullflash. ./flash.sh with no arguments just flashes gecko and gaia. I've found that when doing a gecko/gaia flash, I often have to do a reset-gaia (make -C gaia reset-gaia) It seems to have something to do with stuff in the data partition being out of sync with the executables being installed. Dave Hylands - Original Message - From: Jared Hirsch 6...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Thursday, November 14, 2013 4:29:19 PM Subject: Re: [b2g] mavericks + vmware + hamachi: flash.sh -h works, flash.sh doesnt Update: *any* number of args seems to trigger good behavior, while no args consistently fails. Looking at the script to understand why. On Nov 13, 2013, at 4:21 PM, Jared Hirsch 6...@mozilla.com wrote: TL;DR: I can only flash my hamachi if I call `flash.sh -h`. Omitting the -h causes it to fail every time. Why? Hey all, Just digging into FXOS development, have been working on flashing my hamachi for a couple of days. My setup is as follows: * Retina MBP running Mavericks * VMware Fusion 6.0.1 * Using the fxosqa VM[1] with adb 1.0.31 * Created a separate directory ~/Projects/B2G_hamachi * Ran through the build steps in [2], essentially: git fetch, ./config.sh hamachi, and ./build.sh Now, if I attempt to flash the device by doing `./flash.sh`, I consistently get a failure where adb crashes, the flash.sh script hangs, and I only see a few lines of output[3]. But, weirdly, if I add the -h argument to flash.sh, it works just fine. I've taken a cursory look at flash.sh, but it's not clear to me just why passing this argument makes it work. If anybody has insight, I'd love an explanation. Cheers, Jared [1] (omitting the link, it's behind LDAP anyway) [2] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build [3] https://pastebin.mozilla.org/3598761 ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Process Architecture.
Hi Manjunatha, https://wiki.mozilla.org/B2G/Architecture provides an overview of the various processes. The content apps run with very low priviledge levels and commuicate with the main process via IPC (over pipes). Each content app has a main thread and various other threads. JS mostly runs on the main thread, although I think that there are web workers that run on their own threads. The gecko/gonk layer create helper threads whenever it makes sense. We often use https://developer.mozilla.org/en-US/docs/Performance/Profiling_with_the_Built-in_Profiler for performance profiling. Some links about memory reporting/profiling https://wiki.mozilla.org/B2G/Debugging_OOMs http://blog.mozilla.org/nnethercote/category/b2g/ Dave Hylands - Original Message - From: Manjunatha M man...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Wednesday, November 13, 2013 5:39:18 AM Subject: [b2g] Process Architecture. Hi All, I want to understand how each app runs as a process in Firefox though the system application creates a new iFrame to launch the web application. (Basically the process model) How the thread splits happens at each layer Gaia , Gecko, Gonk? Can you share links with respect to the memory management and memory profiling? -- Regards, Manjunatha ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] build/core/main.mk:122: *** Case-insensitive filesystems not supported. Stop.
Hi Jonathan, - Original Message - From: Jonathan Watt jw...@jwatt.org To: mozilla-dev-...@lists.mozilla.org Sent: Wednesday, November 6, 2013 3:43:21 AM Subject: [b2g] build/core/main.mk:122: *** Case-insensitive filesystems not supported. Stop. I've previously build B2G on OS X for various devices, but trying to build for nexus-4 or emulator-jb I'm getting the following error: build/core/main.mk:118: build/core/main.mk:119: You are building on a case-insensitive filesystem. build/core/main.mk:120: Please move your source tree to a case-sensitive filesystem. build/core/main.mk:121: build/core/main.mk:122: *** Case-insensitive filesystems not supported. Stop. git blame for that file shows that this configure check was added in 2009, so I'm wondering why I'm getting this now. Is the content of this file dependent on the device target that's passed to ./config.sh or something like that? Other than the new device targets, the only things I can think of that I've changed is that I've stopped running config.sh with ANDROIDFS_DIR=$HOME/mozilla/android-backup and I've updated the tree. Those 2 targets (nexus-4 and emulator) build the kernel. All of the other targets use a pre-built kernel. Unfortunately, building the kernel requires a case-sensitive file system. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk
Hey John, - Original Message - From: John Ford jhf...@mozilla.com To: Dave Hylands dhyla...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Wednesday, October 9, 2013 8:44:45 AM Subject: Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk What about: Boot2Gecko::GonkIntegration with the description Issues related to integrating the Gonk build system (based on the Android build system) and its helper scripts. This gets us away from terminology that is causing bugs to be filed into this component incorrectly while still mostly describing the content of bugs that are in this component. That sounds reasonable... Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk
So I think using the name Gonk would be misleading. Boot2Gecko::General is for bugs which are in gecko (from talking to the sheriffs, they use this in their queries when searching for bugs which are relevant to the mercurial repositories). Boot2Gecko::Builds is for non-gaia bugs which are in one of the github repositories. Boot2Gecko::Gaia should be used for gaia bugs. I think we should rename Boot2Gecko::Builds to BootGecko::Github, and we should probably rename General to Gecko. Having Gecko and Github seems clearer to me than General and Builds. Dave Hylands - Original Message - From: Axel Hecht l...@mozilla.com To: mozilla-dev-...@lists.mozilla.org Sent: Friday, September 27, 2013 3:12:00 PM Subject: Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk On 9/27/13 11:46 PM, John Ford wrote: Hi Team! We have a mystery component 'Boot2Gecko::Builds'. What goes there? Turns out there were a collection of Gaia bugs, but mainly it contains Gonk bugs. As there isn't really anywhere else for Gonk specific bugs to live, I propose that we rename this component to Boot2Gecko::Gonk. This component would contain bugs that affect our Gonk subsystem. The main repositories that would be linked to this component would be B2G.git, b2g-manifest.git, and gonk-misc.git. Issues with our implementation of the Android build system (i.e. the thing that reads Android.mk files) would go here. Things that wouldn't go here include, but are not limited to: 1. gaia build system bugs 2. gecko bugs 3. gecko build system bugs 4. requests for Release Engineering assistance 5. gaia localization If I don't hear anything back before summit, I'll take silence as consent and file the bugs to make this change. Thanks, John Ford given that I commonly file bugs in that component to get languages added or bumped, where would changes to gaia build system or configuration go to, if not to b2g::Builds? Not that I mind adding Gonk. Axel ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk
Hi John, So, stuff like dom/system/gonk doesn't have a component in bugzilla, so I've been using Boot2Gecko::General for all of those. We can't use Boot2Gecko::Gonk (which is why I said choosing gonk would be confusing. There is also dom/bluetooth/gonk dom/mobilemessage/gonk dom/telephony/gonk dom/wappush/src/gonk hal/gonk uriloader/exthandler/gonk So we need different components for the github gonk versus the gecko gonk. Dave Hylands - Original Message - From: John Ford jhf...@mozilla.com To: Dave Hylands dhyla...@mozilla.com, Axel Hecht l...@mozilla.com Cc: mozilla-dev-...@lists.mozilla.org Sent: Friday, September 27, 2013 8:19:52 PM Subject: Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk Dave, Almost all of the bugs in B2G::Builds are bugs that are specific to Gonk. Also, almost all of the github repositories that aren't Gaia are parts of Gonk. We already have a Core product with many components for Gecko bugs. Do we want to have a second place that's specifically for tracking Gecko bugs? Axel, Localization data is not really part of the build system and it's definitely not similar to the rest of the bugs in the B2G::Builds component. Given that those bugs are concerning localizations of the Gaia product, I think B2G::Gaia is a much more appropriate component. Alternatively, maybe a B2G::Gaia::L10N component should be created. John On Sep 27, 2013, at 5:50 PM, Dave Hylands dhyla...@mozilla.com wrote: So I think using the name Gonk would be misleading. Boot2Gecko::General is for bugs which are in gecko (from talking to the sheriffs, they use this in their queries when searching for bugs which are relevant to the mercurial repositories). Boot2Gecko::Builds is for non-gaia bugs which are in one of the github repositories. Boot2Gecko::Gaia should be used for gaia bugs. I think we should rename Boot2Gecko::Builds to BootGecko::Github, and we should probably rename General to Gecko. Having Gecko and Github seems clearer to me than General and Builds. Dave Hylands - Original Message - From: Axel Hecht l...@mozilla.com To: mozilla-dev-...@lists.mozilla.org Sent: Friday, September 27, 2013 3:12:00 PM Subject: Re: [b2g] Renaming the Boot2Gecko::Builds component to Book2Gecko::Gonk On 9/27/13 11:46 PM, John Ford wrote: Hi Team! We have a mystery component 'Boot2Gecko::Builds'. What goes there? Turns out there were a collection of Gaia bugs, but mainly it contains Gonk bugs. As there isn't really anywhere else for Gonk specific bugs to live, I propose that we rename this component to Boot2Gecko::Gonk. This component would contain bugs that affect our Gonk subsystem. The main repositories that would be linked to this component would be B2G.git, b2g-manifest.git, and gonk-misc.git. Issues with our implementation of the Android build system (i.e. the thing that reads Android.mk files) would go here. Things that wouldn't go here include, but are not limited to: 1. gaia build system bugs 2. gecko bugs 3. gecko build system bugs 4. requests for Release Engineering assistance 5. gaia localization If I don't hear anything back before summit, I'll take silence as consent and file the bugs to make this change. Thanks, John Ford given that I commonly file bugs in that component to get languages added or bumped, where would changes to gaia build system or configuration go to, if not to b2g::Builds? Not that I mind adding Gonk. Axel ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Set more languages on build
Hi Carlos, - Original Message - From: Carlos Sánchez cargabsj...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Tuesday, September 24, 2013 10:00:22 AM Subject: [b2g] Set more languages on build Hi! I was build my own b2g images for the hamachi device successfully, but when I to set the language is only available Arabic, English, French and one more, how can I add more languages? The hamachi has a fairly small system partition (the smallest of all of the phones we support), so we've been stripping away extra stuff (just setting up the history for you). The basic instructions for controlling which languages are included in gaia can be found here: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#Gaia I normally put the export LOCALE_BASEDIR and export LOCALES_FILE lines in my .userconfig file: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Customization_with_the_.userconfig_file You can look create your own languages.json file and just copy in the entries that you need from gaia/locales/languages_dev.json or languages_all.json. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Set more languages on build
Hi Naoki, Yes - that part is covered on the wiki under https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#Gaia This link may have been more obvious: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#Building_multilocale the #Gaia is the gaia subsection of the multilocale. Dave Hylands - Original Message - From: Naoki Hirata nhir...@mozilla.com To: Dave Hylands dhyla...@mozilla.com Cc: Carlos Sánchez cargabsj...@gmail.com, dev-b2g@lists.mozilla.org Sent: Tuesday, September 24, 2013 10:18:46 AM Subject: Re: [b2g] Set more languages on build You would also have to pull the corresponding languages, I think? https://wiki.mozilla.org/L10n:B2G/Localizers Naoki On 9/24/13 10:16 AM, Dave Hylands wrote: Hi Carlos, - Original Message - From: Carlos Sánchez cargabsj...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Tuesday, September 24, 2013 10:00:22 AM Subject: [b2g] Set more languages on build Hi! I was build my own b2g images for the hamachi device successfully, but when I to set the language is only available Arabic, English, French and one more, how can I add more languages? The hamachi has a fairly small system partition (the smallest of all of the phones we support), so we've been stripping away extra stuff (just setting up the history for you). The basic instructions for controlling which languages are included in gaia can be found here: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#Gaia I normally put the export LOCALE_BASEDIR and export LOCALES_FILE lines in my .userconfig file: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Customization_with_the_.userconfig_file You can look create your own languages.json file and just copy in the entries that you need from gaia/locales/languages_dev.json or languages_all.json. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Building Inbound?
Hi Naoki, I clone b2g-inbound (or mozilla-inbound, or mozilla-central) somewhere. Then modify my .userconfig B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)} echo B2G_DIR = ${B2G_DIR} GECKO_PATH=${B2G_DIR}/b2g-inbound echo GECKO_PATH = ${GECKO_PATH} I normally put my repos at the top of my B2G tree, and the calculation of B2G-DIR allows me to copy my .userconfig between trees without having to harcode fully-qualified paths. To switch back to using gecko, just change GECKO_PATH=${B2G_DIR}/gecko Dave Hylands - Original Message - From: Naoki Hirata nhir...@mozilla.com To: dev-g...@lists.mozilla.org, dev-b2g@lists.mozilla.org Sent: Wednesday, September 18, 2013 8:08:11 AM Subject: [b2g] Building Inbound? What's the best way to build Inbound builds for a device (buri)? Is there an easy way? or should I just remove the gecko and clone a new inbound gecko once I pull the b2g repo? Thanks, Naoki ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Security implications of remote debugging on devices
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. Dave Hylands - Original Message - From: Ben Francis bfran...@mozilla.com To: Stefan Arentz sare...@mozilla.com Cc: Paul Theriault ptheria...@mozilla.com, dev-b2g dev-b2g@lists.mozilla.org, Jim Blandy jbla...@mozilla.com Sent: Wednesday, September 11, 2013 11:20:42 AM Subject: Re: [b2g] Security implications of remote debugging on devices On Tue, Sep 10, 2013 at 9:10 PM, Stefan Arentz sare...@mozilla.com wrote: +1 Yes, we were discussion this earlier today. I think it makes a lot of sense. One thing to add, it would be good to have a ‘do not auto-lock the screen while i am debugging my app’ option. I think Android has something like that and it prevents a lot of frustration as it is super annoying to have the screen auto lock on you while you are working on something. This has changed recently and it's a huge pain during development? Does anyone know what changed and why? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Security implications of remote debugging on devices
My solution is that I put the following in my .userconfig GAIA_PATH=${GAIA_PATH:-$(cd gaia; pwd)} CUSTOM_SETTINGS=${GAIA_PATH}/build/custom-settings.json cat ${CUSTOM_SETTINGS}.new EOF {devtools.debugger.remote-enabled: true, keyboard.ftu.enabled: false, lockscreen.enabled: false, phone.ring.keypad: false, bootshutdown.sound.enabled: false} EOF if [ -f ${CUSTOM_SETTINGS} ] cmp ${CUSTOM_SETTINGS} ${CUSTOM_SETTINGS}.new /dev/null; then rm ${CUSTOM_SETTINGS}.new else mv ${CUSTOM_SETTINGS}.new ${CUSTOM_SETTINGS} fi and this tweaks a bunch of stuff for all of my builds without having to modify any source code. Dave Hylands - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: Ben Francis bfran...@mozilla.com Cc: Dave Hylands dhyla...@mozilla.com, Paul Theriault ptheria...@mozilla.com, dev-b2g dev-b2g@lists.mozilla.org, Jim Blandy jbla...@mozilla.com, Stefan Arentz sare...@mozilla.com Sent: Wednesday, September 11, 2013 12:05:48 PM Subject: Re: [b2g] Security implications of remote debugging on devices Le 11/09/2013 11:43, Ben Francis a écrit : On Wed, Sep 11, 2013 at 11:39 AM, Dave Hylands dhyla...@mozilla.com 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 915061https://bugzilla.mozilla.org/show_bug.cgi?id=915061to 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 ;) ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Security implications of remote debugging on devices
So on a production phone, the adb shell gives you a shell user shell. And the shell user has no permissions to read anything under /data (except for /data/local/tmp) You can use 'adb shell id' to determine which user your adb shell runs under. If you ave a root shell, then you can access anything under /data. Dave Hylands - Original Message - From: Dave Camp dc...@mozilla.com To: Paul Theriault ptheria...@mozilla.com, dev-b2g list dev-b2g@lists.mozilla.org, Alexandre Poirot apoi...@mozilla.com, dev-g...@mozilla.com Sent: Tuesday, September 10, 2013 6:43:05 PM Subject: Re: [b2g] Security implications of remote debugging on devices On Tue, Sep 10, 2013 at 9:39 AM, Paul Rouget p...@mozilla.com wrote: So your proposal would prevent people to steal password only if: the phone doesn't have a code, the phone is not rooted, the phone doesn't have an accessible sdcard, passwords are not recoverable via email. And in that case they could just grab the data with adb, right? -dave ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Build failed due to aidl.o: file not recognized
Hi Kevin, - Original Message - From: Kevin Hankens em...@kevinhankens.com To: dev-b2g@lists.mozilla.org Sent: Monday, August 26, 2013 7:29:13 AM Subject: [b2g] Build failed due to aidl.o: file not recognized Greetings all! I'm just getting ramped up on B2G and loving it so far. I was able to build the emulator without problems, but when I try to build for inari, I run into the following error. I'm not too sure where to begin diagnosing, so I was hoping that this might look familiar to someone :) Much appreciated!! host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl) out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl.o: file not recognized: File truncated Did you run out of disk space? Try removing the file in question and trying again. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Build failed due to aidl.o: file not recognized
Hi Kevin, - Original Message - From: Kevin Hankens em...@kevinhankens.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g@lists.mozilla.org Sent: Monday, August 26, 2013 9:29:08 AM Subject: Re: [b2g] Build failed due to aidl.o: file not recognized Thx Dave, I just tried that with no luck. Looks like I have plenty of disk space ~66GB. Now I get the following: So that should be lots of disk space. host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl) host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp) out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl.o: file not recognized: File truncated What does file ./host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl.o report? On my build machine (a 64-bit installation of ubuntu 12.04), I get: 624 file ./host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl.o ./host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped Perhaps something in the prerequisities hasn't been installed? https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites#64_bit_install_examples.3A Which version of gcc are you using? Mine reports: 625 gcc --version gcc-4.6.real (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] proxy settings in FirefoxOS
Hi Hallvord, So I did an mxr search for network.proxy.http and it seems that B2G might be manipulationg/clearing the pref: https://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkManager.js#691 I believe that the proxy stuff is being used by B2G to support tethering, so you may need to modify NetworkManager.js to get things working the way you want. Dave Hylands - Original Message - From: Hallvord Steen hst...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Monday, August 19, 2013 2:50:27 PM Subject: [b2g] proxy settings in FirefoxOS Hello, I'm working on debugging how web pages work (or not) in the FirefoxOS web browser (I have a Keon running Boot2Gecko 1.0.1.0-prerelease - build id 20130613185731 device for this purpose). I've been trying to figure out how to set up a HTTP proxy for debugging. Basically, I want to have Fiddler or Charles proxy running on a computer on the same WiFi network, and give the web browser on the phone that computer's local IP address as proxy server. The proxy setting can be specified per-WiFi or globally for HTTP(S) traffic. It should be possible per this documentation: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Security/Intercepting_traffic_using_a_proxy There are two JS files with prefs - one in the web browser's profile folder (prefs.js) and one in the /system/b2g tree (user.js). I've tried to modify either of them to add prefs like these: user_pref(network.proxy.http, 192.168.1.8); user_pref(network.proxy.http_port, ); user_pref(network.proxy.type, 1); I've restarted the OS after pushing the modified files to the relevant folders. However, the settings seem to have no effect. Actually, debugging HTTP traffic and studying application behaviour from the HTTP perspective seems like a very important requirement for both app and site developers, so I'd expect a setting somewhere in the developer UI. There is indeed a setting under Cellular and data Data settings but it seems to be for data traffic over a mobile network specifically, not for WiFi, and setting it has no effect either. Same with the ril.data.httpProxyHost setting (which may be what the UI under Cellular and data is about). Two questions: 1) Are those settings supposed to work, or are proxy capabilities removed by design? 2) Is it a known issue that such functionality should exist and work - any bugs reported? If not, and if I'd like to push for getting this working (with settings in the UI), where should I report a bug? Thanks in advance, Hallvord Site compatibility tester, FirefoxOS/Firefox Android QA ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] ./repo sync failing on master
Hi Ehsan, Someone else (jlebar perhaps?) ran into this from switching between devices while in the same tree. I think that this should be a bug. To cleanup, I'd probably abort the git changes, and then cd into the directory (I think its in frameworks/base) and check for changes, which you should checkout (to throw away) and try the repo sync again. I think what might be happening is that some devices apply patches to the tree, and when switching to a different device, it doesn't undo those patches, so they look like local changes instead. Dave Hylands - Original Message - From: Ehsan Akhgari ehsan.akhg...@gmail.com To: dev-b2g dev-b2g@lists.mozilla.org Sent: Monday, August 12, 2013 8:10:17 AM Subject: [b2g] ./repo sync failing on master I tried asking on #b2g but didn't get an answer. I am trying to config my build for the inari device, and I get this error during repo sync (which runs as part of config.sh): ehsan@teenux:~/moz/b2g$ ./repo sync -l Syncing work tree: 100% (96/96), done. frameworks/base/: discarding 1582 commits removed from upstream hardware/qcom/display/: discarding 323 commits removed from upstream system/core/: discarding 224 commits removed from upstream project frameworks/base/ First, rewinding head to replay your work on top of it... Applying: B2G Adaptations Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merging services/surfaceflinger/Layer.cpp Auto-merging media/libstagefright/omx/OMXNodeInstance.cpp Auto-merging media/libstagefright/OMXCodec.cpp CONFLICT (content): Merge conflict in media/libstagefright/OMXCodec.cpp Auto-merging include/media/stagefright/OMXCodec.h Recorded preimage for 'media/libstagefright/OMXCodec.cpp' Failed to merge in the changes. Patch failed at 0001 B2G Adaptations When you have resolved this problem run git rebase --continue. If you would prefer to skip this patch, instead run git rebase --skip. To check out the original branch and stop rebasing run git rebase --abort. Does anybody know what I can do to fix this? Thanks! -- Ehsan http://ehsanakhgari.org/ ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] ./repo sync failing on master
Hi Ehsan, Hmm. I'll have to try and reproduce locally to see if I can figure out what's going on. When I make a clone, I nornally rsync the .repo directory tree, and then rerun ./config.sh The .repo tree has all of the repositories in it, although I'm concerned it may still think that there is a merge in progress or something. Dave Hylands - Original Message - From: Ehsan Akhgari ehsan.akhg...@gmail.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g dev-b2g@lists.mozilla.org Sent: Monday, August 12, 2013 3:20:44 PM Subject: Re: [b2g] ./repo sync failing on master Thanks for the reply! On 2013-08-12 2:40 PM, Dave Hylands wrote: Hi Ehsan, Someone else (jlebar perhaps?) ran into this from switching between devices while in the same tree. I think that this should be a bug. To cleanup, I'd probably abort the git changes, and then cd into the directory (I think its in frameworks/base) and check for changes, which you should checkout (to throw away) and try the repo sync again. I think what might be happening is that some devices apply patches to the tree, and when switching to a different device, it doesn't undo those patches, so they look like local changes instead. Yeah, well, the problem is, I don't know which directories to clean up. I tried this but the below didn't help at all. ehsan@teenux:~/moz/b2g$ ./repo sync -dl Syncing work tree: 100% (96/96), done. error: frameworks/base/: prior sync failed; rebase still in progress error: hardware/qcom/display/: prior sync failed; rebase still in progress error: system/core/: prior sync failed; rebase still in progress ehsan@teenux:~/moz/b2g$ cd frameworks/base/ ehsan@teenux:~/moz/b2g/frameworks/base$ git rebase --abort ehsan@teenux:~/moz/b2g/frameworks/base$ cd - /home/ehsan/moz/b2g ehsan@teenux:~/moz/b2g$ cd hardware/qcom/display/ ehsan@teenux:~/moz/b2g/hardware/qcom/display$ git rebase --abort ehsan@teenux:~/moz/b2g/hardware/qcom/display$ cd - /home/ehsan/moz/b2g ehsan@teenux:~/moz/b2g$ cd system/core/ ehsan@teenux:~/moz/b2g/system/core$ git rebase --abort ehsan@teenux:~/moz/b2g/system/core$ cd - /home/ehsan/moz/b2g ehsan@teenux:~/moz/b2g$ ./repo sync -l Syncing work tree: 100% (96/96), done. frameworks/base/: discarding 1582 commits removed from upstream hardware/qcom/display/: discarding 323 commits removed from upstream system/core/: discarding 224 commits removed from upstream project frameworks/base/ First, rewinding head to replay your work on top of it... Applying: B2G Adaptations Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merging services/surfaceflinger/Layer.cpp Auto-merging media/libstagefright/omx/OMXNodeInstance.cpp Auto-merging media/libstagefright/OMXCodec.cpp CONFLICT (content): Merge conflict in media/libstagefright/OMXCodec.cpp Auto-merging include/media/stagefright/OMXCodec.h Recorded preimage for 'media/libstagefright/OMXCodec.cpp' Failed to merge in the changes. Patch failed at 0001 B2G Adaptations When you have resolved this problem run git rebase --continue. If you would prefer to skip this patch, instead run git rebase --skip. To check out the original branch and stop rebasing run git rebase --abort. Should I just give up and reclone from scratch? I'd like to avoid that at all costs as I would like to get a build in finite time. ;-) Thanks! Ehsan ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Differrent between differrent emulators for firefox os
Hi Pratik, - Original Message - From: pratikspawar...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Saturday, August 10, 2013 3:35:12 AM Subject: [b2g] Differrent between differrent emulators for firefox os Hi All, I have a doubt about emulators of firefox os.When we get b2g it shows four options for emulator along with the devices it supports. - emulator emulator is the ARM emulator. This is targeted at Ice Cream Sandwich (ICS), which is what most of our devices use. - emulator-jb This would be the same as emulator, except that the Android portion is built using Jelly Bean (JB). There are some people who are porting to some JB devices, like the Nexus 7 or Nexus 4. - emulator-x86 - emulator-x86-jb These are also emulators, but some stuff (maybe all stuff - I haven't really investigated) is implemented using x86 rather than ARM. These emulators are more finicky to get built and running, but run faster than the pure ARM ones. What are the difference in between them? only emulator option is for the arm. Is it mean that it can work on arm based processor? or it make an arm environment on normal pc for firefox? The emulator and emulator-jb allow ARM code to run on the PC, using qemu. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Is it Possible to use ADB with The Simulator or B2G Desktop?
Hi Henry, adb will work with the emulator or real devices, but not with the simulator or desktop. If you're using one of the production devices, then adb is turned off on the phone, by default. You can enable it by going into the Settings app, Device Information-More Information-Developer, and make sure Remote Debugging is enabled. If you're using a build that you built yourself, then adb should be enabled by default. Make sure that you can see your phone using lsusb. If the phone doesn't show up in lsusb, then adb won't work. How much of the file system will be visible depends on whether the adb service running on the phone is running as the root user or the shell user. On developer phones, the adb server normally runs as root. On production devices, the adb server normally runs as the shell user. The shell use can't see into /data (except for /data/local/tmp) Dave Hylands - Original Message - From: Henry Hoggard he...@henryhoggard.co.uk To: dev-b2g@lists.mozilla.org Sent: Tuesday, July 30, 2013 1:03:27 AM Subject: [b2g] Is it Possible to use ADB with The Simulator or B2G Desktop? I have followed the tutorials of setting up ADB and It can never see any devices, is it possible to get it working with the simulator or desktop version? If so would you be able to see the filesystem? ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] mochitests randomly timing out
Hey Jonathan, So I've observed something like this when running tests on the emulator. What exactly is marionette parsing to determine if tests pass or fail? Is it the adb log? or console log? Is there a buffering effect happening and maybe the output is just being delayed in getting delivered? Like maybe some test after the one thats timing out is causing lots of CPU to be consumed and this winds up holding up the log data from being delivered? Dave Hylands - Original Message - From: Jonathan Griffin jgrif...@mozilla.com To: dev-b2g@lists.mozilla.org Cc: Lucas Adamski ladam...@mozilla.com, Ryan Vandermeulen rya...@gmail.com Sent: Tuesday, July 23, 2013 12:32:30 PM Subject: [b2g] mochitests randomly timing out We're seeing a frequent problem in which a random mochitest will take orders of magnitude longer to execute than it normally does, causing the testrun to timeout. For example, in this log, the test /tests/content/html/content/test/test_track_disabled.html takes 4635ms to complete: https://tbpl.mozilla.org/php/getParsedLog.php?id=25576635tree=Mozilla-Inboundfull=1 However, in this log, the same test takes 331391ms to complete, which results in a timeout: https://tbpl.mozilla.org/php/getParsedLog.php?id=25575730tree=Mozilla-Inboundfull=1 Does anyone have any idea why this might be happening? Is it a GC-related issue, and if so, is there any way to make our tests handle this more gracefully? We could increase the mochitest timeout by a significant factor, but would this just be hiding a real problem? Thanks, Jonathan ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Moving apps to the sdcard
Hi, - Original Message - From: Anthony Jones ajo...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Monday, June 10, 2013 3:26:35 PM Subject: Re: [b2g] Moving apps to the sdcard On Mon, Jun 10, 2013 at 9:23 AM, Mike Habicher mi...@mozilla.com wrote: On 13-06-10 12:18 PM, Jonas Sicking wrote: I think someone else has already mentioned that since USB mass storage mode mounts the SD card as a block device, there's no security we can provide to the contents of the SD card when the phone is plugged into a PC with USBMS enabled. Using a loopback device would allow us to use directory permissions. If we want the data to be non-transferable then we encrypt it and store the key on the main flash. Storing the encryption key in the network (or the SIM) would make it transferable. I think that using a loopback device on a backing store that can go away unexpectedly is asking for all kinds of trouble. The user can remove the physical sdcard, which means that any unwritten data will not get written, and the looped file system will potentially be corrupted (you now have 2 filesystems that could have unwritten data - the FAT filesystem on the sdcard and the looped filesystem). FAT filesystems tend to be synchronous, i.e. all writes are flushed out as soon as possible, and android does a chkdsk on the sdcard everytime its inserted. We would need to do similar things to the looped storage area (i.e. flush out all writes as soon as possible, and do a manual chkdsk on the looped filesystem every time the sdcard is inserted. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Extending Fennec GDB (JimDB) to cover B2G
Hi Jim, - Original Message - From: Jim Chen nc...@mozilla.com To: dev-b2g@lists.mozilla.org Sent: Monday, June 10, 2013 2:05:39 PM Subject: [b2g] Extending Fennec GDB (JimDB) to cover B2G Hi all, I help maintain JimDB, the fork of GDB used by the Fennec team, and I'd like some feedback on extending JimDB to support debugging B2G. As a GDB fork, JimDB includes additional bug fixes and improvements over the GDB included in the Android toolchain (which is the GDB included in B2G). It also incorporates a set of Python scripts that automates most of the setup. For example, you can start debugging a Mochitest in one step, by simply specifying which test and optionally what environment variables to use. Here are some more information on JimDB's capabilities, https://wiki.mozilla.org/Android/GDB and http://www.jnchen.com/blog/2013/03/updated-jimdb I think a lot of JimDB's features are applicable to B2G as well, and through Python scripts, it can potentially do more than what the current shell script setup is capable of. For example, the script can look for apps running on your device, ask which app to debug, and automate the rest. However I'm not a B2G developer, so I'd like some feedback on whether it's worthwhile to work on this project. Do you use GDB in your workflow? Is the current GDB setup good enough? What would you like to be easier when debugging? Thanks for any comments! :) We (the guys that work on platform stuff on b2g) definitely use gdb. B2G has a script, run-gdb.sh (which can be symlinked to run-ddd.sh to use the ddd debugger as a front-end UI). https://github.com/mozilla-b2g/B2G/blob/master/run-gdb.sh This happens to be written in bash, but I don't think that anybody is averse to using python. There are a few things that I think B2G probably does differently from android. We use electrolysis, so each app runs in a separate child process. We currently use a script called b2g-ps (run on the phone) to determine the pid associated with each app. We have the ability to attach to a running process. I think that most people use this technique (launch the app, determine the pid, run-gdb.sh attach PID). If we need to debug app startup, there are a couple of other techniques that can be used. So, yeah anything that can improve this is most welcome. The ability to debug tests sounds really cool. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Fake SDCARD
Currently, that's the only way to do it. Once bug 865347 lands, then we'll be able to add arbitrary volumes through an API. It would be pretty straight forward to convert the patch I hacked up into something that allow the volume name and location to be specified as a pref. We could tie this into bug 865347 in that it could use the same preferences to persist the volume information. Dave Hylands - Original Message - From: Andreas Gal andreas@gmail.com To: pancake panc...@youterm.com Cc: dev-b2g@lists.mozilla.org Sent: Monday, May 27, 2013 8:35:44 PM Subject: Re: [b2g] Fake SDCARD We definitely want a pref for this instead of the define. Thanks, Andreas pancake mailto:panc...@youterm.com May 27, 2013 3:25 AM There's no way to do this without recompiling? I was thinking an a preference or system trick. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g Dave Hylands mailto:dhyla...@mozilla.com May 24, 2013 10:44 AM Sorry, The patch is fairly simple, so I'll just put it here: diff --git a/dom/system/gonk/VolumeManager.cpp b/dom/system/gonk/VolumeManager.cpp --- a/dom/system/gonk/VolumeManager.cpp +++ b/dom/system/gonk/VolumeManager.cpp @@ -288,16 +288,24 @@ VolumeManager::OnLineRead(int aFd, nsDep if (responseCode = ResponseCode::UnsolicitedInformational) { // These are unsolicited broadcasts. We intercept these and process // them ourselves HandleBroadcast(responseCode, responseLine); } else { // Everything else is considered to be part of the command response. if (mCommands.size() 0) { VolumeCommand* cmd = mCommands.front(); +#if 1 + if ((responseCode = ResponseCode::CommandOkay) + (strcmp(cmd-CmdStr(), volume list) == 0)) { + nsDependentCString fakeResponseLine(storage /data/storage X); + cmd-HandleResponse((int)ResponseCode::VolumeListResult, + fakeResponseLine); + } +#endif cmd-HandleResponse(responseCode, responseLine); if (responseCode = ResponseCode::CommandOkay) { // That's a terminating response. We can remove the command. mCommands.pop(); mCommandPending = false; // Start the next command, if there is one. WriteCommandData(); } For v1.1, it goes in the OnFileCanReadWithoutBlocking function, and line 288 is around line 315 instead. The surrounding block of code should be very similar. Dave Hylands - Original Message - ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] b2g 100% cpu usage
I don't see how that code should be consuming 100% of the CPU. On any error, len should be coming back as -1 which will break out of the loop. It will, however toss data though. If the loop executes more than once, the data read from the everything except the last iteration is thrown away. Dave Hylands - Original Message - From: Thinker K.F. Li thin...@codemud.net To: dev-b2g@lists.mozilla.org Sent: Saturday, May 25, 2013 3:57:45 AM Subject: Re: [b2g] b2g 100% cpu usage pipeHandler() is for signaling of dispatching input events or other events. If you can break on nsAppShell::NotifyNativeEvent() and paste the backtrace here. It may be helpful. pancake panc...@youterm.com writes: On 05/24/13 14:59, Justin Lebar wrote: This should be very easy to debug. Just attach gdb to the relevant process (./run-gdb.sh attach PID -- you can find the pid by running adb shell b2g-ps), then break on |read|, then you should quite quickly find out who's calling read |in a loop. The real question will be why we get an infinite loop of EAGAIN's... b2g has 36 threads running.. after setting a breakpoint on read i got the thread. this is the backtrace: (gdb) bt #0 read () at bionic/libc/arch-arm/syscalls/read.S:8 #1 0x41379de6 in pipeHandler (fd=35, data=value optimized out) at /home/pancake/prg/B2G/gecko/widget/gonk/nsAppShell.cpp:101 #2 0x41379cbe in FdHandler::run (this=0x4391bca0, mayWait=value optimized out) at /home/pancake/prg/B2G/gecko/widget/gonk/nsAppShell.h:50 . skip ... -- Sinker -- 天教懶漫帶疏狂 ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] b2g 100% cpu usage
Hi pancake - Original Message - From: pancake panc...@youterm.com To: dev-b2g@lists.mozilla.org Sent: Friday, May 24, 2013 7:01:27 AM Subject: Re: [b2g] b2g 100% cpu usage On 05/24/13 14:59, Justin Lebar wrote: This should be very easy to debug. Just attach gdb to the relevant process (./run-gdb.sh attach PID -- you can find the pid by running adb shell b2g-ps), then break on |read|, then you should quite quickly find out who's calling read |in a loop. The real question will be why we get an infinite loop of EAGAIN's... b2g has 36 threads running.. after setting a breakpoint on read i got the thread. Well, you got a thread that calls read, not necessarily the thread which is consuming 100% of the CPU. I'd recommend that you do: top -t -m 20 to see which thread is causing the CPU usage. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Fake SDCARD
There is a patch in bug 838038. If you apply that patch, and change the 4 in storage /data/storage 4 to an X, then this will add a new storage area. You'll need to manually create the /data/storage directory. Dave Hylands - Original Message - From: pancake panc...@youterm.com To: dev-b2g@lists.mozilla.org Sent: Friday, May 24, 2013 4:24:22 AM Subject: [b2g] Fake SDCARD I would like to test camera/gallery/media apps without depending on an SDCARD, on Android faking the sdcard is as simple as: mount -t tmpfs none /mnt/sdcard But this doesn't seems to fool Gonk detection. How can I tell 'vold' or 'b2g' to not require an SDCARD for that? Thanks ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Unable to Download B2G update
Hi Luís, 05-20 11:07:34.944: INFO/Gecko(104): UpdatePrompt: Error downloading update Firefox 18.0a2: -2142109681 05-20 11:07:34.944: INFO/Gecko(104): UpdatePrompt: Update error, state: null, errorCode: -2142109681 05-20 11:07:34.964: INFO/Gecko(104): UpdatePrompt: Setting gecko.updateStatus: file-too-big So it seems that there is not enough space on /data to store the update. Do you have an sdcard inserted? What is the output of: adb shell df /data adb shell df /mnt/sdcard Dave Hylands - Original Message - From: Luís Matos luismatosdes...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, May 20, 2013 3:10:11 AM Subject: [b2g] Unable to Download B2G update Hello, Some days ago an update appeared on my test device. However I am unable to download it. Upon inspecting the device console it seems that B2G can't find a specific file (/data/local/updates/0/update.status) Anyone else seeing this problem? Looking at your log below, it seems that the error: Thanks in advance. Log bellow: 05-20 11:07:34.924: INFO/Gecko(104): *** AUS:SVC Creating Downloader 05-20 11:07:34.924: ERROR/GeckoConsole(104): AUS:SVC Creating Downloader 05-20 11:07:34.924: INFO/Gecko(104): *** AUS:SVC UpdateService:_downloadUpdate 05-20 11:07:34.924: ERROR/GeckoConsole(104): AUS:SVC UpdateService:_downloadUpdate 05-20 11:07:34.924: INFO/Gecko(104): *** AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status 05-20 11:07:34.924: ERROR/GeckoConsole(104): AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status 05-20 11:07:34.924: INFO/Gecko(104): *** AUS:SVC Downloader:_selectPatch - found existing patch with state: null 05-20 11:07:34.924: ERROR/GeckoConsole(104): AUS:SVC Downloader:_selectPatch - found existing patch with state: null 05-20 11:07:34.924: INFO/Gecko(104): *** AUS:SVC Downloader:_selectPatch - failed to apply complete patch! 05-20 11:07:34.924: ERROR/GeckoConsole(104): AUS:SVC Downloader:_selectPatch - failed to apply complete patch! 05-20 11:07:34.944: INFO/Gecko(104): *** AUS:SVC Downloader:downloadUpdate - no patch to download 05-20 11:07:34.944: ERROR/GeckoConsole(104): AUS:SVC Downloader:downloadUpdate - no patch to download 05-20 11:07:34.944: INFO/Gecko(104): *** AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status 05-20 11:07:34.944: ERROR/GeckoConsole(104): AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status 05-20 11:07:34.944: INFO/Gecko(104): UpdatePrompt: Error downloading update Firefox 18.0a2: -2142109681 05-20 11:07:34.944: INFO/Gecko(104): UpdatePrompt: Update error, state: null, errorCode: -2142109681 05-20 11:07:34.964: INFO/Gecko(104): UpdatePrompt: Setting gecko.updateStatus: file-too-big 05-20 11:07:34.974: INFO/GeckoDump(104): XXX FIXME : Got a mozContentEvent: update-available-result 05-20 11:07:34.994: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:40960 offset:1048576 fd:109 05-20 11:07:34.994: DEBUG/memalloc(371): /dev/pmem: Mapped buffer base:0x4430 size:1089536 offset:1048576 fd:33 05-20 11:07:35.044: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:40960 offset:950272 fd:132 05-20 11:07:35.044: DEBUG/memalloc(371): /dev/pmem: Mapped buffer base:0x4445a000 size:991232 offset:950272 fd:36 05-20 11:07:35.085: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:614400 offset:4374528 fd:150 05-20 11:07:35.095: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:20480 offset:991232 fd:160 05-20 11:07:35.095: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:8192 offset:1011712 fd:175 05-20 11:07:35.095: DEBUG/memalloc(104): /dev/pmem: Freeing buffer base:0x4aa1a000 size:614400 offset:7446528 fd:147 05-20 11:07:35.105: DEBUG/memalloc(104): /dev/pmem: Freeing buffer base:0x4a696000 size:614400 offset:3760128 fd:98 05-20 11:07:35.135: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:614400 offset:3760128 fd:101 05-20 11:07:35.145: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:20480 offset:3555328 fd:184 05-20 11:07:35.145: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:16384 offset:3575808 fd:190 05-20 11:07:35.155: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:8192 offset:1019904 fd:195 05-20 11:07:35.185: DEBUG/memalloc(104): /dev/pmem: Allocated buffer base:0x4a30 size:16384 offset:3592192 fd:98 05-20 11:07:35.195: INFO/IdleService(104): Get idle time: time since reset 296 msec 05-20 11:07:35.195: INFO/IdleService(104): Idle timer callback: current idle time 296 msec 05-20 11:07:35.195: INFO/IdleService(104): next timeout 703 msec from now 05-20 11:07:35.195: INFO/IdleService(104): SetTimerExpiryIfBefore: next timeout 702 msec from now 05-20 11:07:35.195: INFO/IdleService(104
Re: [b2g] Device Storage Changes
Hi Jonas, - Original Message - From: Jonas Sicking jo...@sicking.cc To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g dev-b2g@lists.mozilla.org Sent: Thursday, May 16, 2013 8:57:30 PM Subject: Re: [b2g] Device Storage Changes On Sat, May 11, 2013 at 2:29 AM, Dave Hylands dhyla...@mozilla.com wrote: So bug 858416 has been landed on birch and it should make its way to b2g18. I wanted to summarize the changes that have occurred in the device storage API. In order to support both internal and external storage areas, we've added support for what I call composite device storage objects. In the past a name like DCIM/car.jpg would be sufficient to uniquely identify a file. However when there are multiple device storage areas, this doesn't tell you which storage area the file is stored in. So, a fully qualified name now looks like /storageName/directory/file While storageName looks like a directory component, it isn't, it's the name of a volume. Typical volume names might be sdcard and extsdcard, so a fully qualified name would look like: /sdcard/directory/file /extsdcard/directory/file navigator.getDeviceStorage(type) now returns what I call a composite device storage object. navigator.getDeviceStorages(type) returns an array of non-composite storage objects. It is anticipated that this particular API would only be used by the settings app for displaying free/used space for each volume. Each non-composite device storage object has an attribute called storageName which identifies the volume that the device storage area corresponds to. Wouldn't you also need to use getDeviceStorages if you don't know what types of storage areas are available on the device? As is the case for all 3rd party apps. And might be the case for some of our built-in apps if we want to make their code generic and work across multiple devices. Each storage area is defined by a tuple of (type, name) type is one of pictures, music, videos, sdcard. name corresponds to the physicaly storage areas, typically something like sdcard and extsdcard. On a system with only one physical storage area, getDeviceStorage('pictures') and getDeviceStorages('pictures')[0] would correspond to the same thing. On a device with multiple storage areas getDeviceStorages('pictures')[0] would return a device storage area corresponding to the pictures available from the storagename 'sdcard' and getDeviceStorages('pictures')[1] would return a device storage area corresponding to the pictures favailable from the storagename 'extsdcard'. getDeviceStorage('pictures') would correspond to a composite storage area comprised of the pictures from both storage areas. Seems like a common use case for getDeviceStorages(pictures) would be to enumerate all locations where pictures are stored and display UI to the user which explains in human understandable form where the various pictures are stored. Same thing when the user wanting to save a picture. The application would likely want to use getDeviceStorages(pictures) and display a human understandable picker which lets the user choose where the file should be saved. An app could do that. In our discussions from the UI people, that was undesirable. So we added a setting to determine the name of the storage area that would be used to save new files to. Now when you call addNamed('DCIM/foo.jpg') and the setting is set to extsdcard, then the file would goto /extsdcard/DCIM/foo.jpg (this name is returned in the onsuccess method of the addNamed request). Note that the /extsdcard portion of the name refers to a storage area by name, and it's corresponding file location might be something like /mnt/external-sdcard. When using the composite device storage object, If you call AddNamed and were to specify DCIM/foo.jpg then it will use the default storage area (set by the user in the settings app under Media Storage). The onsuccess method will be passed the fully qualified name of the object (i.e. you'd probably get back something like /sdcard/DCIM/foo.jpg). Enumerate has changed slightly as well. Previously if you called enumerate('DCIM') you'd get back just the portion of the filename below the DCIM directory (so just foo.jpg). Now, you always get back a fully qualified location (/sdcard/DCIM/foo.jpg). When you use enumerate on the composite device storage object, it will return all of the files on all of the storage areas. What will enumerate(DCIM) do on the composite device storage object? Will it return all files of the pattern /*/DCIM/..., i.e. all files starting with /sdcard/DCIM and /extsdcard/DCIM, or will it return nothing since all composite filenames start with either /extsdcard/DCIM/ or /sdcard/DCIM/? It will return all files which match DCIM/... from each storage area. If you had sdcard and extsdcard then you would get /sdcard/DCIM/... /extsdcard/DCIM
Re: [b2g] Device Storage Changes
Hi Thomas, - Original Message - From: Thomas Zimmermann tzimmerm...@mozilla.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g dev-b2g@lists.mozilla.org Sent: Friday, May 17, 2013 12:26:19 AM Subject: Re: [b2g] Device Storage Changes Hi! While storageName looks like a directory component, it isn't, it's the name of a volume. Typical volume names might be sdcard and extsdcard, so a fully qualified name would look like: /sdcard/directory/file /extsdcard/directory/file Do we have standards regarding the directory part? I noticed that there is a 'Download' directory on my unagi's sdcard, but Bluetooth currently stores transfered files in 'download/bluetooth'. I think email may use download/email as well. The filesystem is FAT, so its case preserving, but not case sensitive. So Download/bluetooth and download/bluetooth both happen to refer to the same directory. I think that it would be worthwhile being consistent on the case of the filenames, so you should file a bug. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Does the dogfooder OTA updates update the kernel too ?
FOTA is capabale of updating pretty much anything, so that should be possible. Dave Hylands - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: Dave Hylands dhyla...@mozilla.com Cc: dev-b2g dev-b2g@lists.mozilla.org Sent: Thursday, May 16, 2013 2:40:53 AM Subject: Re: [b2g] Does the dogfooder OTA updates update the kernel too ? So would it be possible to have a FOTA to give the dogfooders the latest kernel, or is that completely not possible ? Le 15/05/2013 17:40, Dave Hylands a écrit : The standard OTA used by the dogfooders is not capable of updating the kernel. It can only update gecko/gaia. To update the kernel would require using FOTA (which uses the android recovery mode). Dave Hylands - Original Message - From: Julien Wajsberg jwajsb...@mozilla.com To: dev-b2g dev-b2g@lists.mozilla.org Sent: Wednesday, May 15, 2013 2:54:15 AM Subject: [b2g] Does the dogfooder OTA updates update the kernel too ? hi, Bug 850706 [1] is fixed by a new kernel, however our dogfooders don't seem to get it (see comment 9). How can we make that happen ? Thanks, -- Julien [1] https://bugzilla.mozilla.org/show_bug.cgi?id=850706 ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Creating a flashable zip?
Hi, I've used the following script in the past to create a FOTA update for my unagi: - Start of fota-create.sh - #!/bin/bash SCRIPT_NAME=$(basename $0) . load-config.sh mkdir -p fota set -x tools/update-tools/build-flash-fota.py \ --system-dir out/target/product/${DEVICE}/system \ --system-fs-type ext4 \ --system-location /dev/block/mmcblk0p19 \ --data-fs-type ext4 \ --data-location /dev/block/mmcblk0p22 \ --output fota/update.zip tools/update-tools/build-fota-mar.py \ --output fota/update.mar fota/update.zip - End of fota-create.sh - You may need to adjust the system/data location and fs-types as approriate. You should be able to determine the correct locations/type for the system and data partitions by doing something like: adb shell mount | grep /system adb shell mount | grep /data Dave Hylands - Original Message - From: ojrear...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Wednesday, May 15, 2013 2:40:58 PM Subject: [b2g] Creating a flashable zip? Hi all I'm wanting to distribute my built image of Firefox OS for the Galaxy Nexus, but I'm struggling to find the ideal way of creating a flashable .zip to be flashed via Recovery. After a quick search on Google, I need to grab the system.img and boot.img from B2G/out/target/product/maguro/ and generate some sort of [META-INF] folder then zip those three into a .zip package and sign it. However, I'm not quite sure what I'm needing to include in the [META-INF] folder. Looking at the B2G/tools/update-tools/ folder shows a script call build-flash-fota.py which might be what I'm looking for to help make a flashable .zip of my Firefox OS build. Looking through the help indicates that I require several extra commands to get it to work. I get to the part where I need to fill out this section: --system-location SYSTEM_LOCATION device location for /system. required Does anyone know what I need to put for the SYSTEM_LOCATION part? I get the impression it's not documented clearly after doing a quick search on Google. Any help? Kind Regards ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Nexus S doesn't boot with master Gecko/Gaia branch
I know v1-train works. But I need to make a patch for master branch. Is there any way to use master branch ? BRANCH=master ./config.sh nexus-s Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Can I change real strage encapsulated by the api navigator.getDeviceStorage ?
Hi Kouji, - Original Message - From: Kouji Ishikawa ijuo...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Sunday, May 12, 2013 8:31:25 PM Subject: Re: [b2g] Can I change real strage encapsulated by the api navigator.getDeviceStorage ? I recently know the API getDeviceStrages, it brings array of enabled storage. And gecko/b2g/chrome/content/settings.js can set default storage. But it hope the storage will local storage, isn't it? Currently, when you call getDeviceStorages, all of the storage areas returned are local. The storage areas that are currently suppported are internal sdcard, one or more physical sdcards, and possibly a USB Thumb drive (this last one is currently only a theoretical possibility, I'venever actually tested using this). If it can have a remote virtual storage like cloud storage, device user can have a large storage when network connection is stable, and they will be happy. I'm not sure how remote virtual storage would fit in. It may be possible to fit it into the device storage framework, but we don't currently have any code which supports this. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
[b2g] Device Storage Changes
So bug 858416 has been landed on birch and it should make its way to b2g18. I wanted to summarize the changes that have occurred in the device storage API. In order to support both internal and external storage areas, we've added support for what I call composite device storage objects. In the past a name like DCIM/car.jpg would be sufficient to uniquely identify a file. However when there are multiple device storage areas, this doesn't tell you which storage area the file is stored in. So, a fully qualified name now looks like /storageName/directory/file While storageName looks like a directory component, it isn't, it's the name of a volume. Typical volume names might be sdcard and extsdcard, so a fully qualified name would look like: /sdcard/directory/file /extsdcard/directory/file navigator.getDeviceStorage(type) now returns what I call a composite device storage object. navigator.getDeviceStorages(type) returns an array of non-composite storage objects. It is anticipated that this particular API would only be used by the settings app for displaying free/used space for each volume. Each non-composite device storage object has an attribute called storageName which identifies the volume that the device storage area corresponds to. When using the composite device storage object, If you call AddNamed and were to specify DCIM/foo.jpg then it will use the default storage area (set by the user in the settings app under Media Storage). The onsuccess method will be passed the fully qualified name of the object (i.e. you'd probably get back something like /sdcard/DCIM/foo.jpg). Enumerate has changed slightly as well. Previously if you called enumerate('DCIM') you'd get back just the portion of the filename below the DCIM directory (so just foo.jpg). Now, you always get back a fully qualified location (/sdcard/DCIM/foo.jpg). When you use enumerate on the composite device storage object, it will return all of the files on all of the storage areas. Calling freeSpace or usedSpace on the composite object will return a sum of the free or used space over all of the volumes. Calling available on the composite object will return a composite availability. So if any volume is available, you'll get back available. If no volumes are available, and any are shared, then then you'll get back shared, otherwise you'll get back unavailable. If you call available on a non-composite object it will return the availability for that particular storage area. I'm sure I've broken some stuff, but the basics seem to work, i.e. I can take a picture, and see it in gallery, and I can see music etc. I'll be working next week to more exhaustively test all of the areas which I may have otherwise missed. Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Unable to sync repo for peak
When I run into that particular error, my usual fix goes something like: cd into the failing repo (development in this case) git fetch --all cd back to the root Do another repo sync Dave Hylands - Original Message - From: Konstantin Lepikhov lakos...@mozilla-russia.org To: dev-b2g dev-b2g@lists.mozilla.org Sent: Saturday, May 11, 2013 7:13:38 AM Subject: [b2g] Unable to sync repo for peak Greetings! I'm trying to build B2G for Peak phone but unable to sync repo. Everything fail at the end: $ REPO_TRACE=1 BRANCH=master ./config.sh peak : cd /home/lakostis/work/B2G/development : git rev-list ^39bccab69a794d79c01a6611930b7088b508b000 HEAD -- 1| 2| Traceback (most recent call last): File /home/lakostis/work/B2G/.repo/repo/main.py, line 414, in module _Main(sys.argv[1:]) File /home/lakostis/work/B2G/.repo/repo/main.py, line 390, in _Main result = repo._Run(argv) or 0 File /home/lakostis/work/B2G/.repo/repo/main.py, line 138, in _Run result = cmd.Execute(copts, cargs) File /home/lakostis/work/B2G/.repo/repo/subcmds/sync.py, line 630, in Execute project.Sync_LocalHalf(syncbuf) File /home/lakostis/work/B2G/.repo/repo/project.py, line 1086, in Sync_LocalHalf lost = self._revlist(not_rev(revid), HEAD) File /home/lakostis/work/B2G/.repo/repo/project.py, line 2006, in _revlist return self.work_git.rev_list(*a, **kw) File /home/lakostis/work/B2G/.repo/repo/project.py, line 2155, in rev_list p.stderr)) error.GitError: platform/development rev-list ('^39bccab69a794d79c01a6611930b7088b508b000', 'HEAD', '--'): fatal: bad object HEAD Repo sync failed build host is ubuntu 12.04 x86_64 but the same results on ubuntu 11.04. Looks like the development.git repo is incomplete but I've tried to rm -rf development.git and checkout again without a luck. Thanks in advance! -- WBR et al. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] How to get newest Gaia and appropriate Gecko tree
Hi Masashi, So to setup your gaia gecko trees for master, do: BRANCH=master ./config.sh PHONE By default: ./config.sh PHONE is equivalent to: BRANCH=v1-train ./config.sh PHONE All changes for v1-train are supposed to land on master first anf then be uplifted to v1-train if they have the appropriate approvals. Dave Hylands - Original Message - From: Masashi Honma masashi.ho...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Friday, May 10, 2013 6:47:20 PM Subject: [b2g] How to get newest Gaia and appropriate Gecko tree I fixed some code in Gaia and Gecko locally. I am planning to land it to appropriate tree. But I recogniezed that there are some mismatch between my local Gaia and Github master Gaia. My local environment is built in accordance with this site. https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build I want to sync my local tree to Github master. Because I do not want to modify my code for master branch to make Pull Request. I know some Git commands to replace my local tree to Gaia master. But I think mismatch between Gaia and Gecko interface causes some troubles. Is there any way to get master Gaia and appropriate Gecko tree ? Regards, Masashi Honma. ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] Feedback from Telefonica internal dogfooding program
Personally, I don't think we want to remove the manual stuff. I know when I'm travelling, I often don't have any of the automatic methods available (i.e. my prepaid sim doesn't work in Eurpoe), and I like to change the timezone while I'm on the plane. Free Wifi seems to be much more uncommon in the European airports than it is in North America. GPS gernally doesn't give you a timezone (although there isn't any reason it couldn't since you should be able to use a timezone map). Although if you lived in a timezone border town, you probably wouldn't want your time flipping every time you go shopping either. Dave Hylands - Original Message - From: Andreas Gal andreas@gmail.com To: Alex Keybl ake...@mozilla.com Cc: dev-g...@lists.mozilla.org, dev-b2g@lists.mozilla.org, Cheng Wang c...@mozilla.com Sent: Tuesday, April 30, 2013 10:26:08 AM Subject: Re: [b2g] Feedback from Telefonica internal dogfooding program The date issue is definitely a problem. I have seen it myself repeatedly. I still think we should delete all the manual date/time setting code and rely on the many time sources we have available instead (NITZ, NTP, GPS). Andreas Sent from Mobile. On Apr 30, 2013, at 10:22, Alex Keybl ake...@mozilla.com wrote: I'll try to address the most critical here, and if we should be concerned for v1.0.1. * 3G stops working after a while (8 hours? One day?) * Short battery life (a few mentions that it got worse with update), this might also be issues with charging since we had those at MWC with Geeksphones. * Phones stuck in 1980 (which causes errors with marketplace, https sites, and others) Likely hardware/build/changeset specific. We should be confident in our testing as well as partner longevity/field testing for v1.0.1 here. * After saving an app (may be web app?) to the desktop, it works the first time but hangs after future attempts (lots of mentions of twitter) * Problems handling a time change (clocks off by an hour, alarms firing wrong) Would be more interesting if we're able to reproduce these (or had steps to reproduce). Do we have contact info? -Alex On Apr 29, 2013, at 11:52 PM, Cheng Wang c...@mozilla.com wrote: Feedback on Keons and Peaks from Telefonica's dogfooding program (mostly Peaks, I think, but I don't have the solid numbers). Most of these came from users who'd updated to the 20130404 build (I think this is a build that TEF is handing out?), I've tried to take out the feedback from users still on 20130222 (this was the build shipping with the phones). A few users have 20130416 or 20130418 (this is the current GP build). Fair warning, this is interpreted from text that was machine translated from Spanish so details may be missing/incorrect. I got a ton of feedback from them so pretty much everything here got mentioned at least a few times. Concerning things: * 3G stops working after a while (8 hours? One day?) * After saving an app (may be web app?) to the desktop, it works the first time but hangs after future attempts (lots of mentions of twitter) * Lots of trouble with the back button, this came up almost as frequently as the tiny fonts on the Peak, easily dozens of times. * Short battery life (a few mentions that it got worse with update), this might also be issues with charging since we had those at MWC with Geeksphones. * Phones stuck in 1980 (which causes errors with marketplace, https sites, and others) * Problems handling a time change (clocks off by an hour, alarms firing wrong) Bugs (things are broken/feel broken): * Fonts, buttons are too small (likely a Peak resolution problem) -- This one got mentioned so many times, in particular Here maps which can't zoom and browser * Persistent update for Here Maps that won't go away. * 3G stops working after a while (8 hours? One day?) * Calendar entries duplicated (not sure why) * Black screens were reported a few times from different usecases * Taking the phone in airplane mode, open the notification center to remove airplane mode, I am asked the pin but does not hide the notification center and this is therefore covering up the option to accept. * Didn't handle a time change correctly (clock in notification bar is correct, clock on home screen isn't, alarm at the wrong time) * Import from SIM stalls out (maybe only during first run) * Outgoing SMSes sometimes get weird characters appended (may be a problem with the SIMs that they're using) * Undefined MAC address * Even though specific Facebook contacts were selected, all contacts were downloaded * After saving a web app to the desktop, it works the first time but hangs after future attempts (may explain the twitter problem above) * Camera flash settings are odd (there are four states but three symbols and the symbols don't necessarily match with behavior) * Browser sometimes
Re: [b2g] Building particular branches
Hi Gerv, - Original Message - From: Gervase Markham g...@mozilla.org To: mozilla-dev-...@lists.mozilla.org Sent: Friday, April 19, 2013 6:17:19 PM Subject: [b2g] Building particular branches Hi B2G team, The build instructions here: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build don't say how you can choose to build Firefox OS 1.0, or 1.0.1, or 1.1. Can someone update them to explain how to choose which branch to build? You use the following: BRANCH=branch-name ./config.sh phone-name You can cd to B2G/.repo/manifests and do git branch -a to see the names of the branches: remotes/origin/master remotes/origin/v1-train remotes/origin/v1.0.0 remotes/origin/v1.0.1 Remove the remotes/origin/ from the branch name. i.e. BRANCH=v1-train ./config.sh unagi Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g
Re: [b2g] error ./build.sh -j1
Hi lap, - Original Message - From: lap lapson...@gmail.com To: dev-b2g@lists.mozilla.org Sent: Monday, April 8, 2013 7:09:28 AM Subject: Re: [b2g] error ./build.sh -j1 On 2013?04?07? 00:00, lap wrote: Hey guys when i ran ./build.sh -j1 , i got this error message. build/core/base_rules.mk:170: *** hardware/qcom/gps/loc_api/libloc_api_50001: MODULE.TARGET.SHARED_LIBRARIES.gps.msm7627a already defined by hardware/qcom/gps/libloc_api?stop can someone help me? thanks:-D Near the end of your log I see: Hardware/qcom/gps/loc_api/Android.mk:26:hardware/qcom/gps/loc_api/libloc_api-rpc/Android.mk: no file or directory Hardware/qcom/gps/loc_api/Android.mk:26:hardware/qcom/gps/loc_api/libloc_api/Android.mk: no file or directory In my unagi tree, those files exist (i.e. came from git). Do they exist for you? perhaps you need to check your repository? Dave Hylands ___ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g