Commit graph

472 commits

Author SHA1 Message Date
Sanket Padawe
db5d1e07ad Add OEM specific error code space which can by used to
replace Generic errors.

Bug: 27038563
Change-Id: I4052505ed684067cb9145d165f0e335ad52ed404
2016-10-12 12:59:53 -07:00
Sanket Padawe
6049dec1db Convert newly added error code to string values in ril.cpp.
Bug: 23216719
Change-Id: Ie2202124cb460872a9f5c406e8f1ae94465d9d0b
2016-10-12 12:59:39 -07:00
Sanket Padawe
9f97208a88 Use different response type for unsolicited mesg requiring
wakelock.

+ New type is added as ack from RIL java should be sent only for unsolicited mesgs
which hold wakelock in ril.cpp.

Bug: 22127517

Change-Id: Ib7e920d168ab92665283f80476bad3f5ede033e4
2016-10-12 12:59:28 -07:00
Sanket Padawe
a7c043d6f0 Improve wakelock symantics in RIL.
Bug: 22127517
Change-Id: I13fce25c8c6b27987e576b29a2ca5cd813f5b06f
2016-10-12 12:56:50 -07:00
Sanket Padawe
a79128ab25 Added fields to CELL_INFO_LIST.
Gsm: ta, arfcn, bsic
Wcdma: uarfcn
Lte: earfcn

Bug: 23528586
Change-Id: Iaf7bfaac96bda92d980c566878b9fe481a6d2c21
2016-10-12 12:56:38 -07:00
Sanket Padawe
201aca3682 Use SimRefreshResponse struct in RIL Versions greater than 7
Modify condition to use SimRefreshResponse struct in
all RIL Versions greater than 7.

BUG=21075857

Change-Id: Ifde00434bfcaecf3b4c32392fc4964fe3b43f6b5
2016-10-12 12:56:19 -07:00
Ajay Nambi
e63b4f6986 Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION
Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION in
requestToString method.

Change-Id: I323f276d4048b168b27669a0aebb58cd9decf9bd
2016-10-12 12:56:03 -07:00
Sanket Padawe
9343e87d59 Improve RIL versioning.
+ Added documentation for new RIL versioning format.
+ Changes associated to new RIl versioning format.

Bug: 25779475
Change-Id: I4e53c6125995064b8ac0cdfc9376ef2cefe69ec8
2016-10-12 12:54:36 -07:00
Dheeraj CVR
48d3f723a5 libril: revert network operator string handling
* These workarounds were introduced before http://review.cyanogenmod.org/#/c/159520/
  and are no longer needed because the framework now has dynamic QAN element support.
  Setting the ro.ril.telephony.mqanelements to a proper value should fix the operator
  search on all the devices and these workarounds are no longer required.

* http://review.cyanogenmod.org/#/c/100398/ discards every 5th QAN element which breaks
  devices with libsec-ril that returns more than 5 QAN elements. zeroflte and noblelte
  return 6 QAN elements and the 5th element was being discarded instead of 6th.

* The code assumes 5 QAN elements per operator which doesn't hold true for all devices.

* In case of devices with 6 QAN elements, the size of the string array was a multiple
  of 6, but since we are discarding the 5th element, the contents of the string pertaining
  to each operator is a multiple of 5 following by trailing null strings in the array,
  which caused issues in the framework while trying to read the strings, since we are
  expecting 6 strings per operator and with a discarded string, we only receive 5.

Thanks to Javi Ferrer for diagnosing the issue on zeroflte

Change-Id: I2e99291f3438998a253755a19a063d15a19d63e0
2016-10-12 12:54:15 -07:00
Colin Cross
b9e88c8b54 Properly export ril_ex.h
Copying headers makes fixing compile errors hard, and breaks dependency
restrictions.  Move ril_ex.h to an exported include directory instead of
copying it.

Bug: 18903857
Change-Id: I4b59a01e442db0d3198def69a5a5ff17b2a41c66
2016-09-12 13:49:06 -07:00
Hyejin
e942c33156 Fix build error with RILC_LOG on
Change-Id: Ib724e6db3c7fb4e46e7d62706cf53cc944faf797
2016-09-12 13:47:25 -07:00
Ajay Nambi
323c882404 Fix for rild crash becasue of buffer overflow
There is a buffer overflow which causing rild crash. For
appendPrintBuf, "sprintf" is replaced with "snprintf" for
the safe copy operation.

Bug:23289936
Change-Id: I25430a5c6f2a8b19a3271235323499b6ee802746
2016-09-11 01:59:53 +02:00
Christopher N. Hesse
022eadd458 libril: Export headers
Change-Id: Ie61d8eb47f19fd825713357a538754f05b89d11a
2016-09-11 01:57:52 +02:00
Christopher N. Hesse
f9e2a71f89 libril: Remove unused include
If someone needs this, it has to be fixed to read
TARGET_OUT_HEADERS (notice the extra 's').
We are only getting away with it right now because M ignores empty
include paths, but N will barf on this.

Change-Id: I7f010398a40ebaf6811a58a121590944445fbcba
2016-07-30 22:07:11 +02:00
Kevin F. Haggerty
43a5d87023 DisplayModeControl: Add null check to setMode()
* getCurrentMode() can return null. Don't let setMode() try set a
  null mode because bad things happen.
* Let's make cmhw safe again (groan, I know that one was bad)

Change-Id: I20bdee4a0e8cbb0598f35770d71902332db51ddb
2016-07-19 06:44:59 -06:00
Luca Stefani
ffcfb9f6ac Unbreak AdvancedDisplay
Change-Id: I546ad32983d9f6250319cf36a8ea528ee8473763
2016-07-15 08:55:32 -07:00
blinky@build01
11122387d7 Automatic translation import
Change-Id: I45a29ea2169735036b2fc2dbaeab822f4e6a68ce
Ticket: -
2016-07-14 11:45:35 -07:00
pinky@build01
dada87f977 Automatic translation import
Change-Id: I65fff5aaeb44f5b5e2a26c99b8a179660e0509ea
Ticket: -
2016-07-13 10:01:49 -07:00
Christopher N. Hesse
e480d89ce5 power: Add double tap to wake support
Change-Id: Icb0b6d442544b39576ec74e70e97751d6bc70590
2016-07-13 01:59:31 -07:00
Arne Coucheron
66c10c2372 AdvancedDisplay: Fix build error
Change-Id: Ic0bac704bcf0b9bbcc374765db7df8b339bd1d42
2016-07-13 07:05:45 +02:00
Ethan Chen
3ecf3c4648 power: Fix compilation failure
Change-Id: Ib0923ba5c0976e2d00e6f190b370936a14a9b6df
2016-07-12 18:38:00 -07:00
Christopher N. Hesse
2879c69f2b power: Fix I/O business parameter setting
This parameter should be set even if we bail out early.

Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71
2016-07-12 17:32:47 -07:00
Christopher N. Hesse
3360b09389 power: Add support for auto power modes
Do not disable input devices in case of the screen still
being enabled.

Change-Id: Ide6bd7ca3d41ac64b472c5e68fdc545c8f851b2b
2016-07-12 17:32:30 -07:00
Zhao Wei Liew
8a13740477 cmhw: Add DisplayModeControl support
Make use of LiveDisplay's implementation of display modes.

Remove AdvancedDisplay's display mode support as it duplicates
functionality provided by the CMHW implementation.

Based on Sean hoyt's original work on klmintwifi.

Change-Id: I455a8c764118adbdb997b2ba9145e24fecb8199b
2016-07-10 10:25:22 +08:00
Zhao Wei Liew
1da88e6e9f
hardware: Clean up CMHW and AdvancedDisplay
- Use CMSDK FileUtils
 - Simplify, yet harden checks
 - Use static final Strings
 - Remove unnecessary imports
 - Remove unnecessary Strings
 - Update copyright

Change-Id: Id2f0f2fdf5be7e2b29a3910a6aa56a3aad10868f
2016-07-02 13:02:54 +08:00
Dheeraj CVR
9dad4fe888 exynos: multimedia: implement proper EOS signalling for encoder
Change-Id: Ib1e33f9c9c6ee2bfe0280f1b73d731e3191aa56d
2016-05-31 15:05:16 -07:00
Arnab Chaudhuri
a958e7e7ac liblights: Add BLN support
Change-Id: I859416c484777fcf08b5bf8f72ba9f9838e4c1b3
2016-05-09 21:50:55 +05:30
Michael Bestas
067a82c50a Automatic translation import
Change-Id: I7ef909edb8aef366d7b03c05b0b36e96df531888
2016-04-16 17:52:54 +03:00
Simon Shields
05326f499d exynos4: gralloc: we have an ALIGN macro, use it
Change-Id: I1ef089b004d1d1e3f2ae525638954536ca881c7a
2016-04-15 10:10:36 -07:00
Christopher N. Hesse
fb599edb50 ril: Restore alphabetical order for modem barrier
Change-Id: Iae8f7cb6500c16d5b88d8e60d4e7e97ee6539a19
2016-04-15 18:54:31 +02:00
messi2050
06ba105272 libril: add initial support for tss310 modem
- j7elte use tss310

Change-Id: I9bea333de037d4d1c8a9bc2111a3455f56b61c9a
Signed-off-by: messi2050 <mino_forever@yahoo.com>
2016-04-14 22:22:53 +05:30
Andreas Schneider
6d6daf94bc libril: Use a board flag for video call field
xmm7260 on SLTE doesn't have this flag anymore. Devices which need it
should specify the flag.

Change-Id: I166f579274667919756d3bb90e0b182165525975
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-04-11 20:50:51 +02:00
Michael Bestas
5905f06894 Automatic translation import
Change-Id: Id8e0b97763e94e1c8108e75cd94de03d422748ec
2016-04-06 01:25:38 +03:00
Christopher N. Hesse
5608dcba4c libril: Remove RIL_REQUEST_DIAL_EMERGENCY
This is not part of the standard API, so remove it.
Samsung devices almost always use the RIL_REQUEST_DIAL_EMERGENCY_CALL
hook, so devices should implement that in their specific RIL subclass.

Change-Id: I2cf9eee00a4b5b02e998d8efcbefa87a9ca7b7b4
2016-03-29 09:49:50 -07:00
Andreas Blaesius
d82d1d66d0 ril: fix libril if we don't overwrite the header in our device tree
Change-Id: Ic580b80b28c738828f4c19aeb54421d9f98c7d40
2016-03-29 00:53:08 +02:00
Christopher N. Hesse
c694ff0dac libril: Move vendor commands header
Devices can now override this header in the device tree.

Change-Id: I6e3814342ee22513e556ba92264b0c2651722af3
2016-03-28 13:40:00 -07:00
Michael Bestas
812f99ca0f Automatic translation import
Change-Id: I9f757393f0b772d813db58fe42bff9fbc1826ad1
2016-03-28 00:50:48 +03:00
deadman96385
a6d5bd701d Move Advanced Display so exynos5/7 can use it
Change-Id: Idc255301f30cff6b41d04db6f14fa421ee9eddb5
2016-03-22 19:24:20 +01:00
Javi Ferrer
cc48856905 exynos4: squash opensource libUMP
commit f40eeecbe44ee3ca5f4406e8881f6ffe1507d87c
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:41:30 2014 +0530

    exynos4: libUMP: fix headers for newer mali driver

    Change-Id: Ia81fa1949d04d809b4c5045269a70d7bab758f4a

commit 8c3792c590c0591647ab5ab59ff74d11e5f8afdd
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:38:51 2014 +0530

    exynos4: libUMP: use relative include paths

    Change-Id: If46c68512d0404df0d46734531a6160eb18b7ce5

commit feb6f2c45d4f87655a2f391114946933a128e60c
Author: Javi Ferrer <javi.f.o@gmail.com>
Date:   Fri Nov 21 04:05:51 2014 +0530

    exynos4: open source libUMP

    - Deleted unneeded include ion.h
    - Correct libsecion build
    - Correct gralloc build and bring back ump_ref_drv_ion_import

Change-Id: I1da602ec77d78e5056ea0c37f328c6c1b0e60e00
2016-03-21 11:09:30 -07:00
Simon Shields
9b5063f0ed exynos4: commonize AdvancedDisplay [1/3]
* show in settings
* drop support lib
* drop unnecessary viewpager/tab bar
* drop unused strings/resources

Change-Id: I90c62d7b106ad744ae698044f6f17a759fcbf8a3
2016-03-21 22:45:04 +11:00
Christopher N. Hesse
90ced08026 modemloader: Use hw.revision instead of ro.revision
This change requires you to hexedit your cbd binary,
but in turn frees us from having to ignore ro.revision
in init.

Change-Id: I9c43fbbf5895888ea4bceff2a08a5ed8de77b921
2016-03-15 19:44:07 +01:00
RGIB
02302a7eef macloader: add n5100 murata wifi address
Change-Id: I8296825f3d17bfdaccfa990d45598652ab40faaa
2016-03-11 15:59:30 +01:00
Christopher N. Hesse
57eaccad6b libsecril-client: Use the correct incall audio paths
The modems used in recent Samsung devices use different paths
than older devices apparently.

These values were extracted from hexdumps at the correct data
positions from the device specific libsecril-client.so blobs.

Change-Id: I0547cb1de40130843fee3f1310e1e6aed95195c7
2016-03-08 15:50:23 +01:00
Christopher N. Hesse
621e63ea3e libril: Make ST-E Thor M7450 and Intel XMM7260 next gen modems as well
Change-Id: I7cacda8cdaf9e285688c06c42ccf6629efc2af9d
2016-03-06 14:18:06 +01:00
Andreas Schneider
f15d7f4b0b powerhal: Add set_profile support
Change-Id: I0d7fb8c5a7e5e06c300cbb4b78b6e1013d7bff6a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-06 13:26:07 +01:00
Christopher N. Hesse
438a27e268 macloader: Add another SEMCO mac address half
Order existing SEMCO values while we're at it.

Change-Id: I2b5c8a3e458cbcf41ea78eb953117a6779db2cc0
2016-03-01 09:09:48 -08:00
Pavel Zhamaitsiak
6eec81990d Fix memory leaks and use of uninitialized pointers.
Bug: 23187886
Change-Id: Ic15a02a902b591362b5c52c20afabe511fb0bbb7
2016-02-22 21:41:15 +01:00
Simon Shields
1f58ecac5e ril: fix $(filter ...) derp
Change-Id: Ic2be936268701bd5f40056e5993ef35f5bd3969d
2016-02-17 21:10:26 +11:00
Brandon McAnsh
12e3f2684a ril: Group next gen Samsung modem's in same CFLAG
* Sprint variant of zeroflte uses mdm9x35 instead of ss333

Change-Id: Ifa7c1ea51dd57ea4fbeb41560c3a7c4fa65a85c8
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2016-02-15 07:11:03 -08:00
Simon Shields
8c701ad125 cmhw: add SunlightEnhancement/MDNIE Outdoor mode support
Change-Id: I86ea442992a945cf6dcad939aa95f04caa72834c
2016-02-11 09:50:05 -08:00