yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] nuttydoc:
Yes it works, but I have to stop using it as banking app doesn't work with this.

Btw., I was happy to see caller name on ext. screen, but display turns off in few seconds even while phone is still ringing.
[Upgrading, Modifying and Unlocking] TalkB:
That's good to hear, I didn't have a chance to test that so I wasn't sure. I assumed it would be the case since most calling apps create notifications.

I have resolved that by making the app able to quite accurately determine if the phone is folded, which allows me to wake the phone as long as I like without consequence. That version will be posted soon.

I'm not sure why banking apps would be unhappy - presumably it's not a root issue and I have no idea why they'd check for a second display, or care. I'll install my banking app and do some testing with it.

There are ways to hide apps from other apps but I don't think you could hide basic hardware without a fairly complicated setup and more importantly, additional apps.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Well... everything was fine for a bit again, but suddenly my wifi has just stopped working.

Bluetooth can still remain on, but trying to enable wifi doesn't do anything. I've restarted, cleared cache, had it off for awhile and then turned it on again, but I'm not seeing anything much different. This seemed to pop up randomly after a restart. Maybe I was messing around too much with phh treble settings? I don't know. I don't have a sim inserted yet, either.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
In the Lineage OS setup, the wifi section didn't retrieve any networks around me. Booting into the OS, I still can't enable wifi. Bluetooth still seems to work fine, though.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Good god, my bad. I have the 11th page bookmarked, I just saw a reply to myself from there.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
I've figured out the problem from another thread: https://xdaforums.com/t/cat-s22-flip-no-wifi-after-rooting.4630637/

And I've created another post with a separate issue I'm having here:
[Upgrading, Modifying and Unlocking] rfresh:
I had a brief test on this one and really appreciate your development on this and make it possible on the 2nd display,

1, When I open the main screen, the 2nd display just mirrioring the main display, is this expected?

2, When I close the lid, the main display will timeout for a few second and display nothing after that

3, I am still wondering how to see the notification from the 2nd display and how to test it?

Thanks a lot again for your time and dedication to this device and keep it alive
[Upgrading, Modifying and Unlocking] rfresh:
Anyone experience incoming call issue on LOS 20 GSI ROM?

I can make calls on LTE network, but for some reason I can not receive calls on LTE network.

Thanks
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Too, finally solved! I had to tinker a bunch, but I realized it was because I had previously flashed a dsp partition that didn't need to be there for the phone to function. I'm back at square one now, but here's hoping to a smooth install and working wifi after rooting.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
This works, but it's a bit of a hacky fix; closely inspecting the phone as it closes, the keyboard light never actually turns off with this. As far as I'm aware, this only affects battery life, but that's quite limited as it is on the Cat S22.

Is there a way to program the disablement of the leds after the phone enters sleep mode? I just like the look of them when I happen to be using the phone.
[Upgrading, Modifying and Unlocking] nuttydoc:
here is another hacky fix, run this command using "aShell" , app is available in f-droid. You can bookmark this command in aShell. You can close the app, command will keep running in background.

while true; do if [[ $( < /sys/class/leds/lcd-backlight/brightness) == 0 ]]; then echo 0 > /sys/class/leds/keyboard_light/brightness; else echo 1 > /sys/class/leds/keyboard_light/brightness; fi; sleep 5 ; done &
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Ah, perfect! This is exactly what I was looking for.

I don't mind having to run aShell, it's just another system utility. Thank you doctor :3
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Just so I completely know what I'm doing this time, would I be securizing the system.img file that's already on the phone, and then flashing the magisk patched boot image?

I have a bit of an information gap here... if it's not too difficult to explain, I'd like to know why the system.img is securized first.
[Upgrading, Modifying and Unlocking] nuttydoc:
Do not use securize option from settings --> phh treble settings. I tried it once and it lead to bootloop. Also with "N" --> no superuser rom, there is no need to securize just flash magisk patched boot img.

Post you have referred to is for rom with SU binary ( "S" rom). As there is no "N" rom available for LOS 18.
[Upgrading, Modifying and Unlocking] TalkB:
After you've "activated" the second screen, you need to run the app again (no idea how to make an app launch on boot).

I'd also recommend going into the app settings, going into battery, and selecting "Unrestricted".

I'm trying to avoid using a foreground service as that requires a notification. As the background services do more they gradually become less likely to be killed. I found the current release was only at risk of being killed overnight (but often wasn't).

It'd be great if someone with experience developing system/root apps could help out as documentation there is basically nill so I'm flying blind, but I'm gradually figuring things out.

As a more general update, I've gotten access to "hidden" apis directly in the ide instead of flying blind by using a SDK that doesn't flag these items as hidden. I've also got a LSposed library (doesn't appear to require LSposed though) that allows only the app itself to use hidden APIs - meaning the hidden API settings can be set back to their defaults, which is probably best from a security standpoint.

This has revealed why I'm not able to turn just screen 2 on - you are only able to set a display to off, low power (doze), or normal. "Normal" when display 1 is off is off...

If someone could get a logcat opening/closing the device with the stock ROM. That may reveal a method the stock ROM uses that I didn't think of... or, if maybe the stock ROM is just waking the device like I am? I'm not sure.

I've been having a bit of fun. I've made the app identify notifications from music apps and use that to determine if music is currently playing. Whenever music is playing there's a visualizer displayed.

Also, the app saves the music notification so if you get another notification and then clear it, the display doesn't become blank anymore, it goes back to the music notification.

Back to business though the next major version focuses on basic customization. I've already made the app able to save settings it's just getting the presentation to change as a result.

I'm still struggling to figure out how to get the display to show when the device is locked. I've also not been able to replicate the issues experienced with banking apps...
[Upgrading, Modifying and Unlocking] Dunkin_dude:
The output of this command for me is:

sh: /sys/class/leds/lcd-backlight/brightness: can't open $(<...) input: Permission denied

sh: can't create /sys/class/leds/keyboard_light/brightness: Permission denied
[Upgrading, Modifying and Unlocking] nuttydoc:
Where you are running this? This command requires root permission.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Ah, correct. I just rooted my s22 without issue, and now the command runs fine.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Woah... has anybody else seen this? For whatever reason, there's a non-lit tmobile logo on my back screen. I was messing around with Talkb's tool, but revoked root from it after awhile, maybe that's it? Is anyone else seeing this?
[Upgrading, Modifying and Unlocking] TalkB:
That seems to be the standard behaviour if the screen isn't told what to do. Every custom ROM I've used has done that.

It's interesting that it displays an image even without the backlight. I suppose it being LCD allows it to do that.
[Upgrading, Modifying and Unlocking] nuttydoc:
Try this banking app https://play.google.com/store/apps/details?id=com.mgs.induspsp&hl=en_US
[Upgrading, Modifying and Unlocking] debloateverything456:
Just got around to testing some things out with my S22 today. I'm also having this issue on the LOS 20 GSI ROM.
[Upgrading, Modifying and Unlocking] seawildflower:
I have LTE and VoLTE working without issue. you cannot run pixel IMS and Treble IMS package or your device will lock you out of sim settings and you will have to factory reset your phone. Ill post a guide below.
[Upgrading, Modifying and Unlocking] rfresh:
Oh, we need to factory reset our phone ? I am hesitating to wipe out everything and setup my device again if this is going to work
[Upgrading, Modifying and Unlocking] seawildflower:
So for anyone following this thread. All of the information you need is here. If you want a Cat S22 Flip running android 13 (LOS20) with working LTE and VoLTE, rooted for your pleasure, rest assured that is my device.

If you want LOS 21, you'll have to wait for Phh to develop Floss IMS.

If you want TWRP, its not currently possible.

if you want an updated vendor image, this will also not be possible for the moment.

Device issues with some form of solution

PTT can be reprogrammed with Keymapper.

External display activity is currently under development.

keypad lighting can be activated manually.

Ill add, I didnt like the secondary display much anyways, so i dont miss it. and I found the keypad lights to be too bright at night so i prefer not having it and using the display to navigate if i am not firmilliar with the hardware keys, I use speech to text anyways.

If I missed anything in this status update feel free to mention it
[Upgrading, Modifying and Unlocking] nuttydoc:
I just dirty flashed LOS 20 over existing LOS18 without doing system reset or cache clearing. It worked, only thing needed was to select "Allow binder threads on incoming calls" and everything worked perfect. I choose BvN rom. My previously installed magisk, microg are all working.

EDIT: just added this update on first post.
[Upgrading, Modifying and Unlocking] seawildflower:
I wonder if we could get this to work now knowing what we know now with LOS20 LTE settings
[Upgrading, Modifying and Unlocking] debloateverything456:
Anyone else able to get the F-Droid privileged extension installed? Couldn't install it like usual (flash the zip with adb sideload) without a custom recovery. Attempted to install the APK in to the /system/app directory, but the adb remount command resulted in loss of wifi and cellular and I had to restore the device.
[Upgrading, Modifying and Unlocking] nuttydoc:
Changing system partition after rom is installed is troublesome in newer androids. I just use droid-ify with root installer. However if this is must for you, try using magisk module, https://github.com/Magisk-Modules-Repo/Fdroid-Priv . This way system partition will remain unchanged.
[Upgrading, Modifying and Unlocking] debloateverything456:
Thanks, just replaced F-Droid with Droid-ify with root. Seems to be the most up to date solution.
[Upgrading, Modifying and Unlocking] alkaliusmaximus:
How's battery life and general performance with LOS 20 compared to stock v30 ROM?
[Upgrading, Modifying and Unlocking] debloateverything456:
I have not tried the stock v30 ROM, I bought this phone to do the LineageOS install on, so don't really have a comparison there. However, performance with LOS 20 is good, the phone does not feel slow.

I got about a day out of the battery, running quite a few apps that eat battery in the background (Wireguard + DAVx5 for a calendar and contacts sync to my server, Signal messenger, microg, K-9 mail, and Homeassistant). I have now restricted battery use in the background for Homeassistant, that ate battery like crazy on my smartphone too.

I am daily drivering it with this setup, so I'll update as I find out more.

Edit: Update on the battery life. I have slimmed down the apps that are constantly running in the background and now get 2 days + battery life. It is now just DAVx5 on my home network only (don't need 24/7 calendar and contacts sync), microg, Signal, and K-9 mail. This device seems very sensitive to processes running in the background, but on the flip side, if there's not a lot of processes, it will get better battery life than any android phone I have ever had.
[Upgrading, Modifying and Unlocking] nuttydoc:
It depends on apps running in background. I get about >2 days battery life with LOS 18/20. There are no gapps, no bloat and even outer screen is off, which makes big difference, additionally I use netguard to block most apps going online when screen is off. Btw., my screen usage is very limited to call/sms and few upi payments, for most internet related things I prefer to use laptop over mobile phone.
[Upgrading, Modifying and Unlocking] alkaliusmaximus:
Thanks, I think I am going to give it a try. I am at 5 hours since last full charge with an hour of screen time and battery is at 67% already.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Bit of a dumb question... :]

Is the Lineage os v18 rom linked at the beginning of this thread 64 bit? Dolphin emulator is refusing to install for me, and the phone meets the minimum open gl requirements.

I know the emulation's going to be bad, I just wanna see how bad :]]]
[Upgrading, Modifying and Unlocking] Dunkin_dude:
Also, just looked in a CPU stats application; it tells me the battery is only 1000 mAh instead of 2000..? It could be that the app is incorrect, but it has all its other information right. Perhaps this is why battery life is... abysmal. ¯\_(ツ)_/¯
[Upgrading, Modifying and Unlocking] nuttydoc:
All rom for this phone are arm-32bit with 64 bit binder.

As per specs phone uses 64 bit chipset Qualcomm QM215 Snapdragon 215 with Quadcore cortex a53, but manufacturer has choose to give us 32 bit drivers.
[Upgrading, Modifying and Unlocking] alkaliusmaximus:
Installed LOS20 but icon sizes and such is all messed up. Will have to look into it tomorrow.

I probably have to increase smallest width in drawing settings but can't find it anywhere. There is no developer options list, only the toggle to turn them on.

Edit: Changed WM density via adb till developer settings were visible and then set smallest width in those settings to my liking. UI is usable now. No idea why it was so off.
[Upgrading, Modifying and Unlocking] OwedtAlex:
Many thanks to everyone who has contributed to this thread to share their knowledge and expand the utility of this device, which I believe has a lot of potential.

I currently have LOS 18 installed along with the keymapper app which I downloaded from the F-droid store.

Although I have been able to re-map several keys I can't figure out how to re-map the PTT key in order to operate the torch. Does anyone have any ideas how this can be done?
[Upgrading, Modifying and Unlocking] nuttydoc:
What is the issue in remapping PTT key? It should appear as "unknown keycode 0", which is same for both PTT and TAB key --> so keymap will apply to both in LOS. In action choose toggle flashlight. I have mapped flashlight to "longpress 0" and created another keybind to map 0 to keycode_0. I am using PTT/TAB key for virtual mouse toggle.
[Upgrading, Modifying and Unlocking] OwedtAlex:
OK, many thanks for the info. I will away and give a try.
[Upgrading, Modifying and Unlocking] OwedtAlex:
Thanks, doc - it works now. I had selected the Front flashlight originally.
[Upgrading, Modifying and Unlocking] TalkB:
I've been having a bit of a strange issue with my Cat - doesn't seem related to the ROM installed. Basically, if I completely lose cell connection, it is impossible to get it back without using a different sim card.

Airplane mode, reboots, reinserting the sim card, all have no effect. I have to insert a different sim card and boot it before then putting the original back in...
[Upgrading, Modifying and Unlocking] nuttydoc:
May be your sim card has wear out? or there are loose contacts in sim tray, which needs reinsertion.
[Upgrading, Modifying and Unlocking] Dunkin_dude:
By the way, for anyone missing the functionality of ending a call with the end key / closing the flip phone, there's an option in accessibility settings to end calls with power off. This makes these features work, I believe.
[Upgrading, Modifying and Unlocking] OwedtAlex:
I have successfully installed LOS 18 on my CAT S22 and am tempted to have a go at installing LOS 20.

Using the guide shown at the begining of this thread am I right in assuming that I just need to follow all of the steps shown there, but that I can ignore the command:

fastboot-delete-logical-partition product

as I had already done this when I installed LOS18?

Also is the following the correct file:

https://sourceforge.net/projects/an...0-20240516-UNOFFICIAL-a64_bvN.img.xz/download

that I need to download from Andy Yan's GSI files?

Are there any other pitfalls I should avoid? Just being slightly cautious here as I am a beginner and quite pleased that I managed to install LOS18, but don't want to mess things up.
[Upgrading, Modifying and Unlocking] nuttydoc:
If you are already running LOS 18, you just need to flash LOS 20 in system partition, nothing else. Just read update in first post, you will need to toggle one setting to have incoming volte calls. That's it.
[Upgrading, Modifying and Unlocking] OwedtAlex:
OK, many thanks - I'll give it a try!
[Upgrading, Modifying and Unlocking] OwedtAlex:
I have now successfully installed LOS 20 with help from nuttydoc and his excellent installation guide. All went well with no traumas and the phone is performing as expected. Really pleased with the progress on this phone and will be looking out for any further modifications from the knowledgeable contributors to this thread.
[Upgrading, Modifying and Unlocking] OwedtAlex:
Has anyone been able to make the physical speaker key to work on the CAT S22 running LOS20? The speaker works OK when the GUI speaker symbol is pressed, but not the physical key. I have tried to get it to work using the Keymapper app but cant find an action for the speaker key.
[Upgrading, Modifying and Unlocking] debloateverything456:
Anyone know of a way to remove the swipe to unlock and go directly to pin entry when opening the phone?
[Upgrading, Modifying and Unlocking] seawildflower:
Dont set up a pin during initial setup
[Upgrading, Modifying and Unlocking] rfresh:
anyone knows how to get S22present app to work? somehow I lost root access, and when I use magisk to flash the patched boot file again, it does nothing

Sent from SM-S918U1 using ReLabs
[Upgrading, Modifying and Unlocking] magmu:
Since I wanted mine to have a pin still, I used the button remapper to bring back the tab key and am using Shizuku so I dont have to root. I can instead just hit the tab button and then hit select and do my code.
[Upgrading, Modifying and Unlocking] MargoSizemore:
We keep getting

Resizing 'system' OKAY [ 0.005s]
error: write_sparse_skip_chunk: don't care size 328796884 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 60365524 is not a multiple of the block size 4096
Sending sparse 'system' 1/3 (262140 KB) error: write_sparse_skip_chunk: don't care size 328796884 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 328796884 is not a multiple of the block size 4096
OKAY [ 6.751s]
Writing 'system' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed

on our phone
[Upgrading, Modifying and Unlocking] MargoSizemore:
Okay, turns out we needed to extract the xz image, but not the img image. Now we just get stuck on the CAT logo when turning on. What not?
[Upgrading, Modifying and Unlocking] MargoSizemore:
We've discovered that it only turns on when plugged in, but if we try to turn it on and then plug it in, the screen doesn't turn on but windows still detects a device.
[Upgrading, Modifying and Unlocking] nuttydoc:
First boot may take some time, also you need to go to recovery and do factory reset/clear cache.
[Upgrading, Modifying and Unlocking] Shoitah:
Can this guide be used to enable the CAT s22 to work on Verizon? It doesn't work by default, but will it work with the Qualcomm Ims?
[Upgrading, Modifying and Unlocking] nuttydoc:
stock android 11 already have ims. If it doesn't work with Verizon, LOS is unlikely to help.
[Upgrading, Modifying and Unlocking] Shoitah:
I hear. Though if anyone has a Verizon sim lying around that they could try it out with, I'd love to find out!
[Upgrading, Modifying and Unlocking] MargoSizemore:
Waiting on the black screen doesn't do anything, and I can't seem to get to recovery mode to get to fastbootd.
[Upgrading, Modifying and Unlocking] MargoSizemore:
We may just be dumb, because the battery was dead. We'll leave it on the CAT logo overnight and see how it goes.
[Upgrading, Modifying and Unlocking] MargoSizemore:
Nope, still stuck after 9 hours
[Upgrading, Modifying and Unlocking] nuttydoc:
Kindly write all the steps you did, before getting this error.

You can use "power+vol.down" to go into bootloader, from there you can use "fastboot reboot fastboot" to go into fastbootd, where you can choose recovery from options to boot into recovery. If you are able to use fastboot, you can reflash/recreate all partitions and recovery your device. Logical partitions ( system/vendor/product) can be managed from fastbootd, while other partitions (boot/recovery etc.) are managed from bootloader.
[Upgrading, Modifying and Unlocking] MargoSizemore:
We deleted the partitions mentioned in the thread, and then flashed the LOS 21 image, and then cleared the data and cache. So just reflash all partitions in the return to stock post?
[Upgrading, Modifying and Unlocking] MargoSizemore:
guh??? we are. thoroughly confused
[Upgrading, Modifying and Unlocking] nuttydoc:
To create partition

To create product partition use "fastboot create-logical-partition product 0"

Command for deleting scratch is same as deleting product, "fastboot delete-logical-partition scratch"

Partitions are resized automatically, so you can use any small number after partition name for size, like 0 in above example.
[Upgrading, Modifying and Unlocking] debloateverything456:
I'm also interested in installing a custom ROM on this device. Do you need a factory unlocked one, or is a carrier-locked device (T-mobile) okay? Some devices I have had in the past would only allow bootloader unlocking in their factory unlocked versions.
[Upgrading, Modifying and Unlocking] seawildflower:
I assume you will be able to unlock the device by calling the carrier. But that's a law where I am from. Not sure if that applies in the states.
[Upgrading, Modifying and Unlocking] debloateverything456:
It's a little more complicated in the US. You can get a carrier unlock that way, but a carrier unlocked device does not necessarily have an unlockable bootloader. For example, the Verizon version of the Pixel 3a is not able to be bootloader unlocked, even if it has been carrier unlocked. However, the factory unlocked version can always be bootloader unlocked.
[Upgrading, Modifying and Unlocking] seawildflower:
Weird. Anyway the unlocked phones are 80 usd on Amazon. I bought 2 lol. But sorry I can't answer your question I guess. I don't even have the phone yet and they will supposedly unlocked when I get them tomorrow
[Upgrading, Modifying and Unlocking] debloateverything456:
Do you have the link for them?
[Upgrading, Modifying and Unlocking] seawildflower:
Cat S22 Flip (16GB) 2.8" Touchscreen, Android 11, IP68 Water Resistant, 4G LTE GSM (T-Mobile Unlocked for MetroPCS, Global) (Black) https://a.co/d/1tBnzxZ

I bought mine from Amazon.ca so that's not the same vendor as I purchased from. Here's that one

CAT S22 Rugged Flip Phone Unlocked (16GB) 2.8" Touchscreen Smart Cell Phone Android 11, IP68 Water Resistant, 4G LTE GSM Single Sim (Black) New https://a.co/d/0RMmev9