[10] GlassROM

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
Glassrom for op7pro

Download here: https://github.com/GlassROM/glassrom-landing/releases/tag/20201212-guacamole
Sources: https://github.com/GlassROM-devices
Kernel: https://github.com/GlassROM-devices/android_kernel_oneplus_sm8150
Branch: lineage-17.1
Pregenerated config at last_generated_release_config

This ROM enforces AVB

Instructions:

Formatting storage:

Do not use twrp to format storage. This will most likely result in a non booting ROM

Use fastboot:
Code:
fastboot -w
fastboot format:ext4 metadata
fastboot format:f2fs userdata
Do not try to be smart and format metadata as f2fs. It won't boot and you get to keep your broken system.
There are many ways to flash glassrom. The most common ones are here

1) Using the official recovery that bundles with glassrom

This is by far the safest method to install glassrom as you only need to verify a very small file which verifies the rest of the install process

Download the signed-ota_update.zip and the fastboot zip that says bootable-only

Flash the fastboot zip:
Code:
fastboot update fastboot-image-bootable-only.zip
fastboot reboot recovery
In recovery go to install update > install from adb and then sideload the zip
Code:
adb sideload signed-ota_update.zip
Reboot. On the first boot from oxygenos glassrom will ask you to format
2) Using the full fastboot zip:
This is by far the simplest. Make sure both slots are on the latest firmware and just flash the zip
Code:
fastboot update fastboot-image-full.zip
See the section on wiping data
Oneplus devices don't allow flashing firmware through fastboot. It is advised to sideload the full OTA after flashing the fastboot image to upgrade firmware

3) flashing the OTA in twrp:
Caution: glassrom does not ensure any compatibility with twrp. You also cannot flash incremental updates using twrp
4) using the OTA hack (advanced users only):
Advanced users can use the system updater to directly apply an update while the system is running. See https://forum.xda-developers.com/showpost.php?p=82596033&postcount=93 for details
5) using the modified system updater (telegram only)
If you are a member of the glassrom telegram group you can use the modified updater shared there to easily download and install updates. You must join the group and ask for the modified system updater. The updater is auto removed after every successful system update so you must reinstall it every update
6) upgrading from an older version through an existing glassrom installation
Same as 1 but skip the fastboot instructions and directly sideload the full/incremental OTA
You never need to clean flash glassrom unless explicitly told to do so

Installing twrp to the ramdisk on glassrom will brick your phone. Do not attempt to do so

Donate to glassrom:
bc1q2g49cs0fmvrac4kplezk4dxydgw5ksrn0etd3c
12ihMbyri7JKG8bmonrqKpPGStrdX2tHWe

These are bitcoin addresses. Addresses starting with bc1 have less transaction fees
Monero address:
Code:
42vv51M17nq992dcz2ht4F3gUPhf6Nw91jiwtrddYjgRPrns18p48ex8TKyTcpVzJLTGXJ9fAXvK5dhKEZvF4zuABpG8jYe
XDA:DevDB Information
GlassROM, ROM for the OnePlus 7 Pro

Contributors
anupritaisno1
Source Code: https://github.com/GlassROM

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Oxygenos 10.
Based On: LineageOS

Version Information
Status:
Stable

Created 2019-10-20
Last Updated 2020-08-09
 
Last edited:

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
Booted up with Lineage boot animation, everything during set up was lineage like? Is Glass ROM going to differentiate itself or is it Lineage os unofficial?
I focus way more on speed and security. Probably not

I'm currently working on upstreaming the kernel. Didn't find a properly upstreamed one anywhere
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
Is this rom aosp or is it just stock based? if you need gapps for aosp?
Yeah I should definitely update the thread to mention that

You don't really *need* gapps. They aren't installed by default and you have the choice to not flash them at all. I tried it for a while with them and it worked fine but I don't really use them

I don't really have any bias towards either aosp or caf. Both are equally important to have a secure system so I usually end up mixing them in various places
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
tedious; won't blow over well.
You see this has been discussed in the op2 and op3 threads too and here's a short version:

AVB cannot be enforced by the user if it is disabled by the ROM builder during the build. Disabling it is easy

While you might not like verified boot there are obviously some who'd like it and shipping builds that have it disabled would mean a small part of the user base would be neglected. Obviously that's not right and the only solution is to make verified boot opt-out
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
Booted up with Lineage boot animation, everything during set up was lineage like? Is Glass ROM going to differentiate itself or is it Lineage os unofficial?
A few things you might notice yourself:
It's a user build. It's actually faster than official lineage
Signature spoofing is present
Noticed the first boot taking abnormally long? That's due to my optimizations. They cause the first boot to take a long time but you get significantly better battery and performance. Not to mention they solve a problem: since the ART cache of the system is put inside /system and apps are forcefully computed at boot you will almost never need to wipe caches. Since the system is forced to use precompiled ART files the system is reading from read-only memory making modification of these files by malware harder. It also saves approximately 14mb of memory per app which isn't much but at least you aren't sacrificing anything

And that's it really. I fixed a few bugs here and there that I've seen mostly on all devices and I was done. You're free to fork glassrom and add all the features you want. The purpose of this project is to do things right rather than do many things and finish none
 

DR4LUC0N

Senior Member
Jun 1, 2014
108
22
0
I have no records of anyone shooting their phones after installing glassrom. In fact this device would not even make something like that plausible merely due to it's price
I'm pretty sure he means can you post screen shots from your phone, not someone taking a gun out and F'ing their phone up.

Honestly I wouldn't download this, there's next to nothing telling people about what your rom does compared to others. It shows minimal effort and looks like you're trying to get the "developer" status without doing much when it's not deserved. Look at LoS, Omni, RR pages and look at all the information they give, you have nothing.
 
Last edited:

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
I'm pretty sure he means can you post screen shots from your phone, not someone taking a gun out and F'ing their phone up.

Honestly I wouldn't download this, there's next to nothing telling people about what your rom does compared to others. It shows minimal effort and looks like you're trying to get the "developer" status without doing much when it's not deserved. Look at LoS, Omni, RR pages and look at all the information they give, you have nothing.
Nobody asked you to download it. Have a good day

That's my standard response to "screenshots". I do not deviate much from official lineage and I never will. My focus is stability, security and technical simplicity, everything else comes after that
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
BTW guys don't be surprised if twrp doesn't boot on future builds and don't bother me if it doesn't

I'll be porting Samsung's SELINUX_ALWAYS_ENFORCE and linux-hardened disabled selinux development which will kill twrp boot

And no I don't care, twrp is not really needed when lineage recovery is well supported and using twrp for anything is a serious mistake

Also don't expect enhanced twrp builds either. I did those on my older devices because twrp was broken and it was the only way to get things on to the device but with A/B that's not a concern
 
Last edited:
  • Like
Reactions: z4ck1n and zams85

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,900
153
With that attitude, the only person using this rom will be you. Anyway, good luck, I'm out.
Cool story. Should be pretty interesting coming into a ROM thread asking the developer to post screenshots

Clearly you can slap on any theme, wallpaper, mod you want and make the ROM however you want it to be. Not to mention the end user will never use my setup so the screenshot is really just a lie as the user will just never have a phone that looks like that. And seriously why would they want to? We're all different people, our phones might be the same but they're used in different places and for different purposes

So no, I'm not going to be spreading lies in this thread by posting screenshots of an experience only I can create for myself useless for anyone other than me

And I want no arguments on this beyond this point. Users who've flashed the ROM might give you screenshots but I won't be giving any

Have a good day
 
Last edited: