Commit Graph
659 Commits
Author SHA1 Message Date
AlexeyBarabash 94b880c97f Revert 'Disable refresh of Brave Leo at the panel #21117' (#28369)
Revert 'Disable refresh of Brave Leo at the panel #21117'; fixes brave/brave-browser#45026
2025-04-01 18:39:15 +03:00
Deep Pandya 2ad51c8065 Remove chrome widgets (#27724)
* Remove chrome widgets

Add bytecode changes for quick action search widget

* Add patch to remove chrome widgets from manifest

* Add bytecode tests for method exists

* Update AndroidManifest patch

* Add lint suppression for R.drawable.hairline_border

* Update Bytecode test

* Add classes to apk_for_test

* Add QuickActionSearchWidgetProviderDino test flag

Add QuickActionSearchWidgetProviderSearch test flag
2025-03-31 18:34:40 +02:00
Artem Samoilenko 152d7a4103 [Android] Additional improvements for bottom address bar
- Moved address bar to bottom on NTP
- Moved menu and updated menu icons and texts
- Added request for relaunch when bottom navigation controls are enabled
- UI and visual improvements
2025-03-27 09:11:22 -04:00
Deep Pandya 86e6934b52 Remove search engine onboarding (#28230)
* Remove search engine onboarding

* Remove onUrlFocusChange callback
2025-03-21 00:15:47 -04:00
Simone Arpe ca2dd2319d Modify Chromium files to fix PIP behavior (#27849) 2025-03-19 19:46:21 +01:00
Artem Samoilenko 66c943d90a [Android] Move BraveUrlConstants out of embedder_support component
`BraveUrlConstants` does not extend anything and thus does not belong to `embedder_support` component.
2025-03-18 20:02:25 -04:00
Artem Samoilenko f65a1f40a6 [Android] Modularize bookmarks browser code
Chromium change:
https://chromium.googlesource.com/chromium/src/+/088816e5c47905f8b4e16dd867cddaf24fb4f55f

[bookmarks] Modularize bookmarks browser code

Moved production bookmarks browser code to chrome/browser/bookmarks
directory. Made some small changes along the way to simplify the
process.
* Moved all production bookmarks browser code to module.
* Added a separate target for files that can be modularized now.
* Added a separate gni list for files that can't be modularized now
  which is included in chrome_java directly. Over time I will refactor
  those files so that they are moved into the main modularized target.
* Merged ReadingListUtils and BookmarkUtils. In the long run, browser
  reading list code shouldn't really exist since the concepts are
  merged at the native level.
* Moved one method from BookmarkUtils to BookmarkModel to allow for
  more files to be modularized.

Eventually some files, particularly implementations of interfaces
defined in chrome/browser/bookmarks, will live in the unmodularized
directory.

Bug: 395908100
2025-03-18 20:02:13 -04:00
Deep Pandya 1247dd3771 Improve set as default prompt (#27779)
* Open settings to set default browser app from main menu

* Add conditions for app open count & dialog

* Remove notifications for set as default

* Add conditions for days timer

* Add changes to support < android 10 devices

* Add comments and refactor functions
2025-02-28 15:11:30 -05:00
Serg 02f227cc4a Moves BraveMediaNotificationControllerServices class into a base module (#27860) 2025-02-28 09:16:29 -05:00
aseren eb477214e5 Merge pull request #27645 from brave/issues/43513
[ads] RichNTT: Android
2025-02-27 17:22:00 -05:00
Aleksei Seren 424ad890b2 [ads] RichNTT: Android 2025-02-27 12:12:59 -05:00
Deep Pandya a5c0b652be Rewards 3.0 android (#26945)
* Add rewards 3.0 feature flag

* Add a function to check for rewards 3.0 flag

Update entry points for rewards with rewards 3.0 flag

* Add RewardsPageActivity/RewardsCustomTabRootUiCoordinator to show rewards 3.0 changes in custom tab

* Address rewards reset for rewards 3.0

* Add activity transition for rewards page

* Remove onBackPressed override

* Add close button to close the rewards panel as we have disabled back press

Update close button position on the page

* Add creator changes for rewards 3.0

Remove logs

Add null check

Remove changes for backpress

* Add changes for handling creators

Encode Url for creators

* Add open url native fucntion

* Add bubble in query params

* Add bytecode changes for BaseCustomTabActivity

Add native function to open url into rewards_page_ui

* Update copyright header year

* Update close icon for rewards page

Remove comments and refactor changes

* Address naming related changes

* Add test for bytecode changes

Resolve rebase error

* Update changes to use TabUtils open tab

* Remove close button

* Add FullScreenCustomTabActivity
2025-02-22 16:34:57 -05:00
AlexeyBarabash a0e1f1ef17 [cr134] [Android] ClearBrowsingDataFragmentAdvanced was removed
Chromium now doesn't contain `Basic`/`Advanced`.

Class ClearBrowsingDataFragment now represents what used to be ClearBrowsingDataFragmentAdvanced.

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/a49153686134a72ff189024392df6aad09e71fb0

	[Quick Delete] Clean up kQuickDeleteAndroidFollowup flag

	Clean up Quick Delete phase 2 feature checks now that the experiment is
	fully launched. This includes removing the obsolete tabbed layout and
	basic tab from CBD on Android.

	OBSOLETE_HISTOGRAM[History.ClearBrowsingData.UserDeletedFromTab]=No longer logged

	Bug: 40255099
	Change-Id: I340afa9692f17ad3b472f501522a9e6ff8fb061c
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6162502
2025-02-18 12:46:55 +00:00
AlexeyBarabash 12bcebfa91 [cr134] [Android] Removed TabModelSelectorObserver.onTabModelSelected
Related Chromium change
https://source.chromium.org/chromium/chromium/src/+/d223f2e8f4900df442947eb2303b356468625d6f

	[Tab Model] Remove onTabModelSelected

	Replace onTabModelSelected with observing getCurrentTabModelSupplier.

	A previous CL removed most usages, but a few were leftover. This CL
	completes the migration.

	This change in observation style is beneficial as it avoids adding
	TabModelSelectorObservers that get notified of various spammy onChange
	updates and subsequently no-op all observer events except for tab model
	selected which is the only action most observers cared about in the
	first place.

	Change-Id: I9a657404c65b8e6b182924656e264945b7ddb35e
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6165827
2025-02-18 12:46:54 +00:00
Deep Pandya 8cec452b21 Remove SafetyNet android (#26719)
* Remove safetynet changes android

Resolve presubmit issue

Remove safetynet directory

* Clear kSafetynetStatus pref

* Remove and clear kSafetynetCheckFailed pref

Register kSafetynetStatus in brave_prodfile_prefs

* Remove BraveUpgradeJobIntentService

* Remove safetynet key
2025-02-10 09:56:43 -05:00
SergandFrancois Marier 0fb665213a Adds a settings to show SafeBrowsing errors under Developer options on Android (#27333)
* Adds a settings to show SafeBrowsing errors under Developer options on Android

* Update browser/ui/android/strings/android_brave_strings.grd

Co-authored-by: Francois Marier <francois@brave.com>

* Fixes a header

---------

Co-authored-by: Francois Marier <francois@brave.com>
2025-01-24 10:35:03 -05:00
deeppandya 90c24dd6d3 Remove cross promo dialog 2024-12-18 13:58:08 -07:00
vadims 4be896ea3e Element Picker on Android (#26725)
Element Picker
https://github.com/brave/brave-browser/issues/33241
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2024-12-16 22:54:44 +01:00
Serg 1c166f181d Allows to use a microphone for Brave Talk in the background on Android 2024-12-16 13:01:10 -05:00
Jay Harris 3b008944ad [AI Chat]: Update Android UI to open AI Chat in a tab (#26823) 2024-12-12 13:28:38 +13:00
deeppandya 0622296fe8 Add open youtube in brave dialog on upgrade 2024-11-19 15:59:46 -05:00
deeppandya b2b58b77c7 Remove QuickSearchEnginesViewsUtil 2024-11-14 16:27:30 -05:00
deeppandya 0df4f9b845 Only show quick search engines when user types into location bar 2024-11-14 16:27:22 -05:00
deeppandya 1c4d4a3551 Refactor class names
Remove logs

Add new line for ic_microsoft_color icon
2024-11-06 11:20:09 -05:00
deeppandya d479360e88 Add ItemTouchHelper to improve reordering 2024-11-06 11:20:06 -05:00
deeppandya 3d82e3dd11 Add quick search NTP view
Update changes in BravActivity to render the view

Add helper class for checking keyboard height
2024-11-06 11:18:07 -05:00
deeppandya c5faa6b9ff Changes to save/retrieve quick search engines from prefs 2024-11-06 11:16:41 -05:00
deeppandya 5f3e07b298 Add sharedpreferencehelper in util
Add QuickSearchEngineModel
2024-11-06 11:16:38 -05:00
deeppandya 32d985caec Add changes for getting search engine icons
ADd callbacks for interaction
2024-11-06 11:16:36 -05:00
deeppandya f9e229cefe Add changes for quick serach engines settings 2024-11-06 11:16:33 -05:00
Artem Samoilenko 2a4f95de3a [Android] Move base.cached_flags to components.cached_flags
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/78b03df18d4625181de54bf6a7efa805c20b367d

Move base.cached_flags to components.cached_flags

We will need to depend on components/variations to support
fieldtrial_testing_config.json.

Since base can't use cached flags, and many clients of base won't
either, it makes more sense to put it in components.

Bug: 370797986
2024-10-24 12:14:32 +01:00
Artem Samoilenko 120ba02dbe [Android] Adopt ServiceLoaderUtil for LanguageProfileDelegate
Upstream's logic in `AppLocaleUtils` for `getApplicationLocales` and `setApplicationLocales` is the same as it was in our patch, so we don't need it anymore.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/826aadf32e2ebec6a4086d97937f345ea5f3f912

Android: Adopt ServiceLoaderUtil for LanguageProfileDelegate

And upstreams & inlines the logic from LocaleManagerDelegate, which
existed only to work around Android T SDK not yet being available.

Also adds some @JniType annotations to LanguageBridge to simplify
changes there.

Bug: 40901855
2024-10-24 12:14:28 +01:00
Brian Clifton 0d17590b3b Merge pull request #25310 from jagadeshjai/feature__toggle_for_show_undo_bar
[Android] Add an option to Show/Hide Undo bar when tab[s] closed.
2024-10-21 09:18:33 -07:00
vadims e7bec70665 Include component versions in webcompat reports (#25688)
Include component versions in webcompat reports 
(https://github.com/brave/brave-browser/issues/35674)
---------
Signed-off-by: Vadym Struts <vstruts@brave.com>
2024-10-21 17:33:43 +02:00
Jagadesh P 2b2ed3785d [Android] Use reflection to call |showUndoBar| in |UndoBarController| by having |BraveUndoBarControllerBase| as super to |UndoBarController|.
Add byte code test for |showUndoBar| method existence and remove the unrequired patch.
2024-10-21 00:00:39 -07:00
Jagadesh P 1773dacfbd [Android] Add an option Show/Hide Undo bar when tab[s] closed. 2024-10-21 00:00:34 -07:00
deeppandya 0ac02461db Update Setting UI for server selection option 2024-10-16 04:39:39 +05:30
Simone Arpe 0223b796d9 (Wallet) Clean up and improve transaction fragment implementation (#25628) 2024-10-07 19:39:21 +02:00
AlexeyBarabash 2d17527690 Fixed crash at Content Filtering (#25812)
fixes https://github.com/brave/brave-browser/issues/41402

Crash happened at app menu => Settings => Brave Shields & privacy => Content Filtering.

Tombstone
```
java.lang.ClassCastException: org.chromium.chrome.browser.settings.SettingsActivity cannot be cast to org.chromium.chrome.browser.settings.BraveSettingsActivity
at org.chromium.chrome.browser.shields.ContentFilteringFragment.onAttach(ContentFilteringFragment.java:86)
```

Upstream had added a new place to create Intent for Settings activity.

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d4af6a2c4ccc6427aa7df0f2beacf61793459e66

	[Settings] Introduce a central place to construct intents

	SettingsIntentUtil becomes the central place to construct intents
	launching the settings activity.

	Bug: b/356743945
	Change-Id: Id6988af4a182fe6603bb02c9dae8b2ac48f80fed
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5832868
2024-10-04 21:38:23 +03:00
Artem Samoilenko 24f2fc8fcb [Android] Fix for navigation bar colors
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/52962da478ed750038f966c386c4ee0ff2d73837

Always apply luminance calculation to navigation bar icons

Currently, the navigation bar icons only respond to the color of the navigation bar during animations. Since animations are being disabled for the navbar coloring experiment, it's important that the luminance calculation to properly color the navigation bar icons is applied all the time, not just during animations.

Bug: 364228106, 40925025
2024-10-03 17:06:30 +01:00
AlexeyBarabash cac75f3d86 [Android] DefaultBrowserPromoUtils.prepareLaunchPromoIfNeeded changed
It is not static now and have a new tracker arg.

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/828eb6d14543d75671991083fd162b3308bcadbe

	[DefaultBrowser] Add helper for the role manager restriction

	This CL adds a helper DefaultBrowserPromoUtils#shouldShowOtherPromo to
	decide if other default browser promos can be shown.
	The conditions mean to ensure that we only show other promo when the
	role manager promo can't be shown either because of reaching the max
	count or role manager not available in the current system.

	It also adds the a feature engagement event to ensure the new promo
	can only be shown if the role manager promo not shown in the 7 days
	window.

	Bug: 364906215
	Change-Id: If5684ee24ff87d193939dd9b8c6ae6d2a8af783c
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5839024
2024-10-03 17:06:29 +01:00
AlexeyBarabash fc1686a7af [Android] TranslateCompactInfoBar class was removed
(Verified the transalte infobar bubble is still shown)

Related Chromium change:
https://source.chromium.org/chromium/chromium/src/+/333ffb2d4a93d2ce9e9a5fabdf1e593d6d062e9d

	Remove and clean up old Translate Infobar code. Leaving translate_infobar_delegate because there are still iOS dependencies attached.

	Fixed: 353735844
	Bug: 40213244
	Change-Id: Ief6abe1485ef372f1ac44426b1edeb3b69b89208
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5727132
2024-10-03 17:06:28 +01:00
vadims 7aa11e8707 Let user take screenshots when reporting Android webcompat issues (#25584)
Let user take screenshots when reporting Android webcompat issues
(https://github.com/brave/brave-browser/issues/36486)
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
2024-09-20 13:02:58 +02:00
Anton Paymyshev 2a4e38763b Refactor signing code (#25386) 2024-09-18 15:57:15 +07:00
Claudio DeSouza 47d442aa2e Readding feed v2 to brave build
This code has been made `android` only in chromium upstream. This change
includes these headers to brave main line build, so it can be used by
brave news.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/2e9d2aeb39e1523215a156a26319e5c6a8316def

commit 2e9d2aeb39e1523215a156a26319e5c6a8316def
Author: Erik Chen <erikchen@chromium.org>
Date:   Wed Jul 31 20:36:53 2024 +0000

    Remove enable_feed_v2 gn arg.

    This gn arg is always true on android and always false on desktop. Its
    presence complicates gn files without adding value.

    Change-Id: I3072ca781d18b75979a361f0eeedcea532184bac
    Bug: 353628440
2024-09-10 14:42:31 -04:00
deeppandya affc520ce4 Add changes to support mojom interface for getting regions 2024-09-06 03:22:22 +05:30
deeppandya bb2e7792c4 Add UI for region server
Update existing changes
2024-09-06 03:22:13 +05:30
deeppandya a3d8f60b45 Remove changes for old paywall 2024-08-21 03:31:11 +05:30
deeppandya e80fa75b51 Add bg selector for vpn paywall
Add currency symbol

Update colors for paywall
2024-08-21 03:31:00 +05:30
deeppandya cb7fcc634d Initial changes for new vpn paywall 2024-08-21 03:30:53 +05:30