Commit graph

66 commits

Author SHA1 Message Date
LuK1337
dfec562594 kernel: Add clean headers script to workaround conflicts with bionic
After the "Avoid multiple definitions of sigaction." change in bionic,
we ought to modify our kernel headers to make sure that sigaction struct
is not present in uapi headers.

Change-Id: I15645480e013e79cbcafaac99253368b646b6b11
2024-03-20 20:53:44 +00:00
Georg Veichtlbauer
de4302a67a Update custom_apns script for Python 3
Change-Id: Ia693daadac323e7c245867dbc7756f31637a4c15
2023-11-09 10:14:20 +00:00
Alexander Grund
f4ca355c3d Use a RegEx to get carrier instead of XML parsing
As we later do literal matches against the lines XML parsing is the
wrong approach as e.g. XML excapes will not be found which causes custom
APNs with e.g. `&` to be ignored, i.e. they will not overwrite the
default ones and will be fully missing from the output file.

Change-Id: I2bc575d4bbdc5d802c5d5b3420ee6b536a5a18fc
2023-01-22 19:55:02 +01:00
Alexander Grund
173af3e2f9 Include carrier= in carrier match string
Avoid random matches for generic carrier names such as `"3"`

Change-Id: I6bd2f3b9268ce2fb4754a170e1c359cb22fb2a60
2023-01-22 19:55:02 +01:00
Alexander Grund
faca8c641c Fix custom_apns script
Removing an element from the list that is currently iterated does not
work. At least it may skip the next element.

Also the handling of duplicate APN names was broken: It would output the
lines containing duplicate APN names times the number of the
duplication, i.e. the exact same line would be duplicated.
So use a `set` for storing apn names.

Change-Id: Id54d245dc935117cd4640ae0f1f30b8608c87459
2023-01-22 19:55:02 +01:00
Erfan Abdi
5f7f10de7b lineage: Add double quote in custom APN name check
* This fixes the case of have having APNs with same the name,
  such as:
  “Sprint EHRPD”
  "Sprint EHRPD ota"
  “Sprint EHRPD internet”

* But we want to replace only “Sprint EHRPD”, not all matches.

Change-Id: Ic3139c5d73a8c3c8667ac2bc527abc1a85541361
2021-06-24 04:53:35 +02:00
Rashed Abdel-Tawab
0d2fa55f2f lineage: Dynamically add custom APNs
For Example new devices need the new Sprint APNs, so add a new board flag for
them to set that will make the build system add the new APNs to
the APN config XML. If the flag is not set, continue to use the
old APNs.
To add or replace APNs, the custom_apns.py script has been
added. If CUSTOM_APNS_FILE is defined, custom_apns.py
is run and generates a new version of apns-conf.xml.

Change-Id: I7ff12a4342de2a7663b2b66fd627244214a8dc71
2018-12-13 07:25:18 +01:00
Chirayu Desai
48b5c971e1 get rid of otapackage tools
Change-Id: I19e2e2f6b4c10a42468fb3b68a0b4e25312947ac
2013-03-03 05:54:47 -08:00
jt1134
e59a416504 cm: cleanup
- remove SpareParts: it's disabled and broken, the options it provides
  are either useless/broken or available in development settings

- remove modelid_cfg.sh: no devices are using this any more

- remove opticharger: it's not used any more

Change-Id: I68c86b2407486c4b40998288cf1f70b7cb8170f4
2013-01-20 20:43:04 -08:00
KhasMek
901e88504b Make output of md5sum more uniform.
Change-Id: Ie706039d998f0bffb9c3baac10763c190f6c9811
2012-12-24 00:09:22 -08:00
Koushik Dutta
bd404d23e0 squisher: force hardlink.
Change-Id: I5741918615d101d2553fb7cdd02b0c5242970bc9
2012-12-22 19:45:54 -08:00
Koushik Dutta
47a84b28df squisher: link the target $OUTFILE.
Change-Id: I5d905fb12e7d5f5cbae0af85f229b29becaf33ef
2012-12-22 11:59:46 -08:00
Koushik Dutta
6ed2e1b1cd squisher: Get rid of it.
The pngcrush tool does not add any noticeable value any more, such that it justifies the extra build time: 240MB vs 238MB.
The build.prop changes are now no ops, since the key for ro.kernel.android.checkjni no longer exists.
Changing the ro.build.type from eng to user is also a no op, since CM is now userdebug.
Deleting bins is also unncessary now.
Stripping modules is also unnecessary now. (plenty of space)

At this point, I think we can just symlink $OUTFILE to $OTAPACKAGE, and not even bother
with a copy.

Change-Id: I431ac6425dedb6cd02eb2d31fc9ff82b49df9f50
2012-12-22 11:39:28 -08:00
Chirayu Desai
39cb878292 otatools: build-with-colors
- add new file for common functions and stuff
 - though it doesn't contain any function now ;)
- red color for errors
- yellow color for "Optimizing: *"
- cyan color for modversion :)
- green color for "package complete"
- and some general cleanup

Change-Id: I83b2e352580e99b1766c5e63821281224cde5c49
2012-10-14 14:25:53 +05:30
Brint E. Kriebel
5ed21af23a squisher: Don't set the OTAPACKAGE name
Instead of setting the OTAPACKAGE name here, expect
OTAPACKAGE will be passed to us. This fixes an issue when
BUILD_NUMBER is defined in an environment with automated
builds.

Change-Id: I0634416e5332790d314f6a70313ea67821fd1331
2012-09-20 16:11:12 -04:00
Reinhard Lenninger
4576c753b5 pngcrush: don't print out an error on mv if optimizing fails
pngcrush is currently storing the optimized png in <pngname>.out.
If optimizing the png fails, e.g. on palette errors, mv can't
overwrite the original file with the nonexisting .out file and prints
out an error like this:

mv: cannot stat `./foo/bar/baz.png.out': No such file or directory

Writing stderr to /dev/null will suppress that message.

Change-Id: I0b7339392545e98586d66cc8ff8abf52c443f66f
2012-08-26 22:47:49 +02:00
Pawit Pornkitprasan
bb56531b18 opticharger: do not compress resources.arsc
Android does not compress resources.arsc allowing it to be
read directly without uncompressing. When opticharger runs,
it compresses it breaking the optimization.

Change-Id: I9c9b9971a3fe4a21be5a633274832041ca9a33c1
2012-08-19 15:33:09 +04:00
KhasMek
a82b7b3fff opticharger: skip packages labled as PRESIGNED
This fixes market updates and redundant
*.old files from being packaged- looks to
save about 10MB on the zip.

Change-Id: I82266204de3a04f71b24e4183672185d6b2da8d9
2012-08-19 15:32:56 +04:00
Chirayu Desai
d1dbaf3ef0 opticharger: use $ANDROID_HOST_OUT
Change-Id: I1b6988051ba7a83aa7149862ae8d96050bf59e23
2012-08-19 14:08:37 +04:00
Erez A. Korn
8e8a67896d Allow buildtype user
The tools scripts did not handle buildtype user correctly.

Change-Id: Ie4f98dbab7e97a8244ee1d9b4d995673e0aac930
2012-08-19 14:07:44 +04:00
Jorge Ruesga
547bd46507 Vendor CM Build: Allow parallelize the optimization of framework-res.apk
from: http://review.cyanogenmod.com/#/c/19170/

This change enhancement the optimization of cm ota package, allowing do the optimization of
framework-res.apk in a parallel way. The current script optimize first the
framework-res package and then the rest of packages with xargs in parallel. The framework-res
package can be processed with xargs in parallel copying all the packages to a temporally folder
to apply xargs (because opticharged need that the package is the current directory).
This shortens the time of optimization process, because while framework-res package is
optimized, the rest of processor cores can be optimizing other packages.

Change-Id: I047f8c01b066db99e4dcc8bcb2f30c72492e1af8
2012-08-15 01:22:22 +04:00
Chirayu Desai
c10f6d5638 squisher: replace $ANDROID_BUILD_TOP
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE

Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
2012-08-12 09:10:36 +04:00
Warren Togami
2128e2f956 Simplify ROM filename, s/SNAPSHOT/EXPERIMENTAL/, other cleanups
* Remove "update-" prefix and "-signed" suffix.
* Replace SNAPSHOT with EXPERIMENTAL (arcee).
* If CM_EXTRAVERSION, force to type EXPERIMENTAL.
* UNOFFICIAL builds now with datestamp in the same manner as NIGHTLY.
* date -u uses UTC timezone for consistency.
* Remove some CM7 dead code.

Change-Id: I681fd92e27aaf62c50eae20265ce07c67d477bca
2012-06-07 13:44:06 -10:00
Chirayu Desai
1870cc6ab5 cm vendor : cleanup
removed functions for working with a squashfs image if target was dream
removed a useless comment (deleting wifi module, it's device specific)

Change-Id: I3d634f572bc3bf975441dd562f6e8111c0e60764
2012-05-12 11:29:36 +05:30
Pavel Valenta
1af866c239 Increase Java VM maximum heap size to 1024MB
I got "java.lang.OutOfMemoryError: Java heap space" error when I'm building own Kang (galaxys2 for example) with Gapps included.
Increase maximum heap size to 1024MB will solve it.
2012-04-18 01:06:51 +08:00
Koushik Dutta
45130b4332 fix buikld
Change-Id: Id6fb8c83566aa678bb90ebb85bad4d06b2559916
2012-02-23 16:05:14 -08:00
Robert Burns
181457ebae Fix squisher for cm.version
Change-Id: I9ba2cc1ef1a60d83752140c926cbdf00337c7cd6
2011-12-29 22:57:04 -05:00
Steve Kondik
25d7ca1628 cm: Rename modversion to cm.version
Change-Id: I73da7816fec34e892ee54e1782a18ec1c42863b4
2011-12-29 15:29:34 -08:00
Ricardo Cerqueira
e1f3738e7c CM9: initial CM vendor setup for Android 4 2011-11-27 20:15:37 +00:00
Evan McClain
f199486460 Use pngcrush -brute by default.
But fallback to optipng -o7 and then pngout.

This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.

Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
2011-10-29 15:17:52 -04:00
Arif Ali
d6c5eba1f9 leo: removed leoupdate
Change-Id: I96fca75ffda26a7795ccf820c4c837980c444edd
2011-10-03 22:34:49 +01:00
Arif Ali
c5217ce25f leo: update leoupdate
Change the script to include the main ramdisk that is created by the compilation, unless if someone has their own initrd.gz in the repo, it will ignore it

Change-Id: I8847c0890124d64e1de98f02f39f38f3a3062c43
2011-09-28 01:05:04 +01:00
Ladios Jonquil
1f76513897 tools: Fix for $LOGNAME missing in Ubuntu 11.10, using $USER instead
Change-Id: I824fc6ca27c2a2308e977a14585afc6dd4996f56
2011-09-25 02:16:41 +08:00
Pat Thoyts
8ed18b5776 Avoid running strip on modules if there is no modules directory.
This avoids printing an error message and usage statement when using squisher if no modules
have been produced.

Change-Id: Iadd38518e64f7edf2d4da345143a44970c6f383a
Signed-off-by: Pat Thoyts <patthoyts@gmail.com>
2011-08-03 16:14:31 +01:00
charansingh
5ef680426e Fix LeoUpdate script so that only one boot folder is present
Change-Id: I0124aaaabf4e8583b011e87c9c17de36ba05a979
2011-03-27 17:23:20 +05:30
Steve Kondik
1b766f7cf9 Merge "Enable the creation of a debug bacon" into gingerbread 2011-02-06 20:34:07 +00:00
David Kohen
61848e4fbe Enable the creation of a debug bacon
Change-Id: I509e279a6bf31fd9749ccc6eb2a71b4312d7e764
2011-02-06 20:29:33 +02:00
charansingh
d204b68f86 Add leo related vendor files in Cyanogen Vendor
Change-Id: Idb55f5a74dd07a2964fbc87d98f522bb1d921947
2011-02-05 17:04:52 -05:00
Christopher Lais
c557d07d8d opticharger: fix PinyinIME
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded.  Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.

Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.

Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
2011-01-05 15:14:21 -06:00
Chris Soyars
88f9e3941f harmony: disable phone intent, override default ADW columns/rows. 2010-11-26 23:20:08 -05:00
Takuo Kitame
9db7666bf4 squisher: fix OS X darwin compatibility
Number of processors: use sysctl on darwin.
xargs: fix incompatible arguments.
sed: use gsed on darwin because -i option is not compatible.

Change-Id: Ic3885db592e9588f01b69843add0e287ad35d4e9
2010-10-29 09:55:59 +09:00
garth
c0d71e3766 parallelize the launching of $OPTICHARGER form squiasher script
Before

real    1m25.583s
user    1m14.101s
sys     0m21.717s

After

real    0m47.257s
user    1m46.123s
sys     0m23.453s

Change-Id: I1ca0013f8dec9175027f2e9bed93786cfe3804d5
2010-10-16 22:39:03 +01:00
Steve Kondik
47ce7ecc75 Use unique temporary directories in opticharger 2010-08-22 00:08:06 -04:00
Chris Soyars
44226331a6 Move squisher heapspace up to 512m, having problems on my box and buildbot. Others have reported issues as well.
Change-Id: I38e4113591e052b73f72c8e22699c41e8fd0c322
2010-08-21 00:30:40 -04:00
Steve Kondik
6eb6163f1f Squisher does not need 2GB to run.
Setting a limit this high causes the JVM to crash on certain systems.
2010-08-20 13:27:39 -04:00
Wes Garner
903162408f cmgerrit: remove from vendor, now merged into envsetup 2010-08-19 14:56:24 -05:00
Wes Garner
75c82dda5c cmgerrit: if command line input is null, prompt user for the variables
cmgerrit: cleanup wording to make it easier to understand
2010-08-18 19:33:06 -05:00
Jonas Larsson
d37c230b2f +x on cmgerrit 2010-08-18 22:35:22 +02:00
Wes Garner
1ab85770e6 vendorsetup: add vendor/cyanogen/tools to PATH 2010-08-18 14:04:07 -05:00
Wes Garner
30f4635075 CM Gerrit tool to make submissions easier
cmgerrit: fix typo

cmgerrit: add pref for branch or change-id

cmgerrit: fix a #blamewes
2010-08-18 13:17:20 -05:00