summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-26PowerManagerService: use disablesuspend property to disable suspend modelinaro_android_4.3Amit Pundir
Change-Id: I9ea1f398a0b4613c91e4dd4679d40837547aeb2c Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-09-25Revert "CaptivePortalTracker.java: add ↵Amit Pundir
Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT" This reverts commit 2b9b35b5f22c5556b232ce9810624fc5d35cc4f7. We no longer need this patch with builds based on android-4.3_r3.1 tag. This upstream patch http://android.git.linaro.org/gitweb?p=platform/frameworks/base.git;a=commit;h=c6070de1172a6b346100ff2a987b7372d4bf90b3 takes care of this crash now. Verified on Pandaboard by me and VExpress boards by tixy. Change-Id: Ib9ba74b1de11946f639c34d6ff66f815d3a65daa
2013-09-20Merge tag 'android-4.3_r3.1' into linaro_android_4.3Bernhard Rosenkränzer
Android 4.3 Release 3.1
2013-09-18Merge android-4.3_r3:Amit Pundir
Android 4.3 release 3.0 * tag 'android-4.3_r3': (34 commits) Use hostname verifier directly instead of instance DO NOT MERGE If in a mobile captive portal is detected enable fail fast. Have CaptivePortalTracker use gservices updateable provisioning urls. In CaptiviePortalTracker a socket timeout is probably a captive portal. Check that hipri has started. Add new app ops method to reset all op modes. Revert "Add version identifier to app ops." Add version identifier to app ops. Allow the user to block notifications for foreground services. (DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3... Doc change: fix reference to getBestDateTimePattern(). Doc change: remove devices listed for vp8 hw encoder in highlights. Doc change: update carousel on develop home. Doc change: Platform highlights for Android 4.3. docs: OpenGL ES 3.0 dev guide update fix javadoc error update usb driver doc with download link; delete revision notes Doc change: Add Colopl video to carousel and spotlight. cherrypick/merge of I70b1633ea9f6c48f76f88d08b7e9fc287f7dde93 update action bar guide for support lib ABC docs: Android 4.3 Platform Release Notes ... Conflicts: core/java/android/net/ConnectivityManager.java core/java/android/net/IConnectivityManager.aidl services/java/com/android/server/AppOpsService.java services/java/com/android/server/ConnectivityService.java Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-09-12Merge android-4.3_r2.2:Amit Pundir
Android 4.3 release 2.2 # gpg: Signature made Wednesday 21 August 2013 03:35:49 AM IST using DSA key ID 9AB10E78 # gpg: Can't check signature: public key not found * tag 'android-4.3_r2.2': Use hostname verifier directly instead of instance DO NOT MERGE Fix issue #10226007: Reset apps restores most of the changed settings... Add new app ops method to reset all op modes. Revert "Add version identifier to app ops." Add version identifier to app ops. Allow the user to block notifications for foreground services. (DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3...
2013-09-09Do not change NetworkInfo.DetailedState.android-4.3_r3.1Wink Saville
I'd changed DetailedState to force ConnectivityService to treat provisioning apn's specially. In particular so that they wouldn't be identified they were fully connected until the provisioning actually started. The problem is that DetailedState is a public enum that has a CTS test and just changing the CTS to allow for the new state (CONNECTED_TO_PROVISIONING_NETWORK) was inappropriate. Instead I've added a new mIsConnectedToProvisioningNetwork variable and used the DetailedState.SUSPENDED as the intermediate state. Bug: 10620248 Change-Id: Id4a842398cad67455541ce629959351c27d83639
2013-08-29Add support for handling mobile provisioning networks.Wink Saville
When a sim is new or it has expired it needs to be provisioned with the carrier. Basically provisioning is associating a sim with a user account. When a sim isn't provisioned then operators will restrict access to the network and only allow certain addresses or services to be used. This set of changes allows two types of provisioning networks to be recognized. The first is a network that causes all DNS lookups to be redirected to a different address than was intended. This is exemplified by how T-Mobile works. The second technique uses a special apn for provisioning. An example is AT&T where lwaactivate is the provisioning apn and broadband is the normal apn. We first try broadband and if we are unable to connect we try lwaactivate. When we see the activate we identify it as special and the ApnContext.isProvisioningApn will return true. In the future our plan is to create a new network type that can be added to the apn list, but for now it identified by name. Here is a list of significant changes: - CaptivePortalTracker now only test WiFi networks instead of all networks - checkMobileProvisioning checks for provisioning networks and doesn't try to ping. - IConnectivityManager.aidl changes: * getProvisioningOrActiveNetworkInfo was added to and used by Manage mobile plan in WirelessSettings so even when there is no active network it will still allow provisioning. Otherwise it would report no internet connection. * setSignInErrorNotificationVisible is used by both CaptiviePortalTracker and checkMobileProvisioning so they use the same code for the notifications. * checkMobileProvisioning was simplified to have only a timeout as returning the result is now harder as we abort simultaneous call otherwise we'd could get into loops because we now check every time we connect to mobile. - Enhanced MDST to handle the provisioning network. - Added CONNECTED_TO_PROVISIONING_NETWORK to NetworkInfo to make a new state so we don't announce to the world we're connected. - TelephonyIntents.ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN is sent by the low level data connection code to notify Connectivity Service that a provisioning apn has connected. This allows CS to handle the connection differently than a normal connection. Bug: 10328264 Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
2013-08-29DO NOT MERGE: MDST is not ready until connected to DcTracker.Wink Saville
When the system becomes loaded the PhoneApp can be delayed significantly and a call to setEnableFailFastMobileData may not occur because the channel between the MobileDataStateTracker (MDST) and DcTracker (DCT) is not connected. Solution: Add a isReady to MDST and isMobileDataStateTrackerReady to ConnectivityService and call it from isMobileOk. Bug: 10351868 Change-Id: I92f9d58121b88186b636cd71c2fd2ef9a28f7cf6
2013-08-29In isMobileOk don't execute finally if mobile data is not supported.Wink Saville
Move the early return outside the try {} finally so we don't call setEnableFailFastMobileData(DctContants.DISABLED). Otherwise referencing counting is wrong and an exception is thrown in DcTrackerBase. Bug: 10304904 Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc
2013-08-16interrupter: Use LOCAL_LDLIBS rather than LOCAL_LDFLAGSBernhard Rosenkränzer
Change-Id: Ide7d3e7962d8dda6f41ca8ba89acf75fa1c86e40 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-08-14Use hostname verifier directly instead of instance DO NOT MERGEandroid-4.3_r2.3android-4.3_r2.2jb-mr2.0-releaseKenny Root
Instead of local instance of the default HostnameVerifier, use it directly from HttpsURLConnection. This avoids class preloading creating an instance of it before it's necessary. (cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c) Bug: 9984058 Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d
2013-08-14Use hostname verifier directly instead of instance DO NOT MERGEandroid-4.3_r3Kenny Root
Instead of local instance of the default HostnameVerifier, use it directly from HttpsURLConnection. This avoids class preloading creating an instance of it before it's necessary. (cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c) Bug: 9984058 Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d
2013-08-12CaptivePortalTracker.java: add Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOTYongqin Liu
Add the Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT for ConnectivityManager.ACTION_CAPTIVE_PORTAL_TEST_COMPLETED) action, so that we will not have the "FATAL EXCEPTION IN SYSTEM PROCESS: CaptivePortalTracker" error which will cause many services died Change-Id: I028c51384ee5bb93db6a0b904a4dfe974bf20fa5 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2013-08-08If in a mobile captive portal is detected enable fail fast.Wink Saville
When captive portal checking completes pass back the result. This is used to enable/disable failing fast for mobile. When failing fast is enabled we don't check for data stalls and thus won't be continually trying to do recovery operations, such as restarting the radio. Bug: 9462512 Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
2013-08-08Have CaptivePortalTracker use gservices updateable provisioning urls.Wink Saville
After detecting there is a captive portal the url used in the notification for mobile networks should be updateable via gservices. These urls will be the same as used by CheckMp and is needed for carriers that have specific provisioning urls such as AT&T and Verizon. Bug: 9622647 Change-Id: Idcf4dabc72ece1dbbe1d5e5a21e550dd06fe16c7
2013-08-08In CaptiviePortalTracker a socket timeout is probably a captive portal.Wink Saville
On a AT&T warm SIM a socket is not possible so a timeout occurs. In CheckMp a timing out on a socket is declared as a "warm" sim, make CaptivePortalTracker the same. Bug: 10038362 Change-Id: Icb9fb0a1b67704dc9adf6a6348a3781fb9582a89
2013-08-08Check that hipri has started.Wink Saville
I needed to test the result of startUsingNetworkFeature, otherwise on mobile networks that are slow to come up, we won't detect warm SIMs after booting. Bug: 9962943 Change-Id: Ib638a4e43867ecaa85d6abff65643b77a63526b6
2013-08-07Fix issue #10226007: Reset apps restores most of the changed settings...Dianne Hackborn
...to original but not all modified ones Very stupid mistakes in messing up the iteration when pruning op entries. Change-Id: Ie536b9095f797fcd2b86c9a386a72746796430d1
2013-08-05Add new app ops method to reset all op modes.Dianne Hackborn
Change-Id: I5ee6764de8dc31d812e5a788914ab0099bbef4c0
2013-08-02Add new app ops method to reset all op modes.Dianne Hackborn
Change-Id: I5ee6764de8dc31d812e5a788914ab0099bbef4c0
2013-08-02Revert "Add version identifier to app ops."Dave Burke
This reverts commit 483a6bbfc118409b9c46b226cf0aa6afdc4d9159. Change-Id: I91d6b8b8d1789089bf9764e734f7fe59d03151a2
2013-08-02Merge "Revert "Add version identifier to app ops."" into jb-mr2-devDave Burke
2013-08-02Revert "Add version identifier to app ops."Dave Burke
This reverts commit 483a6bbfc118409b9c46b226cf0aa6afdc4d9159. Change-Id: I91d6b8b8d1789089bf9764e734f7fe59d03151a2
2013-08-01Add version identifier to app ops.Dianne Hackborn
All old versions drop their modes except for the notification op (which is the only one there is currently a user-visible control for). Change-Id: I9e09cebe63e9ea81f2adc01aef7d1a5a59f57a56
2013-08-01Allow the user to block notifications for foreground services.Daniel Sandler
Stepping carefully around the fix in change Idc788527, we perform security (and AppOps, and therefore user block) checks against the uid passed to enqueueNotificationInternal rather than the Binder caller. Bug: 9502541 Change-Id: I91745db92823381df75721c1b8f11013a7fa4ecc
2013-08-01(DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3...Dianne Hackborn
...when clipboard listener attached We need to clear the calling identity before dispatching change notifications. Also make this more robust, so that in the face of any failure we will clean up the broadcast state. Integrated from master. Change-Id: I05e1f76ffd486439535631fe4062dabe94bd2ccf
2013-08-01Merge "Add version identifier to app ops." into jb-mr2-devSascha Prueter
2013-08-01Add version identifier to app ops.Dianne Hackborn
All old versions drop their modes except for the notification op (which is the only one there is currently a user-visible control for). Change-Id: I9e09cebe63e9ea81f2adc01aef7d1a5a59f57a56
2013-08-01Allow the user to block notifications for foreground services.Daniel Sandler
Stepping carefully around the fix in change Idc788527, we perform security (and AppOps, and therefore user block) checks against the uid passed to enqueueNotificationInternal rather than the Binder caller. Bug: 9502541 Change-Id: I91745db92823381df75721c1b8f11013a7fa4ecc
2013-07-31(DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3...Dianne Hackborn
...when clipboard listener attached We need to clear the calling identity before dispatching change notifications. Also make this more robust, so that in the face of any failure we will clean up the broadcast state. Integrated from master. Change-Id: I05e1f76ffd486439535631fe4062dabe94bd2ccf
2013-07-30hwui: Fix build in ISO C++11 modeBernhard Rosenkraenzer
Make sure log calls can't be confused with C++11 string literals Change-Id: I1d458e92e690f6f2b922a05494db8c01da54e460 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-07-27Revert "frameworks/base:(Hack)Print the content displayed with Canvas.drawText"Amit Pundir
This reverts commit acd950f8afadf5d8136f0b27c9d65dba6abce2d0. android.util.Log usage seem to have changed in 4.3 This patch need to be redone. Change-Id: Ib15b5becf04639f53a6ca48d2119adbb1ff4984c Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-27Revert "frameworks/base: Bring back Ethernet Connection Manager"Amit Pundir
ECM implementation is currently broken on 4.3 This reverts commit 54cd610a7b6c5b104316aec6fdf46b6f6eaeee79. Change-Id: I23110ec8cd3fdf5bbc4026c3a7c98f5c9c5b5a93 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-27frameworks/base: Fix build in ISO C++11 modeAmit Pundir
Change-Id: I5d3ba44cc9faa5826a5a0a6b37c8f0eb2872e1ac Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25ProcessStats: Handle changes in the scaling frequnencyVishal Bhoj
Switching from MP to IKS mode results increase in number of operating points and results in bug #1183781 . The patch makes sure that whenever the available scaling frequency changes it resets the existing values and sets them as per the new values. Change-Id: Ic74cdc2015f3c4ddd61cb116d1f4b4ed1204a3bf Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2013-07-25load non opengles wallpapers for platforms without hardware graphicsAmit Pundir
Platforms without a hardware graphics, frequently get "Unfortunately, System UI Crashed" pop-up message on boot-up, which is due to an Android Runtime Exception "java.lang.RuntimeException: eglConfig not initialized" when SystemUI fail to load OpenGLES wallpapers. This patch make sure that Android runtime checks for GPU availability (by checking a build time property "ro.nohardwaregfx") before loading opengles wallpapers. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25frameworks/base: Bring back Ethernet Connection ManagerBernhard Rosenkraenzer
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25frameworks/base: Fix compile errorsBernhard Rosenkraenzer
Fix ISO C++11 incompatibility in TextLayoutCache and aliasing violation in FontRenderer Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25base: Fix build after Parcel ABI fix in BinderBernhard Rosenkraenzer
Adapt code to the fact that writeString16's first parameter is now an uint16_t* to match the old ABI Change-Id: I138af645c877f343f0490152b9702698b7d36582 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-07-25frameworks/base:(Hack)Print the content displayed with Canvas.drawTextYongqin Liu
This hack allows us to print content that displayed with the drawText method of Canvas.java when ro.debug.drawtext is set to true. This allows us to capture the contents on the screeen which will help us capture benchmark results for thirdparty apps which use drawText of Canvas to display results. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25frameworks/base:(Hack)Print the content displayed with WebViewYongqin Liu
This hack allows us to print content that displayed with the loadDataWithBaseURL method of WebViewClassic.java when ro.debug.loadDataWithBaseURL is set to true. This allows us to capture the contents of WebView which will help us capture benchmark results for thirdparty apps which use loadDataWithBaseURL of WebViewClassic to display results. Change-Id: Id8e61e072b867501ef2e0e8eb2f6fb30b13206b4 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2013-07-25frameworks/base: Fix build in ISO C++11 modeBernhard Rosenkraenzer
Fix various incompatibilities with ISO C++11: - Assumption that char16_t is defined to uint16_t - constexpr usage - macro constructs that could be interpreted as string literals - enum typesafety Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25Fix error when cpufreq is loaded at runtimeBernhard Rosenkraenzer
Change-Id: I4691bbfbb1a49b130ba4b9a0ed5ded3601e220fc Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-07-25frameworks/base: Fix aliasing violationsBernhard Rosenkraenzer
Fix violations of strict aliasing rules Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25frameworks/base:(Hack)Print the content of textviewVishal Bhoj
This hack allows us to print content of Textview when ro.debug.textview is set . This allows us to capture the contents of textview which will help us capture benchmark results for thirdparty apps which use TextView to display results. Change-Id: I3500cc35b37c08d93e24ccaf12dcce359fc84da2 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2013-07-25frameworks/base: Fix various aliasing violationsBernhard Rosenkraenzer
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2013-07-25frameworks: Report 100% battery levelVishal Bhoj
On devices without battery,the level is reported as 0 which causes certain apps which check battery level before executing to fail. The patch ensures that such apps work on devices without battery driver. Change-Id: I13b056ff52455f27de52ad1e459aa3d8c44b43a0 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2013-07-25frameworks/base: Disable H/w GL rendering based on propertyBernhard Rosenkraenzer
"ro.nohardwaregfx" can be set to true to have software rendering.The property could be set for each board by adding the 2 lines to device.mk file. PRODUCT_PROPERTY_OVERRIDES += \ ro.nohardwaregfx=true Based on ICS patch from Vishal Bhoj <Vishal.Bhoj@linaro.org> Change-Id: I547258ee021034102fe8d8e7cc0cdfa8a63df298 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2013-07-24Merge "Doc change: fix reference to getBestDateTimePattern()." into jb-mr2-devDirk Dougherty
2013-07-24Doc change: fix reference to getBestDateTimePattern().Dirk Dougherty
Change-Id: Iad96f4079390e3589d21402fc8e01d6446f001b3