Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozfreddyb/b2g-vivisection
modifying a live b2g system
https://github.com/mozfreddyb/b2g-vivisection
Last synced: 19 days ago
JSON representation
modifying a live b2g system
- Host: GitHub
- URL: https://github.com/mozfreddyb/b2g-vivisection
- Owner: mozfreddyb
- License: mpl-2.0
- Created: 2014-09-29T14:06:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-26T22:04:30.000Z (over 9 years ago)
- Last Synced: 2023-04-10T18:54:52.139Z (over 1 year ago)
- Language: Python
- Size: 297 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PROJECT STATUS
===================
b2g-vivisection might not work for production builds.
It expects apps that you want modified to live in `/system/b2g/webapps/`-----------------------------------------------------------------------
b2g-vivisection
===============This script allows you to modify a rooted Firefox OS device when running.
It requires the phone to be rooted.**WARNING**:
- This script does neither check for compatibility nor support!
- If you overwrite stuff that you have no backup off, it will be lost!
- It is recommended to apply changes with b2g-vivisection after
flashing/updating a device and before restoring user-data from a
known-good backup.What this script does
=====================Filesystem Modifications
========================
The script will go look into the directory `filesystem-mods` and
considers this as a copy of the path `/` on device.
This means that every file in `filesystem-mods` will be copied to the
same path on device.Example: `filesystem-mods/etc/hosts` will be copied to `/etc/hosts`
This would allow blocking access to certain domains, effectively
installing an ad blocker.App Modifications
=================
This works similarly to the filesystem modifications, except apps are
present on device as a ZIP file. This script will download the app as
application.zip and modify files *within the ZIP* by replacing selective
files according to the tree in `app-mods`.Example:
`app-mods/settings.gaiamobile.org/resources/search/providers.json` will
lead to `/system/b2g/webapps/settings.gaiamobile.org/application.zip`
being loaded from the device to a local folder (through `adb pull`),
updated and copied back to the device.
This would change the list of available search engines.