[KERNEL] CleanSlate v1.7.13 | LED|SqueezeCntrl|Flashlight|AdBlock|WireGuard [25 Sept]

LeeDroid

Recognized Developer
Jan 13, 2007
28,850
45,642
0
Newton Aycliffe
www.leedroid.co.uk
Thanks, so this is only small part related to kernel and also needs system partition change.
Now I get why magisk is involved, a systemless module I guess.
@Davil_79 have you checked whether magisk can do this?
I don't believe magisk is removing the forceencrypt flag in vendor, only ramdisk, removing from vendor would require a module, you also need to format data before booting and after removing the flag so it's probably not working.

The next point of concern that I haven't looked into yet is trebble, the vendor partition is separate on trebble devices so the 2nd fstab may exist in there.

I'm going to grab a U11+ RUU tomorrow and look at whipping a ROM up
 

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
I don't believe magisk is removing the forceencrypt flag in vendor, only ramdisk, removing from vendor would require a module, you also need to format data before booting and after removing the flag so it's probably not working.

The next point of concern that I haven't looked into yet is trebble, the vendor partition is separate on trebble devices so the 2nd fstab may exist in there.

I'm going to grab a U11+ RUU tomorrow and look at whipping a ROM up
if it's possible to hack it into non encrypted mode, then that could help a lot with twrp stuff, mounting data unencrypted. Well, should be tons of fun to explore the pitfalls of Treble :D:laugh::good:
 

Cryptycat7

Senior Member
Dec 21, 2017
185
90
0
@Cryptycat7 it should be fine with the new rollout, auto profile changes are now working as intended :) (i hope so :D)
If you keep doing what you are doing, I'll start to call you king kernel :D:good:
Just updated. Will put the phone into airplane mode, activate the night profile and report back tomorrow morning. Fantastic work.
 

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
If you keep doing what you are doing, I'll start to call you king kernel :D:good:
Just updated. Will put the phone into airplane mode, activate the night profile and report back tomorrow morning. Fantastic work.
Meh, still not perfect. Gotta check what else can be done to prevent the background service from being swept out by Android low memory handler
 
  • Like
Reactions: Cryptycat7

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
Noticed the same. Didn't get triggered by my home Wi-Fi network for me this morning.
I'm consulting with the best out there, Lee on the subject matter. :) Seems like it was indeed a good idea to keep the Companion app very small, so that it's not being swept from memory. @Captain_Throwback had some ideas to move them together, but I hate to have persistent notification on the bar to fix this issue the usual way... still some other ideas to try to fix this, but I guess that's the last resort, that's used by all persisten background apps.
 
  • Like
Reactions: Cryptycat7

Cryptycat7

Senior Member
Dec 21, 2017
185
90
0
I'm consulting with the best out there, Lee on the subject matter. :) Seems like it was indeed a good idea to keep the Companion app very small, so that it's not being swept from memory. @Captain_Throwback had some ideas to move them together, but I hate to have persistent notification on the bar to fix this issue the usual way... still some other ideas to try to fix this, but I guess that's the last resort, that's used by all persisten background apps.
Also hate persistent notification, I call them the "ads" of Android from time to time ;)
I know they are required to keep the service running in the background, but there must be a more elegant way of achieving that goal, or maybe there isn't? Devcheck, Orbot and ExpressVPN are probably not apps that 99 percent of the users run 24/7, so maybe Google didn't put much effort into this?
Can only try to imagine, where you are going to push this project, it was superb from the start, but gets better every week. New fingerprint modes are really helpful. Am holding the phone a bit weird right now, since I am holding a cigarette in the right hand. Accidentally touched the fingerprint twice, but fingerprint mode 4 allows me to enjoy the convenience of tapping to home, without throwing me out of my message edit window.
 

Attachments

Last edited:
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
Also hate persistent notification, I call them the "ads" of Android from time to time ;)
I know they are required to keep the service running in the background, but there must be a more elegant way of achieving that goal, or maybe there isn't? Devcheck, Orbot and ExpressVPN are probably not apps that 99 percent of the users run 24/7, so maybe Google didn't put much effort into this?
Can only try to imagine, where you are going to push this project, it was superb from the start, but gets better every week. New fingerprint modes are really helpful. Am holding the phone a bit weird right now, since I am holding a cigarette in the right hand. Accidentally touched the fingerprint twice, but fingerprint mode 4 allows me to enjoy the convenience of tapping to home, without throwing me out of my message edit window.
Could you please test switch off battery optimization for the app and see.
I'm testing also, seems more consistently remaining active
 

Attachments

Cryptycat7

Senior Member
Dec 21, 2017
185
90
0
Since this seems to work wonders, I'll add a plus redirection when this first activated in app. That's keeping the persistent bar away which is cool
Perfect. Will arrive at home in around an hour. Can check then.

Edit: maybe some less restrictive RAM management tweaks would be the most convenient way to keep the service in the background. This phone has 6 Gigabyte of RAM, I am a heavy multitasker and the phone is hovering around 4,1 Gigabyte RAM usage max. If it would allow to use up to 5 gigs before kicking apps from memory, that would be a nice improvement. I appreciate your close to stock approach and totally agree on going for it, but this isn't to far from stock from my perspective. Would love to hear your opinion about this idea.

Edit 2: Profile switching worked like a charm with androids battery optimization disabled.
 
Last edited:
  • Like
Reactions: tbalden

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
rolling out premium app update to playstore, to add Battery Optimization quick access when Battery Optimziation is not set off. If you want to use Wifi based auto profile activation, battery optimization for the app should be off. It won't eat your battery, but if not set, the background service is removed by Android battery optimization.
 

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,494
4,548
253
25
Hanover
hey @tbalden I will probably get my u11+ tomorrow too and I thought, if you can make a boot.img of your kernel, so we can patch it manually with magisk and flash it afterwards? don't want to bother with twrp right now, especially since nkk71 is gone (RIP, he was very kind and helped me with my 10 too), there might be long time no properly working twrp or proper decryption.
 

tbalden

Recognized Developer
Oct 22, 2010
9,739
16,639
263
Budapest
www.virtuousrom.com
hey @tbalden I will probably get my u11+ tomorrow too and I thought, if you can make a boot.img of your kernel, so we can patch it manually with magisk and flash it afterwards? don't want to bother with twrp right now, especially since nkk71 is gone (RIP, he was very kind and helped me with my 10 too), there might be long time no properly working twrp or proper decryption.
I think someone here could share their boot image backup. What region do you need it for?
But beware that verity will be breached by a non-matching boot image, most certainly and you will need RUU or adb sideload OTA zip to avoid "System is corrupted, cannot update" message when reverting to stock recovery/system image.
I'd advice to still go on with twrp just to have your back covered, but let's see if we can find someone who wants to share their backup for this purpose.
 
  • Like
Reactions: Cryptycat7

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,494
4,548
253
25
Hanover
I think someone here could share their boot image backup. What region do you need it for?
But beware that verity will be breached by a non-matching boot image, most certainly and you will need RUU or adb sideload OTA zip to avoid "System is corrupted, cannot update" message when reverting to stock recovery/system image.
I'd advice to still go on with twrp just to have your back covered, but let's see if we can find someone who wants to share their backup for this purpose.
don't know yet which region it is. gonna check it in the evening when I get home. it's bought from UK. maybe it's WWE.
yea, if no one will share it, gonna try twrp, but I had so many fails lately on the 10, that I want to be really careful this time with the new device :D nearly bricked my htc 10.
 

cameljockey1

Senior Member
Aug 4, 2011
937
247
73
Arlington
don't know yet which region it is. gonna check it in the evening when I get home. it's bought from UK. maybe it's WWE.
yea, if no one will share it, gonna try twrp, but I had so many fails lately on the 10, that I want to be really careful this time with the new device :D nearly bricked my htc 10.
It is really not that bad. Just follow the instructions to the t and you'll be fine. When you need to flash anything you would just need to use micro SD card or adb sideload. Make sure to take a backup first. You'll need boot system and vendor image and keep files on a micro SD card so you are about to go back if needed.
 

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,494
4,548
253
25
Hanover
It is really not that bad. Just follow the instructions to the t and you'll be fine. When you need to flash anything you would just need to use micro SD card or adb sideload. Make sure to take a backup first. You'll need boot system and vendor image and keep files on a micro SD card so you are about to go back if needed.
okay, so data will be encrypted, but magisk flashes fine, even though it can't mount it? yea doing always backup first, need to get some space free on my card :D
 

Cryptycat7

Senior Member
Dec 21, 2017
185
90
0
don't know yet which region it is. gonna check it in the evening when I get home. it's bought from UK. maybe it's WWE.
yea, if no one will share it, gonna try twrp, but I had so many fails lately on the 10, that I want to be really careful this time with the new device :D nearly bricked my htc 10.
You are most likely to receive the European model. 1.24.401.2 If this matches your build number after installing the latest update, just tag me. Can give you the boot image within a couple of minutes if you need it.

I recommend to flash TWRP tho. Magisk will break booting when you flash it, you mentioned the reason. So keep read only, Flash Magisk, tap wipe, format userdata and reboot, you'll be rooted afterwards. Setup your phone and you'll have root along with a fully functional Magisk. Updating Magisk required the same procedure for me. Updated from within the app and it refused to boot, so be aware. Kernel flashing works flawless without any additional steps if you are using external SD card.
 
  • Like
Reactions: DeeZZ_NuuZZ

DeeZZ_NuuZZ

Senior Member
May 16, 2012
11,494
4,548
253
25
Hanover
You are most likely to receive the European model. 1.24.401.2 If this matches your build number after installing the latest update, just tag me. Can give you the boot image within a couple of minutes if you need it.

I recommend to flash TWRP tho. Magisk will break booting when you flash it, you mentioned the reason. So keep read only, Flash Magisk, tap wipe, format userdata and reboot, you'll be rooted afterwards. Setup your phone and you'll have root along with a fully functional Magisk. Updating Magisk required the same procedure for me. Updated from within the app and it refused to boot, so be aware. Kernel flashing works flawless without any additional steps if you are using external SD card.
okay thanks, that sucks with magisk. but can't we, after an OTA just patch the boot.img and it should work fine? or is it then preventing from booting the phone, too?