Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android frameworks base #144

Open
wants to merge 10,000 commits into
base: ics
Choose a base branch
from
Open

Android frameworks base #144

wants to merge 10,000 commits into from

Conversation

Bhanditz
Copy link

@Bhanditz Bhanditz commented Mar 3, 2019

CM 14

khufdev and others added 30 commits October 18, 2016 15:53
Bug: 32074598
Change-Id: I168d49a8542b411a074dc6e9120b0f08f72a829a
am: 9a641b6

Change-Id: If8e166a3cb36d158fd428e314b90cb265cf2256c
am: b361f51

Change-Id: I715603d2fe5f7d21b93c663dc7109d4ee5abaf74
When task is moved back we need to adjust currently focused activity
and sent currently resumed record from ActivityStack. However if this
happens when device is locked, resumed activity record will be null.
Need to used currently focused record from service instead.

Bug: 32172829
Change-Id: I2de9bc4135663ab45af859f21e9e92562deb44d4
am: 40aaf53

Change-Id: I4888353281c101f92da0ce438e64531739c332be
am: 2a2c0fb

Change-Id: I52c0fc44767f3b1102a8830e9e7910bf6d0db993
"What's new" page hadn't been updated since 6.0 (18 months ago).
Replacing the old "new" sample apps with the three new ones added
for 7.1.

Doc is staged to:

http://go/dods-stage/samples/new/

bug: 32212333
Change-Id: Ibb48bb531c0d519e50d940d443b461a215ed87d7
…raint if they don't contain identical data." into nyc-mr1-dev
With this patch, long pressing the recents key on the navigation bar
will attempt to switch to your last application in the activity stack
before the active one.

The user's current home launcher package is ignored as well as SystemUI (so that
RecentsActivity does not influence the behavior).

Change-Id: I38771e0fce16b55bb5186af47115b4e812cb60b0
Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: Adnan Begovic <adnan@cyngn.com>

frameworks: allow last app action to be assigned to hardware keys

Also fix multi-user handling for 'switch to last app' and 'kill
foreground app' actions.

Change-Id: I1fb586d19b1198e6888b0f11e0a2813acf0bcd5b
Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: Adnan Begovic <adnan@cyngn.com>

make switch to last app animation snappier

Change-Id: Ia253a3db45109da7dd4f7a2467184d81c04918b4
 * And make it the default for long-press recents like the navbar.

Change-Id: I432c80a2c9b29b9a02d64e29d484f92623b0648a
Bug: 32140251
Bug: 32140271
Bug: 32060415

Change-Id: I50faa184551748023ea5a573646a75293f553d16
- If the stack does not contain the existing ignored task view on
  relayout, then we should not try and get the transform for it
  since it will be skipped.

Bug: 32001762
Change-Id: I23182c76ac41b036c25edf92374622191e9d4ce3
am: 51f1e93

Change-Id: Ie8c820ea2d55b16f66afd53034b69d4c770d17e0
am: 6aee6e9

Change-Id: I86ae7b92e3c6bb2202375a990f0203630afa5744
am: e081040

Change-Id: Ic44c96963d1dd172f07f6564a084ca731bf49762
…yc-docs

am: dc69de5

Change-Id: I3f49c5fbd2dc9f298cdf0cdd8acc5f49188319d4
am: 246b0bc

Change-Id: I572709a23a33f0a17ad754221c27a042f9c44f2e
am: f8a8260

Change-Id: Ida18c6b46ccff01cb6299b1774fbcc724f54712a
…yc-docs am: dc69de5

am: 3aa0ff2

Change-Id: If9e2b5d23f40a5d48906b81f818a2e9b5e8bb24a
6aee6e9

am: 4a9883c

Change-Id: I1a4378d4ec4c5b2e720d81d90d72c5b7fedce261
…f8a8260

am: 9ce21dc

Change-Id: I1066a9122bab7f3fe620bd23f17adc36559133a4
…yc-docs am: dc69de5 am: 3aa0ff2

am: 8233c03

Change-Id: If0291ee0b6df1c0fb81785b490cdf716ba9cc8b7
sznj and others added 30 commits December 6, 2016 16:13
Add org.cyanogenmod.platform.internal and uicommon to LOCAL_STATIC_JAVA_LIBRARIES to fix the
following compile error:

ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:41: The import org.cyanogenmod cannot be resolved
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:60: CmLockPatternUtils cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:86: CmLockPatternUtils cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:86: CmLockPatternUtils cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:270: CmLockPatternUtils cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/statusbar/phone/KeyguardBouncer.java:290: CmLockPatternUtils cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:54: The import org.cyanogenmod cannot be resolved
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:135: StopMotionVectorDrawable cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:433: StopMotionVectorDrawable cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:433: StopMotionVectorDrawable cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:479: StopMotionVectorDrawable cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:479: StopMotionVectorDrawable cannot be resolved to a type
ERROR: /cyanogenmod/cm14.1/frameworks/base/packages/SystemUI/tests/../src/com/android/systemui/BatteryMeterDrawable.java:624: StopMotionVectorDrawable cannot be resolved to a type

Change-Id: Id0c0601bdc63dfc6f96d14b69ed7a07581b61a44
 Symptom: monkey crash caused system server killed.
 Root Cause: when monkey crash or app crash before process bound,
        calling AppErrors.crashApplication will first
        clear binder identities, that will caused calling pid / uid
        will become with current process (i.e. system server),
        so in handleAppCrashInActivityController, when monkey registered
        activityController would like to kill crash process,
        but not found in AMS (monkey created by app_process)
        then using calling pid / uid will become to kill system server.
 Solution: add calling pid / uid parameters for
         handleAppCrashInActivityController to prevent binder identities
         cleared case.


 Test: To simulate monkey or app crash before process bound may not easy
     by using simple command, but we can write a sample program to 
     simulate RuntimeInit to call handleApplicationCrash when met 
     uncauchtException,

    Below is test steps in Android 7.1.1 emulator.

1. start emulator
2. after emulater started, use "adb shell am monitor" to set 
   activityController & monitor process by console.
3. write a .jar program as monkey by below sample code to simulate null 
   application binder to call handleApplicationCrash() as RuntimeInit:

package com.android.test;

import com.android.internal.os.BaseCommand;
public class SimulateMonkeyCrash extends BaseCommand {

    public static void main(String[] args) {
        IActivityManager am = ActivityManagerNative.getDefault();
        try {
            am.handleApplicationCrash(null, 
                 new ApplicationErrorReport.CrashInfo(new Throwable()));
        } catch (RemoteException e) {
            e.printStackTrace();
    }
}

4. write a .sh file named SimulateMonkeyCrash.sh as below:
  #
  base=/system
  export CLASSPATH=$base/framework/SimulateMonkeyCrash.jar
  exec app_process $base/bin com.android.test.SimulateMonkeyCrash "$@"

5. let .sh file is executable by "chomod 755".
6. push .jar file into /system/framework & .sh file into /system/bin
7 execute .sh file.
8. activityController will detected program crash in console as below, 
press k:
Waiting after crash...  available commands:
(c)ontinue: show crash dialog
(k)ill: immediately kill app
(q)uit: finish monitoring

9 you can see system server is crash.

Change-Id: Ibac4d88872f24af109d8e8522ecf5ac72fac0ce0
https://code.google.com/p/android/issues/detail?id=229020

Change-Id: Ib08f62dd916d09e666e58fb583555170d1e51da6
Signed-off-by: pengzhicai <pengzhicai@xiaomi.com>
Android 7.1.1 release 4

Change-Id: Iaa9c92f659788db6c116e25438418022162753fe
 * ERROR: /frameworks/base/services/tests/servicestests/src/
          com/android/server/ConnectivityServiceTest.java:617:
          Duplicate nested type WrappedAvoidBadWifiTracker
    
   This was the result of a bad 7.1.1_r1 merge in commit
   c19f065.

Change-Id: Id5bb5f79a53f05a0d0c4932f739646ac6021e655
Change-Id: I1975c039ac8856fc3e4df75b722ef85a57187fe2
Change-Id: Idade63b9f5b5b56e3774ecc1ba3e48ac73c895ae
According to the Android docs, doze is only supported
when the device has a cloud messaging service.
In our case, it is Google Cloud Messaging, which is
package within Google Mobile Services.

Hence, only doze when GMS is available on the device.

Change-Id: I8e7d5558da11ec172c206aa356505b7526f39a3f
This has been replaced by the command line flag --private-symbols
as of commit 535fea1.

Change-Id: Ia927fd82119e9653013e87d2eeeb98a94145e035
Change-Id: Ie6207d830abd8c5b63262c26265c47d4770b4456
Change-Id: I8fd13454b74117c524b69ffaf89e18acb50f31a1
Ticket: -
* This is usually handled in device-specific keyhandler,
  where vibration is optional and has the same duration
  in all gestures

Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d
Long-press actions are extremely obscure.
Hiding the partial screenshot feature behind a long-press
action is highly detrimental to its discoverability.

Inform the user of the screenshot long-press action
by displaying a short summary message.

Change-Id: I949bd0ef80a654d6cdf852b7a3138e7379ad36d2
Resize the icons to fit in with the new power off & restart icons.

Also, use an icon without a home button for the screenshot icon,
since home button-less phones are a growing trend.

Change-Id: I5131346f65345010bba45dca04f3d767e6f9746a
Android 7.1.1 release 6

# gpg: Signature made Mon Dec 12 12:51:27 2016 CST
# gpg:                using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key
Modify code to store network selected by user in
subId table.
DELETED:telephony/java/android/telephony/SubInfoRecord.java

Change-Id: I361c5cbc47ea6079deb3e807276a3f3504a9535e
Change-Id: I8c5fc8496a1ae7b88a4df752867e073b4a09c8c6
Ticket: -
Change-Id: I4869c1b2f77f7fdaa236593e9ab9ba5fce053784
Change-Id: If259c3f632f9c9e863ca3ae7b6a8b7f4875fe7ff
Ticket: -
Change-Id: I17b4a0b1afe6e64f3781c3428b50dca1f03e5861
Ticket: -
Change-Id: I425ed07e607c4710919976e5c84e07b687fe8dfe
Ticket: -
Change-Id: Ie5bfe4b10b09d641824047d4362206a6cc8e08ff
Ticket: -
Change-Id: I0aef31f71f8c2d7113c6f38a703bc08b09079630
Ticket: -
Change-Id: I8a5b975efc6c8ee9acdc316536bba671c396a07b
Ticket: -
Change-Id: I71ff26028b5718051aed79284b76afc1e3bb51c1
Ticket: -
Together with I1d8302f06144dbb3e6ddba68594cc5718b4f0bb7 this enables
that feature again.

Change-Id: I015d6e183bb4bcd48f96cbd4f392c12f9b53bb53
(originally coming from commit I44e4771f4415a32fe66867d4dd90f1ad138341e1)
This is no longer used.

Change-Id: Ifd8eaa1d9d1f156dbfa4fdf278f95213ee32271e
This used to be enabled by default in previous releases.

Change-Id: I24766bed58d081a0dd4763b9602379ff6435e092
(cherry picked from commit 4b4e8b3)
On some legacy devices, the flashlight can't stay on when screen is off.
With this change, the flashlight can use wakelock. For obvious reasons,
this is turned off by default and needs to be enabled using the overlay.

Change-Id: Ia69309cf023430c9e90634a722be97ebbf6677ca
This adds the necessary infrastructure for allowing users to opt-in to a
distinct device encryption passphrase. The passwords are still tied
together by default. This makes it possible to use a complex encryption
passphrase without losing the convenience of a very simple lockscreen
pin.

This feature can be combined with a forced reboot after a chosen number
of failed unlocking attempts to prevent brute-forcing by requiring the
entry of the encryption password instead.

Change-Id: Iaf89af9bfa7e07f325eec7a60fdcc4de5977055a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment