yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Original Android Development] anupritaisno1:
GDPR

Glassrom doesn't collect, store, transmit data to third parties or do anything with your data. Not even analytics

The encryption key used to encrypt your data partition is always kept on the device and never written in an unencrypted form to the storage chip or sent off the device. Recovery isn't possible

Glassrom is based on lineageos. Lineageos may collect certain data about glassrom because they use this data to see how many people use unofficial lineageos builds as compared to the official builds. You can opt-out of this data collection in settings and only information about the ROM is ever collected by lineageos. No user data is collected

Glassrom is privately funded by RX Group LLC, an organisation with offices in UK and the EU. This is how the ROM builds are kept alive without needing donations or selling your data to third parties.

Now about treble

I tried building with full treble yesterday and we have so many selinux policy issues it's just fantastic. It will probably take a very long time to get proper treble working where you could just flash a GSI to get a new android version booting or get a new android version ported overnight. It needs to go through another level of refining before that would even work
[OnePlus 2 Original Android Development] chxei:
does it worth that effort? whats the main point?
[OnePlus 2 Original Android Development] anupritaisno1:
My hopes are low
[OnePlus 2 Original Android Development] 19Nightwing91:
[Need Help] Unable to mount data TWRP

Hi anupristaisno1 (or to whom it may concerns),

At the moment, my TWRP (v3.2.1.0) is unable to mount data even after using the Format Data option. I was wondering, do you know how to solve this issue?

Searching the internet, I was told that Official TWRP is unable to decrypt Oreo (feel free to correct me). Hence why Format Data was still unable to mount data. Which means, I can't flash any ROMs.

Build: 15.1-20180405-UNOFFICIAL-anupritaisno1-oneplus2

Though I am fully aware of flashing of my own risk and that this ROM provides encryption.

I was wondering if anyone could help me. Desperately asking for help.
[OnePlus 2 Original Android Development] anupritaisno1:
Just give me a little time I'll build a twrp which can mount encrypted /data
[OnePlus 2 Original Android Development] 19Nightwing91:
Thank you so much :victory:. Though I have another issue. No matter what cable I tried (even with a friend's Samsung Galaxy S8 Note's Type-C cable), I still can't seem to connect to my phone via USB.

The error (from Windows Device Manager):

Unknown USB Device (Device Descriptor Request Failed)

Posting this because I fear of not being able to update the recovery through USB (adb) or via TWRP (can't mount data).

And again, fully aware of flashing at my own risk. Just desperately asking for help. :crying:
[OnePlus 2 Original Android Development] anupritaisno1:
Have you tried a different PC btw?
[OnePlus 2 Original Android Development] 19Nightwing91:
Yup, I did. (A desktop and a laptop) Same issue in Device Manager.

Though could just be my phone's port. But at the moment it is charging fine just no mass storage option.
[OnePlus 2 Original Android Development] anupritaisno1:
Lineageos has added a "trust interface" feature

It's total nonsense. If you actually take any of the weird stuff it says seriously then you really don't know what security and trust is

Please don't get this false sense of security it's even worse than having no security at all
[OnePlus 2 Original Android Development] neelsolanki:
claps please ?
[OnePlus 2 Original Android Development] anupritaisno1:
Guys I need someone to message me on discord for vendor partition preparation

I'm about to repurpose a partition to be used as vendor

If we are lucky we could flash GSIs

To clarify: we aren't exactly repartitioning the device but moving the contents of an existing partition to another already existing partition
[OnePlus 2 Original Android Development] anupritaisno1:
As of now we have 3 options

Move /cache to reserve partition

Make /cache a temporary filesystem in ram

Move /bt-firmware to reserve partition

The bt-firmware approach is the best one if our bootloader permits it

Reasons: the bt-firmware partition is 1.1 GB in size but only holds 500 kb of data

This partition doesn't need to be modified often like /cache

Twrp won't break if the bt-firmware partition is relocated but will definitely break if we relocate the /cache partition

The bt-firmware partition's 500kb data can be moved to the reserve1 partition by flashing the image in fastboot and then modifying the fstab and selinux policies to label and mount this new location

No actual code changes will be required to relocate the bt-firmware partition
[OnePlus 2 Original Android Development] anupritaisno1:
https://www-xda--developers-com.cdn...trust-centralized-interface-security-privacy/

Contradiction: Google introduces treble so that proprietary blobs don't have to be updated by the silicon manufacturer

I see what you did there XDA, I see what you did there
[OnePlus 2 Original Android Development] anupritaisno1:
New release build coming

Hardware accelerated encryption

Full spectre v1 mitigation (CPU not vulnerable to v2 and v3)

Full meltdown mitigations

July 5 security patch merged in ROM and kernel

90% of HALs binderised

Several improvements to the RIL

Improved audio quality

Misc changes:

Glassrom will now verify your system after updating it. It will throw a failure and warn you if the system partition doesn't match an expected value. This will prevent accidental flashes if your download was corrupt

For low bandwidth users the compression rate of the OTA has been increased so that they can actually download the file. Compression doesn't affect the time required for flashing. (Btw compression of this level takes 11 hours on my server! Thanks to the way Google wrote the compression algorithm only 1-2 minutes are required for the flash. We're using brotli level 11 for compressing the system image and zip level 9 for compressing the overall OTA package)

Since oneplus2 doesn't currently support vboot 2.0 (implementation is possible and I'm working on it), the current verification mechanism for system is sha1 which isn't a very secure algorithm. It will prevent 99% of bad flashes but it's not perfect and we should move to vboot 2.0 with sha512 which has a very low error rate soon. I'm other words the system partition check isn't entirely foolproof

Glassrom will boot with software accelerated encryption and NOT convert to hardware accelerated encryption unless you format data. This is done intentionally to prevent data loss

That concludes the changelog. The release build should be out in the next 24 hours

Oh yeah and after this I'm going to look into twrp. Since I'm the twrp maintainer I gotta fix a lot of bugs
[OnePlus 2 Original Android Development] anupritaisno1:
What happened to the incremental OTAs?

They can't be flashed with the current twrp. I'll need to fix twrp so that it can be possible
[OnePlus 2 Original Android Development] anupritaisno1:
Also no I won't be using transfer.sh anymore. I'm hosting on my server and it has an actual dedicated 10 gigabit port with 1ms latency in most of Europe. Also since I'm hosting it expect the download server to be very secure
[OnePlus 2 Original Android Development] anupritaisno1:
New build here https://glassrom.botstack.host/glassrom-release.zip
[OnePlus 2 Original Android Development] Woodzrul:
Downloading now. Appreciate the hard work. :)
[OnePlus 2 Original Android Development] Woodzrul:
If I may please ask, but what is the best way to decrypt the phone so I can use TWRP again? I've tried using a set PIN & pattern, but keeps failing to decrypt.
[OnePlus 2 Original Android Development] dlemonis16:
Hello everybody. Just checking: could it be used as a daily driver? Regards
[OnePlus 2 Original Android Development] anupritaisno1:
If you have to ask such questions then this ROM is not for you
[OnePlus 2 Original Android Development] dlemonis16:
Agreed. But being polite is not for you, either.
[OnePlus 2 Original Android Development] anupritaisno1:
Indeed
[OnePlus 2 Original Android Development] anupritaisno1:
Btw guys I've reuploaded the twrp build to discord

An official upload will be made here shortly but if you need something right away well you know where to look
[OnePlus 2 Original Android Development] anupritaisno1:
The download server now supports clients using the new TLS 1.3 protocol

Currently only chrome canary is supported

To visit the download server using TLS 1.3, in chrome canary go to chrome://flags and in TLS 1.3 variant choose draft 28
[OnePlus 2 Original Android Development] anupritaisno1:
Btw guys since this ROM encrypts your device don't try to "test" the encryption system to see if the password at boot is placebo. It isn't and if you enter an incorrect password too many times there is code in AOSP to actually erase the data to protect it from brute forcing the password out

At the end of this is like to say: really internet? You couldn't come up with something a little less obvious

The limit is pretty high although, about 90-100 attempts before the erase happens. Haven't actually read the code to see how high it is

Yeah someone actually tried that

Also there's no backdoor. There is no way to recover a lost password and this is the only ROM to use hardware based encryption to truly secure the password
[OnePlus 2 Original Android Development] Rvlmax1:
Bad link
[OnePlus 2 Original Android Development] quake73:
here's the trick ;)

http://srv1.botstack.host:9000/oneplus/op2/
[OnePlus 2 Original Android Development] anupritaisno1:
New build coming out

What's new?

January 5 security patch

Major kernel upgrade

Code clean

Update proprietary blobs

Disabled Access Time for all partitions (We don't need access time. When access time is enabled, it will store the exact date of the access when a file is accessed, what just wastes write cycles (in theory) and has impact in I/O performance.)
[OnePlus 2 Original Android Development] anupritaisno1:
New kernel release coming out

Added maple I/O

Added several TCP schedulers

Throttling control

CPU boost can now be turned off completely
[OnePlus 2 Original Android Development] anupritaisno1:
New builds are pushed

Do note that arise betas are having problems

If you use arise, please use Deuteronomy v2.3.3

As usual, flash order is ROM->kernel

And do NOT wipe dakvik.

It is unnecessary for this update
[OnePlus 2 Original Android Development] anupritaisno1:
Did you guys know that while we don't have cmte nor OMS, we do have rro and it does work
[OnePlus 2 Original Android Development] nicesoni_ash:
That's called legacy oms support and last security updates messed it up, I am not sure whether Google fixed it in January updates.

Btw applying safetynet patch would be enough to make Android pay work or need to add any additional patches. Of course in enforcing mode.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[OnePlus 2 Original Android Development] anupritaisno1:
Ok?
[OnePlus 2 Original Android Development] nicesoni_ash:
Ok as in ok, thanks or as in, they are working fine, see, ok? [emoji4]

I just said that's legacy support as it's.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[OnePlus 2 Original Android Development] anupritaisno1:
Dude you know you can reach out on telegram, why are you taking this conversation like everywhere
[OnePlus 2 Original Android Development] nicesoni_ash:
My reason for differentiating oms/rro and legacy was to make it clear so when people use substratum themes or even layer ones, they would know the risk involved like bootloops if used a wrong overlay. I am leaving this topic now. Have a nice day.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[OnePlus 2 Original Android Development] anupritaisno1:
I mostly tried out all the popular ones without running into any issues.

No idea about paid ones, I'm unable to buy apps from the play store
[OnePlus 2 Original Android Development] nicesoni_ash:
Good for you girl. [emoji106]

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[OnePlus 2 Original Android Development] anupritaisno1:
Now that's a new bug you got there
[OnePlus 2 Original Android Development] nicesoni_ash:
[emoji23] [emoji23] [emoji23]

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[OnePlus 2 Original Android Development] anupritaisno1:
Guys something unexpected has happened

The server owner ran away without notifying and the server is going to expire

Yes, the build you're seeing will probably be the very last build of haruhirom as well as custom kernel for haruhirom

I guess this is goodbye

The server is still up, download it while you have time

Hope to see you again in the future
[OnePlus 2 Original Android Development] AndroidBeginNinja:
Why don't you upload it to afh or drive?
[OnePlus 2 Original Android Development] anupritaisno1:
That's the build server. I just move builds built there to the production folder

Anyways I'm not mirroring it anymore now. There is still time to download it before it goes down
[OnePlus 2 Original Android Development] NDR_man:
What version android is this rom?

Thanks

Update: Got it, but you should probably put something in your thread opener as well
[OnePlus 2 Original Android Development] anupritaisno1:
I didn't expect this myself

New builds are up!

ROM

Added back an optimization I missed

Google assistant enabled by default

SuperSU 2.79-SR3 update

Kernel

Added workqueue scheduler

-O2 optimizations

[MENTION=580590]mdalex[/MENTION]ca's toolchain just disappeared from bitbucket

The hell is going on here

Has anybody noticed that there is "iOS" in the last 3 letters of the ROM? I almost didn't notice that myself!
[OnePlus 2 Original Android Development] anupritaisno1:
While we are at encryption I'm working on getting a cool feature out. There's no ETA but

It'll allow you to use a pendrive connected via OTG as internal storage. The user could move huge apps to the storage. The storage will only be readable on the device where the user completed the setup. The user will have to go to settings and himself convert the drive to be used as internal storage. With this you could move large games or ahem... questionable apps to an OTG drive. Disconnecting the OTG drive will remove those apps and connecting it back will bring those apps back

Sound pretty cool right? Well there's no timeline for when I'll start working on it. Just letting you guys know that it's planned
[OnePlus 2 Original Android Development] jukyO:
@OP,

Have you built latest TWRP with your special modifications?
[OnePlus 2 Original Android Development] jukyO:
Can you please upload it?
[OnePlus 2 Original Android Development] samael07:
1. How much time can the initiation encryption last?

OP2 is filled in around 40 GB.

2. Can I ask for reupload recovery.img?

edit: Sexy ... I have an encrypted brick :(
[OnePlus 2 Original Android Development] anupritaisno1:
First boot can take upto 30 minutes

Also did you wipe data before flashing?
[OnePlus 2 Original Android Development] anupritaisno1:
OnePlus2:/ $ mount | grep dm-

/dev/block/dm-0 on /vendor type ext4 (ro,seclabel,noatime,discard,data=ordered)

/dev/block/dm-1 on /system type ext4 (ro,seclabel,noatime,discard,data=ordered)

/dev/block/dm-2 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,nodiratime,discard,nobarrier,noauto_da_alloc,data=writeback)

OnePlus2:/ $

Vendor partition coming soon
[OnePlus 2 Original Android Development] rizkhanjra:
I am about to download this rom and try now , i think i should wait now

---------- Post added at 01:31 AM ---------- Previous post was at 01:30 AM ----------

I am about to download this rom and try now , i think i should wait now
[OnePlus 2 Original Android Development] anupritaisno1:
Do whatever you want. Just don't spam the thread with 2 posts of literally the same thing
[OnePlus 2 Original Android Development] samael07:
OK, first of all - I have a grudge against myself. I knew, I knew the "risk." First things first:

- the data partition was not empty, I had about 40 GB files - photos, documents ..

- after starting I got info, that encryption will take about 40 minutes .. After this time the indicator reached 3min 40 sec and it "stuck in a moment" ... for over 4 hours;)

- I interrupted / reboot (on my responsibility, I know). After rebooting, the standard installation procedure .. started! There was no end to joy :)

- and it would be nice if the ROM was visible from the laptop.. OK, he was not... Oh - at the begging asked for a password, I typed a good 10 times "default_password", without success.

- a little bit too nervous ... from TWRP level (v.3.0.2) I did ... format ...

- now I have OP2 which, although it comes in TWRP, but the partitions are "empty", there is no ROM image, there is a bootloader. But - OP2 is still not seen by Windows 10 (7 and 8.1 too).

- I found a tutorial on YT - the guy said that from the Advanced wipe level, change / restore EXT4 in the data, cache and system partitions. This is to help. Did not help..

Well, we all learn from mistakes ...;)
[OnePlus 2 Original Android Development] anupritaisno1:
The encryption process usually doesn't get stuck

Also an interrupted encryption can be recovered through twrp. The chances are low but try this twrp https://transfer.sh/11xcO3/recovery.img and use "default_password"
[OnePlus 2 Original Android Development] samael07:
Tnx, I'm gonna try...
[OnePlus 2 Original Android Development] anupritaisno1:
Next update will have support for v4a and jamesdsp

The apps won't be present on the system image. You'll have to install the apps manually from XDA labs, github or the v4a/jdsp telegram group. This is done intentionally so that users who don't want to use these apps don't even have to bother about the feature being present

Root will not be required for either. No installation of libraries in recovery will be required either
[OnePlus 2 Original Android Development] anupritaisno1:
Firefox users, if you receive a MOZILLA_PKIX_ERROR_REQUIRED_TLS_FEATURE_MISSING error message while trying to reach my website please check your current date and time. Sometimes even if it's behind by a few minutes it could cause problems
[OnePlus 2 Original Android Development] anupritaisno1:
I was in a bit of a hurry so here's the build with the July security patch if you need it right away https://glassrom.botstack.host/signed-ota_update.zip

As mentioned previously it takes 11 hours or so to compress the ROM to 490 mb so I just left out the compression for now. The file name is different because of that and I'll soon upload the compressed version, whenever it's ready. The compressed version will be exactly the same as this so don't waste time redownloading it if you download this
[OnePlus 2 Original Android Development] anupritaisno1:
The /vendor commits were reverted because adding a /vendor means you'll have to flash a twrp built by me and given the complexity of the whole procedure at least for now I removed the vendor partition
[OnePlus 2 Original Android Development] anupritaisno1:
Oh and the SIM card issue in lineageos, I've hacked my way around it and you won't experience this issue on glassrom at least
[OnePlus 2 Original Android Development] anupritaisno1:
One more thing

Do not grant root to v4a. This is not required and will unnecessarily open security holes

Also do not attempt to uninstall the v4a driver. It will end up in disaster as I didn't use v4a's installation method but I used a treble-compliant method to add v4a to the system
[OnePlus 2 Original Android Development] anupritaisno1:
For jamesdsp everything is documented on the github page except one effect which I'll talk about below

Spatializer: the creator of this effect has chosen to keep what this effect does a secret. Attempts to create a surround effect and sounds great

The only information I ever got from the creator is:

BRIR = binaural room impulse response

HRTF = head-related transfer function
[OnePlus 2 Original Android Development] anupritaisno1:
You might need to use an app like kernel adiutor to adjust CPU frequencies before you can actually use some of the effects in jamesdsp
[OnePlus 2 Original Android Development] anupritaisno1:
Miscellaneous stuff

In kernel adiutor in sound section only the headphone gain and headphone poweramp gain work

The headphone gain is digital gain and headphone poweramp gain is the analog gain

The poweramp gain is always maxed out.

If you want more options use alsamixer to control audio
[OnePlus 2 Original Android Development] jukyO:
Can you merge it to official LOS git?
[OnePlus 2 Original Android Development] anupritaisno1:
The fix is on the ROM side and not device
[OnePlus 2 Original Android Development] jukyO:
Ok, but isn't your ROM based on LOS?

Can you share details of the fix?
[OnePlus 2 Original Android Development] NeoVsk:
Regarding the convolver: there is no sound in the vacuum.
[OnePlus 2 Original Android Development] anupritaisno1:
Near-vacuum :p
[OnePlus 2 Original Android Development] anupritaisno1:
Glassrom and Cosmic-OS were signed with the same keys, meaning that they cannot differentiate between each other. Flashing glassrom over cosmic will not even produce a warning or an error. This doesn't mean you should flash glassrom over cosmic or cosmic over glassrom. It will obviously not work. Please be careful if you're switching and do a clean flash as you're switching between ROMs if you plan to switch to Cosmic-OS
[OnePlus 2 Original Android Development] jukyO:
[MENTION=5842226]anupritaisno1[/MENTION]

Once your ROM is installed, can it be decrypted?

I have also your last TWRP installed.

If so, can you provide steps on how to decrypt it?
[OnePlus 2 Original Android Development] 0123456nnn:
decrypt

Are there anyone know the default password for glass rom,i use the twrp in thread ，and input defaullt_password to decrypt ,but it's wrong , and i try default password ,it also wrong
[OnePlus 2 Original Android Development] lucyr03:
Encryption doesn't work with official twrp, you need the special twrp.
[OnePlus 2 Original Android Development] anupritaisno1:
Encryption is actually working with the official twrp

What seems to happen is that glassrom uses the new disk quota feature to measure app storage usage and report it back to the user

TWRP is able to decrypt data but data is not in a supported format as per TWRP (since official twrp's kernel doesn't support disk quotas). It says decrypt failed but this is what's really going on
[OnePlus 2 Original Android Development] anupritaisno1:
The next update will add the vendor partition. A special twrp will be needed. Please read all instructions carefully before updating

As usual, you won't need to wipe anything before you update
[OnePlus 2 Original Android Development] K3n H1mur4:
That means full treble support or there is still work to do in this regard? I'd love to see GSIs being installed in our OP2.
[OnePlus 2 Original Android Development] anupritaisno1:
You need to understand that GSIs amd treble aren't 2 sides of the same coin. Treble just made creating GSIs easier. You can make GSIs without treble and for the most part they'll work
[OnePlus 2 Original Android Development] anupritaisno1:
Guys if you're having issues with decrypting data please join the discord chat and report your issue there
[OnePlus 2 Original Android Development] jukyO:
Question.

I have other ROM installed, encrypted with my password.

If I wipe data, system, dalvik and cache, and install GlassRom, will this normally work?

I'm asking, as I'm not sure does encryption encrypts internal storage as well?

Will something mess up in such case?

And yes, I have latest TWRP installed :)
[OnePlus 2 Original Android Development] anupritaisno1:
I answered this question on discord but for anyone else who's interested

Encryption encrypts all user data without exception. This means that application shared storage (internal storage) will also be encrypted