yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Yuki1001:
I think you aren't doing it wrong.

Would you like to send me the erofs image? I can try it on my computer.

Cheers.
[Android Software Development] lebigmac:
My internet is really bad right now but you can download the whole thing here if you want.

Don't worry Yuki1001. A couple more days and I should be able to release an updated version of my script with EROFS support (thanks to your amazing guide) ;)(y)
[Android Software Development] lebigmac:
It works!!! I still can't believe how easy it was!

@Yuki1001 you sir are an angel! Thank you so much for your help! :D(y) Did God send you to help me fix my script? :unsure:
[Android Software Development] lebigmac:
Is this the official erofsunpackrust tool?
[Android Software Development] Lost_Animal:
@Yuki1001 your tool is just AWESOME and thank you.

Is it possible to have a Linux (Ubuntu) Version to use it for ROM Kitchen and make ROMs from my PC ?

Thanks in advance for your response

Best Regards

Dimitris
[Android Software Development] lebigmac:
@Lost_Animal linux version will be available later this year ;)(y)
[Android Software Development] Lost_Animal:
Thank you my friend and I wish you a happy new year 2023 to you and your family
[Android Software Development] lebigmac:
Hi @Yuki1001 thanks to your excellent guide I was able to bring my old MakeRW / ro2rw procedure to the next level and equip it with full EROFS support :love:(y) (full F2FS support coming in 1st quartal 2023 !).

Soon I should be able to plug the one and only MakeRW / ro2rw by lebigmac properly into my old SystemRW / SuperRW v1.32 script and hence bring it to the next level too. That new v1.33 that I released the other day was a bit rushed and needs some more polishing and experimenting to increase compatibility with various different phone manufacturers and sub-partition structures :ROFLMAO:🥼🔬

Thank you same to you 🖐:D
[Android Software Development] zingrx:
@Yuki1001 thanks a lot man for this amazing detailed thread.

I need your support as I'm stuck in the step of repacking super.img file.

I'm getting the following error:

[liblp]Partition should only have linear extents: system_dlkm_b

And here's my script for `lpmake`

lpmake \
--output ./super.new.img \
--metadata-size 65536 \
--super-name super \
--metadata-slots 2 \
--device super:9663676416 \
--group main:3418062848 \
--partition product_a:readonly:892547072:main --image product_a=./product_a.img \
--partition product_b:readonly:0:main --image product_b=./product_b.img \
--partition vendor_a:readonly:1512812544:main --image vendor_a=./vendor_a.img \
--partition vendor_b:readonly:0:main --image vendor_b=./vendor_b.img \
--partition vendor_dlkm_a:readonly:37298176:main --image vendor_dlkm_a=./vendor_dlkm_a.img \
--partition vendor_dlkm_b:readonly:0:main --image vendor_dlkm_b=./vendor_dlkm_b.img \
--partition mi_ext_a:readonly:4096:main --image mi_ext_a=./mi_ext_a.img \
--partition mi_ext_b:readonly:0:main --image mi_ext_b=./mi_ext_b.img \
--partition odm_a:readonly:4096:main --image odm_a=./odm_a.img \
--partition odm_b:readonly:0:main --image odm_b=./odm_b.img \
--partition system_a:readonly:623689728:main --image system_a=./system_a.img \
--partition system_b:readonly:0:main --image system_b=./system_b.img \
--partition system_ext_a:readonly:351506432:main --image system_ext_a=./system_ext_a.img \
--partition system_ext_b:readonly:0:main --image system_ext_b=./system_ext_b.img \
--partition system_dlkm_a:readonly:102400:main --image system_dlkm_a=./system_dlkm_a.img \
--partition system_dlkm_b:readonly:0:main --image system_dlkm_b=./system_dlkm_b.img \
--sparse
[Android Software Development] Yuki1001:
I think you can divide slot a partitions and slot b partitions to 2 different groups. The number of groups should be equal to the the number of slots.
[Android Software Development] Techrom:
@Yuki1001 Quero agradecer por disponibilzar tal procedimento.

segui conforme publicado mais recebo o seguinte erro ao criar a super.

no terminal informa que, O dispositivo de bloco deve ter um tamanho válido.

só que o tamanho device super é o mesmo da super.ext4.img

como reverter essa situação?

Mod translation:

@Yuki1001 I want to thank you for making such a procedure available.

I followed as published but I get the following error when creating the super.

in the terminal it says that, The block device must have a valid size.

but the device super size is the same as super.ext4.img

how to reverse this situation?

--sparse --metadata-size 65536 --super-name super\

--metadata-slots 2 --device super:3221225472\

--group slot_a:%SUPER_SIZE%\

--group slot_b:0

--image system_a=./system_a.img --partition system_a:none:%SIZE%:slot_a\

--image vendor_a=./vendor_a.img --partition vendor_a:none:%SIZE%:slot_a\

--image product_a=./product_a.img --partition product_a:none:%SIZE%:slot_a\

--image vendor_dlkm_a=./vendor_dlkm_a.img --partition vendor_dlkm_a:none:%SIZE%:slot_a\

--image system_b=./system_b.img --partition system_b:none:0:slot_b\

--image vendor_b=./vendor_b.img --partition vendor_b:none:0:slot_b\

--image product_b=./product_b.img --partition product_b:none:0:slot_b\

--image vendor_dlkm_b=./vendor_dlkm_b.img --partition vendor_dlkm_b:none:0:slot_b\

Block device must have a valid size.
[Android Software Development] Yuki1001:
Replace all "%SIZE%" "%SUPER_SIZE%" with the real size of your img file/partition.
[Android Software Development] Techrom:
Grato pela sua atenção.

Porém o erro persistem.

--sparse --metadata-size 65536 --super-name super\

--metadata-slots 2 --device super:3221225472\

--group slot_a:1373237248\

--group slot_b:0

--image product_a=./product_a.img --partition product_a:none:145203200:slot_a\

--image system_a=./system_a.img --partition system_a:none:1094914048:slot_a\

--image vendor_a=./vendor_a.img --partition vendor_a:none:125677568:slot_a\

--image vendor_dlkm_a=./vendor_dlkm_a.img --partition vendor_dlkm_a:none:7442432:slot_a\

--image product_b=./product_b.img --partition product_b:none:0:slot_b\

--image system_b=./system_b.img --partition system_b:none:0:slot_b\

--image vendor_b=./vendor_b.img --partition vendor_b:none:0:slot_b\

--image vendor_dlkm_b=./vendor_dlkm_b.img --partition vendor_dlkm_b:none:0:slot_b\

Block device must have a valid size.
[Android Software Development] fahad15090:
Can this guide also work on huawei erofs super.img for place some gapps in it !
[Android Software Development] Yuki1001:
If you could unlock the bootloader of your huawei device, it may work. I don't really know the system of EMUI since huawei had stopped the bootloader unlock service.
[Android Software Development] Yuki1001:
Place every --partition before --image and make sure the sum of all sizes of partitions equal to the super size - metadata size or just the super size.

PS: English please. Thanks!
[Android Software Development] fahad15090:
Frl l21 ,unlocked try first with some script that flash gapps or change system to rw but failed,so i decided to rebuild fs with modified super.img put gapps & permissions in specific according to gapps.zip script!
[Android Software Development] skyboii1986:
hello and thank you for all your hardwork and effort. i have been trying to convert stock android firmware (moto 5g stylus 2023 - genevn) erofs to ext4. i've tried multiple scripts and they've all failed. i always get bootloop. so im resorting to manually trying. so far im at using imjtool.ELF64 to extract to unpack super, then using erofsunpackrust for the images inside super, editing /system/etc/fstab.postinstall, /vendor/etc/fstab.qcom by copy and paste erofs lines then changing the copied 'erofs ro,' line to 'ext4 rw'. im not sure where to go from here. in all the scripts ive tried to use it tells me now is the time to delete things . any help or guidelines is highly appreciated. also ive seen on a random post somewhere that all he needed to do after converting erofs to ext4 is change the fstab in boot.img? i was not able to find fstab in boot.img
[Android Software Development] KyawZin38:
make_ext4fs -J -T 1199145600 -S system/config/system_file_contexts

.txt -l 857972736 -C system/config/system_fs_config -L system -a system system_a.img system/system

loaded 3699 fs_config entries

Creating filesystem with parameters:

Size: 857972736

Block size: 4096

Blocks per group: 32768

Inodes per group: 7488

Inode size: 256

Journal blocks: 0

Label: system

Blocks: 209466

Block groups: 7

Reserved block group size: 55

[system/acct] not found in canned fs_config, using defaults

error: build_directory_structure: cannot lookup security context for /system/acct

Failed to create image system_a.img, removing it
[Android Q&A, Help & Troubleshooting] Watchwolf:
Hello,

(I am not sure I am on the right category, sorry).

I am working on a simple GPS device, the device use Android and I add my app in system.img. Everything is ok except I can't control the LED.

The device has a simple blue led, all theses folders are empty :

/sys/class/leds/red/

/sys/class/leds/blue/

/sys/class/leds/rred/

/sys/class/leds/bblue/

/sys/class/leds/green/

/sys/class/leds/keyboard-backlight/

/sys/class/leds/sprdbat_charging_led/

Do you have an idea about how I can set on/off the led ?

The tracer is based on sp9820e_1h10 with Android kitKat

Thank,
[Android Q&A, Help & Troubleshooting] Oswald Boelcke:
Hello and good morning, @Watchwolf

Welcome to XDA. I hope you'll always find and get the support you require.

However, prior to your next posting please read the guidances that are stuck on top of every forum like

Note: Questions go in Q&A Forum

If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...

xdaforums.com

and the others. I've moved the thread to Android Q&A.

Thanks for your cooperation!

Regards

Oswald Boelcke

Senior Moderator
[Android Q&A, Help & Troubleshooting] Watchwolf:
Thank you Oswald.

I have already tried to use the notification API but the LED doesn't react.

NotificationManager notifMgr = (NotificationManager) caniGPSApplication.getapplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);

Notification notif = new Notification();
notif.ledARGB = Color.argb(255, 0, 0, 255);
notif.flags |= Notification.FLAG_SHOW_LIGHTS;
notif.ledOnMS = 200;
notif.ledOffMS = 300;

notifMgr.notify(1234, notif);
[Android Q&A, Help & Troubleshooting] Watchwolf:
Finally I have found the solution.

The leds folders are not empty, I have made an error previously ...

public static void LedBlueOff() throws IOException {
BufferedWriter writer = new BufferedWriter(new FileWriter("/sys/class/leds/bblue/brightness"));
writer.write("0");
writer.close();
}

public static void LedBlueOn() throws IOException {
BufferedWriter writer = new BufferedWriter(new FileWriter("/sys/class/leds/bblue/brightness"));
writer.write("255");
writer.close();
}
[Touch HD General] Vampire2800:
I think it's NM8JDV but I'm not sure. My phone is held up in customs right now waiting for me to fill out this FCC ID form. Any help from ya'll would be fantastic. Thanks in advance.
[Touch HD General] mike91t:
On my Touch HD it's: NM8BKNV
[Touch HD General] mmdirk:
FCC ID is NM8BKNV. Find other FCC Form detail here:

http://xdaforums.com/showthread.php?t=445804
[Touch HD General] VizagDude:
Hey.. I dont know if you already figured this out.. But even I had to fill out that form when I had it shipped into NJ from UK.

Basically, I spoke with the FexEx person who called me to fill out this form as an importer for this device, advised me that I do not have to fill out the FCC ID if I am not choosing the 1st option on that form.

I choose the option that said something like, 'This device is as per the FCC standards and it can work in the US'.

So choose any other option except for the 1st one and you are good to go with out the FCC number.

Hope this helps.
[Xiaomi 12 (Global)] Yuki1001:
Disclaimer: I'm not responsible for any result of these operations. Please be careful and well prepared. Always have your important data backed up safely on other place.

Hello everyone!

As far as 2022 and Xiaomi gets their new phones updated to MIUI13 and Android 12, they implement the new read-only filesystem "EROFS" on the logical partitions inside super partition. EROFS is a filesystem initial developed by Huawei and then Google select it as a new standard to use in read only logical partition inside super partition from Android 12. The "EROFS", is the short for "Extendable (or Enhanced?) Read-Only Filesystem", conveying that this filesystem is a one-time cooked filesystem and cannot be changed without extracting and re-cooking. With erofs we cannot modify the logical partition anymore so I found a new way to unlock these partitions.

I just faced and managed to solve the "lock" and I would like to share the solution, which may help more people.

My device: Xiaomi 12 (cupid).

System: Stock MIUI13 (Android 12).

Logical partitions with read-only lock inside super partition: system, vendor, product, system_ext, odm, vendor_dlkm. All of them are erofs filesystem.

Before we start: This guide is for power users that wish to make their read-only system/vendor.... partitions with EROFS filesystem inside super read-writeable again to remove the bloatware and do more customizations to their device.

Credits:

@Yuki1001 - EROFS Guide, research, new rw discoveries.

@lebigmac - a couple of rw slogans, some binaries, inspiration.

Requirements:

1. Your phone must be unlocked as you must flash your new super.img through fastboot command. Root is required to run any command in adb shell or a terminal.

2. 20GB+ free space on your phone and PC.

3. The toolkit needed.

4. A clever brain and courage.

Steps in short:

(1) Dump and extract your super image.

(2) Pull the folder with partition images extracted from super image to the PC.

(3) Convert these erofs images to ext4 images (Extract and Rebuild). These new images are in the same folder.

(4) Push the folder to the phone and fix any errors of new generated ext4 images.

(5) Merge them into a new single sparse super image and pull it to the PC.

(6) Flash the new image through fastboot command.

(7) Check the rw capability of the logical partitions and do anything you want!

View my full guide here: https://xdaforums.com/t/guide-unive...ons-inside-super-read-writable-again.4483933/

For mods: In theory, this method is universal over all new Android12+ phones shipped with partitions using erofs inside super. So I post the content in the general android software/hacking subforum. In this subforum I preserve a thread hoping more users can see it and be benefited.

Feedbacks are always welcome!

If you think it's useful, please click the "

Like

" button. Thanks!
[Xiaomi 12 (Global)] Yuki1001:
Reserved floor #2.
[Xiaomi 12 (Global)] Yuki1001:
Reserved floor #3.
[Xiaomi 12 (Global)] lebigmac:
Hi Yuki. You did some great erofs research there. Congratulations! Keep up the good work! :D(y)

And thanks for adding me to your credits! ;)(y)

If you want to integrate your erofs discoveries into new version of my script please contact me! Thanks! Of course you would be properly credited ;)
[Xiaomi 12 (Global)] Mr Hassan:
You both can kill erofs
[Introductions] emmawaston79:
Hello everyone, I'm a bachelor's student. I'm new to the field of android development. Can anyone tell me if this is a field with a future?
[Introductions] orb3000:
Hi and welcome aboard, sure is a field with a future
[Introductions] lukilodz83:
Hi everyone,

I'm here mainly searching for info about infotainment system for Kia/Hyundai.
[Introductions] orb3000:
Hi Lucas, welcome to XDA!
[Realme 8 Pro] nadeemhaidar1:
Disclaimer: I am not responsible for bricked devices, dead SD cards, etc!

Don't Lock your device bootloader.

1.) First of all you need

laptop,

Usb data cable,

Minimal adb & fastboot setup,

firmware.

MCT ofp extractor tool.

and Your device.

Download below files.

Firmware link:

https://rms01.realme.net/sw/RMX3081export_11_C.19_2022072820470000.zip

MCT OFP extractor tool:

https://drive.google.com/file/d/1-MgGdT9fxi2LtJ1DIOxLVSM67thj9EpG/view?usp=drivesdk

Minimal adb & fastboot setup:

https://ava4.androidfilehost.com/dl/OqBAMk5-7QCuTzL-IhX9ZA/1661345244/10763459528675595887/ADB+&+FASTBOOT.rar

2.) Extract the ofp file package by mct ofp extract tool.

3.) Request to unlock your device bootloader by in-deapth test apk, once approved then you can start deep testing and unlock bootloader.

4.) connect your device with laptop.

5.) Open minimal adb & fastboot terminal.

and flash this images files by below cmd.

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot flash metadata metadata.img

fastboot flash opporeserve2 opporeserve2.img

fastboot flash recovery recovery.img

fastboot flash splash splash.img

Note: Flash this only 3 super images

fastboot flash super super.0.c5548a43.img

fastboot flash super super.1.bbada0de.img

fastboot flash super super.2.1400563f.img

fastboot flash vbmeta_system vbmeta_system.img

fastboot flash vbmeta_vendor vbmeta_vendor.img

fastboot flash vbmeta vbmeta.img

fastboot flash userdata userdata.img

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot -w

fastboot reboot

Your device will reboot to system.
[Realme X50 5G Questions & Answers] Chiongxanh223:
Tôi muốn quay lại phiên bản android 10 của realme rmx2025 nhưng google chỉ tìm thấy phiên bản rmx2051. không biết tôi có thể sử dụng rom rmx 2051 cho rmx2025 của mình không?

Mod translation via GT: I want to rollback to android 10 version of realme rmx2025 but google only found version rmx2051. i dont know can i use rmx 2051 rom for my rmx2025?
[Touch HD General] buggybug0:
Is there a program that allows me to dynamically change if/when the touch HD powers off, without me explicitly to into settings page manually?

scenario:

regularly, after i don't use my HD for say 2 minutes, the HD turns off automatically. However if I am connected to WiFi and using Live Messenger, when i leave my phone on the desk (while waiting for my buddy reply my Live messenger msg, i would like the phone to stay on (just backlight dim/off) so my WiFi doesn't get cut off and my connection to Live Messenger is alive.

I know in GSen/Gyrator, you can modify the behavior of the phone dynamically based on the application (when to rotate screen and when not to), is there such a program that will change the time-to-shut-off setting based on the running application?

thanks,

bb
[Realme 8] July904:
Since I updated to android 12, the android auto does not work for me, I have been with the mobile since October 2021 and it always worked, I use the carlinkit adapter
[Redmi Note 9 Questions & Answers] NewtonPL:
Hello,

I wanted to uninstall Google Play, but it deleted Google Services in the process, now there's no internet connection and no signal.

How do i reinstall it? Can i flash a Gapps package on top of the system?
[Redmi Note 9 Questions & Answers] NOSS8:
yeap,same gapps or Do a clean flash.
[Redmi Note 9 Questions & Answers] NewtonPL:
tried flashing gapps, i dont know what package it was because gapps were included, so i flashed nikgapps, it fixed some errors but phone was still unusable, i decided to do a clean flash.

Sadly i can't bypass signature check without bricking my phone.
[Introductions] Evanlee00:
I'm Evan.. I'm here because I see this site is much helpful for beginners like me on doing system and firmware..I hope you guys would like to help me.. Thanks
[Introductions] orb3000:
Hey Evan welcome to the forums
[Samsung Galaxy S22 Plus] karaya1:
Hi, browsing through GPS test database xls, I'm seeing that all S22/S22+/S22Ultra are capable of getting L1/L5 signals - but only if it's Exynos, not Snapdragon. Is that really like that, that Samsung only provides dual frequency GNSS with their chip, and screw things with Broadcomm? Ie. I have to be in Europe to buy a DF-capable S22?

I used to work in the GNSS industry and would love to collect and play with all the DF capabilities, plus carrier phase measurements ofc :) to do some RTK stuff and see how DF compares to SF.

Thanks!
[Samsung Galaxy S22 Plus] ZXR:
In this database the S22+ SD (SM-S906U1) have E5a and L5 support.

Only both S22 variants (SM-S901x) have no dual frequency support.
[Samsung Galaxy S22 Plus] karaya1:
Ah, sorry, I looked at it wrong, confused from all the combinations and codenames :) Anyway, even for S22+/Ultra, carrier phase is again only with Exynos, not Snapdragon :(

(Yes, I'd like to do some RTK fun stuff :) ).

Nevermind, I'll figure it out somehow. Thanks.
[Samsung Galaxy S22 Plus] ZXR:
I see, DF does not directly mean more accuracy, but also really confusing. E.g. the Exy S22 does not have dual frequency, but carrier phase. Does this make sense? Also that S.LSI,K401 is mentioned insted of Broadcom.

I can also report that beside the good accuracy, the GNSS of the S22u Exy gets more issues when being close to subjects.

Whatever, if you figure out some more details, let the forum know. :)
[Samsung Galaxy S22 Plus] Jennaadam:
I try to connect but the dual Frequency GNSS is not available in Samsung Galaxy S22 Plus.

If I am wrong please tell me? Kohl's Feedback
[Samsung Galaxy S22 Plus] ZXR:
How are you trying to check this and what is the output?
[Realme 8] sayanmitra753:
Successfully rooted. Magisk latest version..lsposed working fine.. everything working butter smooth..no error/issue occurred..😃

Currently on realme ui 2.0_A.26

View attachment 5694821
[Realme 8] RBS106:
Stark tutorial doesn't give you access to Fastboot. I prefer same thing but with this tutorial.

(devs of TH firmware are probably shutting it down, so you need to do it ASAP)

https://xdaforums.com/t/guide-rui3-unlock-bootloader-on-realmeui-3-with-deep-testing.4447831/
[Realme 8] sayanmitra753:
Yes i unlocked it using ui 3 th rom(your method)..i installed twrp and magisk using stark method..thank you both
[Touch Diamond, MDA Compact IV Themes and Apps] mithritades:
does anyone know how to get my music to play in media player...with album art or not
[OnePlus 7T Questions & Answers] 5k1tz0:
Hello, Sorry to bug you guys...I read multiple different fourms/how2s and I guess I'm a little mixed at what i should do. I Have the oneplus 7t (hd1505) with android 11 rooted, and after that I installed NikGapps after I had it rooted, then flashed nethunter. Was in the terminal as root, all was well..I believe It rebooted and would'nt boot to rom so i went and re'did magisk, may have used a different patched magisk? but now is stuck fastboot. Cant get it to boot.

Sorry for the maybes but I had brain surgry and my memories not the best. Everything was going fine so I didn't document things like normal. Anyways, Is there a program that helps with thiss? MSM somthing? or could anyone please point me in to a nice how2 or some quality links to assist? I really apprricate it, normally I'd just test till I get it, but I think I may be at a point where I could really mess it up.
[OnePlus 7T Questions & Answers] iamslimshady:
If you don't care about data then use msm tools to factory restore. Or you can flash boot image of the rom you were using (unpatched) in fastboot mode itself.
[OnePlus 7T Questions & Answers] 5k1tz0:
No need to keep data, I'd prefer to wipe device and start fresh instead of getting stuck on the concept of A/B partitions. I get the CMD getvar, but I'm not sure if i flashed the lineage OS to one or both...at 1 point i think i was booted in A, now its saying B. I got overeager and downloaded multiple ROMs and not sure which one worked. In the past I usually downloaded a few and the first one to work I used. Not smart...I know. If I wanted to wipe all and start fresh with gaspps and root, where/how should I do that? I can't just fasatboot oem unlock , could I? Would you recommend stock OS? Lineage? Thanks for your help BTW.
[OnePlus 7T Questions & Answers] ej8989:
Go to this thread for MSM Tool download and instructions: Unbrick tool to restore your device to OxygenOS