yashsingh1/xdaforums huggingface dataset:
[Android General] arovlad:
This has not been tested on any other version other than Android 12.1. If you have issues please report them here or open an issue on GitHub.

I just upgraded to LineageOS 19 from 18.1 and as usual I want to apply my own modifications on top of it but the NanoDroid script that I previously used doesn't seem to work on 19. I couldn't find an answer neither on r/LineageOS, r/fossdroid or even XDA so I wrote a way to install Bromite SystemWebView in a way that's a lot more elegant and doesn't need Magisk or root.

Method 1 (preferred):

Download the flashable package and install it in recovery mode either by placing it on the SD card or by sideloading, then reboot:

adb sideload BromiteSystemWebViewOverlay.zip

Download the latest Bromite SystemWebView release and install it as you would a regular app.

Navigate to Settings > Developer options > WebView implementation and select Bromite SystemWebView.

Method 2 (legacy):

Enable Rooted debugging by navigating to Settings > Developer options > Rooted debugging.

Connect your phone to your PC and type

adb root

Mount the vendor folder:

adb shell mount -o rw,remount /vendor

Copy the package downloaded from here to the overlay directory:

adb push treble-overlay-bromite-webview.apk /vendor/overlay

Mount the system as read-write:

adb shell mount -o rw,remount /

Copy the OTA survival script to the appropriate location:

adb push 99-bromite-webview.sh /system/addon.d

Make the script executable:

adb shell chmod 755 /system/addon.d/99-bromite-webview.sh

Reboot the device:

adb reboot

Download the latest Bromite SystemWebView release and install it as you would a regular app.

Navigate to Settings > Developer options > WebView implementation and select Bromite SystemWebView.

For a more in-depth explanation check the GitHub repository.
[Android General] ze7zez:
It is worth mentioning that after installing Bromite SystemWebView, developers will not provide any support when their banking applications are not functioning properly. Proven in practice.
[Android General] arovlad:
I never encountered a mobile banking app that uses WebView (at least for the main functionality), but your mention is most welcome.
[Android General] TheShanMan:
I've been debloating and degoogling and old HTC 10 running android 8. I've been wanting to get bromite installed because chrome is installed as the webview. I'm rooted, but unfortunately the webview manager magisk module fails to install.

I just found this thread and would love to give this approach a try.

I have the /system/addon.d directory. I have /vendor but not /vendor/overlay. I have /mnt but not /mnt/system. The scripts I have in /system/addon.d (fdroid and minmicrog) only reference the system app and priv-app directories so no help there, unless those locations are fallback options. Can your instructions be adjusted for android 8?

I also have a rooted microg LOS 19 moto g7 that's served as a reference with my debloating/degoogling effort. I looked at the contents of /vendor/overlay there and found that all but one of the apk's in there had "vendor" in the name, so I searched recursively from / on my HTC and didn't find any apk's with "vendor" in the name. Do you have any other ideas on how I might identify the equivalent directory on my HTC?
[Android General] arovlad:
Then try looking into /system/product/overlay.

Your path will be /mnt/system only if you mount the root from recovery mode.

The name doesn't matter, you can call the apks anything and they will still work.

Can you attach the output of the following command?

adb shell cmd overlay list
[Android General] TheShanMan:
I don't have a /system/product directory. Here are the contents of my /system directory:

addon.d
app
bin
build.prop
compatibility_matrix.xml
customize
etc
fake-libs
fake-libs64
fonts
framework
lib
lib64
lost+found
manifest.xml
media
priv-app
tts
usr
vendor
xbin

And since "vendor" is part of the discussion, here are the contents of my /system/vendor directory:

app
bin
compatibility_matrix.xml
etc
firmware
framework
lib
lib64
manifest.xml
media
radio
rfs
ueventd.rc

The output from that command is nothing.

I'm happy to try as much as you'd like, including experimentation (I've gotten very used to nandroid backups and restores while degoogling and debloating :ROFLMAO:). Thanks for the help!
[Android General] ze7zez:
Try it out:

Installing SystemWebView

Bromite is a Chromium fork with ad blocking and privacy enhancements; take back your browser! - bromite/bromite

github.com
[Android General] TheShanMan:
Yeah I've seen that. It's a bit complicated, which is why I was hoping to either do it via the magisk manager module or via these steps. Ultimately if all else fails, I may give that a try. Hoping @arovlad will have the magic touch here, but I totally understand if there's no desire to invest time figuring out how to do this on an old device and android version.
[Android General] arovlad:
I am all for supporting old hardware. The thing is I actually thought every device running Project Treble (TL;DR Android 8 and above) use overlays of some kind.

I have the following ideas:

Do steps 1-3 as explained above and then make a folder called overlay inside the vendor partition:

adb shell mkdir -m 755 /vendor/overlay

Do step 4 and then run the following command:

adb shell cmd overlay enable com.arovlad.bromite.webview.overlay

Does it output nothing or does it output cmd: Can't find service: overlay? If the service cannot be found then the device may not be Treble-enabled. Please check if it is.

If it is try running:

adb shell cmd overlay dump

and paste the output here.

Thank you for your patience and investing time in this.

Edit: added link for Treble support
[Android General] TheShanMan:
It outputted nothing, and the treble check app says it's not enabled. Does that mean I'm out of luck or is there anything else to try? Thanks!
[Android General] arovlad:
You mean the first command, the second, or both? Please use quotes accordingly so I can know what you're referring to.

You may be. You mentioned earlier that the Magisk module fails to install and that may be because your ROM is not Treble-enabled.

Have you tried creating the overlay folder manually and then enabling it via ADB as I wrote above?
[Android General] TheShanMan:
Sorry, when I said it outputted nothing, it was in response to your question about the command "adb shell cmd overlay list". I tried creating the overlay folder and enabling it. The enable command gave no output so I don't know if it worked or not. I tried rebooting and then checking the webview setting in dev options, but it's still not there.

I'm guessing you assumed I would also then do steps 6 and 7. Is that right? If so, I'll have to try creating a magisk module to put the script in that location and hope it runs. I can't touch the actual system partition because doing so causes VoLTE to stop working on my phone, so I'm doing all my debloating/degoogling through magisk modules. I don't mind giving this a try, but since my phone isn't treble enabled, I'd like to verify that you think I ought to before I spend the time creating a magisk module for it.

Appreciate the help!
[Android General] arovlad:
Run the following command:

adb shell dumpsys webviewupdate

and if it outputs org.bromite.webview is NOT installed then it works.

If your phone is old and doesn't receive official updates anymore, there's no need for addon.d, so no.

May I have the contents of the / (root) folder? Is there any partition called oem or odm? If so, what do they contain?
[Android General] TheShanMan:
I'm a little confused by you saying it works if it says "NOT installed", but no, it doesn't say anything about bromite. Here's the output:

Current WebView Update Service state
Fallback logic enabled: true
Current WebView package (name, version): (com.google.android.webview, 62.0.3202.84)
Minimum WebView version code: 320208452
Number of relros started: 2
Number of relros finished: 2
WebView package dirty: false
Any WebView package installed: true
Preferred WebView package (name, version): (com.google.android.webview, 62.0.3202.84)
WebView packages:
Valid package com.android.chrome (versionName: 62.0.3202.84, versionCode: 320208452, targetSdkVersion: 27) is NOT installed/enabled for all users
Valid package com.google.android.webview (versionName: 62.0.3202.84, versionCode: 320208400, targetSdkVersion: 27) is installed/enabled for all users

And the contents of / are:

acct
bt_firmware
bugreports
cache
carrier
charger
config
cota
crashdump.d
cwkeys
d
data
default.prop
dev
devlog
dsp
etc
fataldevlog
file_contexts.bin
firmware
fstab.qcom
init
init.environ.rc
init.hosd.cradio.rc
init.hosd.htc_pme.rc
init.hosd.usb.configfs.rc
init.hosd.usb.rc
init.hosd_fusion.usb.rc
init.htc.storage.exfat.rc
init.htc.storage.mocana.rc
init.rc
init.recovery.common.rc
init.recovery.htc_pme.rc
init.usb.configfs.rc
init.usb.rc
init.zygote32.rc
init.zygote64_32.rc
mnt
nonplat_file_contexts
nonplat_hwservice_contexts
nonplat_property_contexts
nonplat_seapp_contexts
nonplat_service_contexts
oem
persist
plat_file_contexts
plat_hwservice_contexts
plat_property_contexts
plat_seapp_contexts
plat_service_contexts
preload
proc
res
root
sbin
sdcard
sdcard2
sepolicy
storage
sys
system
tombstones
ueventd.htc_pme.rc
ueventd.rc
vendor
vndservice_contexts
vzw
vzwqualitylogger

/oem is empty.
[Android General] arovlad:
Yeah, it's a little confusing, but if the overlay was successfully installed it should output NOT installed.

Then it doesn't work.

Then try putting the overlay package inside, enable it (even if there is no output, just in case) and reboot the phone.

If it doesn't work, then you are out of luck as far as I know and your only option is to patch framework-res.apk manually.

Edit: clarification
[Android General] TheShanMan:
Not only did that not work, but the /oem directory got wiped out after booting up. It must get populated by something during boot. Thank you very much for putting in this much effort to figure out how to make this work in my case. I wish I could've reported victory, but maybe I'll get it figured out via framework-res. I've tried one approach with that unsuccessfully so far (which hung during boot). I'll try more things and hopefully get it figured out! Best of luck with your project and thanks for offering it to people!
[Android General] arovlad:
Don't sweat it! Thank you for your patience and sorry I couldn't find a proper solution.

If you actually DO find a way, it would be awesome if you could report back. Maybe it will help others in the same situation. Good luck!
[Android General] amanajosh:
Hi. Thank you for that step by step process of installing Bromite Webview.

I am a little confused about the 'vendor' part. What does that mean and why is it there? And as a consequence of that, I do not understand steps 6 & 7 beyond adb 'push' or 'shell'.

Any help is massively appreciated!
[Android General] bre75:
Hi, @arovlad thanks for this workaround. I'm running the exactly same LOS version than you on a OP6. But at step 5 i'm getting the following error : /dev/root is read-only any idea what can i do ? Thx for your help !
[Android General] arovlad:
Starting Android Oreo, the vendor partition is a separate partition containing proprietary manufacturer code not part of AOSP. This separation ensures that the Android system can be updated without recompiling the device-specific software. The vendor partition is typically overlayed over the system partition, making it easy to apply tweaks and modifications without actually touching the system. These modifications are typically named systemless.

Did you install Bromite WebView successfully?

Try the following command instead of step 5 and see if works for you:

adb remount
[Samsung Galaxy S10 Questions & Answers] 1411283270:
help me
[Samsung Galaxy S10 Questions & Answers] meric57:
[Tutoriel] Soft : Comment verrouiller ou déverrouiller le bootloader de votre appareil Android - Tutoriels Généraux Android - Phonandroid.com

Comment déverrouiller ou verrouiller/reverrouiller votre bootloader facilement ? Avertissement : Certaines opérations présentes dans ce tutoriel comportent des risques. Phonandroid ne peut être tenu responsable des éventuels problèmes rencontrés. Merci à Rajaks...

www.phonandroid.com
[Samsung Galaxy S10 Questions & Answers] 1411283270:
thanks
[Xiaomi Mi MIX Fold] elio321:
Good Day

Just received the ANDROID 12 / Google August security patch for my MI MIX FOLD....was expecting 12L...anyone else got it yet ?
[Xiaomi Mi MIX Fold] oherzog:
Got it, too.

MIUI 13.1.1.0, Android 12, unfortunately no 12L.
[Xiaomi Mi MIX Fold] Uclydde:
I think that it may be 12L. The "android version" in the settings would say 12 even if it is 12L.
[Xiaomi Mi MIX Fold] AndroPlus:
No, api level is 31 for 12 and 32 for 12L.

12L isn't available even for MIX Fold 2.
[Samsung Galaxy Tab S8] SAMS122:
HEADS-UP re MOKO cases for S8 ULTRA on Amazon - they don't work with the Spen !

There is a very strong magnet In that case that keeps the flap in place. This interferes with a 2" strip on the display where the magnet is located.

Drove me crazy until I took the case off !. It's a DESIGN FLAW. I contacted Moko but they did not address the issue and advised me to return the product to seller on Amazon. Anyone using painting/drawing apps will have problems. Otherwise it's a good looking strong case. I am thinking of cutting the magnet out with an

Exacto knife.
[Samsung Galaxy Tab S8] roirraW "edor" ehT:
Thanks for the warning!
[Xiaomi 12 Pro] aleksgiab:
Why this error ;;

has anyone done a full wipe...then i rebooted into recovery and tried to flash another version again it does the same thing
[Xiaomi 12 Pro] NOSS8:
If it is a update use OTA.

If not twrp/format data type yes reboot TWRP.
[Xiaomi 12 Pro] aleksgiab:
I have done a full delete but still nothing
[Xiaomi 12 Pro] NOSS8:
Try with an older Twrp or with a rom in Fastboot.zip then update via OTA.
[Android Stick & Console AMLogic based Computers] Salemalaga39:
Beelink lanza el nuevo producto Beelink GT1 Ultimate , cuenta con DDR4 3GB EMMC 32GB

buenas tengo este tv box mi idea es convertirlo en android tv que roms me aria falta que pasos debo de seguir
[Redmi Note 10 Pro] gazza35:
Hi, im running miui 13.0.13, battery life isnt as good as previous versions, before i roll back i wanted to check, im in the UK, my phone is redmi note 10 pro, SWEET. Im pretty sure it says rom version is Global. Does this have ARB? is there a way to roll back?, ive read some conflicting posts which threw me, some say the firmware has when global and its only EU versions that dont have ARB. Thanks.
[Redmi Note 10 Pro] BigChungus321:
Anti-roll back isn't currently active on any version of Redmi Note 10 Pro, all versions so far have the roll back index value of 3 so it's ok. Meaning you can roll back to previous versions if you're unhappy with the update. Though, to downgrade you would have to unlock he bootloader and downgrade using MiFlash or by directly flashing the Recovery ROM.
[Redmi Note 10 Pro] Elinx:
imho he meant rollback without bootloader unlock.
[Redmi Note 10 Pro] gazza35:
Thanks guys. Elinx yer i did mean that exactly, i really dont want to mess around unlocking bootloaders etc, i just assumed as you can flash a stock rom to upgrade without unlocking it, youd be able to flash any stock rom without needing to unlock, strange having to unlock it just to downgrade, there must be a way to flash a downgrade from the phone itself without having to unlock BL.
[Redmi Note 10 Pro] Elinx:
No, that isn't that strange, because Xiaomi thoughts are that older versions mostly are less secure.

With bootloader unlock you take that responsibility.
[Redmi Note 10 Pro] gazza35:
I get that, what i really mean is, theres lots of posts and videos online that suggest you dont need to unlock BL to rollback. this is why i ask these questions on here, to be sure and accurate and get the right info. im assuming once ive reflashed and older version, i can the relock the BL anyway.
[Redmi Note 10 Pro] HiQual:
MiFlash has an option to relock BL (checkbox at bottom of screen).
[Redmi Note 10 Pro] Elinx:
Imho ARB is about Android versions and it could be that rollback of Miui versions is possible if the Android version stays the same.

Personally with the knowledge about AntiRollBack I never will take a risk without unlocked bootloader.

If something goes wrong you are done.
[Redmi Note 10 Pro] BigChungus321:
There are two ways I know how to downgrade but the first one is the one which I haven't tested personally (but people on TG tested and it seems to work for them, do more research about it)

1. The rename trick, you can fool the Updater app to upgrading by downloading two roms (one is the upgrade rom and one is the downgrade rom). Just after selecting the upgrade package on the Updater, switch both file name of the two roms so the upgrade rom gets the downgrade ROM name and vice versa. Munchy from YouTube did a great tutorial on this trick. Try watching it for the complete guide. This method doesn't require bootloader unlocking too (and no data wipe afaik)

2. This downgrade method is a lot more straight forward, we unlock the bootloader, and use MiFlash to downgrade the ROM and select the flash_all_and_lock option to relock the bootloader. This method does use data wipe. I've tested this personally downgrading from 13.0.9.0 to 12.5.6.0 but I didn't relock the bootloader on mine.
[Redmi Note 10 Pro] Elinx:
I can imaging that fooling is possible, but can't imaginge this is only done by renaming a file, without changing something inside the rom. So before you even try this I would check and doublecheck all info about that method.

edit:

I see that a sort of the same method is done here for upgrading to a beta build

Personally I find this very tricky with locked bootloader, because Xiaomi can change something without notifying and you have a bricked phone.
[Redmi Note 10 Pro] gazza35:
Thanks again chaps. Yer ive seen the rename thing, 6 different posters have done it with success, in all honesty i dont think id try it, i was only bothered mainly about ARB on RN10Pro. I will unlock and wait however long the time period is then just downgrade, ive tried looking for tutorial vids but all seem posted by an Indian chap so ive no idea what hes saying, ive downloaded Miflash but when i start it up it keeps saying i need to install drivers, which ive already done, ill keep looking tho, there must be a good tut somewhere with all the drivers and tools needed.
[Redmi Note 10 Pro] Elinx:
Guide

Official unlock instructions
[Redmi Note 10 Pro] gazza35:
Do you know where i can download official stock roms please. Im on Note 10 pro -- Miui13, 13.0.13 Global. (SKFEUXM).
[Redmi Note 10 Pro] Elinx:
imho this is the most complete database

NB.

SKFEUXM is EEA version and SKFMIXM is Global version
[Redmi Note 10 Pro] gazza35:
Cheers thats what i thought, i was just thrown a bit because it says miui is miui global, and 13.0.13 matches the global roms, i dont see that version for EEA. Yet as you said SKFEUXM says its EU not global, Maybe Xiaomi need to work on that so its clearer.
[General Questions and Answers] wenyendev:
Dear all,

I searched through the forum and only found this old thread dating back to 2015 - https://xdaforums.com/t/guide-internal-memory-data-deleted-files-recovery.3093292/, that potentially enables a data recovery for a rooted device. Some of the links are outdated, though you could still search and find the relevant executive files somewhere online, it did not work somehow in my case.

Thus, I am looking for a guide for data recovery without any third-party softwares (eg. Dr Fone, Disk Drill, Ultdata, etc.).

For my case, it is a rooted Redmi S2 (Android 12, Windows 8).

Thanks in advance. I would greatly appreciate your advice.

Regards,

Wen
[General Questions and Answers] xXx yYy:
Because phone's Android is rooted, and assumed that ADB got enabled, too, you can fetch the data partitions by means of ADB running Android's dd command.

read more here:

'dd' command in Linux - GeeksforGeeks

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

www.geeksforgeeks.org
[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] jaswant78:
i flashed raphel twrp recovery through platform tools but the phone restarts in miui recovery 5.0.ls help
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] IceMajor:
Hi there. I'm very, very new to this stuff. I have a Samsung Galaxy A3 (2015) [SM-A300FU] and I'd like to upgrade the Android version up to 7.1. As it has been explained to me, I do not need any root for this, but the trouble is that all of the tutorials I see on the web do require rooting beforehand. I don't want to do so.

Could you point me in a right direction? (I've already got the custom ROM + GApps .ZIPs on the device).
[Xiaomi Mi 11 Lite 5G] rayman95:
First I'm not the developper of this rom and just share it here

credits go to @NeoArian

Be aware that it's a provisory thread and the dev will create his own when he decide ....

LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

​

@NeoArian made a flashable zip for having MIUI camera on LOS​

Here is the camera..I repeat Im not the creator of this file, you must thank @NeoArian for this and his perfect rom​

LineageOS 19.1 for Xiaomi M2101K9G (renoir)

📅 Build date: 2022-11-01

🛡️ Security patch: 2022-10-05

💬 Variant: GMS

🗒️ Changelog (https://www.lineageoslog.com/19.1/renoir)

Download

⬇️ lineage-19.1 (https://download.lineageos.org/devices/renoir/builds)

lineage-19.1 MicroG (https://download.lineage.microg.org/renoir/renoir/)

⛭ GitHub release / additional files

📅 Build date: 2022-09-27

🛡️

Spoiler content hidden.

Spoiler content hidden.

Credits and thanks to @NeoArian

Installation Instructions

:

Lineage Os Installation:

1- Install LOS Recovery: With the phone in FASTBOOT mode in the Platform-tool folder and the necessary files, open the CMD

2- Next we place in the window: fastboot flash boot_ab boot.img and then fastboot flash vendor_boot_ab vendor_boot.img to finish fastboot reboot recovery

3- The cell phone will restart in recovery mode with LOS recovery already installed (it is managed with the volume and power keys)

4- Perform Format Data (do not restart again)

5- Give Apply Update and then Apply Update from SDcard1 and look for the ROM

6- Then Reboot System Now (WILL INITIATE THE ROM)

7- Force restart in recovery to install Gapps (PICO Recommended)

8- Apply Update, Apply update from SDcard1 choose the gapps

9 Reboot System Now and enjoy XD

View attachment 5700225View attachment 5700227View attachment 5700229

ALTERNATIVE WAY OF FLASHING THE ROM see post 2
[Xiaomi Mi 11 Lite 5G] calputer:
Mind sharing the device, kernel and vendor trees used to build this ROM? I want to build and try it out myself. Thank you and @NeoArian for the hard work btw.
[Xiaomi Mi 11 Lite 5G] NeoArian:
The trees and kernel are available on GitHub.com/renoir-development

The vendor repository can be extracted with extract-files.sh from the renoir tree. To do so, download the lineage zip, then cd to device/xiaomi/renoir and run "./extract-files.sh /path/to/lineage.zip".
[Xiaomi Mi 11 Lite 5G] calputer:
I don't see a vendor_boot.img in the github release page but there's a dtbo.img file. What do we do with this file? Also I don't think TWRP for renoir is working with Android 12 am I right?
[Xiaomi Mi 11 Lite 5G] trufee734:
Sa

Same here. Where can i download boot_ab boot.img and vendor_boot_ab vendor_boot.img ?