Change build version in target_files

84 views
Skip to first unread message

Vladimir Belousov

unread,
May 28, 2020, 6:32:45 AM5/28/20
to Android Building
Hi, we building an Android 10 using Jenkins. My task is as follows: after the build, I get target_files (let's say version 1.1). I want to get a full copy of these target_files but with a different version of the build without restarting the build (let's say 1.2). This can be done? The task is exactly this: from the original target_files to get their full copy, but so that the copy already has a different version (through the replacement of Build.prop or some other files). Why this is done (there is probably a normal solution, but we did not come up with it): when we update the device to version 1.1 we want to make sure that this update doesn't break update_engine. To do this, we create a "fake version" with the following number (1.2) and re-update the device. If everything works correctly, we can use version 1.1

Wesolowski, Krzysztof

unread,
May 28, 2020, 7:16:45 PM5/28/20
to android-...@googlegroups.com
You can replace files in targetfiles.zip and then rebuild them / create ota. See what sign_target_files_apks.py is actually doing.

BR, K


From: android-...@googlegroups.com <android-...@googlegroups.com> on behalf of Vladimir Belousov <sovm...@gmail.com>
Sent: Thursday, May 28, 2020 06:11
To: Android Building <android-...@googlegroups.com>
Subject: [android-building] Change build version in target_files
 
Hi, we building an Android 10 using Jenkins.  My task is as follows: after the build, I get target_files (let's say version 1.1).  I want to get a full copy of these target_files but with a different version of the build without restarting the build (let's say 1.2).  This can be done?  The task is exactly this: from the original target_files to get their full copy, but so that the copy already has a different version (through the replacement of Build.prop or some other files).  Why this is done (there is probably a normal solution, but we did not come up with it): when we update the device to version 1.1 we want to make sure that this update doesn't break update_engine. To do this, we create a "fake version" with the following number (1.2) and re-update the device.  If everything works correctly, we can use version 1.1

--
--
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
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fandroid-building%3Fhl%3Den&amp;data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C5d24d7ff14374b0b161908d802f275ba%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C637262587664199634&amp;sdata=TosgRh2r%2BQluFmrO5jMlRA2Fgd5RtWjz5g%2FYRBQZriI%3D&amp;reserved=0

---
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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fandroid-building%2F6d1f6254-08f5-430b-a6b9-96110dda13d6%2540googlegroups.com&amp;data=02%7C01%7Ckrzysztof.wesolowski%40volvocars.com%7C5d24d7ff14374b0b161908d802f275ba%7C81fa766ea34948678bf4ab35e250a08f%7C0%7C1%7C637262587664199634&amp;sdata=ArgSIAIqUG%2FxEY6r8jmPGSQH3pm8vFrDlaJparf%2BGfk%3D&amp;reserved=0.

Vladimir Belousov

unread,
May 29, 2020, 11:19:15 AM5/29/20
to Android Building
Thanks, that’s what I’m trying to do. Tell me, please, will it be enough to modify the System/build.prop file? I found various other files where the build version was stored.

Wesolowski, Krzysztof

unread,
Jun 4, 2020, 4:59:06 PM6/4/20
to Android Building
Not remember perfectly, I think we needed to go through build.prop, default.prop, and do it for both vendor and system partitions. In general "grep -R tour-prop" in /out folder to be sure.

BR, K.



Sent: Friday, May 29, 2020 09:22
To: Android Building <android-...@googlegroups.com>
Subject: Re: [android-building] Change build version in target_files
 
Thanks, that’s what I’m trying to do.  Tell me, please, will it be enough to modify the System/build.prop file?  I found various other files where the build version was stored.

--
--
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


---
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.
Reply all
Reply to author
Forward
0 new messages