Log:
01-18 20:01:59.274 5014 5014 E AndroidRuntime: FATAL EXCEPTION: main
01-18 20:01:59.274 5014 5014 E AndroidRuntime: Process: org.lineageos.euicc, PID: 5014
01-18 20:01:59.274 5014 5014 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver org.lineageos.euicc.BootCompletedReceiver: java.lang.IllegalArgumentException: Unknown package: com.google.euiccpixel
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4500)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2282)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:205)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Looper.loop(Looper.java:294)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8291)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Unknown package: com.google.euiccpixel
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3061)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3041)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3024)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2966)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.content.pm.IPackageManager$Stub$Proxy.setApplicationEnabledSetting(IPackageManager.java:6107)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ApplicationPackageManager.setApplicationEnabledSetting(ApplicationPackageManager.java:3185)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at org.lineageos.euicc.EuiccDisabler.enableOrDisableEuicc(EuiccDisabler.kt:43)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at org.lineageos.euicc.BootCompletedReceiver.onReceive(BootCompletedReceiver.kt:16)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4491)
01-18 20:01:59.274 5014 5014 E AndroidRuntime: ... 9 more
Change-Id: I86880342693c92afddf09dbe8db22255ca93c355
* We are trying to use functions that required
priviledged permissions
(e.g. android.permission.CHANGE_COMPONENT_ENABLED_STATE)
* To make these functions correctly, move this app to priv-app
* Signing with platform key
* Add android.permission.CHANGE_COMPONENT_ENABLED_STATE
* Indicates and grant WRITE_EMBEDDED_SUBSCRIPTIONS permission
* Whitelist Hidden API
Log:
08-26 21:24:38.610 4898 4898 E AndroidRuntime: FATAL EXCEPTION: main
08-26 21:24:38.610 4898 4898 E AndroidRuntime: Process: co.aospa.euicc, PID: 4898
08-26 21:24:38.610 4898 4898 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver co.aospa.euicc.BootCompletedReceiver: java.lang.SecurityException: Attempt to change component state; pid=4898, uid=10191, package=com.google.android.euicc
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4316)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2153)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7960)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: Caused by: java.lang.SecurityException: Attempt to change component state; pid=4898, uid=10191, package=com.google.android.euicc
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2995)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2978)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2920)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.content.pm.IPackageManager$Stub$Proxy.setApplicationEnabledSetting(IPackageManager.java:5938)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ApplicationPackageManager.setApplicationEnabledSetting(ApplicationPackageManager.java:3177)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at co.aospa.euicc.EuiccDisabler.enableOrDisableEuicc(EuiccDisabler.kt:43)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at co.aospa.euicc.BootCompletedReceiver.onReceive(BootCompletedReceiver.kt:16)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4307)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: ... 9 more
08-26 21:24:38.610 4898 4898 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.server.pm.PackageManagerService.setEnabledSettings(PackageManagerService.java:3784)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setApplicationEnabledSetting(PackageManagerService.java:5527)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2971)
08-26 21:24:38.610 4898 4898 E AndroidRuntime: at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6042)
08-26 21:24:38.610 4898 4898 E AndroidRuntime:
Change-Id: Ied5d023e0f403e9c6f4908c59bcbb538aeef4574
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* This avoids EuiccGoogle / GoogleCarrierServices crashing, taking the
whole telephony stack with them when no GMS or GSF is installed.
* This approach is no-op when GAPPS add-on is flashed before the first
boot, and thus should not cause issues with eSIM when GAPPS is
flashed.
* With microG, this also works after installing the microG GMS & GSF
packages and rebooting, although manual activation of the eSIM is
needed via Settings - Network.
* The only downside is that users will still see one or two crashes
during the first boot because our application only starts after the
device is booted.
Change-Id: Ice053b623d8f4a8e3783d82ffe0dc67f2cba558e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This is a companion app for EuiccGoogle (SIM Manager), that basically
sends over the mapping of the SIM slots and sets proper SIM tray
illustration (props to Yuri for the lottie animations).
For the time being it only includes the mappings for one of the
Xiaoi 12T Pro models (22081212UG).
Change-Id: I09db5d6a9acbf05bf82803682572aeae54337c1b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Switch and SwitchCompat are both CompoundButton.
Using CompoundButton in Java will helps migration in the future.
Bug: 306658427 | AOSP | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
This value is set to zero in almost every known dax-default.xml,
including ours.
DaxService also doesn't mess with this value, instead only sets
VolumeLevelerEnabled.
Change-Id: Ib944728d478cff58aebc4f47128bcd5fe32ff9f6
Dolby often messes up restoring profile-specific settings after a reboot.
"Fine. I'll do it myself."
Change-Id: Ic255c6922eabae0b522c05110f87e2c10a97fb6c
Moved from marble/sm8450-common
History:
commit 82fe03168c0402e4cb10d25859c3b398c0ef654a
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Thu Mar 21 21:35:36 2024 +0530
marble: parts: Restore dolby profile on audio changes
Something keeps resetting back at random times, from what I observed,
after resuming media or on a device change, lets workaround that.
Change-Id: Id065f2482636194655c2399f0c35ad56b8e7a29d
commit c4400bd1326f65aeac1d0f26bb830ce7fd079773
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Fri Feb 2 09:29:08 2024 +0530
marble: parts/keyhandler: Guard debug logging
Change-Id: I246941f26cd1f71b696eb3c996794c9baa5dbc00
commit f11b70a98a11d0b89673d73002996aed9f11fbd7
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Sun Dec 31 20:36:52 2023 +0530
marble: parts: Re-enable speaker virtualization after bootup
For whatever reason, speaker virtualization isn't automatically
restored at bootup unlike the other parameters. It was reported to be
fixed by connecting and disconnecting headphones or disabling and
enabling the toggle, so let's just automate that at bootup.
commit abcff4fb947c89b69c1d25bd290fd91b7873af6a
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Fri Oct 20 06:49:19 2023 +0530
marble: parts: Implement profile-specific Dolby settings
Some refactoring and cleanup while we're at it.
commit dc54f9ddeff212d017b0cba16e56516e99335bb3
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Mon Oct 9 21:58:58 2023 +0530
marble: parts: Remove play/pause hack while toggling Dolby
Not required with/fixed by:
35217: audioflinger: Do not allow DAP effect to be suspended | https://gerrit.aospa.co/c/AOSPA/android_frameworks_av/+/35217
commit dd2acc8e0c10d05f86ff229412cc9f72ea242b44
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Wed Sep 13 21:41:20 2023 +0530
marble: parts: Set proper summary for dolby settings
Show the current status in Settings > Sound as well as the QS tile.
commit 92d341ba3d22f323eded525487db4289d6edc0fe
Author: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Date: Fri Aug 25 10:26:53 2023 +0200
marble: parts: Always refresh playback if status changed
* otherwise dolby would stay active even if you disable its setting
Change-Id: If59d8081fa12da2aa67e5149db97965c0805d76e
commit b1944744649b6fddcb7bc3864b92f298b6e78821
Author: Adithya R <gh0strider.2k18.reborn@gmail.com>
Date: Mon Aug 21 13:21:18 2023 +0530
marble: parts: Introduce Dolby Atmos
Based on existing dirac implementation and observing stock
sound effects app and daxservice.
Thanks to jhenrique09 for the hack from old dirac parts
"Pause/play music stream to get effects applied".
TODO: bring back misound (same as stock)
Co-authored-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
Change-Id: I79841c045fe7b92c438177916f756faab72ff0e9
Override ChargerEnableSuspend() function to true to support kernel
suspend and resume in charger mode.
Change-Id: I01ceaecf7e918504624b2bf1bfb34207fcde74e7
Add health HAL AIDL implementation which is a service running for
both health HAL and charger mode.
Change-Id: I1f3205d1e34d93ed1739d5fa29c95a8f2b2d2894
lights smart pointer was used without null pointer check.
This change adds null check.
Change-Id: Ifdd82290cfe4d7ca781adbed8c8a65961c70e244
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
This commit is following changes of:
* interfaces: Add vendor.goodix.hardware.fingerprint@1.0
Change-Id: I29c39a8652c5e71174324fa2c12d1a578245c429
Change-Id: I6a7f497c0e39ae3321805b01a842db78e3a38a7a