项目作者: ghostery

项目描述 :
Ghostery Android Browser
高级语言: Dockerfile
项目地址: git://github.com/ghostery/user-agent-android.git
创建时间: 2020-06-04T15:33:27Z
项目社区:https://github.com/ghostery/user-agent-android

开源协议:Mozilla Public License 2.0

下载


This project is discontinued.

We recommend to use Ghostery Tracker and Ad Blocker in Firefox.


Ghostery Browser for Android

This is the next generation Ghostery Browser for Android based on Firefox Fenix.

The project uses a specific tag of the upstream Fenix project as a submodule and then applies a set of patches to add the Ghostery extension and branding.

Build Instructions

Note: Both Android SDK and NDK are required.

  1. # Checkout the repo
  2. git clone https://github.com/ghostery/user-agent-android
  3. # Pull Fenix code
  4. git submodule init
  5. git submodule update --force
  6. # Apply patches
  7. ./import.sh
  8. # the browser directory contains the app project
  9. cd browser/
  10. ./gradlew clean app:assembleGhostery

Dev workflow

We use git to import and export patches. Having initially imported patches via import.sh you can modify and edit patches in the browser folder.
Once finished, you can export your changes with the following command:

  1. cd browser/
  2. git format-patch ${TAG} --minimal --no-numbered --keep-subject --output-directory ../patches/

Where ${TAG} is a ref to the tip of the Fenix branch you originally applied the patches onto. The command will update the patches in the patches folder
to match your git commit history.

Merging upstream

To update the browser to a newer version of Fenix, first update the Fenix submodule branch, then apply and fix the patches.

To update Fenix version:

  • change FENIX_TAG in ./config.sh
  • change .gitmodule to specify new version
  • git submodule sync --recursive
  • git submodule foreach --recursive git fetch
  • git submodule update --init --recursive
  • in browser folder git checkout TAG
  • commit changes