Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

【特定固件问题,非bug report】日历无法显示节假日调休 #66

Open
MintMana opened this issue Sep 25, 2020 · 14 comments
Open

Comments

@MintMana
Copy link

MintMana commented Sep 25, 2020

mix2s 稳定版12.0.1
看了下目前大致的逻辑应该是把LocalizationUtils.java中的一个查询系统区域的函数返回值设定为true

但这样似乎不能显示节假日调休

设置里的更新节假日按的时候抓包发现并没有发http请求
而且始终显示已是最新数据

稍微看了一下其他代码,可是不怎么懂android开发方面,所以只能看懂个皮毛
以下信息可能有点用

服务器url:
com/miui/calendar/web/v.smali

疑似http请求获取节假日:
com/miui/calendar/holiday/HolidayDetailActivity.smali
com/miui/calendar/holiday/HolidayService.smali

@MintMana
Copy link
Author

附上解包后的smali
Calendar-12.0.1.zip

@MintMana
Copy link
Author

shared_prefs/com.android.calendar_preferences.xml里发现了workday/freeday的数据,有2020年的
也有数据的版本号和上次更新日期,似乎程序是根据当前时间和记录的上次更新时间差距来决定是否联网更新数据
但是应用里还是没有显示

@toraidl
Copy link

toraidl commented Sep 25, 2020

https://github.com/kooritea/mipay-extract 可以看看这个作者的Fork,除了天气在我的mi上FC外,其他都完美

@MintMana
Copy link
Author

MintMana commented Sep 25, 2020

https://github.com/kooritea/mipay-extract 可以看看这个作者的Fork,除了天气在我的mi上FC外,其他都完美

@toraidl 感谢回复,请问机型和使用方法,是release还是自己用国内版本生成的呢
12.0.1用kooritea的脚本生成的日历覆盖到priv-app,桌面直接不显示日历图标了(和自己手动改一样)。。。

@toraidl
Copy link

toraidl commented Sep 25, 2020

@mint-m 小米8, miiu12, 使用方法: 在虚拟机安装了Linux,然后直接clone到虚拟机里面运行start.sh x自己生成的zip,然后通过magisk刷入
另外,在发现这个fork前, #54 这个issue里面的方法我就已经解决了。

@MintMana
Copy link
Author

@toraidl
请问你这样生成的日历,能显示9/27是上班日期么
我刚用国内开发版的做底包,生成的magisk解压出日历apk,覆盖到priv-app
依然只能显示节日,不显示调休

@toraidl
Copy link

toraidl commented Sep 25, 2020

@mint-m 完全正常显示哦,你试下完全清空日历数据呢?
Uploading IMG_20200925_191421.jpg…

@MintMana
Copy link
Author

MintMana commented Sep 25, 2020

@toraidl 你的图裂啦
目前日历是应用列表里都不显示这个应用
手动删/data清除数据也一样
我用magisk刷入后全量包后通话和短信都打不开了T-T

@MintMana
Copy link
Author

MintMana commented Sep 25, 2020

emm,看起来好像也没报什么错
开发版通话和短信倒是正常了。。
但是应用列表依然没日历。。

看输出也没报错。。

#sh start.sh
--> Modify Clock to support work day alarms
--> rom: MIMIX2S v20.9.4

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs Intel(R) Xeon(R) CPU E5645 @ 2.40GHz (206C2),ASM,AES-NI)

Scanning the drive for archives:
1 file, 2288328265 bytes (2183 MiB)

Extracting archive: ../miui_MIMIX2S_20.9.4_233f82b05a_10.0.zip

Path = ../miui_MIMIX2S_20.9.4_233f82b05a_10.0.zip
Type = zip
Physical Size = 2288328265
Comment = signed by SignApk

Everything is Ok

Files: 2
Size: 1658309349
Compressed: 2288328265
sdat2img binary - version: 1.0

Android Nougat 7.x / Oreo 8.x detected!

extracting |################################| 100%
Done! Output image: miui-MIMIX2S-20.9.4-system.img
--> image extracted: miui-MIMIX2S-20.9.4-system.img
--> detected new image structure
--> copying apps
----> copying Calendar...
----> copying priv-app/Mms...
----> copying app/NotificationCenter...
----> copying priv-app/Contacts...
----> copying priv-app/ContactsProvider...
----> copying priv-app/YellowPage...
----> copying priv-app/AuthManager...
----> copying app/DeskClock...
--> decompiling Calendar...
'classes.dex' as 'classes.dex'...
--> decompiling Mms...
----> searching Mms smali...
----> patched international_build_flag smali: MmsConfig.smali
----> patched international_build_flag smali: MessageConfigUtils.smali
----> patched international_build_flag smali: Contact$ContactsCache.smali
----> patched international_build_flag smali: Contact.smali
----> patched international_build_flag smali: Conversation.smali
----> patched international_build_flag smali: ContactParser.smali
----> patched international_build_flag smali: MmsSettingsSearchProvider.smali
----> patched international_build_flag smali: JobStatService.smali
----> patched international_build_flag smali: MmsSystemEventReceiver.smali
----> patched international_build_flag smali: SmsReceiverService.smali
----> patched international_build_flag smali: AttachmentProcessor$PanelController.smali
----> patched international_build_flag smali: ClassZeroActivity.smali
----> patched international_build_flag smali: ConversationBase$ModeCallback.smali
----> patched international_build_flag smali: ConversationBase.smali
----> patched international_build_flag smali: ConversationFragment$25.smali
----> patched international_build_flag smali: FlatMessageListItem.smali
----> patched international_build_flag smali: MessageEditableActivityBase.smali
----> patched international_build_flag smali: MessageUtils.smali
----> patched international_build_flag smali: MessagingAdvancedPreferenceActivity$MessagingAdvancedPreferenceFragment.smali
----> patched international_build_flag smali: MessagingPreferenceActivity$MessagingPreferenceFragment.smali
----> patched international_build_flag smali: NewMessageActivity.smali
----> patched international_build_flag smali: PrivacyPolicyPreferenceActivity$PrivacyPolicyPreferenceFragment.smali
----> patched international_build_flag smali: PushSmsConversationActivity.smali
----> patched international_build_flag smali: ServiceProviderConversationFragment.smali
----> patched international_build_flag smali: SingleRecipientConversationActivity.smali
----> patched international_build_flag smali: SmartMessagePreferencesActivity$SmartMessagePreferencesFragment.smali
----> patched international_build_flag smali: AdConversationFragment.smali
----> patched international_build_flag smali: CommonConversationFragment$HeaderViewManager$2.smali
----> patched international_build_flag smali: ConversationBaseFragment$5.smali
----> patched international_build_flag smali: ServiceConversationFragment.smali
----> patched international_build_flag smali: AttachmentProcessorHelper.smali
----> patched international_build_flag smali: ComplainUtils.smali
----> patched international_build_flag smali: FakeCellUtil.smali
----> patched international_build_flag smali: PreferenceUtils.smali
----> patched international_build_flag smali: PrivacyUtils.smali
----> patched international_build_flag smali: SmartMessageUtils.smali
----> patched international_build_flag smali: UriUtils.smali
----> patched international_build_flag smali: VerificationCodeUtils.smali
----> patched international_build_flag smali: VoiceReportUtils.smali
----> patched international_build_flag smali: MmsBlockUtils.smali
----> patched international_build_flag smali: NumberUtils.smali
----> patched international_build_flag smali: ComplainJsDelegate.smali
----> patched international_build_flag smali: ActionCache.smali
----> patched international_build_flag smali: MmsDataStatHelper.smali
----> patched international_build_flag smali: SDKConfig.smali
----> patched international_build_flag smali: YellowPageMenuAdapter.smali
----> patched international_build_flag smali: YellowPageNumberManager.smali
----> patched international_build_flag smali: YellowpageContactFetcher.smali
----> patched international_build_flag smali: IntentProcessor.smali
----> patched international_build_flag smali: ActionUpdate.smali
----> patched international_build_flag smali: RmsUtils.smali
----> patched international_build_flag smali: B2cMessageUtils.smali
----> patched international_build_flag smali: MmsDatabaseHelper.smali
----> patched international_build_flag smali: HttpRequester.smali
----> patched international_build_flag smali: CommonUtils.smali
----> patched international_build_flag smali: YellowPageModule.smali
----> patched international_build_flag smali: MmsDataStatDefine.smali
----> patched international_build_flag smali: UpdateVerificationCodeService.smali
----> patched international_build_flag smali: TemplateUpdateService$1.smali
----> patched international_build_flag smali: TemplateUpdateService.smali
----> patched international_build_flag smali: BottomMenu.smali
----> patched international_build_flag smali: UnderstandFactory.smali
----> patched international_build_flag smali: UpdateVerificationCodeUtils.smali
----> patched method: isGlobalSms => false
----> patched method: isGlobalRegion => false
----> patched method: isGlobalVersion => false
----> patched method: isVerificationCodeCategoryEnabled => true
----> patched method: isVerificationCodeCategoryEnabled => true
----> patched method: isVerificationCodeCategoryEnabled => true
'classes.dex' as 'classes.dex'...
--> decompiling NotificationCenter...
----> searching NotificationCenter smali...
----> patched international_build_flag smali: g.smali
----> patched international_build_flag smali: c.smali
----> patched international_build_flag smali: e.smali
'classes.dex' as 'classes.dex'...
--> decompiling Contacts...
----> searching Contacts smali...
----> patched international_build_flag smali: SystemUtil.smali
'classes.dex' as 'classes.dex'...
--> decompiling ContactsProvider...
----> searching ContactsProvider smali...
----> patched international_build_flag smali: SimCommUtils.smali
----> patched international_build_flag smali: CustomizationUtils.smali
----> patched international_build_flag smali: CallLogProvider.smali
----> patched international_build_flag smali: ContactsDatabaseHelper.smali
----> patched international_build_flag smali: ContactsProvider2.smali
----> patched international_build_flag smali: DataRowHandlerForPhoneNumber.smali
----> patched international_build_flag smali: DefaultCallLogInsertionHelper.smali
----> patched international_build_flag smali: T9Builder.smali
----> patched international_build_flag smali: T9CallLogDepot.smali
----> patched international_build_flag smali: YellowPagePreset.smali
----> patched international_build_flag smali: NumberUtils.smali
----> patched international_build_flag smali: SyncAccountUtils.smali
----> patched international_build_flag smali: YellowPageHelper.smali
----> patched international_build_flag smali: ExLogger.smali
'classes.dex' as 'classes.dex'...
--> decompiling YellowPage...
----> searching ContactsProvider smali...
----> patched international_build_flag smali: b.smali
----> patched international_build_flag smali: a.smali
----> patched international_build_flag smali: j.smali
----> patched international_build_flag smali: i.smali
----> patched international_build_flag smali: YellowPageDatabaseHelper.smali
----> patched international_build_flag smali: ab.smali
----> patched international_build_flag smali: InternalWebEvent.smali
----> patched international_build_flag smali: K.smali
----> patched international_build_flag smali: L$c.smali
----> patched international_build_flag smali: X.smali
----> patched international_build_flag smali: c.smali
----> patched international_build_flag smali: l.smali
----> patched international_build_flag smali: y.smali
----> patched international_build_flag smali: u$b.smali
'classes.dex' as 'classes.dex'...
--> decompiling AuthManager...
----> patched international_build_flag smali: GrantPermissionsActivity.smali
----> patched international_build_flag smali: LBERecommendPkgPerm.smali
----> patched international_build_flag smali: ModemLocationManagerReceiver.smali
----> patched international_build_flag smali: OrangeReceiverController.smali
----> patched international_build_flag smali: PermissionConfiguration.smali
----> patched international_build_flag smali: AutoStartManagerProvider.smali
----> patched international_build_flag smali: PermissionManagerProvider.smali
----> patched international_build_flag smali: AppOpsAdapter$1.smali
----> patched international_build_flag smali: AppOpsAdapter.smali
----> patched international_build_flag smali: DataUploaderJobService.smali
----> patched international_build_flag smali: PermissionGrantHelper.smali
----> patched international_build_flag smali: AnalyticsHelper.smali
----> patched international_build_flag smali: DeviceUtil.smali
----> patched international_build_flag smali: InputMethodHelper.smali
----> patched international_build_flag smali: NetUtil.smali
----> patched international_build_flag smali: RequiredPermissionsUtil.smali
----> patched international_build_flag smali: d.smali
'classes.dex' as 'classes.dex'...
--> decompiling DeskClock...
----> searching DeskClock smali...
----> patched international_build_flag smali: SettingsActivity.smali
----> patched international_build_flag smali: Util.smali
'classes.dex' as 'classes.dex'...
--> packaging flashable zip
--> done
--> all done
--> Enabled app vault extract
--> rom: MIMIX2S v20.9.4
--> image extracted: miui-MIMIX2S-20.9.4-system.img
--> detected new image structure
--> copying apps
----> copying Mipay...
----> copying NextPay...
----> copying TSMClient...
----> copying UPTsmService...
----> copying priv-app/PersonalAssistant...
----> copying app/MetokNLP...
--> framework arch: arm64
--> already deodexed Mipay
--> already deodexed NextPay
----> copy native library libentryexpro.so
----> copy native library libuptsmaddonmi.so
--> already deodexed TSMClient
----> copy native library libentryexpro.so
----> copy native library libuptsmaddonmi.so
--> already deodexed UPTsmService
----> extract native library...
--> already deodexed PersonalAssistant
----> extract native library...
----> decompiling PersonalAssistant...
-----> testing classes.dex
-----> found classes.dex
----> Ignore patch: "MiuiFavoriteReceiver.smali" not found
'classes.dex' as 'classes.dex'...
--> already deodexed MetokNLP
----> extract native library...
--> packaging flashable zip
--> done
--> all done
adding: customize.sh (deflated 38%)
adding: META-INF/ (stored 0%)
adding: META-INF/com/ (stored 0%)
adding: META-INF/com/google/ (stored 0%)
adding: META-INF/com/google/android/ (stored 0%)
adding: META-INF/com/google/android/update-binary (deflated 58%)
adding: META-INF/com/google/android/updater-script (stored 0%)
adding: module.prop (deflated 20%)
adding: post-fs-data.sh (deflated 9%)
adding: README.md (stored 0%)
adding: sepolicy.rule (stored 0%)
adding: service.sh (deflated 9%)
adding: system/ (stored 0%)
adding: system/priv-app/ (stored 0%)
adding: system/priv-app/AuthManager/ (stored 0%)
adding: system/priv-app/AuthManager/AuthManager.apk (deflated 28%)
adding: system/priv-app/Calendar/ (stored 0%)
adding: system/priv-app/Calendar/Calendar.apk (deflated 24%)
adding: system/priv-app/Calendar/lib/ (stored 0%)
adding: system/priv-app/Calendar/lib/arm64/ (stored 0%)
adding: system/priv-app/Calendar/lib/arm64/libutility.so (deflated 63%)
adding: system/priv-app/Calendar/lib/arm64/libweibosdkcore.so (deflated 58%)
adding: system/priv-app/Calendar/lib/arm64/libwind.so (deflated 55%)
adding: system/priv-app/Contacts/ (stored 0%)
adding: system/priv-app/Contacts/Contacts.apk (deflated 47%)
adding: system/priv-app/Mms/ (stored 0%)
adding: system/priv-app/Mms/lib/ (stored 0%)
adding: system/priv-app/Mms/lib/armeabi/ (stored 0%)
adding: system/priv-app/Mms/lib/armeabi/libkh.so (deflated 57%)
adding: system/priv-app/Mms/lib/arm64/ (stored 0%)
adding: system/priv-app/Mms/lib/arm64/libkh.so (deflated 68%)
adding: system/priv-app/Mms/lib/arm/ (stored 0%)
adding: system/priv-app/Mms/lib/arm/libkh.so (deflated 54%)
adding: system/priv-app/Mms/Mms.apk (deflated 32%)
adding: system/priv-app/ContactsProvider/ (stored 0%)
adding: system/priv-app/ContactsProvider/ContactsProvider.apk (deflated 2%)
adding: system/priv-app/YellowPage/ (stored 0%)
adding: system/priv-app/YellowPage/lib/ (stored 0%)
adding: system/priv-app/YellowPage/lib/arm/ (stored 0%)
adding: system/priv-app/YellowPage/lib/arm/libmiui_lib_util.so (deflated 46%)
adding: system/priv-app/YellowPage/YellowPage.apk (deflated 42%)
adding: system/priv-app/PersonalAssistant/ (stored 0%)
adding: system/priv-app/PersonalAssistant/PersonalAssistant.apk (deflated 36%)
adding: system/priv-app/PersonalAssistant/lib/ (stored 0%)
adding: system/priv-app/PersonalAssistant/lib/arm/ (stored 0%)
adding: system/priv-app/PersonalAssistant/lib/arm/libAPSE_1.1.5.so (deflated 42%)
adding: system/priv-app/PersonalAssistant/lib/arm/libBaiduMapCom_map_v3_0_4.so (deflated 39%)
adding: system/priv-app/PersonalAssistant/lib/arm/libBaiduMapSDK_base_v4_3_2.so (deflated 36%)
adding: system/priv-app/PersonalAssistant/lib/arm/libTrafficRadar.so (deflated 36%)
adding: system/priv-app/PersonalAssistant/lib/arm/libflybird.so (deflated 37%)
adding: system/priv-app/PersonalAssistant/lib/arm/libjni-interface-lib.so (deflated 51%)
adding: system/priv-app/PersonalAssistant/lib/arm/libnative-lib.so (deflated 49%)
adding: system/priv-app/PersonalAssistant/lib/arm/libserverkey.so (deflated 68%)
adding: system/priv-app/PersonalAssistant/lib/arm/libsgmain.so (deflated 0%)
adding: system/priv-app/PersonalAssistant/lib/arm/libsgmainso-6.3.87.so (deflated 44%)
adding: system/priv-app/PersonalAssistant/lib/arm/libsqlcipher.so (deflated 47%)
adding: system/priv-app/PersonalAssistant/lib/arm/libtbtv3312.so (deflated 40%)
adding: system/priv-app/PersonalAssistant/lib/arm/libweibosdkcore.so (deflated 49%)
adding: system/app/ (stored 0%)
adding: system/app/NotificationCenter/ (stored 0%)
adding: system/app/NotificationCenter/NotificationCenter.apk (deflated 35%)
adding: system/app/NotificationCenter/lib/ (stored 0%)
adding: system/app/NotificationCenter/lib/arm64/ (stored 0%)
adding: system/app/NotificationCenter/lib/arm64/libmiuiblursdk.so (deflated 71%)
adding: system/app/NotificationCenter/lib/armeabi/ (stored 0%)
adding: system/app/NotificationCenter/lib/armeabi/libmiuiblursdk.so (deflated 63%)
adding: system/app/DeskClock/ (stored 0%)
adding: system/app/DeskClock/DeskClock.apk (deflated 40%)
adding: system/app/UPTsmService/ (stored 0%)
adding: system/app/UPTsmService/lib/ (stored 0%)
adding: system/app/UPTsmService/lib/arm64/ (stored 0%)
adding: system/app/UPTsmService/lib/arm64/libentryexpro.so (deflated 53%)
adding: system/app/UPTsmService/lib/arm64/libuptsmaddonmi.so (deflated 58%)
adding: system/app/UPTsmService/lib/arm64/libuptsmservice.so (deflated 60%)
adding: system/app/UPTsmService/UPTsmService.apk (deflated 46%)
adding: system/app/Mipay/ (stored 0%)
adding: system/app/Mipay/Mipay.apk (deflated 37%)
adding: system/app/TSMClient/ (stored 0%)
adding: system/app/TSMClient/TSMClient.apk (deflated 6%)
adding: system/app/TSMClient/lib/ (stored 0%)
adding: system/app/TSMClient/lib/arm64/ (stored 0%)
adding: system/app/TSMClient/lib/arm64/libentryexpro.so (deflated 55%)
adding: system/app/TSMClient/lib/arm64/libuptsmaddonmi.so (deflated 58%)
adding: system/app/MetokNLP/ (stored 0%)
adding: system/app/MetokNLP/lib/ (stored 0%)
adding: system/app/MetokNLP/lib/arm64/ (stored 0%)
adding: system/app/MetokNLP/lib/arm64/libapssdk.so (deflated 58%)
adding: system/app/MetokNLP/lib/arm64/libmiui_apssdk.so (deflated 57%)
adding: system/app/MetokNLP/lib/arm64/libnlocSDK7d.so (deflated 55%)
adding: system/app/MetokNLP/MetokNLP.apk (deflated 18%)
adding: system/app/NextPay/ (stored 0%)
adding: system/app/NextPay/NextPay.apk (deflated 8%)
adding: system/app/NextPay/lib/ (stored 0%)
adding: system/app/NextPay/lib/arm64/ (stored 0%)
adding: system/app/NextPay/lib/arm64/libuptsmaddonmi.so (deflated 58%)
adding: system/app/NextPay/lib/arm64/libentryexpro.so (deflated 55%)
adding: system.prop (deflated 46%)
adding: uninstall.sh (stored 0%)

@MintMana
Copy link
Author

貌似找到办法了
calendarprovider必须要一起替换掉(国内版的calendar和calendarprovider)
这样出来的日历是全功能的

@MintMana MintMana changed the title 日历似乎无法显示节假日调休 【特定固件问题,非bug report】日历无法显示节假日调休 Sep 26, 2020
@toraidl
Copy link

toraidl commented Sep 27, 2020

@mint-m 小米8没有遇到这个问题,可能还真是mix2特有。

@MintMana
Copy link
Author

@toraidl 是这样的。。而且最终能用的版本是个缝合怪,时钟\天气要用eu稳定版mod,日历用国内稳定版mod,通话短信用国内开发版mod
有的还只能硬替换,magisk不行
有空我开个repo记录一下,orz

@kooritea
Copy link

@toraidl 之前20.9.11还是20.9.18来着我也是天气一直fc,停用了,后来更新到后一个版本就好了。。
不知道是不是你们说的没有替换calendarprovider的问题。

@MintMana
Copy link
Author

@kooritea 在mix2s上,calendarprovider只影响日历功能,即不显示调休,不影响其他组件
天气我没遇到过fc,只是有的版本应用列表里都不出现

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants