Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create aab file . i am trying but failed #413

Open
wants to merge 194 commits into
base: issue_localntp_onehand
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
554a730
Force new release using rclone
kiwibrowser Sep 11, 2020
b143f18
Temporary disable script the time to figure out a solution to Wasabi
kiwibrowser Sep 11, 2020
95ad0d5
Replace Wasabi with Hetzner storage server
kiwibrowser Sep 11, 2020
8feffed
Update build_apk.yml
kiwibrowser Sep 11, 2020
0028722
Fix rclone configuration
kiwibrowser Sep 11, 2020
666c857
Use 32 threads with rclone
kiwibrowser Sep 11, 2020
c337967
Start additional build to fill cache
kiwibrowser Sep 11, 2020
e621287
Force invalidation of script cache in v8 to prevent crashes in v8::in…
kiwibrowser Sep 11, 2020
ae8a8f9
Start a new build
kiwibrowser Sep 11, 2020
c8571ba
Try one more time the build process
kiwibrowser Sep 12, 2020
80f0e31
Start additional build
kiwibrowser Sep 12, 2020
ea7cc42
Add intermediary steps
kiwibrowser Sep 12, 2020
972a09a
Add the possibility to manually start a build via a button in GitHub …
kiwibrowser Sep 12, 2020
ac44b41
Bump Simple Version for Disk Cache (in order later to force regenerat…
kiwibrowser Sep 12, 2020
217bbfd
Force dropping the Disk Cache if we don't use version 9 of the Disk C…
kiwibrowser Sep 12, 2020
056b070
Update simplecache index metadata version
kiwibrowser Sep 12, 2020
0a683bb
Force version upgrade from Version 8 to Version 9
kiwibrowser Sep 12, 2020
13891df
Prepare for release (if considered stable)
kiwibrowser Sep 12, 2020
50c9045
Force push another release in order to speedup generation time
kiwibrowser Sep 12, 2020
b9f9c28
Super-parallel rclone
kiwibrowser Sep 12, 2020
c59a930
Uploading artefacts should use only 16 threads
kiwibrowser Sep 12, 2020
69e18e1
Add compilation step for chrome/renderer and components/guest_view/re…
kiwibrowser Sep 12, 2020
b2744dd
Remove chrome/renderer
kiwibrowser Sep 12, 2020
0e6d98b
Merge pull request #163 from kiwibrowser/issue_localntp_onehand (rele…
kiwibrowser Sep 13, 2020
340595e
Force build release
kiwibrowser Sep 13, 2020
bee6bc3
Remove intermediary rclone for release
kiwibrowser Sep 13, 2020
2160f08
When we are building the release, we have an issue on x86 that this f…
kiwibrowser Sep 13, 2020
99c2d0c
Placeholder commit to force regeneration of objects cache
kiwibrowser Sep 13, 2020
dd71362
Force push for release
kiwibrowser Sep 13, 2020
3cdd9c0
Forcing again release push
kiwibrowser Sep 13, 2020
1bcfd63
Reverting change that was temporary
kiwibrowser Sep 14, 2020
6bacc8d
Reverting change that was temporary (and here only to regenerate cache)
kiwibrowser Sep 14, 2020
f065787
Pushing release to Google Play Store
kiwibrowser Sep 14, 2020
a329efc
Use BigBuffer for legacy IPC messages (currently, we intentionally ab…
kiwibrowser Sep 14, 2020
c29588f
Add additional files related to IPCs processing
kiwibrowser Sep 14, 2020
48a6c28
Test building using rclone mount instead of copy
kiwibrowser Sep 14, 2020
9bead12
Revert "Test building using rclone mount instead of copy"
kiwibrowser Sep 14, 2020
883fa50
Add objects upload checkpoint
kiwibrowser Sep 14, 2020
a660f66
Update storage backend that is used to check for new releases
kiwibrowser Sep 15, 2020
d82fac4
Announce Play Store updates on Discord
kiwibrowser Sep 15, 2020
4538af7
Update check_for_playstore_releases.yml
kiwibrowser Sep 15, 2020
ae9bf56
Update check_for_playstore_releases.yml
kiwibrowser Sep 15, 2020
fb807a5
Update check_for_playstore_releases.yml
kiwibrowser Sep 15, 2020
450fb5e
Update check_for_playstore_releases.sh
kiwibrowser Sep 15, 2020
bec00f2
Remove the need to install the beta rclone
kiwibrowser Sep 16, 2020
1c898ea
Install stable version of rclone
kiwibrowser Sep 16, 2020
500af68
Fix syntax
kiwibrowser Sep 16, 2020
0c9da97
Force user-agent on Facebook.com for compatibility reasons
kiwibrowser Sep 27, 2020
22f7318
Fix GPU process fallback logic. (869419)
kiwibrowser Sep 28, 2020
b6d6b53
Append "Edition developer" to Opera's UA for higher addon compatibility
Delphox Sep 28, 2020
168968d
Merge pull request #186 from Delphox/patch-1
kiwibrowser Sep 30, 2020
6ec00ff
Add domains containing twitter to the whitelist of windows that can b…
kiwibrowser Sep 30, 2020
e00f996
Fix certain javascript events not bubbling-up (request for this speci…
kiwibrowser Sep 30, 2020
b5c99a4
Allow setsockopt with SO_PASSCRED
kiwibrowser Sep 30, 2020
2ae0208
Permit __NR_membarrier in the Seccomp sandbox (fix for crash while ro…
kiwibrowser Sep 30, 2020
6bd7fb7
seccomp: __NR_membarrier (which code is 283) is greater than MAX_PUBL…
kiwibrowser Sep 30, 2020
768c653
Update x86_64 syscalls to kernel 4.18
kiwibrowser Sep 30, 2020
f576a36
Update syscall numbers for the Linux arm64 sandbox
kiwibrowser Sep 30, 2020
97cd8b9
Update syscall numbers for the Linux arm sandbox
kiwibrowser Sep 30, 2020
c88f565
Extend seccomp_bpf to allow MADV_RANDOM and MADV_NORMAL for the madvi…
kiwibrowser Sep 30, 2020
12ad8ba
Glibc's system() function switched to using posix_spawn, which uses C…
kiwibrowser Sep 30, 2020
b3f45a8
Make sure that UKM is disabled all the time
kiwibrowser Sep 30, 2020
d22f254
Make sure that the UKM service cannot be initialised
kiwibrowser Sep 30, 2020
a10bca9
Make sure UKM reporting goes nowhere (backhole.kiwibrowser.com return…
kiwibrowser Sep 30, 2020
5e4ec53
Make sure UMA is blackholed as well (though it's already off)
kiwibrowser Sep 30, 2020
8909de0
Disable Rappor functionality
kiwibrowser Sep 30, 2020
1aa8af7
Never upload domain reliability reports
kiwibrowser Sep 30, 2020
568ab07
Prepare a new release
kiwibrowser Sep 30, 2020
9533efb
Force trigger build
kiwibrowser Oct 1, 2020
8419f2f
Fix the clipboard data getting out-of-date and force the clipboard da…
kiwibrowser Oct 2, 2020
bbeb0ee
Add support for allowAllThreadPolicies in StrictModeContext
kiwibrowser Oct 2, 2020
cb24741
Add support for BuildInfo.isAtLeastQ
kiwibrowser Oct 2, 2020
b5c147a
Bring back Codacy badge
kiwibrowser Oct 2, 2020
47a0581
Update README.md
kiwibrowser Oct 2, 2020
15020cb
Enable Get button on Edge add-ons page @188
kiwibrowser Oct 5, 2020
cbfea6d
Update MS Edge add-ons executed code
kiwibrowser Oct 6, 2020
13a490a
Testing removing unused header
kiwibrowser Oct 6, 2020
51a5ed5
Add missing brace
kiwibrowser Oct 6, 2020
b64020d
Improve visuals for MS Edge extension download
kiwibrowser Oct 6, 2020
e941970
Prepare intermediary release
kiwibrowser Oct 6, 2020
75cebb3
Trigger the MS Edge add-ons code on store page load
kiwibrowser Oct 6, 2020
6225923
Trigger a new release (because previous build failed)
kiwibrowser Oct 6, 2020
fd5b0fa
Let chrome.windows.update run without errors
kiwibrowser Oct 8, 2020
e64e65b
Fix news source on homepage
kiwibrowser Oct 8, 2020
b474280
Fix news time on the homepage
kiwibrowser Oct 8, 2020
00f67d7
Add new element attribute mutation method
kiwibrowser Oct 9, 2020
e398017
Export new attribute
kiwibrowser Oct 9, 2020
b2cdf9f
Export toggleAttribute
kiwibrowser Oct 9, 2020
226296f
Add partial workaround for Selenium IDE
kiwibrowser Oct 9, 2020
db91489
Fix undeclared symbol on kInvalidCharacterError
kiwibrowser Oct 9, 2020
26baab8
Prepare a release
kiwibrowser Oct 9, 2020
71134fb
Override userAgent in JavaScript on the Chrome Web Store
kiwibrowser Oct 9, 2020
c400ca6
Make the chrome.windows.update (usually to resize or focus a window) …
kiwibrowser Oct 9, 2020
df3bd52
We add a special case for Selenium IDE extension. Selenium IDE extens…
kiwibrowser Oct 9, 2020
5578722
Add additional exceptions from Selenium IDE extension
kiwibrowser Oct 9, 2020
f798fa4
Prepare a Play Store release
kiwibrowser Oct 9, 2020
71dfde1
Push again release
kiwibrowser Oct 9, 2020
8aac563
Add Edg/0.0 hint at the user-agent in MS Edge addon store
kiwibrowser Oct 10, 2020
0188b21
Enable the download button for the MS Edge extension
kiwibrowser Oct 10, 2020
915d31d
Set Chrome Webstore to 85.0.4183.81
kiwibrowser Oct 10, 2020
0658d49
Show Chrome 85.0.4183.81 to Chrome Web Store
kiwibrowser Oct 10, 2020
c78e083
Clarify the attribution text
kiwibrowser Oct 16, 2020
6057e19
CVE-2020-15999 (Heap buffer overflow due to integer truncation in Loa…
kiwibrowser Oct 22, 2020
bcf64ad
Remove unused part for CVE-2020-15999 fix and release
kiwibrowser Oct 22, 2020
8da1b3f
Add new element hiding rules when filtering is enabled
kiwibrowser Oct 23, 2020
1ef373e
Fix issue with Google Translate APIs that are not reachable
kiwibrowser Oct 23, 2020
91c6693
Remove Lightbox annoyance
kiwibrowser Oct 23, 2020
f953610
Add additional news articles (when not logged-in)
kiwibrowser Oct 24, 2020
03264c0
Fix cookie banner not getting displayed properly (but only partially)
kiwibrowser Oct 24, 2020
24bcc2c
Preparing for transition to Android SDK 29
kiwibrowser Oct 25, 2020
54d35cb
Add symbolic link to Android 29 SDK
kiwibrowser Oct 25, 2020
b3926f7
Change default build platform to SDK 29
kiwibrowser Oct 25, 2020
4e40387
Always mangle Surface jni
kiwibrowser Oct 25, 2020
7a1af4a
Ignore TaskInfo TargetAPI warnings (since the API is actually present…
kiwibrowser Oct 25, 2020
5517297
Fix fd ownership mismanagement in V8 initialization
kiwibrowser Oct 25, 2020
e239c80
Update ashmem-dev.c from Chromium upstream (master)
kiwibrowser Oct 25, 2020
27450ec
Block malicious host (Nano Adblocker / Defender user-data domain)
kiwibrowser Oct 27, 2020
3ebf0c7
Remove temporary pyc files
kiwibrowser Oct 29, 2020
2e550c6
Removing additional pyc files
kiwibrowser Oct 29, 2020
541fc1d
Ignore pyc files
kiwibrowser Oct 29, 2020
4975f6a
Update Google Play services SDK to 12.0.1
Jun 19, 2018
4b50765
Roll updated Play Services dependencies
kiwibrowser Oct 29, 2020
916744e
Explicitly link against libatomic for 32bit mips target cpu.
djordje-golubovic Mar 12, 2018
16fec0f
Remove an unnecessary NDK include path.
Jun 16, 2018
9165825
android: Add android_generated_resources GN template
digit-android Jun 19, 2018
066b7b3
Use an integer for android_sdk_version.
jbudorick Jun 22, 2018
d6b1f55
Make "gn analyze" know about all inputs for jinja_template()
agrieve Jun 27, 2018
2c61b34
Updates error message for missing Android toolchain
ginkoshi Jul 3, 2018
b265043
android: Small LocaleUtils cleanup
digit-android Jun 19, 2018
66ccc94
Upgrade styleguide from upstream
kiwibrowser Oct 30, 2020
f66f584
Improve news parsing fallback in case the page structure is modified
kiwibrowser Oct 29, 2020
aa2219f
Upgrade styleguide from upstream
kiwibrowser Oct 30, 2020
1dfb750
Add is_apple flag (required to backport some gni files)
kiwibrowser Oct 30, 2020
9b6e831
Adapt try/catch blocks on new tab page
kiwibrowser Oct 30, 2020
474101e
Prepare new release
kiwibrowser Oct 30, 2020
0dcb54b
Set requestLegacyExternalStorage to true to enable downloads to SDCar…
kiwibrowser Oct 30, 2020
5955e18
Orderfile: move instrumentation from tools to base.
Jun 11, 2018
b294441
Updating third_party/dawn from upstream
kiwibrowser Oct 31, 2020
66341b7
Fix for CVE-2020-16010 (Heap buffer overflow in UI in Google Chrome o…
kiwibrowser Nov 5, 2020
dba3e12
Fix for CVE-2020-16009 (Inappropriate implementation in V8 in Google …
kiwibrowser Nov 5, 2020
0a33946
Update map-updater.cc
kiwibrowser Nov 5, 2020
adc9fc3
Add Generation number in application release version (see issue #230)
kiwibrowser Nov 5, 2020
1a462da
Test disabling PartnerBrowserCustomizations by reducing timeout
kiwibrowser Dec 15, 2020
bc26e60
Allow add-path (ACTIONS_ALLOW_UNSECURE_COMMANDS)
kiwibrowser Dec 15, 2020
07643c1
Allow set-env in build_apk.apk
kiwibrowser Dec 15, 2020
7c4050d
Test synchronous commiting release
kiwibrowser Dec 16, 2020
9d2a974
Disable synchronous renderer compositor (as a few crashes have been r…
kiwibrowser Dec 25, 2020
30d4252
Bump cairosvg
dependabot[bot] Jan 6, 2021
a9a462c
Merge pull request #285 from kiwibrowser/dependabot/pip/chrome/common…
kiwibrowser Jan 7, 2021
e1337b5
Bump lxml
dependabot[bot] Jan 7, 2021
5312ced
Merge pull request #289 from kiwibrowser/dependabot/pip/chrome/common…
kiwibrowser Jan 8, 2021
c51d640
Add ideas of websites to visit (explore), the goal is to make users s…
kiwibrowser Feb 5, 2021
9dbce7d
Backport patch that addresses CVE-2021-21148 (commit dfcf1e86fac0a7b0…
kiwibrowser Feb 5, 2021
85b810e
Make more room under the Explore section
kiwibrowser Feb 5, 2021
7b3074e
Better alignment for the + (add tile/bookmark) button on the homepage
kiwibrowser Feb 5, 2021
07c4c7f
Add additional padding under the explore section
kiwibrowser Feb 5, 2021
06d9479
Resolved an issue where the explore section could not be closed properly
kiwibrowser Feb 5, 2021
7bdaa1a
Fix an issue where holding finger on the user tiles on the homepage c…
kiwibrowser Feb 5, 2021
2197e0c
Do not pollute history entries when user clicks on user tiles (kiwibr…
kiwibrowser Feb 6, 2021
2d6a801
Suggestions should not be refinable
kiwibrowser Feb 6, 2021
a3ba1a0
Add additional spacing under Explore section
kiwibrowser Feb 6, 2021
f195a43
Allow empty impression URL (e.g. for promotion back to XDA-Developers)
kiwibrowser Feb 6, 2021
dba94b1
Put server suggestions behind a feature flag so the feature is deploy…
kiwibrowser Feb 6, 2021
c677db1
Disable frame-rate limiting and prepare for a test release
kiwibrowser Feb 7, 2021
2be9c4e
Force creation of a new release build
kiwibrowser Feb 7, 2021
a0ead05
Try to workaround GitHub Actions permission issue for create release …
kiwibrowser Feb 7, 2021
b3a4602
Fix Play Store not opening when external intent is called
kiwibrowser Feb 16, 2021
ad4fdb6
Add mechanism to clear cached tiles that have not been displayed for …
kiwibrowser Feb 16, 2021
f27ef03
Bump lxml
dependabot[bot] Mar 31, 2021
9e68437
Switch workflow to manual dispatch as we are switching to Kiwi Browse…
kiwibrowser Jun 26, 2021
1a240f1
Update README.md
kiwibrowser Jun 26, 2021
60b5769
Update check_for_playstore_releases.yml
kiwibrowser Jul 11, 2021
8ffef8e
Update check_for_playstore_releases.sh
kiwibrowser Jul 11, 2021
c78abd4
Change Ubuntu builder to Ubuntu version supported until 2028
kiwibrowser Jul 14, 2021
9d76e61
Update build_apk.yml
kiwibrowser Jul 18, 2021
25623ba
Update build_apk.yml
kiwibrowser Jul 18, 2021
025e897
Merge pull request #340 from kiwibrowser/dependabot/pip/chrome/common…
kiwibrowser Aug 6, 2021
1b5e7ed
Change package name to com.kiwibrowser.browser.classic
kiwibrowser Aug 14, 2021
074957c
Update channel_constants.xml
kiwibrowser Aug 14, 2021
9c5cce1
Update build_apk.yml
kiwibrowser Aug 14, 2021
a8f93d3
Update build_apk.yml
kiwibrowser Aug 14, 2021
2b83880
Update build_apk.yml
kiwibrowser Aug 14, 2021
1acff93
Adding tarfile member sanitization to extractall()
TrellixVulnTeam Nov 1, 2022
c75ed19
Merge pull request #421
kiwibrowser Nov 1, 2022
9a82c72
Remove issues link from README (#424)
Psychpsyo Apr 29, 2023
130f597
Bump flask from 1.0 to 2.3.2 in /tools/android/loading/cloud/frontend…
dependabot[bot] May 1, 2023
62a527c
Update build process to Ubuntu latest
kiwibrowser Jul 28, 2023
5b95f72
Switch to Ubuntu 20.04
kiwibrowser Jul 28, 2023
d9aa9fc
Update install-build-deps.sh from upstream
kiwibrowser Jul 28, 2023
6b6b4a9
Remove non-necessary step
kiwibrowser Jul 28, 2023
18a9e00
Add dependency to ninja build system
kiwibrowser Jul 28, 2023
945c26b
Upload objects to cache earlier
kiwibrowser Jul 28, 2023
e891b6f
Free additional space on the build machine before initializing the build
kiwibrowser Aug 14, 2023
86afd15
Split the build process into smaller fragments
kiwibrowser Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
382 changes: 129 additions & 253 deletions .github/workflows/build_apk.yml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions .github/workflows/check_for_playstore_releases.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

curl_parameters=("-b" "cookie_jar" "-c" "cookie_jar" "-H" "authority: ${APPSTORE_HOST}" "-H" "pragma: no-cache" "-H" "cache-control: no-cache" "-H" "dnt: 1" "-H" "upgrade-insecure-requests: 1" "-H" "user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/81.0.4044.113 Safari/537.36" "-H" "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" "-H" "sec-fetch-site: none" "-H" "sec-fetch-mode: navigate" "-H" "sec-fetch-dest: document" "-H" "content-type: application/json" "-H" "accept-language: en-US,en;q=0.9" "--connect-timeout" "5" "--max-time" "10" "--retry" "5" "--retry-delay" "0" "--retry-max-time" "40" "--compressed")
proxy_parameters=("--proxy" "http://$PROXY_USER@$PROXY_HOST" "--user" "$AUTHORIZATION")
source_data=`curl -s -X POST "https://${APPSTORE_HOST}/${APPSTORE_LIST_PATH}" "${proxy_parameters[@]}" "${curl_parameters[@]}" -d '{ "pnames": ["com.kiwibrowser.browser"] }'`
Expand All @@ -13,10 +11,9 @@ fi
versions_and_links_hash=`echo $versions_and_links | shasum | cut -f1 -d' '`
links=`echo $source_data | jq '.data[0].apks[].link' | tr -d '"'`

# This is apksigner with v3 signature verification
# We use apksigner with v3 signature verification
# Ubuntu provides only version 0.8, so we take Android SDK Build Tools version 30
# apksigner 0.9
wget https://s3.wasabisys.com/kiwibrowser-tools/apksigner.jar

# Reference is:
########################################################################################################
Expand Down
42 changes: 25 additions & 17 deletions .github/workflows/check_for_playstore_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,27 @@ jobs:
java-version: 13

- name: Installing rclone
run: curl https://rclone.org/install.sh | sudo bash -s beta
run: |
curl https://rclone.org/install.sh | sudo bash

- name: Creating rclone config to upload the cache
run: |
mkdir -p $HOME/.config/rclone/
echo '[sync]' > $HOME/.config/rclone/rclone.conf
echo 'type = s3' >> $HOME/.config/rclone/rclone.conf
echo 'provider = Wasabi' >> $HOME/.config/rclone/rclone.conf
echo 'env_auth = true' >> $HOME/.config/rclone/rclone.conf
echo 'endpoint = s3.wasabisys.com' >> $HOME/.config/rclone/rclone.conf
echo 'acl = public-read' >> $HOME/.config/rclone/rclone.conf
echo '[sync]' >> $HOME/.config/rclone/rclone.conf
echo 'type = sftp' >> $HOME/.config/rclone/rclone.conf
echo 'host = ${{ secrets.STORAGE_HOST }}' >> $HOME/.config/rclone/rclone.conf
echo 'user = storage' >> $HOME/.config/rclone/rclone.conf
echo 'key_pem = ${{ secrets.STORAGE_KEY }}' >> $HOME/.config/rclone/rclone.conf

- name: Downloading apksigner.jar from storage
run: |
rclone copy --fast-list --transfers=16 sync:kiwibrowser-tools/ ./tools
cp -v tools/apksigner.jar .

- name: Downloading check_for_playstore_releases.sh script
run: wget https://raw.githubusercontent.com/kiwibrowser/src/master/.github/workflows/check_for_playstore_releases.sh

- name: Downloading artifacts to storage (Wasabi S3)
env:
AWS_ACCESS_KEY_ID: ${{ secrets.WASABI_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.WASABI_SECRET_KEY }}
- name: Downloading artifacts from storage
run: |
rclone copy --fast-list --transfers=16 sync:kiwibrowser-reference/ ./reference

Expand Down Expand Up @@ -69,10 +71,14 @@ jobs:
with:
tag_name: ${{ github.run_id }}
release_name: Play Store ${{ github.run_id }}
draft: true
draft: false
prerelease: false
body: |
This release is the same as the development version, except it is signed by Google instead of the developer.
This release is the same as one recent development version, except it is signed by Google instead of the developer.

There will be a new release of Kiwi Browser in a couple of days called Kiwi Browser Next, this browser will be based on Chromium 93.

If you are interested into participating into the beta, you can join https://github.com/kiwibrowser/src.next/releases

- name: Uploading release asset (arm-playstore)
uses: actions/upload-release-asset@v1
Expand Down Expand Up @@ -114,12 +120,14 @@ jobs:
asset_name: Kiwi-${{ github.run_id }}-x64-playstore.apk
asset_content_type: application/vnd.android.package-archive

- name: Uploading artifacts to storage (Wasabi S3)
env:
AWS_ACCESS_KEY_ID: ${{ secrets.WASABI_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.WASABI_SECRET_KEY }}
- name: Uploading artifacts to storage
run: |
rclone copy --fast-list --transfers=16 ./Kiwi-arm-playstore.apk sync:kiwibrowser-reference/
rclone copy --fast-list --transfers=16 ./Kiwi-arm64-playstore.apk sync:kiwibrowser-reference/
rclone copy --fast-list --transfers=16 ./Kiwi-x86-playstore.apk sync:kiwibrowser-reference/
rclone copy --fast-list --transfers=16 ./Kiwi-x64-playstore.apk sync:kiwibrowser-reference/

# - name: Send announcement on Discord
# if: ${{ github.repository_owner == 'kiwibrowser' }}
# run: |
# curl -H 'Content-Type: application/json' -X POST -d '{"username": "Kiwi Builder", "content": "A new version of Kiwi Browser appeared on the Play Store: https://github.com/kiwibrowser/src/releases/tag/${{ github.run_id }}"}' ${{ secrets.DISCORD_WEBHOOK }}
4 changes: 4 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2019 The Kiwi Browser Authors and Geometry OU. All rights reserved.
// Copyright 2015 The Chromium Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
Expand All @@ -13,6 +14,9 @@
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
// * Neither the name of Geometry OU or Kiwi Browser. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,28 @@ If you want to optimize of the final APK, you can look at the size of each indiv

<a href="https://play.google.com/store/apps/details?id=com.kiwibrowser.browser"> <img src="https://camo.githubusercontent.com/59c5c810fc8363f8488c3a36fc78f89990d13e99/68747470733a2f2f706c61792e676f6f676c652e636f6d2f696e746c2f656e5f75732f6261646765732f696d616765732f67656e657269632f656e5f62616467655f7765625f67656e657269632e706e67" height="55">

## Business model

The browser is getting paid by search engines for every search done using Kiwi Browser.

Depending on the search engine choice, requests may go via Kiwibrowser / Kiwisearchservices servers.
This is for invoicing our search partners and provide alternative search results (e.g. bangs aka "shortcuts").

In some countries, the browser displays sponsored tiles or news on the homepage.

User data (browsing, navigation, passwords, accounts) is not collected because we have no interest to know what you do in the browser. Our main goal is to convince you to use a search engine partner, and this search engine makes money / new partnerships and shares revenue with us.

## Roadmap

* During year 2020, the goal of the project is to make maintenance fixes and security updates.

If there is an issue or bug that you want to be included to Kiwi, please open an issue ticket pointing to the related Chromium bug or commit. Be precise, there are dozen of thousands of changes in Chromium.

* Later in the year, if there is enough demand and ressources, Kiwi will follow Chromium releases automatically (including bugfixes).
* During 2021, Kiwi Browser will switch to a new branch called Kiwi Browser Next with a quite automated Chromium rebasing system.

## Additional help

You can ask for extra help in our Discord server, or by [filing an issue](https://github.com/kiwibrowser/src/issues).
You can ask for extra help in our Discord server:

<a href="https://discord.gg/XyMppQq"> <img src="https://discordapp.com/assets/e4923594e694a21542a489471ecffa50.svg" height="50"></a>

Expand Down
3 changes: 0 additions & 3 deletions android_webview/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,6 @@ shared_library("libwebviewchromium") {
]
configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ]
if (use_order_profiling) {
deps += [ "//tools/cygprofile" ]
}
}

if (android_64bit_target_cpu) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
import org.chromium.device.gamepad.GamepadList;
import org.chromium.net.NetworkChangeNotifier;
import org.chromium.ui.base.ActivityWindowAndroid;
import org.chromium.ui.base.Clipboard;
import org.chromium.ui.base.PageTransition;
import org.chromium.ui.base.ViewAndroidDelegate;
import org.chromium.ui.base.WindowAndroid;
Expand Down Expand Up @@ -3497,6 +3498,7 @@ public void onWindowFocusChanged(boolean hasWindowFocus) {
if (isDestroyedOrNoOperation(NO_WARN)) return;
mWindowFocused = hasWindowFocus;
mViewEventSink.onWindowFocusChanged(hasWindowFocus);
Clipboard.getInstance().onWindowFocusChanged(hasWindowFocus);
}

@Override
Expand Down
8 changes: 8 additions & 0 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ jumbo_component("base") {
":build_date",
":cfi_buildflags",
":debugging_buildflags",
":orderfile_buildflags",
":partition_alloc_buildflags",
":protected_memory_buildflags",
":synchronization_buildflags",
Expand Down Expand Up @@ -1829,6 +1830,13 @@ buildflag_header("debugging_buildflags") {
]
}

buildflag_header("orderfile_buildflags") {
header = "orderfile_buildflags.h"
header_dir = "base/android/orderfile"
_using_order_profiling = is_android && use_order_profiling
flags = [ "ORDERFILE_INSTRUMENTATION=$_using_order_profiling" ]
}

# Build flags for ProtectedMemory, temporary workaround for crbug.com/792777
# TODO(vtsyrklevich): Remove once support for gold on Android/CrOs is dropped
buildflag_header("protected_memory_buildflags") {
Expand Down
13 changes: 13 additions & 0 deletions base/android/java/src/org/chromium/base/BuildInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,19 @@ public static boolean isDebugAndroid() {
return "eng".equals(Build.TYPE) || "userdebug".equals(Build.TYPE);
}

/**
* Checks if the device is running on a pre-release version of Android Q or newer.
* <p>
* @return {@code true} if Q APIs are available for use, {@code false} otherwise
* @deprecated Android Q is a finalized release and this method is no longer necessary. It
* will be removed in a future release of the Support Library. Instead, use
* {@code Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q}.
*/
@Deprecated
public static boolean isAtLeastQ() {
return VERSION.SDK_INT >= 29;
}

// The markers Begin:BuildCompat and End:BuildCompat delimit code
// that is autogenerated from Android sources.
// Begin:BuildCompat P
Expand Down
64 changes: 31 additions & 33 deletions base/android/java/src/org/chromium/base/LocaleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import org.chromium.base.annotations.CalledByNative;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

/**
* This class provides the locale related methods.
Expand All @@ -27,27 +24,6 @@ public class LocaleUtils {
private LocaleUtils() {
}

private static final Map<String, String> LANGUAGE_MAP_FOR_CHROMIUM;
private static final Map<String, String> LANGUAGE_MAP_FOR_ANDROID;

static {
// A variation of this mapping also exists in:
// build/android/gyp/process_resources.py
HashMap<String, String> mapForChromium = new HashMap<>();
mapForChromium.put("iw", "he"); // Hebrew
mapForChromium.put("ji", "yi"); // Yiddish
mapForChromium.put("in", "id"); // Indonesian
mapForChromium.put("tl", "fil"); // Filipino
LANGUAGE_MAP_FOR_CHROMIUM = Collections.unmodifiableMap(mapForChromium);
}

static {
HashMap<String, String> mapForAndroid = new HashMap<>();
mapForAndroid.put("und", ""); // Undefined
mapForAndroid.put("fil", "tl"); // Filipino
LANGUAGE_MAP_FOR_ANDROID = Collections.unmodifiableMap(mapForAndroid);
}

/**
* Java keeps deprecated language codes for Hebrew, Yiddish and Indonesian but Chromium uses
* updated ones. Similarly, Android uses "tl" while Chromium uses "fil" for Tagalog/Filipino.
Expand All @@ -56,8 +32,20 @@ private LocaleUtils() {
* @return a updated language code for Chromium with given language string.
*/
public static String getUpdatedLanguageForChromium(String language) {
String updatedLanguageCode = LANGUAGE_MAP_FOR_CHROMIUM.get(language);
return updatedLanguageCode == null ? language : updatedLanguageCode;
// IMPORTANT: Keep in sync with the mapping found in:
// build/android/gyp/util/resource_utils.py
switch (language) {
case "iw":
return "he"; // Hebrew
case "ji":
return "yi"; // Yiddish
case "in":
return "id"; // Indonesian
case "tl":
return "fil"; // Filipino
default:
return language;
}
}

/**
Expand All @@ -67,8 +55,9 @@ public static String getUpdatedLanguageForChromium(String language) {
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@VisibleForTesting
public static Locale getUpdatedLocaleForChromium(Locale locale) {
String languageForChrome = LANGUAGE_MAP_FOR_CHROMIUM.get(locale.getLanguage());
if (languageForChrome == null) {
String language = locale.getLanguage();
String languageForChrome = getUpdatedLanguageForChromium(language);
if (languageForChrome.equals(language)) {
return locale;
}
return new Locale.Builder().setLocale(locale).setLanguage(languageForChrome).build();
Expand All @@ -81,8 +70,16 @@ public static Locale getUpdatedLocaleForChromium(Locale locale) {
* @return a updated language code for Android with given language string.
*/
public static String getUpdatedLanguageForAndroid(String language) {
String updatedLanguageCode = LANGUAGE_MAP_FOR_ANDROID.get(language);
return updatedLanguageCode == null ? language : updatedLanguageCode;
// IMPORTANT: Keep in sync with the mapping found in:
// build/android/gyp/util/resource_utils.py
switch (language) {
case "und":
return ""; // Undefined
case "fil":
return "tl"; // Filipino
default:
return language;
}
}

/**
Expand All @@ -92,8 +89,9 @@ public static String getUpdatedLanguageForAndroid(String language) {
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@VisibleForTesting
public static Locale getUpdatedLocaleForAndroid(Locale locale) {
String languageForAndroid = LANGUAGE_MAP_FOR_ANDROID.get(locale.getLanguage());
if (languageForAndroid == null) {
String language = locale.getLanguage();
String languageForAndroid = getUpdatedLanguageForAndroid(language);
if (languageForAndroid.equals(language)) {
return locale;
}
return new Locale.Builder().setLocale(locale).setLanguage(languageForAndroid).build();
Expand All @@ -110,7 +108,7 @@ public static Locale forLanguageTagCompat(String languageTag) {
return new Locale("");
}
String language = getUpdatedLanguageForAndroid(tag[0]);
if ((language.length() != 2 && language.length() != 3) || language.equals("und")) {
if ((language.length() != 2 && language.length() != 3)) {
return new Locale("");
}
if (tag.length == 1) {
Expand Down
13 changes: 12 additions & 1 deletion base/android/java/src/org/chromium/base/StrictModeContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ public static StrictModeContext allowAllVmPolicies() {
return new StrictModeContext(oldPolicy);
}

/**
* Convenience method for disabling all thread-level StrictMode checks with try-with-resources.
* Includes everything listed here:
* https://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder.html
*/
public static StrictModeContext allowAllThreadPolicies() {
StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy();
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.LAX);
return new StrictModeContext(oldPolicy);
}

/**
* Convenience method for disabling StrictMode for disk-writes with try-with-resources.
*/
Expand Down Expand Up @@ -82,4 +93,4 @@ public void close() {
StrictMode.setVmPolicy(mVmPolicy);
}
}
}
}
Loading
Loading