Search code examples
firefox-os

How can I make the changes of Gaia apply to device


I edit the system app(homescreen) in the gaia folder, and flash the device, but it doesn't work, not thing change at all. I've already try it on the simulator, it runs as well. Could somebody tell me how to make the changes apply to the real device ? thanks.


Solution

  • So there is two ways you can do it. If all you want is change the homescreen, you can now create a homescreen app and set it as the homescreen in Settings (push via the app manager like any app). There is a nice example here.

    If you want to flash the gaia homescreen to your phone, there is a couple of things you need to do:

    1. Update the phone to the correct version (nightly if you're editing master, 1.4 if you're editing upstream/v1.4 branch). This is because gaia & gecko version are tightly coupled.
    2. Enable Remote debugging in Settings
    3. Verify that you can talk to the phone via the app manager
    4. In the terminal, run adb root and adb remount to make sure you have to right permissions (this is probably where it goes wrong)
    5. In the gaia directory run: make reset-gaia

    This should flash all of gaia now. If you continue editing you can make incremental changes to homescreen and push them via:

    APP=homescreen make install-gaia && adb shell stop b2g && adb shell start b2g
    

    If this doesn't work, please write the output of make reset-gaia to a log file and add it as a comment to your question.