how can I verify that it is picking the android sources from this respective branch

23 views
Skip to first unread message

Appu

unread,
May 11, 2020, 2:06:05 PM5/11/20
to Android Building
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:

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,

David

unread,
May 13, 2020, 3:25:02 PM5/13/20
to Android Building
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.) 

With `repo status` you can see your local changes.


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

Appu

unread,
May 26, 2020, 10:57:15 AM5/26/20
to android-...@googlegroups.com
Thanks a lot David! Really appreciate the same.

Is there anyways that can I figure out, roughly around which dates  approx- android's repo , branch, tags & the specific commit ID - the below patch was applied and tried?


based on the above patch, I see the parent commit ID is  "https://android.googlesource.com/platform/system/core/+/d555e08224d2a08f4f12c16ae4109b63b9f7def9",  but could you please let me know , is there anyways that can I figure out the specific android's repo , branch, tags & the specific commit ID 

As I am trying to bringup new usb host controller ip for android debugging, that requires some custom changes on adbd,

I guess the andorid version that is being used is “android-9.0.0_r45” (but I don't know the specific branch or commit id to get the same commit id), but when I try to build this version and replace the adbd in system.raw.img, I am unable to launch the settings icon, as it tries to keep loading but it doesn't launch at all.

https://source.android.com/setup/build/downloading & the below is the build procedure (please correct me if the below procedure is wrong for building android)

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”

As I tried using the command "adb shell getprop | grep ro.build" it didn't help on the target, to get the specific android repo with specific branch tags & commit id.

Could you please provide any inputs or pointers on the above please, I tried googling randomly for 2-3 days, I didn't get any clues on it.?

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 android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/2b389bea-b61a-4e25-a8dc-a3b1ebaa1209%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages