Hey Appu,

not an expert but on the source code go to the repo manifest branch `cd 
<repo dir>/.repo/manifests`.
With `git show` you can see the latest commit and also the attached tags.
(The manifests folder describes which repository version repo syncs.) 
https://gerrit.googlesource.com/git-repo/+/refs/heads/master/docs/manifest-format.md

With `repo status` you can see your local changes.
https://source.android.com/setup/develop/repo#status


On the device you can get some build information with:
`adb shell getprop | grep ro.build`

But as far as I know you can't get the branch used for the build.


I hope that helps.

Cheers,
David


Am Montag, 11. Mai 2020 20:06:05 UTC+2 schrieb Appu:
>
> Dear Android Building experts,
>
> Could you please let me know, I am trying to build the android source code 
> from respective branch for ex: android-9.0.0_r45, how can I verify that it 
> is picking the android sources from this respective branch - 
> android-9.0.0_r45? once after it is downloaded or after it is built?
>
>
> Steps to reproduce:
>
> 1. https://source.android.com/setup/build/downloading
> Used branch “android-9.0.0_r45”
>
>
> repo init -u https://android.googlesource.com/platform/manifest -b 
> android-9.0.0_r45
>
> 2. Setup for build – This step has to be done only once
> <repo dir> $ source env_setup.sh
> <repo dir> $ lunch
> Choose “aosp_x86_64-eng”
>
> Many Thanks in advance,
>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/2b389bea-b61a-4e25-a8dc-a3b1ebaa1209%40googlegroups.com.

Reply via email to