yashsingh1/xdaforums huggingface dataset:
[Google Pixel Questions & Answers] Ibuprophen:
I don't have this device but, your best bet is to post this question within the following Q&A thread that's specific to your device.

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

Good Luck!

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

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Google Pixel Questions & Answers] Deadmau73:
Download the latest minimal adb fastboot and install it.

Download the stock images for pixel https://dl.google.com/dl/android/aosp/sailfish-opm4.171019.016.b1-factory-68c3a77d.zip

Unrar the zip and copy files under "Minimaladb" and past them on the extracted folder , then start your pixel " volume down and power " then connet the phone to pc and run flash-all.bat . Wait for it , be patient because some error messages will pop up " cannot find system.sig......" just be patient
[Android Q&A, Help & Troubleshooting] Shupreme:
Hello,

I'm new here and I would like to know if someone can help me with adb.

I want to use it to get a logcat and also a usage statistics.

So the problem is, I've setup adb and I've installed my phone's driver (Samsung) but when I try to list my device using "adb devices" I get this:

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

and then it doesn't show me my device. So can I please get a solution for that?

Thank you so much!
[Android Q&A, Help & Troubleshooting] Shupreme:
It's seems like the forum is empty? I've wrote three posts so far and I don't get any comments. I don't know if I'm doing something wrong :(
[Android Q&A, Help & Troubleshooting] StonebridgeGr:
try to reinstall the drivers, might you installed wrong drivers . also i think you should post this on your device's forum.

What is your device tho ?
[Android Q&A, Help & Troubleshooting] Shupreme:
I'll try to reinstall the driver. But I do know it's the right one, I've also tried to restart my computer. I have an old Samsung Galaxy Grand Neo Plus. So I think it's forum won't be as active as this one. And the problem can relate to any Android phone, it has more to do with adb and the driver maybe.

Thank you for your comment!
[Android Q&A, Help & Troubleshooting] StonebridgeGr:
Try to download the latest ADB from here XDA, also the device we are talking about is not s8 ?
[OnePlus 5 Questions & Answers] foreman31:
Does anyone know where OnePlus 5 stores the notes for the note app
[Amazfit] kingars:
I bought the Amazfit BIP, English version, and I really liked the device. My frustration, for now is to see that you can not share my physical activities with any app! Is this still so, or is there any way to counteract this?

Thanks
[Amazfit] lfom:
There is a modded version of MiFit that allows you to export the data to TCX, then you can upload it (manually) to whatever other service you want. Probably there are other ways too, search for "MiFit data export" or similar.

This is the link of the modded app: https://t.me/MifitTcxExport
[Samsung Galaxy S9  Questions & Answers] drago10029:
I used aptx and latency is bad for games. Is there a pair of headphones or codec that will work and be good for gaming with bluetooth headphones on my shiny new Galaxy S9? Thanks!
[Samsung Galaxy S9  Questions & Answers] drago10029:
anyone?
[Lenovo ZUK Z2 (Plus) Questions & Answers] Jawda:
Is there any kernel just to overclock the gpu not the cpu?
[Lenovo ZUK Z2 (Plus) Questions & Answers] Heramb Gaonkar:
You can use any custom overclocked kernel from forum and set cpu clocking frequency to stock i.e 2.1 ghz and overclock gpu frequency as per your need using kernel adiutor app. You may find app link on custom kernel thread page.
[Lenovo ZUK Z2 (Plus) Questions & Answers] Jawda:
but that degraded my overall performance and increased heating:crying::crying:
[Lenovo ZUK Z2 (Plus) Questions & Answers] NaXal:
Over clocking will always produce more heating. Usually Custom Kernel which allows OC comes with tweaks to thermal management to counter that as much as possible.
[Android Q&A, Help & Troubleshooting] wilbersoft:
So I am trying to flash Viper 10 ROM into HTC 10 and it says it has successfully installed but TWRP keeps saying there's no OS installed on the device.

[IMG="Screenshot 1"]https://3.bp.blogspot.com/-Z1dnZ08498w/Wvobupa0XsI/AAAAAAAAAKc/NYSsgoZHhb0E5d718RqOOjOi0eT9c9w9ACLcBGAs/s1600/20180506_215139.jpg[/IMG]

[IMG="Screenshot 2"]https://1.bp.blogspot.com/-L8d_h2EJzkY/WvobuSi1ZoI/AAAAAAAAAKY/KnIDMg-1ufklI-DhiwgoODQl4xXS_cAqgCLcBGAs/s1600/20180507_063243.jpg[/IMG]

Please is there any way around this?
[Android Q&A, Help & Troubleshooting] Ibuprophen:
I don't have this device but, your best bet is to post this question within the following Viper10 thread that's specific to your device.

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

Good Luck!

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

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[LG G5 Questions & Answers] deammienne:
What is the difference between a korean variant lg g5 (f700k) and an lg g5 standard model? Is the f700k a fake and clone phone? Is there a difference in specifications and compatibility? Thank you
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I just realized we could use resize2fs to first shrink the system filesystem, and that would save a reboot step. Obviously a TWRP should be done first anyway, though.

Oh, but a reboot would still be necessary for TWRP to see the vendor partition so it can be written to. So... That seems pointless I think.

Hmm...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Just finished reading everything. You did a wonderful job explaining this and I'm eager to test this out even if my device is my daily driver. With that being said, I really hope inexperienced users would stay away from this thread and refrain asking silly questions. I especially want them to stay away from complaining that they bricked their device, etc etc. By the looks of this, it should be easy considering you got the partition sectors noted down and most if not all users have the 64GB variant. It should be fairly easy making the ROM boot as long as it caters to A/B partitioning (already available in XDA) and that the Vendor HALs wouldn't cause further trouble.

With all of that, I'm looking forward to testing Android P as soon as we got treble tested up and running.

Thanks for taking your time to explain this thoroughly and I appreciate all the efforts you've put into this, especially automating the process by making a backup tool and hopefully, a working TWRP for Treble.

Looking at the Treble threads, I see some devs have started working on Android P. Link here.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Thanks mate! Yep I've seen them :) but based on Phh's work, at least Oreo Treble GSI depends on VTS which isn't released yet. So I'm not sure how long until we get it.

I just learned that in order to get stock GPT back you basically have to fully erase the device via flash_factory in MiFlash. Technical details added to the OP.

So, apart from low-level flash, you will also want to backup internal storage before reverting - since factory flash wipes absolutely everything and TWRP won't backup storage. Then of course you can use my low-level tool to restore partitions via EDL to get your (e.g.) persist and stuff back, then restore the associated TWRP backup.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] murtaza1326:
well just curious i read whole thread but i didn't get that is

repartitioning affect A/B partition system or

we are lucky and have A/B and Treble both at same time?

also except developer if someone tries and flash this successfully then do post SS ???

p.s don't tell me to try it neither i am developer or researcher ?

Regards
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes you are right, flash_factory is only for fastboot mode. It doesn't matter what is chose when in EDL mode as it will flash everything.

But I think EDL mode is still needed, since MiFlash recalculates the partition table. Maybe it does in fastboot mode too but I don't know, it just flashes to "partition" via fastboot.

YMMV. I do it in EDL and it works fine.

Don't know or care if any of the firmware files are incompatible (are you sure? That seems strange if so, why would they be in the A1 package if they're not) since we restore a backup from my tool anyway which does all partitions exactly how they were on your device. The only purpose of MiFlash in this case is to rewrite partition table.

Yes, as you can see it's "vendor_a" and "vendor_b", one for each slot.

There are no screenshots lol, unless you want to see a screenshot of TWRP with a Vendor mount listing ? ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] murtaza1326:
well yeah i missed that

about screen shot that treble app on playstore or any other thing which state both

also i wonder if GSI images are flashable or moded treble roms should be there ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] khusika:
Interesting.

As i know, we also need to work with .dts to make it possible with treble inside kernel source with A/B partition layout.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Not there yet mate, patience ?

Really? This might be what I'm stuck on. No idea what it is though.

I just get recovery loop if I try to Treble-ize a ROM, and GSI's kick me to fastboot. I was suspecting that it could be kernel, but I am seeking help from Phh about it.

Do you have any links that might point me in the right direction? Meanwhile I'll see what I find in Google.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] TrueMS:
Great job. Just a question, if you restore by doing flash_factory.bat - it deletes your IMEI, or not?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] khusika:
I'll try to provide treble for A/B with the kernel, in the next day
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Maybe. I don't know. It's kind of a moot point because if it does, my low-level backup tool will backup and restore it anyway.

Cool beans!

I was reading on Android source docs that it might be related to early mount (vboot or whatever our device uses) missing vendor. So there's still leads to work on. But no rush, whenever you can :)

Oh BTW, if it's compatible with stock blobs would be good (i.e. stock kernel/ROM). Using stock vendor seems like the ideal way to go.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] xemisxu:
We can use /b partition as vendor making phone /a system only without use of edl (this makes more easy recover this partition). Also if we have /cust we can use it as vendor without repartition only with recovery/kernel support.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
I think it's not ideal

As no one wants to get rid of A/B in exchange of Treble! Both are important! And Google is pushing hard OEMs to implement A/B in near future! So, both are actually important! Moreover getting rid of it seems loosing integrity to me!:p

As far I know, A1 doesn't have a /cust partition!

BTW, as [MENTION=1844875]CosmicDan[/MENTION] has found a way to re-partiton, then there's no point of getting rid of anything!

And to me using /b as vendor is awful waste of space! 3 GB for vendor... Seriously?!?:cyclops:

He is using (or we need) 600*2=1200MB though!:(

I think he could shrink some spaces from /data instead of system! But it seems he got the 32 GB variant! :p

Just kidding LoL!:laugh::laugh::laugh:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JoKeRLeE:
LoL :) , Repartiton system is the best choice . i don't think user want to waste another 1.2GB for Vendor partition ... just my thought ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
:p :p :p

Just thinking how much space Android P and beyond will need in /system! :p
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] xemisxu:
Sure,re-partition is the best option cause we dont have /cust partition.

I know that 5x have it but i didn know if A1 have it.

Ty for answer!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Android P Dev Preview 2 for Mi Mix 2s is around 1.4GB in size.

Based it from here: http://bigota.d.miui.com/8.5.3/polaris_dp_global_images_8.5.3_20180503.0000.00_9.0_ef2f024b87.tgz

So it should be the around the same size for our treble. :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yeah guys, ROM's are not big anymore since Google themselves don't bother doing odex'ing (or ART'ing, whatever you want to call it now; you know like odex/deodex) since they know that most system apps just get updated from Play Store anyway and their odex goes on userdata. Also in modern Android apps can run fast before full odex/ART optimisation (that's why we have such fast booting) :)

Yeah I'm 32GB, it's fine I have plenty of space (we have microSD remember lol). But vendor_a and vendor_b is the way it should be for compatibility. It also keeps the doors open for dual boot in future ;)

I don't want to mess around with resizing data. 2.4GB for System and 600MB for vendor is a comfortable figure.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Ok, I just discovered that my Windows is in Test Mode (has the watermark) and I am 90% sure it's from a Qualcomm QDLoader driver I installed. Just a heads up for everyone.

If anybody knows of a signed driver that does NOT require test mode, please do share it with us.

If you are in my situation, you will need to google for how to disable test mode on Windows (if you want to; which is probably a good idea for security hardening - it's not a huge deal but it's just one of many layers of malware defence).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] .:Addicted:.:
I always open CMD in administrative to install unsigned driver. That way I don't need to be in test mode. But QDLoader probably changes to test mode automatically since you didn't changed to test mode manually.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
The driver won't actually work if it's not in test mode though. Some drivers do, but COM ports and stuff need to have a signed driver. IIRC

Yeah I had some setup exe that I installed, but that was before I found the smaller ZIP on the Mi5 thread. Which might actually be signed already.

Meh, I'll go ahead and disable it now.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
HaHaHa! I get it man! Even my Laptops Ubuntu Desktop is at most takes around 1.7 GB! :p

But I was thinking about future (Although I'm pretty much sure in that time this A1 thing will be dead!) :(

And don't forget about some heavily customized skins!

I was just kidding about your variant man! :p

And I understand that re-partitioning /data would require two different methods (at least numbers :p) for the different variant! :o

But I was thinking (just pure thinking :angel:) that if we can completely re-partition the whole space like we often do on the PCs as it's GPT you mentioned!:cool:

That way I could strip off some space and create infinite numbers of partition and install Android, iOS, Sailfish, Linux, Windows, Mac bla bla bla on them! :silly:

Nature doesn't like "infinity" BTW! :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes of course, there is really nothing stopping anyone from making more partitions or resizing here - as you said they're standard GPT and this knowledge is transferrable. But that's beyond the scope of Treble, and I'm trying to keep this as simple as possible (it's already complicated lol).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
So I'm stuck atm, I'm seeking advice from Phh and friends on IRC.

Just FYI, shouldn't be necessary now. I decompiled DTB from kernel and recompiled. Unsurprisingly, there is already a vendor entry - it just needed the slotselect flag so it maps vendor to vendor_ and etc. This lends support to the idea someone proposed to me in PM of only having one vendor partition instead of vendor_a and vendor_b.

Sorry but these two points are irrelevant.

1) Recovery doesn't exist on any seamless device. Pixel is the same, and Pixel has Treble.

2) "Cust" is only on MIUI devices and for those ports is adapted to be used as vendor. This is irrelevant, since we've repartitioned by shrinking system and adding vendor.

As for risk, well sort of. Not really. These devices are literally unbrickable, all modern Qualcomm devices are. If someone accidently erases their aboot partition or something, then they can still recover with an EDL flash (as long as they made a backup). EDL mode exists in the SoC and is not writable. Worst case scenario for a brick is the requirement of disassembly to access testpoints, but in my experience this can only happen if you corrupt your GPT or SBL.

TL;DR: It's as risky as flashing anything, or sudden power loss. But it's also why I warn rookies to stay away. When the project is finished, it will all be scripted with grep validation to ensure partitions are exactly as expected and end exactly as desired. We're only touching /system partition anyway.

The partitions work 100% fine. My device works perfectly well, and vendor appears as normal in devfs and maps to the correct slot. And 2.4GB is plenty, believe me - I've done my research (this has been weeks in the making).

Furthermore, this is an Android One device and is made to fully comply with latest Oreo standards. This means a fully binderized HAL (from what I can tell) which, as said, is the hard work done. It's as if the official firmware for this device was compiled to be Treble-capable, but was then adapted to work without a vendor partition. This is evident by the fact that /vendor exists as a symlink to /system/vendor instead of a mount to a vendor partition.

This device, as stock, is much closer to Treble support than most other devices out there that already have Treble (Redmi Note 5, Mi 5, etc). - it's definitely not impossible.

Now, enough talk about partitions please - it's really not the problem.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
Appreciate that

The fact is, you are doing a pretty much impossible thing (at least to Xiaomi's paid devs) as simple as possible (in your words, not mine!:p) even a guy like me (I am good at nothing actually) can at least understand the complicated things to appreciate you!:good::good::good:

But selfishly, I want more!

And ironically, I am not getting more by paying! Rather getting free from guys like you!

I hope this treble thing can be improved a lot! In some form!

Eagerly waiting for a PC like structure in Android!:rolleyes:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Tyrany:
First article on this https://www.gizchina.com/2018/05/15/xiaomi-mi-a1-may-soon-support-project-treble/ congrats Dan ;)

Sorry for the OT
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Woot! I follow GizChina, haven't seen the post yet though.

So, small update, I'm downloading AOSP sources now (well, today at home while I'm at Uni). The possibility of adapting a *stock* ROM to Treble is very slim now, but we'll definitely get Treble-enabled Lineage OS up (since those are the sources and device tree I'm basing it off).

After that, I'll work on getting GSI's working.

Then, see if it's possible to adapt stock blobs/ROM for Treble (unsure of the chances of this).

THEN I will work on making an MIUI GSI.

Fingers crossed I can get Treble LOS by the end of the week :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Awesome job! :) Best of luck in everything. Just a quick question, once we get treble working, could we possibly flash other treble ROMs such as Phh's RR or AOSP? And I'm sure Android P isn't far away too as long as a treble ROM for it has been built, right?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes, those GSI's working are the "ready to pack it up to a user-friendly installer and guide" milestone.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
TWRP installer

Here's a TWRP installer with vendor mount point added, if anyone wants it. Make sure to flash Magisk after installing TWRP, otherwise you'll get a recovery bootloop.

https://www.androidfilehost.com/?fid=962339331458992573
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] xezrunner:
I wonder if this repartition/low-level backup & restore can be used to convert the Mi A1 into a Mi 5X.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Thanks matey! When I made a treble installer and got recovery loop I thought my repack was broken so I didn't share it, completely forgot about Magisk ? will add to first post.

It's possible, but risky. There might be something on one of the many other partitions that needs to be changed and this could brick your device and need testpoint.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
It's aliiiiiiiive!

I humbly request all follows of this project to thank [MENTION=5393309]ghpranav[/MENTION] two posts above (orange display pic) for this fix that I was stuck on :D

Now to work on GSI...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] qzem:
Excelent work! Sorry for dumb question, but what does GSI stands for[emoji16]?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] raiden_1115:
Generic system image.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Hawiie13:
What a great hard work. Nice ..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Sunnyboi19:
Good work mate! Appreciate it:D
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yaduvanshiii:
Good work mate! for supporting mi a1
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Midomad:
Nice,

Good Luck.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Djoe9778:
Wow, great job, I would like to understand something more to help too. So are you using a gsi?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Seydem:
That's amazing! Thanks for your hard job. Can't wait project treble on our devices :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] KaaMyA:
Congratulations!

Thanks for keeping an eye at our device :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] majamee:
Wow, I am impressed! Seamless updates and project treble is IMHO the perfect combination, but way to uncommon. So thank everyone involved very much. :)

[MENTION=1844875]CosmicDan[/MENTION] Will there be some source repository for everything which has been done so far and for further maintenance? Does the vendor partition need to be updated from time to time or what is your expectation here? (sorry, I'm just trying to learn more and understand better about treble on a lower level)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Awesome job mate. Many thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Congratulations! :) Which ROM are you using during that screenshot? Stock ROM?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
I think it's the stock one, USB debug notificaton is from Oreo 8.0 and Mi A1 haven't many 8.0 Custom ROMs ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] 8555013398:
Root
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
Greatest work done for our device ???

This is a pretty big milestone! You have achieved what paid devs couldn't
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] taurelio:
It might be a stupid and dumb question but for those users who are in stock rom does this mean that updates are going to be received directly from Google?? What is the great advantage of project treble on an android one phone? Nevertheless great work and congrats

Sent from Mi A1 with Tapatalk Pro
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] brajesh.sharma87:
The greatest advantage of project treble is that even if the OEM(Xiaomi in our case) abandons software updates, you can still update your phone to higher android version through a common generic system image.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] taurelio:
But will all the partitions be the same across the generic images

Sent from Mi A1 with Tapatalk Pro