Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

Learn More

Fenix - Firefox Android - Modifying App's Default Search Suggestions

  • 3 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 5 ნახვა
  • ბოლოს გამოეხმაურა Paul

I'm modifying the Firefox Android App (Fenix). I'm trying to change the search suggestions feature from Google to another search engine in the source code (not through the app once it is installed).

To do this, there are 2 files need to be modified.

The first file I change is: fenix/app/build/intermediates/merged_assets/debug/out/search/list.json

The second file that I add to the searchplugins folder is as follows, after I've deleted all the other ones: app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml

After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited". The search folder and searchplugins folder go back to the way they were before I made the changes.

How are these files generated in the search and serachplugins folder? What should I do to modify them so that I can change the default search engine in the source code (not through the "add a search engine" option within the app)? When I make this same modification in the Firefox iOS app, I don't have this problem.

I'm modifying the Firefox Android App (Fenix). I'm trying to change the search suggestions feature from Google to another search engine in the source code (not through the app once it is installed). To do this, there are 2 files need to be modified. The first file I change is: fenix/app/build/intermediates/merged_assets/debug/out/search/list.json The second file that I add to the searchplugins folder is as follows, after I've deleted all the other ones: app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited". The search folder and searchplugins folder go back to the way they were before I made the changes. How are these files generated in the search and serachplugins folder? What should I do to modify them so that I can change the default search engine in the source code (not through the "add a search engine" option within the app)? When I make this same modification in the Firefox iOS app, I don't have this problem.
მიმაგრებული ეკრანის სურათები

ყველა პასუხი (3)

Sorry, this probably is beyond the scope of the support forum.

On desktop, search engines are installed as XPI files. The manifest defines the search URL and suggestion URL. Does fenix have a similar setup?

Thanks jscher2000 I'll look into that.

Are there other forums you'd recommend I look into this issue? I tried StackOverflow and Github

Hi

You may want to ask in the chat channel for the Firefox for Android developers at https://chat.mozilla.org/#/room/#fenix:mozilla.org