Le mardi 12 janvier 2016 18:32:19 UTC+1, Alexandre Lissy a écrit :
> 
> That's probably because the QC time XPCOM is missing from your device.
> 
> That should be something within /system/b2g/distribution/bundles/
> 
> You might try to push that back to your device but there is a risk it
> will not work because it's not compatible with your new Gecko.
> 
> You can try to make use of timekeep that we are using on Sony devices
> (and that was brought by Sony Open Devices project).

Well spotted Alexandre, thanks.

I didn't tried restoring QC time XPCOM yet, nor using timekeep, but since 
shallow-flash.sh tool is indeed wiping out everything in /system/b2g (but 
defaults and webapps) before pushing the new files (see below), there's indeed 
no more /system/b2g/distribution folder left on device:

## clean /system/media/ and extra gecko files
function adb_clean_extra_gecko_files() {
    echo "### Cleaning Extra System Files ..."
    run_adb shell "rm -r /system/media"
    echo "### Cleaning Done."

    echo "### Cleaning Extra Gecko Files ..."
    GECKO_DIR=$1
    REMOVED_FILES=$(echo -e "$(ls "$GECKO_DIR/b2g" | cat)\n$(run_adb shell "ls 
/system/b2g" | tr -d '\r')" | sort | uniq -u)
    if [[ "$REMOVED_FILES" != "" ]]; then
        for REMOVED_FILE in $REMOVED_FILES; do
            if [[ "$REMOVED_FILE" != "defaults" ]] && [[ "$REMOVED_FILE" != 
"webapps" ]]; then
                echo "##### Removing /system/b2g/$REMOVED_FILE ..."
                run_adb shell "rm -r /system/b2g/$REMOVED_FILE"
            fi
        done
    fi
    echo "### Cleaning Done."
}

Well, this also means that I'll have to find the new "equivalents" to the other 
bundles in /system/b2g/distribution, namely: b2g_time (probably the QC time 
XPCOM Alexandre was talking about), libqc_b2g_location, libqc_b2g_ril, 
location, settings and telephony.

Just wondering: how is the situation handled for Flame device? I mean, if you 
follow instructions in [1], i.e. if you flash it with v18D base image (FxOS 
2.0) and then decice to update to FxOS 2.1 by shallow-flashing Gecko/Gaia with 
the files coming from [2], you're also left with no more 
/system/b2g/distribution folder. Don't you also experience time keeping issue 
in such a scenario?

     Émeric


[1] 
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Phone_guide/Flame/Updating_your_Flame#Updating_to_nightly_build
[2] 
http://ftp.mozilla.org/pub/b2g/nightly/2015/07/2015-07-24-00-12-07-mozilla-b2g34_v2_1-flame-kk/
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to