yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] :
Hello mate,

There are 2 possibilities of this in my opinion.

You made the branch before cloning the repo.

You cloned the repo and didn't cd to it. You are still at the root.

Looking overview it seems like the first one.

But can you please paste full terminal logs? I can have a look and we can assist you further :good:

Cheers!
[Android Q&A, Help & Troubleshooting] :
Thank you for your kind word mate!

I am going to continue further in a bit depth soon ;)
[Android Q&A, Help & Troubleshooting] nicesoni_ash:
Nice guide for newbies. Really helpful. What about if we wanna add a repo from gitlab to our local_manifest file, how to do that?

Thanks.
[Android Q&A, Help & Troubleshooting] nathanchance:
Add Gitlab as a remote to the top of your local manifest like so:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="gitlab"
fetch="https://gitlab.com" />
<project name="" path="" revision="" remote="gitlab" />

</manifest>
[Android Q&A, Help & Troubleshooting] HarshOne:
I've seen one tutorial on developing custom rom from source. To do that device specific files like kernel, device tree and vendor blobs are needed. I have following problems regarding those files.

* Kernel - I have zip file of kernel downloaded from my device manufacturer site. How can i make use of that to build a rom?

* device tree - I'm not able to find a device tree for my device anywhere (github or anywhere), how can I build device tree using (kernel/stockrom...)

I'm totally new for this so I don't know if it is even possible or not. Or Is there any other way to create device tree.

* vendor blobs - I've same problem for vendor blobs as in device tree.

~ so from where and how I can extract or create device tree and vendor?

~ and make things ready to develop a custom rom

My device is HTC one (m8 eye)

code name : melsuhl
[Android Q&A, Help & Troubleshooting] DEVILOPS 007:
Would someone be able to possibly help me with applying a patch file with git into a rom by compiling and merging with the source code please. I have no clue where to start. Any tips, links or anything would be greatly appreciated. Thanks!
[Android Q&A, Help & Troubleshooting] :
Hello,

I apologize for the delayed reply.

You'll have to learn to make a tree from scratch if there is no existing one yet. That is indeed a lengthy process.

As for vendor blobs, you need to extract them from Stock ROM zip.

Please link me the patch and the repo where you wish to apply. We can guide you further then.

Thank you:)
[Android Q&A, Help & Troubleshooting] DEVILOPS 007:
Thanks for the helpful response and no need to apologise about the delay. Any reply is better than none. Here's the link. Thanks :)

https://xdaforums.com/nexus-6p/development/wakeblock-blocking-drain-late-t3526313/page11
[Android Q&A, Help & Troubleshooting] :
For building with the ROM source, you will need something more than just the patch.

Because each file is built from source while building a ROM unless you use prebuilts, which isn't possible in this case.

Thank you:)
[Android Q&A, Help & Troubleshooting] DEVILOPS 007:
I have the rom and I'm aware I can get the source from github by doing repo init commands etc and repo sync unless I'm wrong.
[Android Q&A, Help & Troubleshooting] :
So if I understand correctly, you want the patch to be built in the rom inline?

Do you know where you have to make the change in source? As far as I understand, you need to know that in order to make the patch built in rom.
[Android Q&A, Help & Troubleshooting] nicesoni_ash:
Them get the repo, put the patch in frameworks/base and apply by

git apply patchname.patch

Or git am patchname.patch

If it'll show errors, which I am sure it will, go to that file where error is and fix it manually and then continue.

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android Q&A, Help & Troubleshooting] HarshOne:
Can I use kernel built from kernel source of Android 5 to build rom for Android 7?
[Android Q&A, Help & Troubleshooting] MigoMujahid:
No you can't because each android has a different api, so you can't use a kernel with api 21 or 22 on an api 24 or 25 [MENTION=8086784]HarshOne[/MENTION]

Apparently, you can, read Below post.

Sorry for wrong info.
[Android Q&A, Help & Troubleshooting] Arvind7352:
Ah, no. Relation between Kernel and Android APIs are null.

Totally Core Android Specific. Kernel source may be patched (modified) in order to get the respective Android version booting. Differs for each Device.

Patches ? Where to find ? What patches to be applied ?

Don't know :p. Can be asked in any Kernel building guides (in Chef Central)

Programming knowledge in C/Assembly mandatory for working with the Kernel

Core Android refers to the modules (mostly coded in C/C++) which get Android up and Booting. GUI is based on Java, and that's where the role of APIs comes in.
[Android Q&A, Help & Troubleshooting] MigoMujahid:
[MENTION=6049586]Arvind7352[/MENTION]

Thanks for the explanation, i edited my post, my answer was based on another Contributor's answer, I guess he should know that, or maybe i got his answer in the Wrong way, anyway, I'm still learning :)

Thanks
[Android Q&A, Help & Troubleshooting] HarshOne:
My device repositories are not available on github, But I got device tree and vendor blobs by making changes in similar device repo. That reference device's kernel's lineageos_defconfig is situated in htc msm8974 kernel repo. So how can I get lineageos_defconfig for my device, and which other my device related kernel files(.dtsi or any other) I have to push in htc msm8974 repo and get those files to make things ready for build?

Please help......
[Android Q&A, Help & Troubleshooting] :
Actually I flashed Resurrection Remix ROM on my Redmi 3s Prime and I miss the stock experience of stock apps of Mi Stock ROM like Gallery with hide option etc.

Then I tried to install the apps manually which didn't work.

Suggest a way please.

Answers are welcomed !!
[Android Q&A, Help & Troubleshooting] :
This isn't really the thread for this as it has nothing to do with git but most propriety apps like Miui or Samsung, HTC etc require their manufacturers framework to run. Unfortunately most Miui apps wont run on LOS/AOSP based roms
[Android Q&A, Help & Troubleshooting] sscsps:
Little mistake?

Isn't the warning supposed to be for gitlab? Instead of GitHub? [MENTION=4910973]Vatsal[/MENTION]
[Android Q&A, Help & Troubleshooting] Nis882:
Can anyone create a custom rom please!!!

I need a custom recovery for my device Micromax Q491 (Canvas amaze 4g), I dont know anything about this..

Can you please create a custom recovery for my device....

I would be thankful to you
[Android Q&A, Help & Troubleshooting] agus_ulo:
Wrong Thread !
[Android Q&A, Help & Troubleshooting] chirag2474:
Please find my bootloader unlock code I am in trouble my phone is bricked and no recovery installed

Model - HUAWEI Y330-U11

IMEI - Mod Edit

S/N - A4S4C14A27031253

PLEASE
[Android Q&A, Help & Troubleshooting] post-mortem:
This is the wrong thread for this type of question. Please do not ask the same question in multiple threads, it creates great confusion.

See the answer in another thread where you posted this question here.
[Android Q&A, Help & Troubleshooting] Hayzohar:
Nice guide!

Nice guide! very well done :)
[Android Q&A, Help & Troubleshooting] Heidi001:
I would try it, thanks for guide!
[Android Q&A, Help & Troubleshooting] haism007:
V.good

Thanks
[Android Q&A, Help & Troubleshooting] DiamondJohn:
I am using git for the most part to pull the latest changes for building ROMs for my device. To see changes I have made locally, I use

repo diff

What that does not show are any changes/commits that will be brought down if I do repo sync. I am guessing that the diff statement only shows the changes in respect to my current checkout, which will not be any new commits since the last checkout I did?

When I do a repo sync, I go for the following to ensure I get all the latest code.

repo forall -c git reset --hard;
repo forall -c git clean -fdx;
repo forall -c git checkout -f;
repo sync -fc --force-sync --force-broken --no-clone-bundle;

Is there a way that without modifying any of my local changes, that I could actually do a diff with head (ie the latest commits)? ie preview the changes that will be brought with a repo sync?
[Android Q&A, Help & Troubleshooting] DiamondJohn:
Another question, re the web interface

Another thing that has confused me, is when trying to view what the latest changes to a repository are. Basically manually doing my previous question.

For example, I build crDroid, and before a build, to check if a build is worth the effort, I like to see what has been recently added/fixed/changed. So, I browse to https://github.com/crdroidandroid which (in the lower section) shows a list of the recently changed items, showing the project and the date of the change. However, the date shown here (which forms the basis of the presented sort) seems to be a little out of sorts (I think some of it can be explained by the possible fact that the date also includes the date when someone creates a branch, i think), as shown below when I checked today.

On the first page, it showed

ie the last update was 8hrs ago

However when you click on the project link, it shows the following

which says the latest commit was Mar 3, yet when you browse to the file (as shown in the above image) it says 8hrs ago:confused::confused:
[Android Q&A, Help & Troubleshooting] Ialleryas:
Cool ,i like it
[Android Q&A, Help & Troubleshooting] Nauman Afridi:
Hello ..Guys I'm new here and Need help regarding an App " SlowDns " ..pls help...
[Android Q&A, Help & Troubleshooting] jennyd93:
Hi I have a question. So when I download odin on my computer even when I click extract on the compressed zip file it still doesn't download any of the corresponding .md5 files that you put into BL, AP, CP, etc. So I can't put any of the corresponding files in those sections because it won't zip/download those files to begin with. When I download open and unzip the S1 plugin bundle the only thing that comes up after that is two folders one that says MacOS and the other that says resources and neither of which have files in them. Thank you sorry if I didn't explain things well I am not that great with stuff like this
[Android Q&A, Help & Troubleshooting] futuretricks:
futuretricks

hey,

thankyou. this is very helpful for me.
[Android Q&A, Help & Troubleshooting] kukunian:
Let me Try this guide. Thanks For The Useful Information. :o
[Android Q&A, Help & Troubleshooting] HafidzRadhival:
whats different git push and gitu push -u origin (branch) ?:confused:
[Android Q&A, Help & Troubleshooting] FSadino:
Git push is the command, -u origin (branch) are the tags
[Android Q&A, Help & Troubleshooting] TheExploitedOne:
Another helpful one I found was git push --mirror <repo name>

---------- Post added at 10:32 PM ---------- Previous post was at 10:30 PM ----------

Is it just Odin standalone you downloaded? If so you'd need to find your firmware and if you don't have one than you can create one. To do so just dump your device firmware and select all the partitions to be archived. Or are you trying to view the files within your download?
[Android Q&A, Help & Troubleshooting] HafidzRadhival:
whats function --mirror?
[Android Q&A, Help & Troubleshooting] TheExploitedOne:
It's a way to push to your repo it's actually been the best option I've used. It's a function for git to push your files to your repo without having to use git push. I've had loads of problems trying to use just git push after setting it up and I've had to re initialize everything
[Android Q&A, Help & Troubleshooting] HafidzRadhival:
whats your problem using gitu push bro?
[Android Q&A, Help & Troubleshooting] TheExploitedOne:
I have no idea after I set it up to use just git push in the directory I'm working with it completely breaks. I've always found git push --mirror to always work to upload to my repos
[Android Q&A, Help & Troubleshooting] HafidzRadhival:
hhhuummmbbb,, okay bro, next time I will use it if I find the same problem with you, thanks bro.:D
[Android Q&A, Help & Troubleshooting] TheExploitedOne:
Absolutely good sir! ?
[Android Q&A, Help & Troubleshooting] xSil3nt:
Git is useful for everyone to know, even if they don't plan on going into programming, it should honestly be taught in schools.
[Android Q&A, Help & Troubleshooting] Jalapeno123:
i was updating my s10plus software when a screen came saying downloading do not turn off target odin mode avb fail . i tried to flash it but odin was stuck at vendor.img for several hours. Then i quit odin and then a screen came saying that to recover from smart switch. Then i used a tool to fix the soft brick and now i am in the same downloading screen but this time saying error validating footer. i tried to flash again but am still stuck at vendor.img. i tried a different csc version and that stucks at system.img
[Galaxy S6 Edge Q&A, Help & Troubleshooting] AOsmanov:
Is it possible Downgrade SM-G925F from 6.0.1 G925FXXU4DPGW Firmware to 5.1.1

or is normal to receive an error (fail)
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
Its impossible. It will fail every time
[Galaxy S6 Edge Q&A, Help & Troubleshooting] AOsmanov:
thanks

I realized after all attempts

but thanks for the reply
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
No worries mate
[Galaxy S6 Edge Q&A, Help & Troubleshooting] Feyaad:
Hi there, I have a Samsung G925F only booting to Samsung logo, I tried different roms using latest Odin but it keep failing. Any advice on this?

I also have z3x box and have access to all the stock roms so can download any1 if required.
[Galaxy S6 Edge Q&A, Help & Troubleshooting] callumbr1:
See other thread...
[Android Q&A, Help & Troubleshooting] 12valves:
Hello

I have a takara mid101 tablet that lost the sound on the speakers. But there is sound with the helmet ... this failure came after a reinitialisation of the system ... I check in the settings everything is ok. I tested the speaker which are ok..j'ai look on the internet a rom to flasher this tablet but nothing .

android 4.2.2

noyau3.4.5

build v1.1.8.20131115.074822

cpu wm8880 1.5ghz dual cortex-a9

ram 1gb ddr3

storage 4gb
[Tilt, TyTN II, MDA Vario III General] krakout:
Hello!

This forum is a wealth of resources and knoledge, so thanks so much to all the people here... I'm rather new to the world of WM, so I need to learn lots of things - fast!

Anyway, I have a question/request that I don't know where to post - please guide me! It's not about TyTNII in particular but for other devices as well:

I find the way that the device locks down very awkward and unintuitive - I don't want to be reaching for the power button just to see if I have any messages etc! So I was thinking about iPhone's slider, and lo and behold, google gave me a couple of alternatives. Sleeeeeek! I thought, but not so much so after installing them.

My ideal screen/button locker would:

-turn off the screen after a specified amount of seconds

-sense when the screen is touched, or a key is pressed, and light up the screen at a low light level, awaiting for the move to unlock the device

-it would NOT look like iPhone!!! Why on earth should it?? I mean, the slider is very neat as an interface thingy, efficient and easy to use, but I don't want to have a different interface with it. So, I would like to keep just the slider, and still be able to see my Home Screen - I simply do not need another one...

So, the question is, is there such a thing? Or, can a slider applet be customized so?

Thanks to everyone, and have a happy holiday season!
[Tilt, TyTN II, MDA Vario III General] ericc191:
there are a lot of sliders around.. just gotta search. and as for the screen dim and off stuff.. it comes with most of that as settings options
[Tilt, TyTN II, MDA Vario III General] krakout:
Well... I did look around and searched quite a bit, did not find anything that comes near my description... would you have a name/idea?

Thanks again,

T
[Tilt, TyTN II, MDA Vario III General] while(!(linux)){wm}:
http://xdaforums.com/showthread.php?t=308361&highlight=s2u2
[Tilt, TyTN II, MDA Vario III General] krakout:
Well, yes, that's the first I tried, but I didn't find a way to keep only the slider itself, as I described above...?
[Tilt, TyTN II, MDA Vario III General] krakout:
Anyone...? :(
[Xiaomi Mi 5 Questions & Answers] IMTLD:
Hello everyone,

I have-or had- MI5 with latest cm14.1 on it, today I downloaded the latest rom from xiaomi.eu -Nougat-. I rebooted into recovery, wiped partitions, flashed the new rom, flashed successfully, and then flashed a font zip, the installer hanged at unmounting system for a long time, I forced rebooting it through holding power button the phone turned off and then never worked. nothing happens, no led when connecting to charger, pc does not recognize the phone at all, no sounds when connecting it. recovery and bootloader does not open. it is completely DEAD. Any help?
[Xiaomi Mi 5 Questions & Answers] iXanza:
same h ere except i didn't get any errors while flashing except the normal command[log] error for all nougat roms. phone is just dead with no signs of life.
[Xiaomi Mi 5 Questions & Answers] IMTLD:
I got this error as well,

After some search it seems using a deep flash cable could, I cannot make one currently so maybe you could take a look and try it

http://xdaforums.com/showpost.php?p=69727277&postcount=2

I just checked the second post in the xiaomi eu thread

"- NEVER wipe /system partition manually in your life!"

hmm, I have always done this

Edit:

Many people reporting the same issue their.
[Xiaomi Mi 5 Questions & Answers] iXanza:
There's another way to go to EDL mode which is this

https://www.youtube.com/watch?v=ED96PJ-qYMM

I haven't tried it yet as I don't have copper tweezers.
[Xiaomi Mi 5 Questions & Answers] IMTLD:
People reported it worked in xiaomi eu thread, gonna try once I have the tools, I wonder why the * dev didn't write "- NEVER wipe /system partition manually in your life!" before the download links:)
[Xiaomi Mi 5 Questions & Answers] iXanza:
No clue. I'm taking it to the shop for them to do it for me tomorrow.
[Xiaomi Mi 5 Questions & Answers] standbyme91:
https://www.youtube.com/watch?v=ED96PJ-qYMM

Do follow the videos, i was hard brick 2 times but now it's working
[Xiaomi Mi 5 Questions & Answers] Shaky156:
The issue is, you flashed the CM14.1 on low battery, this then messed up the battery reading, while your device showed somewhere like 50% infact it was around 10%, what need to be done is, do a hard reset with power button a few times while connected to a charger, use a new charger/cable and let it charge for a long time, itll then switch on and charge, leave it to charge till 100% then do a full wipe including internal storage and install a new OS
[Xiaomi Mi 5 Questions & Answers] IMTLD:
I don't really think that this is the problem because the "rom" flash completely successfully. I don't think that the font flash would cause all this mess. Anyway, I left it charging overnight and I keep pressing power button with vol +/- but nothing happens. Thanks anyway. it seems I have to either use test points or deep flash cable.
[Xiaomi Mi 5 Questions & Answers] jccint:
Hard bricked the phone with the same ROM here, tried to solve it with the video's testpoints (making contact between the two dots and plugging the USB).

Fortunately, MiFlash with adb and qualcomm drivers recognized the device. So I flashed many fastboot ROMs (miui 7/8 dev&stable) via MiFlash, but none of them made the device wake up. The only signal of life is the led blinking red when connected to a usb.

Still trying...

EDIT: ok, got it booting now. The red blinking led is actually a good sign, it means low battery. I just let it charge for about 20 min and the led changed to yellow, and then I could boot it up.

It seems like in all that time the phone was plugged into my PC usb port for flashing, it didn't charge the battery. So I think we should take into account what Shaky156 said, just in case.
[Xiaomi Mi 5 Questions & Answers] IMTLD:
I just revived my mi5 using the test point method, it is rather simple actually.

Make sure you are using miflashtool beta,

I downloaded this rom china developer

I noticed that even though I chose save user data, I still lost my data.
[Xiaomi Mi 5 Questions & Answers] jccint:
Good to know it also worked for you, I just didn't believe that my battery was depleted from 70% just by hardbriking it...
[Xiaomi Mi 5 Questions & Answers] IMTLD:
After installing TWRP it asks to decrypt data even though I did not encrypt, hmmm what now

Edit:

I just did factory reset in TWRP and now I can see sdcard.
[Xiaomi Mi 5 Questions & Answers] idmissile:
I also had my Mi5 die earlier today. Here's what I did to get it back:

1. Popped-open the back cover, removed the screws from the top panel

2. Disconnected battery (left side)

3. Connected battery back

4. Shorted the two contacts at the right side of the board

5. Plugged original USB in

Note that using a deep flash cable is a less intrusive way of doing steps 1-5, but that's what worked for me.

At this point, the PC detected the phone in EDL mode. I then attempted to flash the fastboot ROM for Mi 5, however, I kept getting errors about Missed Hello / Issue with COM port.

6. Downloaded an up-to-date version of Mi Flash (beta didn't work for me), disable Signature Enforcement (Windows 10) and install Qualcomm drivers

7. Downloaded a MIUI 7.5 fastboot rom

8. Flashed, got an error, about storage being not enough... But the screen turned on with the Mi logo. I was finally able to get the phone into Fastboot.

9. Successfully flashed MIUI 7.5 ROM using Mi Flash.

If you are still getting the COM port issue or Hello, try disconnecting the battery again and repeating steps 3-5.

Good luck.
[Xiaomi Mi 5 Questions & Answers] IMTLD:
Thanks for the reply, but I already fixed it this way. I used miflashtool beta since the final release did not work.

The problem is did you lose your data after the flash? because I lost mine even though I checked save data in miflashtool
[Xiaomi Mi 5 Questions & Answers] idmissile:
At that point, I didn't really care if I lost data since I didn't have much on it anyway. Nice to hear that you got yours back. Those were dark hours, yes?
[Xiaomi Mi 5 Questions & Answers] arximus:
Thanks for giving a hope (checking way to recover from video). I'll get proper screwdrivers soon and try do the same.
[Xiaomi Mi 5 Questions & Answers] Shaky156:
I have narrowed down the issue, its the nougat firmware thats caused these recent issues. Xiaomi has distributed an unstable bootloader. I highly recommend reverting back to marshmallow firmware and OS
[Xiaomi Mi 5 Questions & Answers] Rmyaseen:
but how my mi5 now hardbricked no fastboot no recovery no edl
[Xiaomi Mi 5 Questions & Answers] gaz090:
I can confirm that this 100% works for me. You need to be a bit patient with the tweezers and getting the contact points right. It didn't immediately work for me, and I think I had to try a dozen times at least. But eventually it did recognize it. Once MiFlash can see it, you need to use the latest China stable rom. I tried the latest china dev, but it kept on giving errors of missing hello packets.
[Xiaomi Mi 5 Questions & Answers] IMTLD:
I fixed mine this way, I didn't have a tweezers so I just used a small copper Wire. I got the same error with china dev so I downloaded miflashtool "beat" and it worked.
[Xiaomi Mi 5 Questions & Answers] chief13:
mine 2 ;) i wiped system and my phone died !

Thankfully is back !
[Xiaomi Mi 5 Questions & Answers] shabtab:
Is this still happening on the new xiaomi.eu ROM's or was it only on the first build anyone tried?
[Xiaomi Mi 5 Questions & Answers] jccint:
Hi shabtab, I was one of the "affected" users, because I didn't follow the instructions to flash MIUI nougat. It is specified that you must not wipe your system partition, but I was like "what can probably go wrong? I have been doing it all the time..." So the silly me hardbricked the phone.

But hey, now I am running the latest nougat version 7.1.5 without any problems:victory:, but I had to first flash the last marshmallow version... The instructions are written in red in the MIUI post, so check it out.