yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] miroslav_mm:
we can using system_b like cust partitions for vendors. :o Mount 2 section at the same time.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Agreed. Use system_a for the ROM. system_b for vendor HALs. Basically using system_b as cust partition so we don't need to re-partition anything.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] .:Addicted:.:
Can gpt.bin can repartition?

May be sm1 with good experience can hex edit gpt.bin

Or mass tweet #xiaomi again for reparationed gpt.bin with treble support
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Mass Tweet or going on change.org i snot going to help here. we are on our own here. The OEM's have already given reasons stating, Sending re-partition update via OTA more likely brick the devices and no OEM is ready to take the risk. OTA's work in a very different way from how we manually flash zip's on TWRP.

anyways, the solution could be were in we can use one partition for Vendor and one for ROM. Need to check other partitions as well. May be we might have some useless partition.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] majamee:
+1 for change.org
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Lol... Xiaomi is not gonna repartition the ROM just so you can flash experemntal treble partitions. as others have said we will have to use one of the two system partitions as a vendor partition, which is fine seeing as we don't use it anyway on a regular bases (only upgrades)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] majamee:
The thing is, if we could make Xiaomi understand how much easier all sub-sequent System Upgrades will be after project treble, even they might reconsider it as it will save them overall time and money throughout the supported device life span. Just saying ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
Ya they don't care, coming from the tech industry I can tell you that the risk is too big, even if 0.001% of users get their device bricked during the upgrade it's too heavy of a price
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] zeyaan:
Thanks. This is what I was trying to explain here. Even a fraction of users getting affected will result a huge loss for Xiaomi considering they sell phones at near cost to build Prices and there are other factors post sale which they need to maintain like R&D teams, service centers etc. And it's too much to handle.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sooti:
True. Also xda users are an even smaller fraction, the only reason they released the kernel sources was to complay with Google's gpl
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
But they might. Coz android p it's compulsory to implement treble. So they might do it in sometime.

They might partition themselves..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] majamee:
Do you have a link for project treble becoming mandatory in Android P?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
They haven't yet released android p yet so can't say for sure. But as u already know Oreo out of the box needs to be treble supported. But android p might only work if treble support is there.

Can't say for sure.. but I remember reading some article saying something like this..

I'm sorry I don't remember where I read the article.. tried searching for it.. couldn't find it..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mahesh2040:
There is no need to guess that... Cause from Oreo google made it mandatory to OEM for treble support, as other guy said , those devices comes with Oreo out of box must have treble support and why google will remove this thing from android P? So basically it gonna stay like this until google have different plans ( chances are very very slim but I am sure they will not revert this decision ) All the changes from previous version are taken consider in new version and latest features and changes are on top of it. In short android P devices will also have treble support mandatory
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] :
If Google was able to do it, why can't Xiaomi too? 1st Gen Pixel devices have treble support, even if they had Nougat out of the box. I think Xiaomi is too lazy to implement it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mahesh2040:
Google already know ahead of android evolution so they probably implant things already in phones like they already have kept one partition for gen 1 so that if treble come out they can support it. But that's how Google policy and there concern towards there customer, while Xiaomi have some different policies, you may notice they never release kernel source code sooner ( they want people to adapt MIUI , Not custom roms, plus the kernel source they release is messy and they don't even bother to rectify it ).. they will release it when they are about to launch new handset so that they can empty there stock of that phone asap. Also they do support for older handset in terms of software updates but the catch is they won't give big update of major android release , they want you to throw old handset and buy new one for new features.. like I have Redmi note 3 they gave miui 9 but not nougat , it's still mm.. basically they are hiding the true face by giving long term support with update but only for MIUI they don't want custom ROM and it's development they want only miui
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
True. That's why Chinese companies except one plus are worst. They never respect gpl. Franco jumped into the fight it's only when they released the source. Now the thing is whether you should buy them or not ... Xiaomi is always worst when it comes to developer support. Sony on other hand do good things
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gougous3:
That is indeed very right as shown here

We really need someone to help repartition system_b as vendor
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] susheelkasab:
This could be possible

Let me be clear first, I am not an expert on this, but i read and search.

According to this thread of XDA News

Someone ported Project Treble support for Xiaomi Redmi 4.

This developer claims that Xiaomi already use a partition named "cust" of almost 840MB for their customization HALS (not sure if proper word) and the same developer reused this partition as /vendor to use vendor HALS as it is completely unused space for AOSP roms.

[IMG="Redmi 4 Updated Partitions for Treble"]https://www1-lw.xda-cdn.com/files/2018/02/Project-Treble-Xiaomi-Redmi-Note-4-1-576x1024.jpg[/IMG]

And more importantly Redmi 4 do not have a-b partitioning for seamless updates claimed by Android where Mi A1 have it!!

Considering this we may not have to request Xiaomi to re-partition,

For other device manufacture many developers claim that it can be done and very easy to achieve by just splitting the space of system partition,

[IMG="Resizing of Existing Partitions"]https://preview.ibb.co/eKnCXc/Untitled.png[/IMG]

This needed to be done only once in order to add minimum 5 Years of project treble support will be added to the device (considering Linux kernel is built for this time span of support)

Where some devices have too much unused space like OnePlus 5T, They can also use this space as /vendor partition

[IMG="OP Developer Tweet about available space"]https://preview.ibb.co/dAuLJH/Capture2.png[/IMG]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Good to see this thread.

Sad to see that the GitHub branch has been deleted. Wat?

As I talked ranted about in my post here, what I think needs to be done is to do-away with Seamless A/B system and replace system_b with vendor. EDIT: Actually, with the knowledge I found, we could have system_a, system_b, vendor_a and vendor_b too, but the Seamless A/B is probably pointless for the custom ROM's we'll surely need to even use Treble anyway.

Here is my quick initial research on that matter.

From what I can see, the partition map is "soft" in this device - meaning it's defined by GPT binary files rather than embedded in the bootloader. So in theory we can try and edit this without risk of hard-brick.

We have the following files in full official fastboot ROM:

gpt_backup0.bin

gpt_both0.bin

gpt_main0.bin

partition.xml

Then I found this article, which mentions these files:

GUIDE -->> How To Create Partition.xml [GPT]

According to this guide, gpt_main0.bin is what's flashed to "partition" via Fastboot. This is also what appears in the flash_factory script in official fastboot ROM.

I think we can build a new gpt_main0.bin from partition.xml, patch0.xml and rawprogram0.xml but I'm really not sure. This is where I'm up to.

EDIT: It seems we can factory-flash the partition map in XML directly if we use Qualcomm QFIL tool (via MBN loader), which is part of QPST, but I am not sure if it will cause issues if we modify XML partition map since the gpt bin files will not match the XML. Also I don't know if QPST talk is allowed on XDA, it is probably some internal Qualcomm tool that's only for their partners...?

EDIT2: Best avoid the QPST and factory flash stuff, that can brick and wipe IMEI. I think all we need to do is edit the partition table via parted, and then the partition table data is actually stored in the "partition" partition, which can then be dumped to a new gpt_both0.bin. Will try this out.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Whenever I see a post from you it's always there with so much information!.... Hope to see the something cool stuff at the end of the road
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
So the GPT information is stored at the beginning of the eMMC block device, which I dumped, but for some reason is quite a bit different to the GPT bin that's included in official fastboot firmware packs.

I'd like some more data before I continue experimenting with my daily device :D I can't find a working "decoder" or "decompiler" for GPT binary yet either, all the existing scripts/tools I found error-out.

If a volunteer or two could share their GPT info dumps too (along with if you remember the last official stock firmware you flashed in fastboot; either Nougat or Oreo) I would appreciate it.

Run something like this via shell / command prompt...

adb shell dd if=/dev/block/mmcblk0 of=/tmp/gpt.bin bs=8 count=4352
adb pull /tmp/gpt.bin

...and share the gpt.bin file here (probably have to ZIP it for XDA to accept it).

Thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Sorry for triple post, but anyway...

Bricked my device, then broken the screen when trying to access test-point (deep flash cable didn't work). Will be a while before I can get a replacement screen :(

Managed to recover from brick at least. Well, I think so... when I boot to recovery I get "USB Device Not Recognized" which is scary.

But I'll get a new screen anyway and resume whenever that is.

Back to my garbage Redmi Note 4 MTK until then...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
ohhh so sorry to hear that. I hope you will have your device working normally. :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] alkesh95:
Tried reading with a decoder only readable output i could see was modem_b. So i think it's the correct file.

Rename it back to gpt.bin from gpt.zip
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
The strings for partition name are UTF encoded (or whatever it's called, 00 byte padding between letters). As long as the DD command was executed as I said, it should be fine.

Thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] I1V1A1N:
Warning

Warning droidlogic

Room

treble_arm64_agS-userdebug 8.1.0 OPM6.171019 180807 test-keys
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
What? Why are you replying to me?

[MENTION=5393309]ghpranav[/MENTION] you probably should request this thread be locked lol
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Lol, true. I'll get this thread locked, before more users come here ? . We have come a long way from trying to port a GSI to actually having a Treble compatibility. This thread brought back all the good old memories of mine XD
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] KennyG123:
Thread closed at OP's request
[General Questions and Answers] shahery24:
I have flashed my Oppo F3 PLus and got imei 0 . I need qcn file to repair it or any other way or idea will be helpfull. I have used Miracle eagle Box Cracked to Root but was not very helpful:(
[LeEco Le Pro3 Questions & Answers] Braldee:
I just bought a Le Pro 3 after a buying from China Aliexpress a Lemax 2 that kept turning off and wouldn’t turn on...

For the New Le Pro 3, My question is, will I need to uodaye the EUI for this manually or I can just leave it as is? The eui on the phone is -

5.8.018s (stable) runs with snapdragon 821 4 core 2.35 ghz

I don’t want to do ang more twrp or root which bricked ng lemax and I just want to know if the software will be left as is or is there anything else I would need to update manually which I would not prefer in doing if possible to avoid the stress
[LeEco Le Pro3 Questions & Answers] kukuteku:
I bouth my X727 in "used condition" and came with 5.8.019S... and Yes, the Update to 5.8.021 via OTA its alive! But I can not get Update because the Phone came with Unlocked Bootloader and this case the OTA get error on Recovery Mode, not matter if is OTA or putting the "Update.zip" on the SD.

If you are Stock with Locked bootloader you could get Update via OTA. Or you can do it manually, just rename the Ota zip like "Update.zip".

What did I do? Easy, being on 5.8.019s with Unlocked Bootloader, just I flashed Recovery via Fastboot and After that, flash a Complete 5.8.021S Rom by VillaLeg....:good:
[LeEco Le Pro3 Questions & Answers] tekweezle:
Yes, update to 21s if you get the prompt via OTA or launch the system update. It upgrades the Launcher to a new version that fixes some weird behavior regarding the app drawer. I believe in 18s, the home button would launch a Leeco app which is why people are installing Nova Launcher to correct.

In 21s, it behaves like a regular home button like any other Launcher.
[General Questions and Answers] becritical:
I am trying to take a picture of a document and I have noticed that the camera is not about to focus on the whole document, it can focus on about 4/5 of the text but the rest 20% stays out of focus. I have tried manual focus and different distances, and also tried a custom app. Is this a hardware limitation of the camera of this phone or is it a hardware problem? This is a normal a4 sheet with just and the text doesn't occupy all the sheet.
[Windows Phone 8 Q&A, Help & Troubleshooting] Siema_CoTam:
Hello,

At 07.2017 Microsoft said end of life for WP 8.1 Skype.

Someone know is it possible to use Skype?

At this moment we can install Skype from Store but cant to log in.

Regards.
[Windows Phone 8 Q&A, Help & Troubleshooting] Siema_CoTam:
Any reasons?
[Galaxy Note5 Q&A, Help & Troubleshooting] galaxtnote2:
I flashed the official 7.0 firmware using odin which i download in sammobile. but get on bootloop. :crying: anyone can help me? i didn't backup any files from my phone which is so much important. sorry for my bad english. thank you in advance and happy new year to everyone.
[Galaxy Note5 Q&A, Help & Troubleshooting] tongjet:
Download official firmware in samfirm and flash with odin. You can solve almost problem with stock rom.

Don't be afraid. Just flash time to time until you satisfy with it!
[Galaxy Note5 Q&A, Help & Troubleshooting] hasunl:
u most flash these recovery

https://www.mediafire.com/file/yb7o2e74bskciex/N920CXXU2BPB7_StockRecovery_BoxWares.tar
[Samsung Galaxy Tab A series Questions & Answers] shahmir_k:
I have a Samsung Tab A 8" 2017 Version. Model SM-T380.

When I go to http://desktop.firmware.mobi there is only the firmware for the SM-T385 model. The only difference between the two models is that the T385 has a sim card.

Will I be okay in flashing the T385 firmware to get root?
[Samsung Galaxy Tab A series Questions & Answers] Ibuprophen:
I don't have this device but, your best bet is to take a look at the following thread and, if needed, post your question within that thread.

https://xdaforums.com/showthread.php?t=3674409

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[Xiaomi Mi A1 Guides, News, & Discussion] lelozerien:
Hi , thank you for the update because I find only bin files on the official site.

The script .bat don't work on my laptop so I flashed manually all the images files.

I didn't succeed by flashing dummy, fs_image.tar.gz and persist image files. I'm pretty sure it's because there weren't on my version of the OS so if someone could help me by telling me how to push these images files, where and thanks which command, it could be great! ^^
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Hi, what error message do you get, when trying to run the batch script? Did you try via command line (cmd) or via powershell (Win10)?

The things you tried to flash without succeeding seem to be not necessary. Please find here all fastboot commands used by "flash_all_except_storage":

fastboot oem unlock
fastboot flash modem_a /images/modem.img
fastboot flash modem_b /images/modem.img
fastboot flash sbl1 /images/sbl1.img
fastboot flash sbl1bak /images/sbl1.img
fastboot flash rpm /images/rpm.img
fastboot flash rpmbak /images/rpm.img
fastboot flash tz /images/tz.img
fastboot flash tzbak /images/tz.img
fastboot flash devcfg /images/devcfg.img
fastboot flash devcfgbak /images/devcfg.img
fastboot flash dsp /images/adspso.bin
fastboot flash sec /images/sec.dat
fastboot flash splash /images/splash.img
fastboot flash aboot /images/emmc_appsboot.mbn
fastboot flash abootbak /images/emmc_appsboot.mbn
fastboot flash boot_a /images/boot.img
fastboot flash boot_b /images/boot.img
fastboot flash system_a /images/system.img
fastboot flash system_b /images/system.img
fastboot flash lksecapp /images/lksecapp.img
fastboot flash lksecappbak /images/lksecapp.img
fastboot flash cmnlib /images/cmnlib.img
fastboot flash cmnlibbak /images/cmnlib.img
fastboot flash cmnlib64 /images/cmnlib64.img
fastboot flash cmnlib64bak /images/cmnlib64.img
fastboot flash keymaster /images/keymaster.img
fastboot flash keymasterbak /images/keymaster.img
fastboot reboot bootloader
fastboot set_active a
fastboot oem lock
fastboot reboot
[Xiaomi Mi A1 Guides, News, & Discussion] lelozerien:
great! I will study which steps are missing! thank you!

Edit: I'm on Win 8 and I'm not able to read the error message because it disappears very quickly! I tried by double clik on the .bat.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Ok, that info should be already enough to help you :) First press the Windows button and enter "cmd" to start the command line. Once there you have to "cd" (change directory) into the extracted directory (the one where also the *.bat/ *.sh files are in).

Once there you should be able to verify that you are correct by entering "dir" which lists you all the files in the current folder.

After that you just need to call the batch script you want to run by entering its full name and press enter. Then you can sit back and enjoy the show :cool:

Edit: Of course you have to have your phone already connected in fastboot mode ;)
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Xiaomi just released the full fastboot image for Oreo, which they labeled stable. I disagree, but for everyone who wants to enjoy Oreo already it is the best option we have so far. In comparison to the manual update to Oreo you can also close your bootloader and don't end up in a bootloop, so that is... something! :)
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
The flash all command will not relock the bootloader ??? Or will all three choices relock the bootloader ?
[Xiaomi Mi A1 Guides, News, & Discussion] Pezmet:
Is this same patch level "December 1"?
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
flash_all does not lock the bootloader.

If you are in doubt and want to keep an unlocked bootloader, I would recommend to choose the script which matches the best what you are looking for.

Then afterwards let your phone reboot, once completed turn it off and start it again in fastboot mode (Volume- + Power) and run in command line/ terminal/shell the following command:

fastboot oem unlock
[Xiaomi Mi A1 Guides, News, & Discussion] vikash1994b:
Yes
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
It is, but for instance the slow camera opening bug is gone for me. So I consider it worth the effort so far.
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
Thanks,

I don't like to relock my bootloader ever,

until selling the device.

Flashing and a locked bootloader never were or will be friends ;)

I do a flash all and restore my data with TWRP.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Alternatively, you could also use flash_all_except_storage, when opening it as a text file first, by removing the line which includes the "oem lock" command. Start looking from the very end of the script file, it is one of the last commands ;)
[Xiaomi Mi A1 Guides, News, & Discussion] moka habashy:
Hey

I downloaded rom from official site

But when i extracted .tgz file i got payload.bin file

I did not get any .img or any scripts
[Xiaomi Mi A1 Guides, News, & Discussion] coremania:
Still slow camera here, are you clean stock ? Or on TWRP and magisk like me ?

Edit: that's funny camera gets fast after opening a few times
[Xiaomi Mi A1 Guides, News, & Discussion] almajnoun:
how about battery drain fixed or not any test ?
[Xiaomi Mi A1 Guides, News, & Discussion] juanfe.granados:
¿ Have The Same bugs that oreo [OTA] ?

-Slow open Camera.

-Bluetooth Drain Battery.

-Some Apps Crashed Like Whatsapp
[Xiaomi Mi A1 Guides, News, & Discussion] Blackheart151:
there is an another .bat file named flash factory.bat..

dont flash this "flash_factory.bat"

i did it and my phone is screwed up..

it fails and doesnt boot..

i dont think this is for our phone..
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Sad, to hear that, but just to be clear this one I did not even mention in my guide/ OP. Hope you find a way to recover from it though.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Clean stock and it got way better for me.
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Thank you for reading the instructions properly. Glad that it worked out in the end for you :)
[Xiaomi Mi A1 Guides, News, & Discussion] majamee:
Download and extract the *.tgz archive

Shutdown your Mi A1 and start it in fastboot mode (Vol- + Power)

Connect it to your computer/ mac via usb cable

Open a terminal, shell or command line prompt depending on your OS; make sure you are in the same folder as all the just extracted files, if in doubt use the "cd" command

Run the script of your choice to start the flashing process (e.g.: "flash_all.bat" or "./flash_all.sh")

Wait for the script to complete and enjoy your official version of AndroidOne for Mi A1

In addition on Mac I'd recommend to install `adb` and `fastboot` like that:

Open a terminal and install the package manager `homebrew` from here https://brew.sh/

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

After successful installation add `cask` by running in terminal

brew tap homebrew/cask

(https://caskroom.github.io/)

Last, but not least use `cask` to install `adb` and `fastboot` via one of its meta packages:

Recommended:

brew cask install android-platform-tools

Fallback:

brew cask install android-sdk
[Xiaomi Mi A1 Guides, News, & Discussion] methuselah:
[MENTION=3964603]majamee[/MENTION] strangest thing.I tried to flash all relock command. It didn't work. I have to manually apply the first command and then go to the fastboot and manually relock the bootloader. But it won't be a big thing. In windows, it pained like hell to get the fastboot working.