yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Original Android Development] anupritaisno1:
Only partially. Follow-up patches were released for the Linux kernel quite later
[OnePlus 2 Original Android Development] chxei:
cpu is alwais on max freq althoug there is no load

---------- Post added at 17:57 ---------- Previous post was at 17:38 ----------

or, maybe ex kernel manager shows incorectly
[OnePlus 2 Original Android Development] anupritaisno1:
Cuz EAS

Long time no see btw

how have you been
[OnePlus 2 Original Android Development] anupritaisno1:
Hey guys I need some help

Think you can handle PR, communications or do some contribution (any kind, doesn't have to be development)?

Then join the telegram chat here https://t.me/joinchat/DKbLAFJsx6x0Hu7Q8Ke3UA

I will personally kick people who join this group to spam. So if you have plans to do that better watch out

Currently glassrom is just a project run by one guy (while I do have the resources) and it is getting harder to manage everything (development, PR, communications, distributions, thread designing, etc) all by just one guy.

When you join please mention your XDA username or github username (optional)
[OnePlus 2 Original Android Development] anupritaisno1:
HaruhiOS now boots on locked bootloaders :P

This is NOT a vulnerability nor a bootloader bug. It requires the user to unlock his bootloader and for that the user has to enable OEM unlocking and unlock the bootloader himself. Do NOT just start criticising oneplus. If this were really a vulnerability then on the basis of severity I would classify this one as "very low severity" or not even significant

Warning warning warning! This stuff is not for noobs

This requires you to have knowledge of Linux and bash. Knowledge of Linux doesn't mean simply installing and using a distribution. You should be knowing what you're doing before you attempt this

I am not responsible for any damage to your device! You are entering the danger zone. It is your responsibility if you mess this up. Read this carefully and if you don't understand anything, don't even try

Read all of the instructions before attempting anything

If you do not understand why I copied the su.img to /cache/ then do not try this. You did not understand what I did and should stop

The current version already supports this

Steps: download SuperSU, chainfire's signer and oxygen recovery

Now go to twrp and flash SuperSU and then the signer

Use the file manager to copy /data/su.img to /cache

Mount your /system in the mounts tab and uncheck the read-only option if enabled, and then open a terminal and type exactly this

echo "cp /cache/su.img /data/ && chmod 777 /data/su.img" >> /system/etc/init.d/supersu.sh && chmod 777 /system/etc/init.d/supersu.sh

Flash the oxygenos recovery, boot back into the ROM and verify that everything works, then check k that the oxygen recovery actually boots

Now take a full nandroid backup and save this to your PC. This is important. The locking process will wipe all of your data, even data on internal storage!

Make sure you really signed the boot.img!

Make sure you really didn't disable OEM unlocking as it is the only way to get back if something goes wrong!

Make sure you did not install magisk! Otherwise flashing SuperSU will brick your ROM (magisk can only be installed after SuperSU, you cannot install SuperSU before magisk)

Do NOT attempt to edit my commands and try it with magisk instead of SuperSU!

Make sure you backed up your entire internal storage!

There is no going back at this point

When you're done, send fastboot oem lock to the phone

Now boot and copy twrp to your sdcard

The twrp image needs to be in the root directory of your internal storage! Do NOT ignore this warning

Now rename that file to twrp.img

Now assuming that you did

cd /sdcard

Already typed

su

To get root

All you need to do is run this command

dd if=twrp.img of=/dev/block/bootdevice/by-name/recovery

Now just wait a few seconds. This stuff takes a while

Now boot to twrp and restore your nandroid
[OnePlus 2 Original Android Development] anupritaisno1:
CAF is going to release October security patch for our CPU in late November

Nice job CAF

Well at least they do something as opposed to Google just cherry-picking and hyping but this is just too darn slow
[OnePlus 2 Original Android Development] anupritaisno1:
Hi guys the most recent build has been recalled due to a bug

Description: CPU frequency scaling is totally broken. This can the device to either stick to a very high frequency causing battery drain or stick to a very low frequency causing lag and freezing issues

Severity: Very high

Fix: a fix has been made available immediately. Download this boot.img https://srv1.botstack.host:8001/boot.img and flash it. This should fix the issue

Note: if you are on a custom kernel you can safely ignore this warning

For newcomers: wait a bit. A new build should be available very soon

Reported by: [MENTION=6788642]chxei[/MENTION] [MENTION=4695623]FPSUsername[/MENTION]

Can't apply the fix right away? Grab any custom kernel and flash it or just wait for the updated ROM. Make sure your device doesn't overheat
[OnePlus 2 Original Android Development] Aaahh:
Oh what the sources were never uploaded fully as far as I was aware. Or atleast compiled

in any case shake it up and support more devices

looking to fork for a overnight android session, stable?
[OnePlus 2 Original Android Development] anupritaisno1:
You can go ahead and do so

Also where were you absconded for a whole year if I may ask?

There have been no updates to the source, instead I leave format patches in my tree and apply them during the build

A simple git pull --rebase should get all the repos updated
[OnePlus 2 Original Android Development] anupritaisno1:
Hey guys I had some disc corruption and the support team was busy fixing my server

It took me a while to recover my Android tree but now it's fixed

I'll release a new build as soon as possible
[OnePlus 2 Original Android Development] anupritaisno1:
New update is out

This is a maintenance release

New stuff: November security patch

Added some extra patches Google released

Fixed some nasty bugs

Removed a partition entry from fstab which we don't use
[OnePlus 2 Original Android Development] anupritaisno1:
Known issues: currently locking the bootloader after flashing won't work (if you already locked it then ignore)

My server disc is currently facing some nasty corruption issues

Download one of these files https://github.com/GlassROM-devices/android_device_oneplus_oneplus2/tree/verify?files=1 if you'reoure paranoid and check the integrity before you flash

A second maintenance build will arrive tomorrow to fix the first issue
[OnePlus 2 Original Android Development] anupritaisno1:
Small announcement

You can safely ignore this if not interested

So some people might not know how to use these files to verify integrity

The .md5sum file is the md5sum has. Place this file in the same directory as the ROM before flashing and twrp will verify the integrity for you. Note that md5sum is very weak so false negatives in verification are possible

Any .shaxxxsum where x can be 1, 256, 512, 224 are sha{1,256,512,224} sums of the files. Pick whichever is convenient for you to verify

The .cert.txt is the signature of the zip file. To verify this, it's the same as verifying an application signature

keytool -list-printcert-jarfile *zip should do the trick. This isn't for beginners

The .sig file is the gpg detached signature of the ROM zip. It is complicated for a beginner to set up gpg verification but once it is done all you gotta do is gpg --verify <name_of_sig_file_with_extension> The gpg public key is in the same folder. It is gpg.key

The ROM signature is divided into 4 keys. Only the release-key fingerprint is disclosed.

All signing keys are sha256withrsa, 2048-bit and public exponent 3

The gpg key is 4096-bit with RSA

Avoid md5sum digest and sha1sum digests. They are weak and you should only use them if you have a proper reason to do so
[OnePlus 2 Original Android Development] anupritaisno1:
I have plans to add a separate verity key that actually doesn't enable verity but fools the bootloader in order for you to lock it. That will very soon make it 5 keys instead of 4
[OnePlus 2 Original Android Development] anupritaisno1:
On the download server side

The download server now uses apparmor (selinux doesn't work fine on Debian), yama and Linux hardened on top of a mainline kernel (maintained by me here: https://github.com/anupritaisno1/linux-hardened)

TLS certificates have been bumped to 4096-bit RSA from 2048-bit RSA

HPKP now pins for 2 months and 28 days (this is only for internal development)

OCSP responses are now strictly stapled

We are now fully compliant with chrome's upcoming EXPECT-CT
[OnePlus 2 Original Android Development] anupritaisno1:
New build coming soon

Reason: I'm just too bored so just gonna release an update with no changes and new commits from lineageOS

Cause why not
[OnePlus 2 Original Android Development] anupritaisno1:
I'm still thinking why Oreo isn't working the way I want it to /shrug

Random quote: "Feed a man a fish and he'll eat for a day, feed a man a poisoned fish and he'll eat for the rest of his life."
[OnePlus 2 Original Android Development] anupritaisno1:
Okay let's do a poll

This ROM has a feature I haven't talked about yet

It can deny unauthorized insertion of usb devices connected via OTG

Should this feature be enabled by default? Note that it is already supported but disabled by default

Vote on the poll and let me know
[OnePlus 2 Original Android Development] anupritaisno1:
I have an idea to rebuild twrp for our device

Here are the reasons

Twrp can benefit from undervolting work done on my kernel and heat less often

Upstream f2fs has been merged into my kernel so twrp with my kernel should handle f2fs a lot better

We have upstreamed ext4 too, maybe twrp can benefit from that

Exfat driver is upstreamed as well so usb otg should be more reliable

Should I try building twrp for our device? It will be a bit tricky as I've never done that but it's possible
[OnePlus 2 Original Android Development] anupritaisno1:
I had talks with my server provider and after some discussion i received this message domain name

https://vmd16339.contabo.host

Best part-you can access this over standard ports

The old botstack link isn't going anywhere and the above link is just a mirror of the botstack link.
[OnePlus 2 Original Android Development] jukyO:
Yes! You'll announce it here or?

---------- Post added at 12:49 PM ---------- Previous post was at 12:47 PM ----------

Question is, how many people is using this? Btw, poll is where?
[OnePlus 2 Original Android Development] FPSUsername:
Yes. Maybe it's possible to become a twrp maintainer for the op2?
[OnePlus 2 Original Android Development] anupritaisno1:
Hi guys I got twrp booting with my kernel

I need to update some more stuff and then I'll release
[OnePlus 2 Original Android Development] anupritaisno1:
https://srv1.botstack.host:8001/oneplus/op2/recovery.img

What I already tested:

FDE

boot

Flashing ROMs

What you have to test:

Put an md5sum file in the same folder as the ROM and verify that twrp is checking it correctly

Convert data to f2fs and make sure that twrp doesn't take longer than 30 seconds to load

(Optional) hit me up on telegram for a test boot.img with inline_dentry enabled. Use this boot image for at least 24 hours and randomly bolt into twrp and time the boot times with a stopwatch

(Optional) test theme support

(Optional) flash a very old ROM (older than a year) and report back if twrp flashes it correctly

Take a system image backup in the backup section and restore it. Report back if it works as expected
[OnePlus 2 Original Android Development] anupritaisno1:
Was going to release an update today but sadly there is nothing new so update is postponed

Oreo is going nicely. Still gives me a few errors here and there
[OnePlus 2 Original Android Development] fuser1337:
Eagerly waiting for your oreo build!
[OnePlus 2 Original Android Development] anupritaisno1:
Twrp discussion here https://xdaforums.com/oneplus-2/orig-development/unofficial-enhanced-twrp-t3711253
[OnePlus 2 Original Android Development] anupritaisno1:
lineageOS updated device tree for oneplus 2 but most of those changes were done by me months ago

So you already have those changes
[OnePlus 2 Original Android Development] anupritaisno1:
Guys we have moved to cloudflare

https://botstack.host

The old links will still be valid but you can use this one as well now
[OnePlus 2 Original Android Development] anupritaisno1:
Just had a guy join the telegram group and ask for energy aware scheduling support

Quick note: this ROM already has EAS and undervolting. I just haven't written this in the features list because I do not consider this a huge thing
[OnePlus 2 Original Android Development] anupritaisno1:
Added wireguard support

New build with support coming soon

How the hell do you even use this?
[OnePlus 2 Original Android Development] anupritaisno1:
Forget what I said in the previous post it just doesn't work
[OnePlus 2 Original Android Development] anupritaisno1:
Hi guys my server is going down for a kernel upgrade (I just built wireguard into the kernel) and new build with wireguard support might come today if there are no build errors
[OnePlus 2 Original Android Development] anupritaisno1:
New build is up!

Added wireguard support
[OnePlus 2 Original Android Development] roshan2989:
Does your rom support F2FS?Just flash bootloop
[OnePlus 2 Original Android Development] anupritaisno1:
I'm aware of this issue. It will be fixed in the next build

For now you see a boot.img in the download folder? Download that and flash with twrp image flasher. This should fix the bootloop
[OnePlus 2 Original Android Development] anupritaisno1:
Wireguard support will be removed in the next build

I will release a script to inject wireguard support into your ROM for those who are interested

Btw just a bit of comparison

Wireguard:

Supports only one cipher

Needs kernel hacks

You have no option of proxying individual apps

Configuration may be difficult for many people despite the documentation saying it's really simple

Requires kernel hacks and stuff to be injected into the ROM

Requires root for even the most limited functionality

May not be able to bypass your school firewall

A 10-line config yields a fully functional wireguard config

Shadowsocks:

Supports multiple ciphers

Has more than 10+ implementations in multiple languages and uncountable unofficial ports

Can proxy individual apps and even individual sites!

Optionally it can host a local socks proxy and you can redirect specific apps to go through it

Doesn't require kernel hacks but does require the kernel to support TCP fast open in order to reduce latency (this is enabled by default)

Doesn't require anything to be injected into the ROM

Only requires root for enabling TCP fast open which can be ignored if your ROM developer already enabled it (I did)

School firewall? This stuff can bypass the Chinese gfw your school firewall is nothing in front of this

A one-line command on both client and server side yields a fully functional and secure connection!

Seriously! Just use shadowsocks
[OnePlus 2 Original Android Development] Gulbuddin:
Phone storage full empty. Nano gapps and 8.6 rom flashed. Bootloop. Please help

Edit: Figured out. I had to flash the boot image after. i did it before flashing the rom, hence the loop
[OnePlus 2 Original Android Development] erzherzog:
Boot into recovery or bootloader using volume keys + power on and flash boot.img again.
[OnePlus 2 Original Android Development] anupritaisno1:
Really sorry about this. I tried to add wireguard inside the kernel and apparently the kernel didn't like that

Next build will fix it
[OnePlus 2 Original Android Development] anupritaisno1:
Update: this feature is coming

You better encrypt your device today!

Next build will probably ship this

To encrypt your device but to make the phone not ask for a password, just go to settings -> security -> screen lock -> enter your password or whatever and select the same method again. This time Android will ask if you want to be asked a password at startup, choose "no thanks" and you won't even remember that your device went through encryption

Don't like encryption being forced upon you? Well don't use this ROM I guess

Also going to get a moderator to close the poll. Deny new usb will be enabled by default now
[OnePlus 2 Original Android Development] anupritaisno1:
Urgent notice

Next build has been delayed

A follow up patch for dirtycow has been released. Fixing this will be top priority for the next build
[OnePlus 2 Original Android Development] anupritaisno1:
http://stopdisablingselinux.com
[OnePlus 2 Original Android Development] Woodzrul:
Probably irrelevant, but I know I asked a few weeks ago re why does the front facing camera not record in 1080p. Unlike previous ROMs running Android 6. Would appear that the media_profiles.xml file under \system\etc is set to only record in 720p when the front facing camera is enabled. After editing the file I can now confirm that Snap.apk records in 1080p. I suspect the same result for Camera2.apk also. Looking forward to your next release. :)
[OnePlus 2 Original Android Development] anupritaisno1:
Interesting find

I might be able to add this to the ROM. If interested send the patched file and your email address (preferably registered with github) in private and I'll take a look
[OnePlus 2 Original Android Development] anupritaisno1:
Hey guys as you know my builds are built and hosted on botstack

Well you might have seen I never ask for donations directly. That's because botstack already makes enough to keep the servers running however

Most of botstack's customers come from the united states and the new anti net neutrality rules could pose a problem with keeping the service up (remember that builds are also done on their servers)

If you can, just take a moment to support net neutrality if you're in the US, otherwise this project might be slightly affected
[OnePlus 2 Original Android Development] Woodzrul:
Below is the change I made to the media.profiles.xml file. Starting from line 464.

<EncoderProfile quality="high" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="20000000"

width="1920"

height="1080"

frameRate="30" />

Maybe edit your end and see what the end result is?
[OnePlus 2 Original Android Development] aviraxp:
As replied in another thread, I know this. But could you please confirm that the quality is different from before?

Oneplus disabled 1080p recording in OOS, so I wonder if it is the case.
[OnePlus 2 Original Android Development] Woodzrul:
The resolution (properties of recorded video file) displays 1920x1080. Re quality, it looks better to me when viewed on my monitor. Though this is my opinion and I suggest you double check to ensure this is the case. Good luck. :)
[OnePlus 2 Original Android Development] devilsworkshop:
The botstack link doesn't work. It just shows me a connection refused error.
[OnePlus 2 Original Android Development] NO_ob:
Hi i am flashing this now is development still active or should i go with a different rom?
[OnePlus 2 Original Android Development] FPSUsername:
Active, join the telegram group (not only for development, but also for dankness)
[OnePlus 2 Original Android Development] anupritaisno1:
Wat da f**
[OnePlus 2 Original Android Development] Woodzrul:
Oh yeah!! 1080p support for the front facing camera will soon be official.

https://review.lineageos.org/#/c/198282/
[OnePlus 2 Original Android Development] anupritaisno1:
I dunno why you're so happy because he literally copied your idea and had it submitted under his name

I told you, pm me your github username and email in private but you didn't and now arguing is just useless as there is no proof possible now

You basically gave aviraxp credit for something you found out
[OnePlus 2 Original Android Development] Woodzrul:
I genuinely do not mind. Happy to pass my knowledge on and work as a team. As for GitHub, uploading files etc. I do not really understand the concept. Give me Exchange or SQL any day. :)

Have a lovely Christmas.
[OnePlus 2 Original Android Development] anupritaisno1:
Merry Christmas

Let's talk about Oreo

Yesterday I sorted most of the build issues out. Oreo now builds. Just need to add a few things here and there and it will actually work

lineageOS guys are too slow. I decided to directly use aosp
[OnePlus 2 Original Android Development] anupritaisno1:
Also voting on that poll is now useless. I already announced my decision about a week ago when looking at the poll results. Further votes will not be counted
[OnePlus 2 Original Android Development] anupritaisno1:
I'm now almost done with the kernel bringup for Oreo

Now I have to build kernel headers to compile aosp HALs and then add HALs and HIDL interfaces

HAL3 is coming too

I will release these kernel headers so that building aosp ROMs will be easier for other people
[OnePlus 2 Original Android Development] anupritaisno1:
Clearing up a misconception

So had a developer join the chat who thought kernel modules make you insecure

Here's the facts

Kernel modules make you more secure as this way only the parts of the kernel that are needed are running at any given time

Selinux can prevent malware from loading kernel modules and the protection offered by selinux is so robust that it took me almost 3 days to figure out how to insert wireguard into the kernel without selinux blocking it

40% of kernel vulnerabilities come from userspace writable function pointers. Having kernel modules takes these outside of the kernel. A module can be unloaded at will and you won't be vulnerable

So while some of you may think allowing kernel code to exist and run outside the kernel is insecure, it isn't! It actually makes you more secure

This should clear quite a bit of misconceptions
[OnePlus 2 Original Android Development] sbhas2k:
Tried to install the nougat ROM but got into a bootloop. Will there be a new build with the fix ?

Thanks for your effort
[OnePlus 2 Original Android Development] anupritaisno1:
Flash the boot.img in the same directory
[OnePlus 2 Original Android Development] anupritaisno1:
Information about meltdown and spectre vulnerabilities

When will they be fixed?

Never

To the best of my knowledge the fix for both of these just appeared on mainline (Linux 4.15-rc6)

No android phone is currently running a kernel higher than 4.9

So only if the feature is backported you can be safe

Stable kernels do not introduce new features so don't expect an upstream merge to give you kernel page table isolation

Backporting kernel page table isolation won't really be easy and no wonder nobody wants to do it. It also affects performance
[OnePlus 2 Original Android Development] anupritaisno1:
Several communities are reporting issues with magisk. If you face an issue uninstall magisk and check that the issue is gone. If not, report it to me. if yes, report it to the magisk developer
[OnePlus 2 Original Android Development] anupritaisno1:
Short update

The little cluster on the oneplus 2 is NOT AFFECTED by either spectre or meltdown

If you want to be safe just disable the big cluster though it comes at a performance cost
[OnePlus 2 Original Android Development] anupritaisno1:
Popped a jio sim card in . Volte works

Any further questions/bug reports about volte will be ignored since it's working for me

Cheers
[OnePlus 2 Original Android Development] anupritaisno1:
Please don't come to the telegram group asking for ETAs guys

Expect me to be unfriendly and hostile if you do so and if there is no update then it means there are still some issues that aren't fixed
[OnePlus 2 Original Android Development] anupritaisno1:
Github is currently down

PM me if you want the kernel source/device trees until github fixes the issue on their end

Don't pm me after github is back up, I'd just laugh and send you the github link :D