yashsingh1/xdaforums huggingface dataset:
[Mogul, XV6800 ROM Development] indagroove:
I'm not sure, but I think that you could extract the sys folder and port it to a new rom, as that's where the language folders are.
[General Questions and Answers] Squida:
Hello.

Been working on how to get a device kernel from source for the Mi note 10 pro (Mi CC9 Pro). I have gotten up to the point where it builds but fails due to dts folder is not found.

I need an example of what goes in DTC_EXT=

All I see on the net is DTC_EXT=dtc

Please help.

I use the kbuild/clang system that has a config that I can run.

I have CC, aosp toolchain, build-tools, qcom 8.0 llvm as real_cc. All linked, the only thing that fails is the dts files not being found

this is the issue i have

find: ‘arch/arm64/boot/dts/’: No such file or directory

terminal below

Spoiler content hidden.

Used config

Spoiler content hidden.

Found out it has something to do with the arch folder itself.

I replace it with the arch folder in the AOSP-kernel folder and it does not show up saying its not found.

Still crashing due to a new error about the include folder and a file or 2 that is in it. still trying my best to get it working.

SOLUTION to DTS MISSING:

Replace the makefile in the boot directory of your ARCH= type for the device. with the make files in aosp kernel same location.

Just want to point out that you may not need to do any of this and it is normal for the build not to find anything due to it, needing to be created during the kernel build process. the Make file that is located in boot under the ARCH type has some settings in it if you are using a device source other then google devices which contains information that i think the build needs, in order to be made.

After everything I said above, further investigation has proven that the Make file in {ROOT}/arch/arm64/boot is incorrect based off the one in aosp-coral-4.14 correct config is below. copy and replace the whole thing in the file.

Spoiler content hidden.

All this does is fix the build saying dts not found.

***UPDATE 2022***

You require dtc binary file from AOSP prebuilts/misc/dtc

Copy it to the devices kernel folder in scripts/dtc. Was able to build kernel (not sure if it works)
[General Questions and Answers] namhoang235:
Does it come from any commit of git hub, could you give me the link, mine arch/arm... makefile is similar to your old but it compile with no error. so strange
[General Questions and Answers] Squida:
From my understanding you want the link to the makefile I got. Unfortunately it has been so long I am unable to remember where I got it from. But as a helpful tip. I searched Google for (device name) makefile and searched through links. I also tried. Device tree, build files. Hope that helps.

I gave up on building it because Xiaomi did not release any build files or device tree for Xiaomi CC9 PRO. Only released source files for it. So from my understanding. You would have to edit a pre existing one and match it to the device. Doing that is well above my knowledge.

In order to get at least a template for the CC9 device. You can get the template from Using Qualcomms AOSP builder which has the SM160 device in the list. It is seperate from Google's AOSP and requires a seperate download.

Also I would like to know how you managed to get the makefile working maybe I missed something and can go back fix it. May solve my problem I had.
[General Questions and Answers] namhoang235:
yeah, your experiment is very useful for me, i am in these trouble you 've met yesterday.i help me a lot. thank again
[General Questions and Answers] namhoang235:
i really dont want to edit makefile as i see many source have the same make file, so it is a compiler tool with some another input file for it to make, so i only edit makefile when it got error itsefl, if it is the path error, then i really dont want to edit it,
[General Questions and Answers] namhoang235:
can you give me a hint?

my kernel can make standarlone with bash script, but when compile with rom it make tons of errors about path, so which file i need to puth something like cc=clang,.... to make it pass when build rom
[General Questions and Answers] Squida:
A hint. Sir I would tell you exactly if I knew how. I myself have failed to be able to get a working kernel let alone a rom running. When flashing a kernel that fails and it's supposed to be from the phone. So that tells me the device tree is incomplete and thus if it is, it fails the build as well as the kernel. I know of Qualcomm's own device builder but I am unable to get that working due to it, unable to locate clang for build. No matter how much I try and set a path I get errors using Qualcomm's builder. AOSP won't build the rom for the device because AOSP does not have the device tree or build files required to build it. You get a template from Qualcomm's builder. Though I can never get it to build. It's all because Xiaomi have not released the device tree or build files. And the people who have gotten it working are probably using someone else tree and build files or has edited their own. That is also why some features of ROMs do not work. It's due to missing info on device tree. Hope this all gives you a better understanding why it's hard for beginners to build a rom for this phone. Because Xiaomi does not have the files on their open source repo.
[General Questions and Answers] namhoang235:
i built for ginkgo (superior rom) it have enough compile source, device, kernel, vendor (vendor is fine), but device and kernel not come from official source tree, maybe it have conflict and have to fork to edit mysefl. very hard for beginer
[General Questions and Answers] Squida:
Yeah building from a custom rom is easier then building from AOSP. Especially if the files for the device are available for building. Usually that's why you see ROMs that say unofficial and official ROMs. Unofficial is usually a modified version of another custom rom for another device to suit your own. Heavily modified. I could be wrong but this is how I took it.
[General Questions and Answers] namhoang235:
they put tons of personal stuff without a comment, and some source are not update even they release rom once a week, they fear of clone their source while they clone from git too, they are destroy the ideal of open source itself
[General Questions and Answers] namhoang235:
@Squida sir, do you meet this, i have gcc 9.3.0 by default and prebuilt gcc in source are updated, so what path i need to config for this can recognize my gcc

error Sorry, your version of GCC is too old - please use 5.1 or newer
[General Questions and Answers] Squida:
Make sure no other versions of gcc are being detected. Probably have more then one.

Also could be it may not be set as default.

Type gcc --version in terminal to check what is installed
[General Questions and Answers] namhoang235:
This is a nut with me now. o_Oo_Oo_Oo_Oo_Oo_Oo_Oo_O:sick::sick::sick::sick:
[General Questions and Answers] Squida:
Lol yeah no idea. That's a lot of info for just doing a version check. If you don't want to uninstall and reinstall Linux. I would Google on how to set gcc xxx as default and see if that helps maybe even seeing if there is an automated .sh you can run so it installs and fixes the problems. I would do a search in the Linux repo on gcc and have a look for anything that says default. Usually those installers will also set it to default for you automatically. I myself am not good with Linux. So that's about as far as I could help on this situation you are in.

The gcc you may need is this https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/
[General Questions and Answers] Garth2:
Hi,

So I'm a noob. I created an album in a secure folder, and not I can't find the album nor all the photos I put in it. Any help appreciated!
[General Questions and Answers] Deleted member 1890170:
Hint: Add Files by Google to front of this thread's title
[General Questions and Answers] ineedroot69:
did you clear Files by Google data?
[General Questions and Answers] vanc5:
Tried to root Tecno Spark 5 pro (KD7) with magisk and after unlocking bootloader everything was working smoothly until i rebooted with the patched magisk image and now its stuck in bootloop.

Pressing power button and volume up to access boot menu doesn't work nor does connecting it to pc and trying to use adb shell.

I thought maybe the solution would be to try to let it run our of battery and try again but that will take a hell of a long time.

PLEASE!!! If there is any help or suggestions just let me know. Its a brand new phone as well ****
[General Questions and Answers] Deleted member 1890170:
Hint: Add Tecno Spark 5 pro (KD7) to this thread's title thus mainly owners of such device get addressed.
[General Questions and Answers] ineedroot69:
can you access fastboot?
[General Questions and Answers] vanc5:
no it just keeps looping back to the android start and turns off:

it displays:

orange state

your device has been unlocked and cant be trusted

your device will boot in 5 seconds

then it turns off and repeats
[General Questions and Answers] ineedroot69:
Do you know how to access fastboot on your device?

Sometimes in life the most simple task are the hardest one when you are in distress
[General Questions and Answers] vanc5:
Yeah, i accessed the fastboot to load the patched img file and then fastboot rebooted and it just got stuck in the loop
[General Questions and Answers] ptetteh227:
This tutorial linked here fixed mine (also tecno spark 5 pro, mediatek 6765). my phone was also in orange state bootloop. exactly as you describe.

https://xdaforums.com/t/repair-dead-hard-bricked-realme-3-3i-tutorial.4224255/

i had to slightly modify the instructions to suit the spark 5 pro. the only necessary changes are this

uninstall all usb vcom drivers you may have previously installed

FOLLOW THE TUTORIAL TILL YOU GET to where you have to download the bypass utility and exploits collection. please download the one with the mega link (ie Bypass utility compiled)

CONTINUE WITH THE TUTORIAL TILL YOU GET TO FLASHING FIRMWARE. here too my method deviated from the tutorial. even though my phone was detected as com9 by the bypass uility, i could not choose it in UART mode in sp flash tools. So just use usb mode in sp flash tools and it would still work.

CONTINUE WITH THE TUTORIAL. no need to load an authentication file. just load the scatter file and use "Download only" method

if you do this well your phone will be revived!
[General Questions and Answers] anger-Fist:
How were you able to switch off your phone,which button combination worked?i have all the necessary things but i can't install the stock rom with sp-flashtool since its still stuck in bootloop and the phone must be completely off for the installation process
[General Questions and Answers] ptetteh227:
The phone doesn't need to be completely off. allow it to bootloop.

Just follow the process in the tutorial linked to and you should

be fine.

by the way am assuming your bootloader is already unlocked.
[General Questions and Answers] anger-Fist:
please send the link to download the auth file good sir
[General Questions and Answers] ptetteh227:
what smartphone are you using?

what is the operating system of your computer? windows or linux?

so far what have you done?

if you are using a spark 5 pro, you don' t need an auth file. I revived mine without an auth file.

I looks like i would have to write a detailed step-by-step guide on how it worked for me
[General Questions and Answers] anger-Fist:
i followed the steps to the letter but gives me errors everytime
[General Questions and Answers] anger-Fist:
if you found mediatek driver for mt67xx or the one you used can you send me please,i've searched for it and keep finding for mt65xx
[General Questions and Answers] anger-Fist:
windows 10

tecno spark 5 pro 4gb ram/ 128gb rom firmware no. KD7-H6211FQRSTU-Q-GL-210520V392
[General Questions and Answers] ptetteh227:
please send a screenshot of the command prompt after you run the command just In case of any errors (i saw a traceback error in one of the screenshots). you must run the command prompt as administrator
[General Questions and Answers] ptetteh227:
you don't need one. I didn't use one
[General Questions and Answers] anger-Fist:
if your tecno spark 5 pro is same as mine(4gb ram/128gb rom) can you send me the link you to download the firmware and da file please
[General Questions and Answers] Parvej789:
work for kd7 tecno

new post
[General Questions and Answers] Parvej789:
work my kd7 twrp recovery and root

new post
[General Questions and Answers] Tanzin01:
Succeeded in fixing your phone?
[General Questions and Answers] Parvej789:
Phone Brick fix ( Boot logo on/off poblem )

Note:

Not format and firmware upgrade to flash tool(Hard brick Problem)

Download and extract stock ROM( Update verson )

Download and extract Tecno Flash Tool and open it.( SWD Aftersales Tool v4.1901.23.17 100% )

Within the SWD Aftersales tool, click on the setting icon then load the scatter file from the firmware folder.

Select the Download only,resevre userdata option then click on confirm button, and wait until the tile loaded properly,

When validating checksum completed click on the start button, Now connect the phone via USB cable, the phone should be powered off.

The flashing process will be started, you will see MediaTek Preloader VCOM port, Wait until flashing completed, and don't disconnect the phone during the process,

After flashing, disconnect the cable, remove and into the phone then power ON

But phone boot animation logo hang – hold the Power button + Volume up+ Volume Dwon button till the phone off.

Quickly hold the volum key boot into recovery

Recovery –Wipe data /factory reset- factory data rese then click ok

Reboot system now

Phone on And Enjoy
[General Questions and Answers] Kelly basil:
This fixed mine also. I encountered same problem exactly as this dude stated above but I was able to flash my device using the steps above.

I have bricked my device twice trying to root it with through magisk patch with a PC and I've also tried installing magisk zip file through recovery but always get and error that says:

"footer is wrong

E: signature verification failed

Installation aborted"

Please if anyone here got a solution, help please.

My phone build is: KD7-H6211FQRSTU-Q-GL-210127V375
[General Questions and Answers] Hkj_1029:
Thanks man you are a life saver.
[Touch Diamond, MDA Compact IV General] herr_shaggy:
Hi guys.

I just bought my XDA Diamond and updated it to the new official o2 Firmware version 1.93 something.

Unfortunately my XDA doesn't run as smoothly as it did before. From time to time multiple errors occur at the same time. First of all it's hard to make a call - the phone can't establish a connection. If I'm lucky and the phone establishes a connection I can't hear my dialog partner and they can't hear me. Furthermore the ring tones don't work (I can't hear them, the phone only vibrates) and if I get a text message I can't hear the text alarm but the phone keeps vibrating until I change the profile to silent.

The only way to solve these problems was to switch off the phone and switch it back on. The errors occur at random times, I can't predict them. I can send text messages while these errors occur but calling is impossible

I was in an o2 shop and asked the personnel there what the heck's wrong but they only told me "switch it off and back on".

I assume there's something wrong with the software since all the errors occur at the same time. Otherwise there could be a hardware defect. Because of that I'm afraid to load a cooked rom - warranty and jazz.

Has anyone experienced something similar and/or is there someone who can help? It's really annoying to never know if I can call someone/someone can call me.

Kind regards,

Martin
[Touch Diamond, MDA Compact IV General] diesel82:
got exactly the same problem .. when i got the diamond i started "optimizing" it with tools like advanced config. after playing around with cache settings it occured for the first time so i thought it might be a memory leak. then i made a hardware reset and applied the newest official O2 rom. problem is still there randomly, so its a hardware issue most likely. strange thing that u got it when updating the rom. maybe there wasnt enough time for it to appear before ?!?

i checked google and there have been similar issues with older htc devices. some stated it might be a shortcut with the headsetfunction. unfortunately it seems to be very rare, so theres no official statement in faqs etc. will have to send it back and hope that i get a working one.

ps : do not mess around with the warranty. just send it back.
[Touch Diamond, MDA Compact IV General] herr_shaggy:
Thanks for your quick reply.

The guys at the o2 shop told me that it's a software defect (the guy I talked to said he's got the same problem) and that they can't help me.

I will definitely go back there and force them to replace it. The randomness of the error is the most annoying thing. One minute it works the next it doesn't. It's impossible to use the XDA as a phone at the moment.

I've never had any problems with my last six cells. I'm pretty disappointed with the Diamond :(

PS: Does anyone else have an opinion on the topic? Maybe a solution, hint, help in any way?

I highly appreciate any response.

Sincerely,

Martin
[Touch Diamond, MDA Compact IV General] diesel82:
denk dran dass du als onlinekunde bei 02 anrufen und es selbst zurückschicken musst. die antwort hab ich bekommen als ich im shop stand. :mad:
[Touch Diamond, MDA Compact IV General] Xunil99:
Hi Martin,

did you try to re-flash the diamond again? Maybe something went wrong by flashing the 1.93 ROM. Had the same problem with a ROM from here, but I don't remember which one it was.

So, try re-flashing. The O2 1.93 went well on my diamond.

Kind regards,

Volker
[Touch Diamond, MDA Compact IV General] Teeceman:
Can you confirm where you obtained the official O2 rom from.
[Touch Diamond, MDA Compact IV General] herr_shaggy:
No, I didn't reflash the device. Can I flash it again with the official Rom without doing something? Kind of override the ROM with the same ROM?

I got the ROM from the o2 website o2online.de
[Touch Diamond, MDA Compact IV General] Xunil99:
Yes, no problem. However, first download the update file once more. If you can, try another browser / download manager, just to be sure there is no transmission problem.

If that doesn't work, try flashing the "old" firmware, if the problems don't persist, it's no hardware problem for sure. Then try another GER 1.93 ROM from the developers.
[Touch Diamond, MDA Compact IV General] herr_shaggy:
I did a re-flash of the original ROM. Haven't experienced the headphone/microphone problem again yet, but I often lose the connection after I answer incoming calls. The network symbols in the top line (3G or G and the network symbol) show a "X" and network plus an "!". After that it reconnects and I can call back.

What the heck is wrong? This is so annoying!

edit: strangely there was no ring tone when I answered the incoming call.
[Touch Diamond, MDA Compact IV General] herr_shaggy:
Hi folks.

In addition to my other problems a new one occurred. (Almost) every time I get an incoming call my phone looses the network, causing the call to end. Strangely, the phone shuts itself down from time to time while I'm answering incoming calls.

I went to o2 and they have the phone sent and repaired. As soon as I get it back I will tell you what was broken and or done to fix it.

Maybe someone here will experience a similar deterioration of their Diamond - but hopefully not!

Kind regards,

Martin
[Touch Diamond, MDA Compact IV General] HertogJanNL:
Meh, I've been a diamond user for a couple of months now and as of this week I'm getting these problems as well... Got into an argument with my girlfriend because of me not hearing when I'm being called. I don't have a mobile phone for nothing :mad: I want to be able to receive calls damnit!!!

It doesn't ring and/or vibrate often, and switches to 'silent' mode. At first I thought it was because of a soft reset I did recently, but then it also happened when I didn't reset it :(

Also, sometimes the 'phone application' (i.e. the dialer) doesn't come up when I'm making a call or receive one. So I can't answer the call.

I have original ROM (1.93 Dutch) that came with my phone. I did some tweaking though and I use S2U2, but they worked fine before...

I'm seriously considering going to T-Mobile and ask for an Omnia or something. Heck, I'd even pay for an iPhone...
[Samsung Galaxy S20 / S20+ / S20 Ultra Questions & ] *Detection*:
Just go to the apps info page on the phone and you can change permissions and notifications from there

Long press the app shortcut and hit the (i) information icon or access it from settings > apps
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hk96:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

UnOfficial fork of LineageOS with additional features such as faceunlock, extended screenshot etc. maintained by HyperTeam

LineageOS is a free, community built, aftermarket firmware distribution of Android 10, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

Features over LineageOS:

FaceUnlock
Asus Stitch Image(Long Ss)
Dynamic Volte/VoWifi Icons
Sound Tile
Power off/Reboot/Recovery Tile
Screeenshot Tile
DataSwitch Tile
Improved Haptic Feedback
Swipe for Screenshot
Dash Charging/VOOC Charging support
Signature Spoofing Support
MicroG Support
PA Applock
Safety net working without Magisk
Screen Recorder improvements
Animation on connecting charger
Added battery health and temp info
More fonts (One plus slate, Samsung one etc)
More clock styles (Lockscreen)
Adaptive playback
Pulse and edge notifications
Option to Reset Battery stats
Trebuchet Improvements (All clear+share button in recents, Improved UI)
Added style switches
Modify QS rows columns
QS title hide option
media art hide when song isn't playing
immersive navigation
option to enable media art blur on lockscreen
dead zone in gesture settings
Smart charging
OOS style all clear button
Allow to edit/remove/add tile with one click
Added option to touch power button when screen is off to unlock with fp (On supported devices)

Bugs:

None faced yet.

Let me know if any (with proper logs of course ;) )

Installation instructions

Download the latest build, (Gapps optional)

Reboot to recovery

Format data (if from other ROM)

Wipe system,vendor,cache,data

Flash ROM (Gapps)

Reboot and Enjoy

Download

LAVENDER

(10/10/2021)​

Notes

Gapps not included

Recommended Gapps - FlameGapps

Screenshots: Here

Credits:

HyperTeam, @HazamaFawkes25 , @Ratoriku

ROM Source: https://github.com/ForkLineageOS/android

Kernel Source: https://github.com/stormbreaker-project/kernel_xiaomi_lavender
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] hk96:
Reserved
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] deolux2:
Any advanced power menu available, please?;)
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] deolux2:
Sorry...found it...Can be enabled via Settings/System/Gestures/Power menu/Advanced restart ☺️
[Xiaomi Redmi Note 7 ROMs, Kernels, Recoveries, & O] malI2007:
thanks and I will try