Full screen Chrome or WebView with WebRTC (OS 4.4). - Android General

Hey Guys,
So i'm working on a ROM that is built for embedded use. I will be using the KitKat ROM. Device/ROM info can be found here w w w . technexion .com/support/download-center/edm/edm1-cf-imx6 .
What I need is to be able to autostart an app, either Chrome or a WebView app to display fullscreen content. The page I am displaying requires support for WebRTC and CSS3 Transforms. I would have gone straight for a WebView but support for WebRTC isn't readily available in KitKat.
I have two possible avenues I can go down.
- Try and figure out a way to get a WebRTC compatible WebView running in KitKat.
- Try and figure out how to launch Chrome in fullscreen mode without user interaction. The Android Status bar isn't that big a deal as I can hack remove when tweaking the ROM. What I need is to have Chrome hide the address bar on startup. Off hand, is any body familiar with the state of the "fullscreen" APIs in Chrome and what version?
Any ideas are greatly appreciated. Thanks.
I will post back here with anything that I come up with if people are interested.
Conor

Related

Q - Browser - opening links on Marshmallow

Hello
I updated yesterday my GS6 on Marshmallow and i have a question for all those who are using MM on their devices( no matter if Samsung or not), i noticed that when i open a link in an app(no matter what app) the prompt doesn't have 'JUST ONCE' or 'ALWAYS'(like on Lollipop), it makes as the default browser the first one i choose. On Lollipop i chose 'JUST ONCE' all the time and it was useful because when i wanted to open a link for ex. in Facebook, i opened with Flynx, links in Feedly with Chrome etc., now, if i open a link with Flynx(or Chrome,Firefox etc.) it opens all future links with the same app, without prompting me like in Lollipop. If i want to open the same link with another browser i have to clear the defaults of the first app i have chosen.
I've set the browser to none in the defaults apps,with the hope that it will prompt me like on LP, but it propmts me like in the second screenshot i attached, after selecting a browser, it's like having a single browser LOL, is this Google's implementation or Samsung's? i've found an article on android police that describes exactly the issue i have
http://www.androidpolice.com/2015/1...ow-and-its-why-your-defaults-are-misbehaving/
but it was for MM Beta and i thought this issue was resolved. Is this behaviour present on any of your devices that runs MM?
Here are the differences between Lollipop(first) and MM(second) the third screenshot is with all browsers defaults cleared, but if i open a link with any browser, it auto-defaults as the default browser( in this case,Fynx, 4-th screenshot)

[APP][5.0+] Peregrine Browser

Code:
*** Disclaimer ***
I am not responsible for anything you do (like hacking, visiting illegal websites, etc.) with this browser.
*** end ***
What is Peregrine Browser?
Peregrine Browser is one of the most lightweight webbrowsers available.
Download sizes are:
Smaller than 200kb on Android 4.4 KitKat.
Smaller than 100kb on Android 5.0 Lollipop and higher.
I focus the development of this browser on it's size, speed, security and it's night mode.
Click to expand...
Click to collapse
Features
• Night mode, browse the web better at night.
• Ad blocking, to get rid of those annoying ads.
• Safe Browsing and Secure Connect, browse the web more secure.
• Page Acceleration, to view faster versions of websites.
• Private tabs, for if you don't want someone to view some sites in your history.
• Desktop mode, for if you prefer the PC version of websites.
• Choose between 7 of the most used search engines.
• Tabs and urlbar at the bottom of your screen, useful if you want to reach it on big phones.
• Developer tools, useful for if your website isn't working on phones and you want to know why.
• Permission handling, for if you want to allow website A to view your location, but website B not.
Click to expand...
Click to collapse
Download
You can download Peregrine Browser on XDA-Labs: https://labs.xda-developers.com/store/app/com.marc.browse
You can also download Peregrine Browser on the Google Play Store: https://play.google.com/store/apps/details?id=com.marc.browse
Click to expand...
Click to collapse
FAQ
Q: On which Android versions does this work?
A: Android 4.4 KitKat and Android 5 Lollipop and higher. You'll also need WebView (Android 5 & 6) or Google Chrome (Android 7+) to run on the latest version (older versions probably work, but are not supported).
Q: Peregrine Browser says it runs on Chrome 42. When will you upgrade to Chrome x?
A: Peregrine Browser uses the WebView component from the system.
It is recomended that you use the WebView from Google (Android 5+), because it will be updated to the latest version.
On Android 7+, Google Chrome could also be used as WebView component.
Therefore, Google needs to update that and not me.
Q: A website I want to visit won't open.
A: We block some websites because of their content (for example, sites that could contain malware). Try disabling AdBlock or Safe Browsing.
Click to expand...
Click to collapse
Please include logs and basic information about your phone, Android version, Google/AOSP WebView/Chrome + version in your bug reports.
XDA:DevDB Information
Peregrine Browser, App for all devices (see above for details)
Contributors
MarcTheDragon
Version Information
Status: Stable
Current Stable Version: 2.0.0-1
Stable Release Date: 2017-04-04
Current Beta Version: 2.0.0-1
Beta Release Date: 2017-04-04
Created 2016-07-05
Last Updated 2017-04-22
Changelogs
Version 2.0.4 & 2.0.5 (beta)
- Fixed bug where search results from Google weren't opening (an empty blank page was displayed instead)
- Fixed bug where pages showed a -6 or 404 error when accessed with https:// (pages now get redirected to http:// when such an error occurs).
- Changed header of quick access, settings, etc. from green to dark grey in night mode.
- When you open a page, Peregrine Browser checks if the server of a website supports https. This now happens in 100ms (in 2.0.5) instead of 200ms (2.0.4) or 500 to 1000ms.
- Changed the way Peregrine Browser checks if an AMP page is available for the website you're visiting, decreasing the amount of data used.
- Updated settings with hamburger menu.
- Possibly other stuff I forgot to mention.
Click to expand...
Click to collapse
Reserved, just in case.
Also, please don't quote the whole post above!
Awesome! I'll be using this browser and reporting back with reviews. Will watch this closely...
1st bug: whenever a page isn't fully loaded and you go to recent apps menu, fc message will be displayed. If you need, I can upload logs, but tomorrow.
Sent from my GT-I9305 using XDA Labs
limjh16 said:
Awesome! I'll be using this browser and reporting back with reviews. Will watch this closely...
1st bug: whenever a page isn't fully loaded and you go to recent apps menu, fc message will be displayed. If you need, I can upload logs, but tomorrow.
Sent from my GT-I9305 using XDA Labs
Click to expand...
Click to collapse
Thank you for the bug report.
It would be nice if you can upload the logs tomorrow (or at any time).
I tried to fix this bug, but since this bug hasn't appeared for me I don't know if my fix worked, however it will be included in the next update.
Here, log is attached.
Sent from my GT-I9305 using XDA Labs
limjh16 said:
Here, log is attached.
Sent from my GT-I9305 using XDA Labs
Click to expand...
Click to collapse
Thank you for the log.
I rolled out a new update (version 0.9.0_r14) to the alpha and beta channels in XDA Labs and the Version Control app in the browser.
This should fix the FC.
MarcTheDragon said:
Thank you for the log.
I rolled out a new update (version 0.9.0_r14) to the alpha and beta channels in XDA Labs and the Version Control app in the browser.
This should fix the FC.
Click to expand...
Click to collapse
Alright, will test tomorrow. (And edit this post if works)
Edit: version control doesn't work. Will try updating through xda labs.
Edit2: also doesn't work it identify my browser version as same with version on xda labs. Ill uninstall and reinstall. But I think problem here may be you only change revision tags, so xda labs doesn't recognize.
Okay, bug fixed. I have not found any other bugs thus far, great job! Maybe chipset specific versions? Just a suggestion...
Sent from my GT-I9305 using XDA Labs
For some reason Labs won't update Browse, even after I changed the revision tags.
I will display a pop-up on the homescreen when there is an update available, with an instruction how to install it (in future versions it will install automatically).
I've tested chipset specific versions, however the size of the app is the same as the universal one (for all architectures) and the performance as well.
MarcTheDragon said:
For some reason Labs won't update Browse, even after I changed the revision tags.
I will display a pop-up on the homescreen when there is an update available, with an instruction how to install it (in future versions it will install automatically).
I've tested chipset specific versions, however the size of the app is the same as the universal one (for all architectures) and the performance as well.
Click to expand...
Click to collapse
alright, thanks. About chipset specific versions, not a must, just a plus.
Browse 0.9.1 / 901011(1) Alpha update changelog
- New menu
- Speed improvements
- Bugfixes
- Design update
- Security updates
- Autoplay default off
- History
- Make Version Info a not pre-installed app
- New home icon which matches with Android 7.0 Nougat
- App now around 100KB (from the 900KB)
- AdBlock now default on
- You can change your homepage
With this update the tabbar is moved to the bottom, so you can reach it better on big devices and it is done too for a better design.
Edit:
Update now in beta channel too 0.9.1_r11 / 901011(2)
Browse 0.9.2 update changelog
- Desktop view is now per tab (enabling desktop mode won't affect other tabs)
- UI improvements
- Fixed bug when links don't open when Browse already is opened.
- Security patch (bsv-1608-03), fixed third-party access to settings and extension APIs when switching tabs
- Bugfix for settings and extensions API not working when switching tabs
- Night mode improvements
- Favourites
- Website header colour now default theme colour
- Improvements in theme colour
- Open websites in another app
- Bugfixes
- Improved auto-HTTPS
- Fix when keyboard doesn't hide
- Fix chrashes and freezes
- Fix for file uploads
- Fix for opening links
- You can now open gifs
- Support for serveral new files
- Fixed opening files from the Documents app.
Browse 0.9.3 update changelog
- Improvements in design, speed, stability and security.
- Extensions are now integrated in the settings
- Removed some apps that didn't support https from the Store.
- Added some new apps to the store.
- Removed useless code (around 15 kB).
- Changed package name, which will cause removal of all your data. If you want to keep your data, change to the stable version.
- Http websites are now marked as unsafe.
- When an error occurs, the app wil restart with an option to send error data.
Browse is now available to download in the Google Play Store: https://play.google.com/store/apps/details?id=com.marc.browse
Awsome,,
Like metro small app
Can you add option remove analog clock?
VALRCIEL said:
Awsome,,
Like metro small app
Can you add option remove analog clock?
Click to expand...
Click to collapse
Thanks for your feedback.
An option to remove the analog clock will be added in the next update.
Peregrine Browser: version 2
As you might have noticed, Browse changed it's name to Peregrine Browser. I didn't like Browse as name. Several people told me that the browser is fast, so I changed the name to Peregrine Browser, from the Peregrine Falcon. The Peregrine Falcon is the fastest animal on the planet.
The name is not the only thing that has changed: the icon and look are also updated.
Version 2 also comes with some new features and bug fixes:
- New permission handling. When websites want access to your location, camera or microphone, you can chose to allow or deny access (Like the permission handling on Android 6 Marshmallow and higher).
- Added App Shortcuts.
- Fixed Arabic language not showing correctly in bookmarks and history.
- Several other improvements.
I'll work on future versions on these features:
- Adding custom websites to Quick access.
- More translations.
And more.
Notice:
In this build are camera and microphone permissions added. This is so websites could use your camera or microphone, the browser itself does not collect any data with those permissions. On Marshmallow and later, those permissions are only requested when you open a website which wants access to those permissions and you click "allow".
Hey, for a couple of months I've using your little browser as my main.
I have encountered some problems recently tho:
When opening a link from any other app, the browser adds out of nowhere a "http//" (without the : ) to the URL, failing to parse it.
And, since the renaming to Peregrine and adding the night mode, I never have it working properly. I setup it to work between 00.00 and 7.00 am, but then I apply the changes and the main page turns in the night mode in the midst of the day. Am I missing something?
Thank you a lot. By far is the most light and fast browser I've ever tried.
IganSchacht said:
Hey, for a couple of months I've using your little browser as my main.
I have encountered some problems recently tho:
When opening a link from any other app, the browser adds out of nowhere a "http//" (without the : ) to the URL, failing to parse it.
And, since the renaming to Peregrine and adding the night mode, I never have it working properly. I setup it to work between 00.00 and 7.00 am, but then I apply the changes and the main page turns in the night mode in the midst of the day. Am I missing something?
Thank you a lot. By far is the most light and fast browser I've ever tried.
Click to expand...
Click to collapse
The bug with http// has been fixed internally. If you remove the http://http// part it should load. The browser tries to load a https:// page instead of a http:// one, but apparently there was a bug when loading links from other apps.
I've had issues with night mode aswell, however I haven't found the cause of that problem yet.
I'm also trying to prevent further issues with Google after they blocked an update to the Play Store after violating YouTube's Terms of Service. I don't know what actually was wrong, another update a few days later was allowed.

[Nougat Only] Force desktop mode in chrome browser

I have been using the "chrome-command-line" script to have chrome display desktop mode for all sites. Since moving to a device with Nougat, this no longer appears to work.
After some research, it appears Nougat is doing something different which blocks this functionality. Has anyone had success forcing desktop mode in Nougat?
Thanks very much in advance!
Download "User Agent Switcher" app from the playstore. It requires root access though.
Unfortunately, User Agent Switcher has also stopped working with Nougat.
I'm not sure that this can be done any longer, I ended up recompiling Chromium with a custom desktop user agent.
ChromePublic.apk is here If you're not keen on running code someone else compiled, you can do the same yourself

Custom WebView build

Hoping someone with development experience can give me help here:
Would it be difficult to make a modified build of AOSP WebView client so that when an app tries to open an internal WebView it forces the link to be opened in an external browser or even not open them at all?
This post on Coderwall reflects it's possible, but it's way above my head.
This is a parental control concern for me. Many apps that aren't web browsers actually give you access to a web browser if you're smart enough. Typical method: go to an apps privacy policy page, click a few links till you get to google.com or twitter.com. From there you can get to anything.
Alternate solution might be to block internet access of the WebView Client system application, but allow the rest individual apps to still access internet. E.g., give an app internet but stop it from accessing internet thru an embedded webview browser.
Any help is much appreciated!

Firefox wont work without chrome?

So i just got my 10+ 2 days ago and immediately rooted it with magisk. For the past 2 days i have been working on customizing, debloating, and degooglefying it. So far i have removed almost all google apps as well as some samsung bloatware. I have also removed bixby and remapped the bixby button for other tasks...
However i have run into a peculiar issue; if i remove chrome none of my firefox browsers will work, with the exception of orfox... this includes firefox focus, firefox klar and icecat. Those browsers will open no problem but if i type anything into the URL bar and hit go/enter the browsers immediately close/crash. If i reinstall chrome, firefox browsers work without issues. If i force stop and disable chrome, firefox browsers work with no issues. I just cant uninstall chrome.
Im using debloat in magisk modules and im sure the browsers share some dependencies, however i have tried reinstalling firefox browsers after removing chrome and same problem.
Anyone else have this issue or does everyone else use chrome?
I am unrooted with chrome disabled, Firefox beta runs fine. Have you removed android webview too? Try the fenix preview it uses the new rendering engine?
Unrelated question, I used to use note 1 back in the day it had no knox so rooting was simple. Went the nexus/pixel way after that, and rooting on it was basically just pressing a button. Just moved from a pixel 1 to this s10+.
My usage of the root on the pixel had dropped to titanium backup and kernel for boosting it's low performance, could you please explain your use for root on s10? Also, if you want to use your warranty will you be able to?
Yea i currently have chrome disabled and firefox works fine, i just cant uninstall chrome without issues.
To answer your unrelated question, i am a long time linux user and am used to being free to change anything I want with nothing off limits. For the s10 i want to be able to tweak all the settings to my desires and only run the software that i use. I dont want bloatware that i dont use either running in the background or just taking up space.
And as far as i know, the method of root for the s10 line using magisk can be unrooted and bootloader can be relocked but that requires wiping everything and flashing stock firmware which should allow you to use your warranty. I dont actually have a warranty as i bought the international unlocked version and samsung factory warranty doesnt cover accidental physical damage which is the only thing i would ever use a warranty for.
thearmeddiyer said:
So i just got my 10+ 2 days ago and immediately rooted it with magisk. For the past 2 days i have been working on customizing, debloating, and degooglefying it. So far i have removed almost all google apps as well as some samsung bloatware. I have also removed bixby and remapped the bixby button for other tasks...
However i have run into a peculiar issue; if i remove chrome none of my firefox browsers will work, with the exception of orfox... this includes firefox focus, firefox klar and icecat. Those browsers will open no problem but if i type anything into the URL bar and hit go/enter the browsers immediately close/crash. If i reinstall chrome, firefox browsers work without issues. If i force stop and disable chrome, firefox browsers work with no issues. I just cant uninstall chrome.
Im using debloat in magisk modules and im sure the browsers share some dependencies, however i have tried reinstalling firefox browsers after removing chrome and same problem.
Anyone else have this issue or does everyone else use chrome?
Click to expand...
Click to collapse
It's because there is no alternative webview provider, or Android System Webview is broken. Check developer settings. I have to keep chrome installed for its webview provider and for some reason the built in Android System Webview is broken, even if I update it.
Chocolatetrain said:
It's because there is no alternative webview provider, or Android System Webview is broken. Check developer settings. I have to keep chrome installed for its webview provider and for some reason the built in Android System Webview is broken, even if I update it.
Click to expand...
Click to collapse
Thank you!!!
This solved my problem
So after I disabled chrome I verified webview provider switched to the android version and that firefox was working properly. I then uninstalled chrome, rebooted and same problem. After a little more research i found out that as long as the chrome webview providor was present and used, the android version will not update by itself. I manually went to the play store and updated it which is all it needed. Chrome is uninstalled completely, android webview is in use, and firefox is working properly.
I will report back if i discover any adverse side effects of running the android version rather than chrome.
thearmeddiyer said:
Thank you!!!
This solved my problem
So after I disabled chrome I verified webview provider switched to the android version and that firefox was working properly. I then uninstalled chrome, rebooted and same problem. After a little more research i found out that as long as the chrome webview providor was present and used, the android version will not update by itself. I manually went to the play store and updated it which is all it needed. Chrome is uninstalled completely, android webview is in use, and firefox is working properly.
I will report back if i discover any adverse side effects of running the android version rather than chrome.
Click to expand...
Click to collapse
Good stuff man, you're welcome haha. For some reason mine's permanently broken, although I don't mind leaving chrome installed.

Categories

Resources