yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A22 5G] Could-Chaplain:
How to get TWRP log files:​

recovery.log

adb pull /tmp/recovery.log

OR

Advanced -> Copy Log -> Swipe to copy log to default storage

dmesg

adb shell dmesg > dmesg.log

OR

Advanced -> Copy Log -> check "Include kernel log" -> Swipe to copy log to default storage

logcat

adb logcat -d > logcat.txt

OR

Advanced -> Copy Log -> check "Include Logcat" -> Swipe to copy log to default storage
[Samsung Galaxy A22 5G] Could-Chaplain:
Changelog​

v2.00.1-alpha​

bump firmware and touchscreen drivers to A226BXXU4BVF7 and TWRP to TWRP-12.1

v1.02.2-alpha​

added drivers for himax touch screens.

v1.02.1-alpha​

added drivers for novatek touch screens.

v1.01.2-alpha​

added patch with improved multidisabler

v1.01.1-alpha​

update multidisabler

v1.01.0-alpha​

fix permission for mkbootimg

v1.00.0-alpha​

Initial Release
[Samsung Galaxy A22 5G] Platypus Enthusiast:
This has been tested, right? If it does work, I'll probably try it out when I have free time, which might be in a few days.
[Samsung Galaxy A22 5G] Could-Chaplain:
Yes, it runs on my A22 5G.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
It worked. But I didn't read your post carefully and now I have to format data :/

Edit: Ran multidisabler twice. On the second time, it said that /system was an invalid argument

Edit2: Trying to mount partitions don't work, like trying to make a backup or using the file manager. Speaking of backups, I didn't format data because I really don't want to, and it rebooted safely (Thank god), so now I'm making a backup of apps I should have made a week ago.
[Samsung Galaxy A22 5G] Could-Chaplain:
It's the same for me, but no issues so far.

That will be because you didn't format data. If I find sometime, I will try to reproduce that. Thank you, for testing.

Edit: Backups should work fine if you uncheck data?
[Samsung Galaxy A22 5G] a0963655966:
Is the A226BZH3AUL1 suitable？
[Samsung Galaxy A22 5G] Could-Chaplain:
If your device is a SM-A226B you should be fine. But as always, flash at your own risk.
[Samsung Galaxy A22 5G] lebigmac:
Works great! Thanks! Keep up the good work! (y)

Any idea why adb shell doesn't work? For the same reason why /data isn't mountable?
[Samsung Galaxy A22 5G] koosman911:
Thank you! Going to test asap.
[Samsung Galaxy A22 5G] Could-Chaplain:
/data is most likely not mountable because you didn't run multidisabler twice and formatted data? ADB shell works fine for me, check in device manager that it shows up as ADB Interface.
[Samsung Galaxy A22 5G] koosman911:
Tested working, but haven't succeeded flashing a gsi yet, phone reboots and then goes to blank black screen, and ideas?
[Samsung Galaxy A22 5G] Could-Chaplain:
Honestly, it could be everything. Just go over How to flash again. But this time without vbemta and multidisabler. Then continue as described in How to flash GSI. Please let me know if that works for you.

I recommend Pixel Experience.
[Samsung Galaxy A22 5G] koosman911:
Are you using pixel experience on your device currently?
[Samsung Galaxy A22 5G] Could-Chaplain:
Yes and no, currently I am working on TWRP and there for flash the stock Rom quite frequently. But I do plan to use Pixel Experience. The only thing that does not work is NFC. But that seems to be the case with all the GSI I could find, as they are all based on phh.
[Samsung Galaxy A22 5G] Could-Chaplain:
Hey Guys, I did some work on the TWRP recovery. It's now more reliable, I highly recommend the update. You will find the download link and updated instructions at the top.
[Samsung Galaxy A22 5G] koosman911:
Thank you sir, updated recovery works perfectly on two separate phones so far, I've flashed a few gsi's and they work as far as they are able to obviously each gsi might have its own issues, the two phones I have don't have Nfc so I can't help to test that sadly. We appreciate the hard work.
[Samsung Galaxy A22 5G] Could-Chaplain:
Thank you. What other phones despite the A22 5G are you using the recovery with?

Edit: Ahhh, you mean, you have nothing to test NFC with?
[Samsung Galaxy A22 5G] koosman911:
The model of a22 5G available in my country does not have nfc.
[Samsung Galaxy A22 5G] Oswald Boelcke:
Hello and good afternoon, @wfire06 Welcome to XDA! I hope you'll always get the support you require and have enjoyable times on our Forums.

However, paid services websites are in violation of rule no. 13 of the XDA Forum Rules and in turn links or references to or promotion of such websites are not accepted on XDA! I've edited your above quoted post. In future, please refrain from sharing links or references to such sites. Thanks for your cooperation.

Regards

Oswald Boelcke

Senior Moderator
[Samsung Galaxy A22 5G] wfire06:
Good morning, indeed this site offers paid things, but the link offered and free for downloads just registrations required (all dl magisk for each fw are free) Sincerely
[Samsung Galaxy A22 5G] Oswald Boelcke:
First, we generally don't allow links to paid service websites even if a single download might be for free. But if a registration is required we've additionally a violation of rule no. 11 of the forum rules.

It looks to me you haven't studied our rules yet although you agreed to adhere to them when you registered 3 days ago. It might be worth to do now in order to avoid future consequences to your account.

Regards

Oswald Boelcke

Senior Moderator
[Samsung Galaxy A22 5G] wfire06:
Good morning, I wanted to know if what's in red is normal? It's by flashing magisk 27.0 which works well by the way, and I got the trace via the twrp sideload THANKS

View attachment 6105118
[Samsung Galaxy A22 5G] Could-Chaplain:
yes that's normal, no need to worry.
[Samsung Galaxy A22 5G] wfire06:
thank you for your feedback, however when I want to do a backup via twrp, it bugs because I get the unmount mount/data error
[Samsung Galaxy A22 5G] awzx:
Now go to Wipe → Format Data (not wipe) → and type yes.

Will I lose my data here? apps and their data?
[Samsung Galaxy A22 5G] AI LIFE8:
lineage gsi works great, minus nfc and 5g wifi hotspot, those never worked on gsi for all device ive tested

crdroid gsi stuck at boot animation
[Samsung Galaxy A22 5G] AI LIFE8:
yes but it is ok, after unlock bootloader theres nothing left anyways
[Samsung Galaxy A22 5G] koosman911:
Pixel Experience Plus build

SP2A.220505.002

PixelExperience_Plus_treble_arm64_bvN-12.1-20220518-2119-UNOFFICIAL running stable on my devices all features working.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Data wasn't an option in the backup menu ¯\_(ツ)_/¯
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Where can I download this, may I ask? There isn't official Pixel Experience support for the A22 5G (guessing from a quick Google search). I'd like to replace One UI... Not that it's bad, it's great, but Pixel Experience looks cooler.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Accidentally sent 2 replies
[Samsung Galaxy A22 5G] koosman911:
Releases · ponces/treble_build_pe

Script and patches for building PHH-Treble Pixel Experience - ponces/treble_build_pe

github.com
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Oh, so it's a GSI. Should I get AB, AB slim, or Vndk-lite?
[Samsung Galaxy A22 5G] koosman911:
Yeah GSI I think it's going to be a while before someone does a rom, I'm using AB at the moment, didn't test the rest. Remember to enable headphone options in Phh Treble settings for your headphones to work.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Can you add a list of what's new in the post?
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Flashed the AB Pixel Experience GSI, it worked. There wasn't anything wrong except for Invalid sparse file format at header magic during the fastboot part.
[Samsung Galaxy A22 5G] koosman911:
Good to hear, yeah that is pretty common, I'm sure one of the developers can explain what it means, I have no idea myself.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
The fact that the clock is slightly covered by the upper left corner is bothering me a lot.
[Samsung Galaxy A22 5G] Could-Chaplain:
You can adjust that in settings, I don't recall what's called. But something like "rounded corner radius" set it to 50 and you should be good.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Device suddenly not appearing with MTP enabled, huh. Couldn't find a relevant setting in PHH Treble thinking that was the issue, I have developer options and USB debugging turned on, set to File transfer. Anyone else?

Edit: Recovery MTP works (mostly) fine, don't worry.

Edit2: Don't use ADB, it sucks.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Worked, thanks 👍
[Samsung Galaxy A22 5G] Akaschinf:
For me flashing TWRP worked (using heimdall) and it starts fine. But in TWRP touch is not working, so no user interaction is possible.

connecting with adb wihle booted into TWRP works, and i cann issue twrp command line commands. I have executed multidisabler via adb shell without problems.

If I try to flash a gsi via Fastboot I only get

Sending 'system' (2436984 KB) FAILED (remote: 'unknown command')

Any Ideas?
[Samsung Galaxy A22 5G] Could-Chaplain:
Die you boot to Fastboot via the reboot menu in TWRP?
[Samsung Galaxy A22 5G] Akaschinf:
I have rebooted via

adb shell twrp reboot bootloader

as i can't intercat with the UI due to the missing touch input. I hoped it would do the same as the UI. The fastboot screen look the same as before installing twrp
[Samsung Galaxy A22 5G] koosman911:
Install windows in a vm if you running Linux and use Odin,
[Samsung Galaxy A22 5G] lebigmac:
You got me. Is it bad if I didn't install the multidisabler at all? I wanted to keep things simple.

Root works and I can boot into TWRP as well. That's all I wanted. I am happy now :D Thank you! (y)

My only problem is this:

How to make it permissive? On Xiaomi devices you can simply run the command setenforce 0 as root user and it will just work straight out of the box... Oh no Samsung what did you do! First you give us a fake fastboot and now this? Seriously? You have got to be kidding me! 😒

View attachment 5632043

And how to get rid of this annoying warning message during boot?

And what about this annoying spam message during boot? How to get rid of it? Thanks (y)

I don't know why it's saying that my device isn't running official Samsung software. My device IS running stock Samsung firmware after all...

God what did I get myself into with this brand new Samsung device...

If multidisabler can get rid of those 2 annoying popup messages during boot procedure, in that case I will run it more than only twice. Probably at least a dozen times ;)(y)
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Multidisabler doesn't fix that unfortunately... There are some tutorials for extracting up_param.bin and photoshopping the image files to get rid of the warnings, but didn't work for me.

About SELinux, there's this app that might help. Link. A bit outdated but it works great.
[Samsung Galaxy A22 5G] Could-Chaplain:
You are the second person reporting issue with the touchscreen, please pm me the dmesg.log and recovery.log.
[Samsung Galaxy A22 5G] joaoppecurto:
Is the unnoficial lineage os 12 gsi stable enough? If not will use los 11.

Link: https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list

Thanks op for twrp will try it for SM-A226B once I can :)
[Samsung Galaxy A22 5G] VauganBIS:
Recovery work for me but I have not input, screen not respond

I have a A226B
[Samsung Galaxy A22 5G] VauganBIS:
Please! Someone has an idea? help me... my fingers becames bloddy :D

Tactile not respond for me too on twrp
[Samsung Galaxy A22 5G] joaoppecurto:
I've tried several times I can't flash twrp. Am I doing something wrong? Already have unlocked bootloader, adb+fastboot drivers, device appears on command line and odin. Full model: SM-A226B/DSN

Edit:

It's working now didn't know download mode was required...

But I have same problem as @VauganBIS so 4 people total with problems with touchscreen... There's other way for us to activate multidisabler and format data??
[Samsung Galaxy A22 5G] joaoppecurto:
Please can you help? What is the command for multidisabler?
[Samsung Galaxy A22 5G] Akaschinf:
just boot into twrp and get a shell with adb shell. Then you can execute multidisabler as a command directly
[Samsung Galaxy A22 5G] joaoppecurto:
Ive lost system so I just installed stock firmware. Will wait for the twrp touchscreen to be working. But thanks will take a note 😁
[Samsung Galaxy A22 5G] Could-Chaplain:
Hi, please pm me the dmesg.log and recovery.log.
[Samsung Galaxy A22 5G] Could-Chaplain:
Hi, please pm me the dmesg.log and recovery.log. For me, the touch works fine, so I need some help to help you :D.
[Samsung Galaxy A22 5G] joaoppecurto:
so how did you flashed successfully? tried 3 different adb & fastboot tools always getting remote unknown command ahah
[Samsung Galaxy A22 5G] Could-Chaplain:
Sounds like you are in Samsung fastboot and not fastbootd from twrp. I don't know if you can reboot to fastbootd without touch.
[Samsung Galaxy A22 5G] Could-Chaplain:
You get this message because of vbmeta and the recovery.
[Samsung Galaxy A22 5G] atom2662:
Sadly i think i bricked my phone, every so often the samsung logo shows, and i cannot get into download or recovery mode... any advice?
[Samsung Galaxy A22 5G] koosman911:
The instructions are so clear and easy my friend, 8 don't know what to say, make sure you're using the correct Odin and have your driver's in order, no other advice I can give, I've done about 15 a226b devices now without fail.
[Samsung Galaxy A22 5G] lebigmac:
How to get out of annoying Samsung bootloop
[Samsung Galaxy A22 5G] a0963655966:
Too powerful, I because the phone installed the module relationship is not right, two times to change the brick, twice after the recovery I will also install your twrp, everything is safe no problem, very good, but after the installation found the problem, the last program in the terminal input (yes),

Why the entire y-column appears
[Samsung Galaxy A22 5G] a0963655966:
Now twrp also has it, the only thing that is most unhappy is that viper4 is always unusable in my a22
[Samsung Galaxy A22 5G] a0963655966:
Has anyone successfully started viper4? If any will you teach me
[Samsung Galaxy A22 5G] Could-Chaplain:
Hi, your question is off-topic. Please open up a new thread.
[Samsung Galaxy A22 5G] a0963655966:
sorry
[Samsung Galaxy A22 5G] Could-Chaplain:
If you had trouble with the touch screen, give the new release a try. It should be fixed. Thanks to @joaoppecurto for testing.
[Samsung Galaxy A22 5G] joaoppecurto:
I even tried flashing aosp official GSI, twrp fastboot working fine. A little off-topic but 5G isnt working with this GSI
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Turn on Legacy mode in the V4A app. I was very lucky to find this XDA thread which helped me a lot with my Galaxy S4 (RIP, you will be missed) and my current A22 5G.

Navigate to /data/adb/modules/ViPER4AndroidFX (in root) and open post-fs-data.sh. Enter a new line and paste:

magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'
magiskpolicy --live 'allow mtk_hal_audio sysfs_dt_firmware_android file { read }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio process { execmem }'
magiskpolicy --live 'allow vendor_default_prop vendor_default_prop file { read }'
magiskpolicy --live 'allow mtk_hal_audio metadata_file dir { search }'
magiskpolicy --live 'allow mtk_hal_audio debugfs_ion dir { search }'

then save the file, and reboot. Should work now.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Anyone else getting:

E: Unable to unlock /dev/block/mmcblk0p[number] for flashing: (null).

Not sure if it's normal or not because I also get something similar in the Magisk logs.
[Samsung Galaxy A22 5G] Could-Chaplain:
it's normal
[Samsung Galaxy A22 5G] potato0:
I have the same problem, but no matter what I do, the phone still restarts on the Samsung logo
[Samsung Galaxy A22 5G] potato0:
Are there any other installation options?
[Samsung Galaxy A22 5G] potato0:
How did you solve this problem?
[Samsung Galaxy A22 5G] a0963655966:
lucky,succeed
[Samsung Galaxy A22 5G] atom2662:
Hi, I successfully got the twrp installed, but when i try to flash a gsi, my command prompt simply displays <waiting for any device>, any help???
[Samsung Galaxy A22 5G] atom2662:
Forget that, anyway when i try to flash a gsi which partition should i flash it to? "boot" partition doesn't work
[Samsung Galaxy A22 5G] potato0:
Fastboot flash system namegsi.img
[Samsung Galaxy A22 5G] atom2662:
still get the < waiting for any device> thing
[Samsung Galaxy A22 5G] potato0:
You had to go to fastboot via twrp, did you go there? Try to reinstall the driver, I used lib usb
[Samsung Galaxy A22 5G] atom2662:
View attachment 5648839I am not sure what to do at this point
[Samsung Galaxy A22 5G] potato0:
And you have it with all the firmware?
[Samsung Galaxy A22 5G] atom2662:
TWRP told me that there is no OS installed on the system

many thanks for your patience too
[Samsung Galaxy A22 5G] potato0:
Try to download this firmware and install https://sourceforge.net/projects/tr.../crdrom-v224-201019-arm64-bgN.img.xz/download
[Samsung Galaxy A22 5G] atom2662:
View attachment 5648845This is the result
[Samsung Galaxy A22 5G] potato0:
You did not unpack the image, unzip it using 7zip or winrar, then move the img image to the platform tools folder and write the command again
[Samsung Galaxy A22 5G] atom2662:
View attachment 5648849

I think that I possess no system firmware
[Samsung Galaxy A22 5G] potato0:
Did you do everything exactly as instructed?
[Samsung Galaxy A22 5G] atom2662:
View attachment 5648869Sorry for that, I thought that the first picture didn't send

this is my result after unpacking it
[Samsung Galaxy A22 5G] potato0:
Try to download this platform tools https://drive.google.com/file/d/1-8XrIml9n_rJvLT0XZqDMI6zXolVI7Gm/view?usp=drivesdk in the platform tools folder, run the cmd-here.exe file
[Samsung Galaxy A22 5G] atom2662:
View attachment 5648893

this is the result when doing it on cmd-here.exe

do i need to restore stock firmware?
[Samsung Galaxy A22 5G] potato0:
Well, try to restore the stock firmware and then flash the firmware that you flashed through platform tools, the one that I sent you
[Samsung Galaxy A22 5G] Could-Chaplain:
There is new release candidate which include the drivers for himax touchscreens. If you still have no touch input in twrp, try out this release v1.02.2-alpha-rc. Let me know if it works for you.

EDIT: Confirmed working.
[Samsung Galaxy A22 5G] rintala@hakunila.com:
Does vb meta disabled and twrp working on android 12?
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Just a guess, but probably.
[Samsung Galaxy A22 5G] rintala@hakunila.com:
I couldn't get android 12 twrp and vb disbled to work
[Samsung Galaxy A22 5G] Could-Chaplain:
What do you mean with android 12? Is there an official android update by Samsung for the sm-a226b?
[Samsung Galaxy A22 5G] Kirkirgoro:
Yes, android 12 update for samsung a22 5g is out. Thailand region.
[Samsung Galaxy A22 5G] koosman911:
Are you in one of those regions and using official Android 12 if you are is it working well?
[Samsung Galaxy A22 5G] Kirkirgoro:
I'm not in that region but Android 12 works great. Android 12 is coming soon in my region.
[Samsung Galaxy A22 5G] a0963655966:
I am Taiwanese and twrp is not available when I update the A12

View attachment 5668201
[Samsung Galaxy A22 5G] Logilype_:
I have 2 A22 5Gs and somehow I can't get to twrp and I get the nasty bootloop every time on both phones. I flashed both partitions with Heimdall like this:

recovery.tar -> recovery partition

vbmeta_disabled_R.tar -> user data partition

On this second tar file, Heimdall can't get the info, if the session ended.

Any idea how to get phones back to normal?
[Samsung Galaxy A22 5G] rintala@hakunila.com:
Can someone do vb meta disabled for android 12, if thats the case why im cant success to instal twrp?
[Samsung Galaxy A22 5G] Logilype_:
What do you mean you can't install TWRP? I can't install custom rom a12 for some reason
[Samsung Galaxy A22 5G] rintala@hakunila.com:
even if I put twrp ap slot and vbmeta_disabled to userdata in odin, I can't boot into twrp recovery. will bootloop. is that vbmeta_disabled r for android 11 firmware? How to do that vbmeta disabled? If i try to do that it myself?
[Samsung Galaxy A22 5G] Logilype_:
R stands for the codename for Android 11, so I think it's meant for Android 11, not 12. 12 is S
[Samsung Galaxy A22 5G] Could-Chaplain:
it does work with android 12, but only if you use a GSI.
[Samsung Galaxy A22 5G] Platypus Enthusiast:
Have you already updated to Android 12? Download the Android 11 firmware from a trustworthy source like Sammobile or Samloader and flash that through Odin, then use the VBMeta.
[Samsung Galaxy A22 5G] Logilype_:
I'm planning to build a custom rom for the A22
[Samsung Galaxy A22 5G] rintala@hakunila.com:
When??
[Samsung Galaxy A22 5G] fede2782:
Hi, I would like to install a GSI on my A22 5G. But I have a question. Does this twrp works on Android 12, if yes does the VBmeta disabler works too, because I saw that the name says Android R (11). Thanks for the help
[Samsung Galaxy A22 5G] Could-Chaplain:
It's based on the android 11 firmware, which has to be installed. But you are fine installing a Android 12 GSI. So Android 11 Firmware for TWRP and Android 12 in the GSI.
[Samsung Galaxy A22 5G] fede2782:
But can I do a roll back? Because bootloader has been updated with One Ui 4
[Samsung Galaxy A22 5G] Could-Chaplain:
I guess, but I haven't done it myself.
[Samsung Galaxy A22 5G] a0963655966:
But is Gsi usually unstable? Worried about more trouble in the future, or how do I downgrade the version? You are very professional, I must consult you
[Samsung Galaxy A22 5G] Could-Chaplain:
I don't use this phone as a daily driver, so I can't tell you. Also this thread is about TWRP and not about GSI's.
[Samsung Galaxy A22 5G] fede2782:
I found that the device tree supports Android 12 so I can build it for Android 12. And I found that magisk can patch twrp for me. Than I can flash VBmeta in Odin or Fastboot, if twrp works.
[Samsung Galaxy A22 5G] Could-Chaplain:
It does not support android 12.
[Samsung Galaxy A22 5G] fede2782:
But in the device tree repo there is twrp-12.1 branch
[Samsung Galaxy A22 5G] Could-Chaplain:
That does not mean that it works. But of course you can go ahead and build it. Do a pull request if you are successful.
[Samsung Galaxy A22 5G] fede2782:
Ok, have a nice day
[Samsung Galaxy A22 5G] a0963655966:
成功了，給我發消息，教我，謝謝
[Samsung Galaxy A22 5G] potato0:
Will there be any updates?
[Samsung Galaxy A22 5G] venom2106:
Works great
[Samsung Galaxy A22 5G] Could-Chaplain:
To TWRP-12, yes. But it will take time. I am currently busy and as TWRP-11 works great it is not a high priority for my self.

Edit: In fact I already started but the android 12 build config is different, and I didn't had time to read through the documentation yet.
[Samsung Galaxy A22 5G] fede2782:
Does anyone know if you can roll back to a previous build? I'm asking this because in the latest changelog I found written that due to security you will no longer be able to downgrade. I hope this is not like the Pixel 6 Android 13 update because I really want to test a GSI.