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.
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:
adb root
and adb remount
to make sure you have to right permissions (this is probably where it goes wrong)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.