-
Notifications
You must be signed in to change notification settings - Fork 63
perf(Bring back twitter): Optimize string replacement #440
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
perf(Bring back twitter): Optimize string replacement #440
Conversation
I think this is for testing that we forgot to remove.
Fair points. Now that I look at the code, they really are redundant. One counter point. It may be that the original apk does not provide translations for the user's native language, so they create a custom translation for it. But seeing that no one actually did that, then I think it is safe to remove them after all. |
|
Should I add logging code for strings which was not found? |
|
yeah, new implementation is a lot better |
|
Hey, after I submitted this PR, I found a old code in the git log that replaces all "X" with "Twitter". In conclusion, it was a problem with using setTextContent(). This part was causing the performance issue. for (i in 0 until strings.length) {
val string = strings.item(i) as Element
if (!string.getAttribute("name").contains("api_key")) {
string.textContent = string.textContent.replace("X", "Twitter")
}
}This code calls for (i in 0 until strings.length) {
val string = strings.item(i) as Element
if (!string.getAttribute("name").contains("api_key")) {
val text = string.textContent
if (text.contains("X")) {
string.textContent = text.replace("X", "Twitter")
}
}
}This improved performance incredibly.
This execution time is almost the same as the current process using replacement map. But this is beyond the scope of this PR. |
|
I pushed the change. However, a new problem with I don't know the difference between normal pt and pt-rBR, but if the strings in the pt_rBR map is taken directly from Twitter 9.98.0 apk, I think I can change values-pt-rBR to values-pt directly. I'll look into it tomorrow or the day after tomorrow. |
It's for Portuguese Region Brazil. It seems I missed this one. We actually need to create the strings for that. |
|
After researched pt_rBR strings in this patch, I found that the grammar and wording was slightly different from the normal Portuguese (values-pt) contained in the original X APK, and that it was indeed Brazilian Portuguese.
This was real... However, for other languages it is still preferable not to add strings.xml if it does not exist. @r7kings Hello, if I'm correct, you are the one who created the pt_rBR strings in this patch. After that, I will resolve conflicts. @crimera Is this intended? Should I keep these code after merging conflicts? |
Nah, I forgot to remove it. Oops, accidentally closed the issue. My bad, I just woke up and misclicked |
# Conflicts: # src/main/kotlin/crimera/patches/twitter/misc/bringbacktwitter/BringBackTwitterResourcePatch.kt
# Conflicts: # src/main/kotlin/crimera/patches/twitter/misc/bringbacktwitter/BringBackTwitterResourcePatch.kt
When user removed some languages from split apk and SettingsPatch was executed prior to this patch, this log always show warnings because SettingsPatch adds other languages.
|
Sorry for the late reply. By the way, I removed the missing strings logs at 3448546. It turned out that when user removed some languages from split apk and SettingsPatch was applied prior to this patch, this log always show warnings because SettingsPatch adds other languages files. Therefore, I removed the log. (If you still think the log is needed, please let me know.) |
|
I forgot to tell you one important thing. When I resolved the conflict on my local repository, I should have rebased the working branch on the dev branch instead of merging the dev branch. 😅 |
## [1.44.1-dev.2](v1.44.1-dev.1...v1.44.1-dev.2) (2024-11-11) ### Perfomance * **Bring back twitter:** Optimize string replacement ([#440](#440)) ([7e61023](7e61023))
## [1.45.0](v1.44.0...v1.45.0) (2024-11-14) ### Bug Fixes * **Twitter:** Share menu button add hook in/from 10.67 ([a640946](a640946)) ### Features * **Twitter:** Added `Customise post font size` patch ([ea608e0](ea608e0)) ### Refactors * **Twitter:** refactor values of list preference ([e0e5c5b](e0e5c5b)) ### Perfomance * **Bring back twitter:** Optimize string replacement ([#440](#440)) ([7e61023](7e61023))
## [1.22.0-dev.1](v1.21.0...v1.22.0-dev.1) (2025-01-20) ### Bug Fixes * add "SettingsStatusLoadFingerprint" to fingerprints of `Hide Community Notes` and `Hide Live Threads` patch ([9c0232a](9c0232a)) * **Bring back twitter:** Change the character "𝕏" into "Twitter". ([crimera#441](https://github.com/okkidwi/piko/issues/441)) ([c20e16f](c20e16f)) * **Bring back twitter:** Change x icon to legacy twitter. ([3006f47](3006f47)) * **Custom download folder:** Restore compatibility with versions prior to 10.64 ([b88b00b](b88b00b)) * **Custom downloader:** Improve fingerprint ([2a2a4a4](2a2a4a4)) * **Feature Flags:** Use ListView instead of RecyclerView for a more reliable list. ([6f16b7f](6f16b7f)) * Fix crash when opening feature flags ([2b1484d](2b1484d)) * Fix oopsie ([2af661f](2af661f)) * Improve getUsername fingerprint ([af617af](af617af)) * Missing `,` ([67675fe](67675fe)) * Not creating `values-night-v31` dir ([e3f3491](e3f3491)) * Opening mod settings with root installation results in crash ([8161644](8161644)) * Opening mod settings with root installation results in crash ([47e7670](47e7670)) * Remove debug prints ([33e4d08](33e4d08)) * Remove duplicate strings ([94c6642](94c6642)) * **Remove Google Ad:** Include ads in the comments ([79d6e35](79d6e35)) * Resource strings getting corrupted, resulting on failure to patch on revanced manager ([crimera#439](https://github.com/okkidwi/piko/issues/439)) ([1763137](1763137)) * switch jp to ja for Japanese translation ([c13cc87](c13cc87)) * tweet highlight color on hold ([crimera#243](https://github.com/okkidwi/piko/issues/243)) ([b22ea42](b22ea42)) * **Twitter:** `Customize Navigation Bar items` in/from `10.53.0-beta.1` ([e8154fb](e8154fb)) * **Twitter:** Add support for version 10.64.0-beta.1 ([c81378d](c81378d)) * **Twitter:** Bookmark in nav bar dix ([03fb96c](03fb96c)) * **Twitter:** Bookmark nav bar fix ([a6e8ab9](a6e8ab9)) * **Twitter:** Change patch name from `Enable app icon settings` -> `Enable app icons` ([5a7ef46](5a7ef46)) * **Twitter:** fix `Control video auto scroll` in 10.57 ([b7ae78c](b7ae78c)) * **Twitter:** Fix `Customize profile tabs` crash after `10.43` ([a38d621](a38d621)) * **Twitter:** fix `Enable app icon settings` patch ([c2b6f79](c2b6f79)) * **Twitter:** Fix `Hide nudge button` patch ([d7572fe](d7572fe)) * **Twitter:** Fix `Hide Promoted Trends` patch ([7052d25](7052d25)) * **Twitter:** Fix `Remove premium upsell` patch ([4df5e32](4df5e32)) * **Twitter:** fix `Remove videos for you` patch ([b19f943](b19f943)) * **Twitter:** Fix aapt breakage due to tag mismatch ([730a51c](730a51c)) * **Twitter:** fix video entity hook in `10.58` ([e8a833d](e8a833d)) * **Twitter:** Missing download option in immersive view ([6b0aa2c](6b0aa2c)) * **Twitter:** Share menu button add hook in/from 10.67 ([a640946](a640946)) * unescaped character on `pl` string values ([a6444be](a6444be)) * Unescaped characters ([8e539df](8e539df)) * URL decode path to JAR containing spaces by osumatrix ([e6671ba](e6671ba)) * Use UrlDecoder API available in older Android versions ([d9e6374](d9e6374)) ### Features * Add toggle for `Open browser chooser on opening links` patch ([6f217f0](6f217f0)) * **all:** Added `Export all activities` patch from ReVanced ([7cc405f](7cc405f)) * **Bring back twitter:** Add Japanese ([4eb08b5](4eb08b5)) * **Customize side bar items:** Allow for hiding of the "Jobs" item ([14ce811](14ce811)) * Enable recent patches by default ([e84f358](e84f358)) * **Hook feature flag:** Added ability to search for supported flags. ([28a2c0a](28a2c0a)) * Quick settings button is now optional ([e9e54e5](e9e54e5)) * Remove throw file ([86bff99](86bff99)) * **Translations:** Add `Turkish` ([bf70b91](bf70b91)) * **Translations:** Add Arabic translations ([c1d797b](c1d797b)) * **Translations:** Add Brazilian Portuguese translations [Bring back Twitter] ([3a831d3](3a831d3)) * **Translations:** Add japanese ([c123d8e](c123d8e)) * **Translations:** Add polish translation ([8102f35](8102f35)) * **Translations:** Add simplified Chinese translation ([7662a34](7662a34)) * **Translations:** Add Simplified Chinese translations and Taiwanese Traditional Chinese translations[Bring back Twitter] ([d44bfd7](d44bfd7)) * **Translations:** Added Traditional Chinese translation ([1c0b10a](1c0b10a)) * **Translations:** Fix Simplified Chinese Translation ([ec0a3dc](ec0a3dc)) * **Translations:** Update `japanese` ([444623f](444623f)) * **Translations:** Update `japanese` ([f5ece19](f5ece19)) * **Translations:** Update Russian translation ([54ba664](54ba664)) * **Translations:** Update Russian translation ([3606c10](3606c10)) * **Translations:** Updated Brazilian Portuguese ([e25ec0e](e25ec0e)) * **Translations:** Updated Brazilian Portuguese ([45aac73](45aac73)) * **Translations:** Updated Traditional Chinese string-zh-rCN.xml ([6cc2373](6cc2373)) * **Translations:** Updated Traditional Chinese string-zh-rTW.xml ([6787c28](6787c28)) * **translation:** Update Simplified Chinese translation ([4f3027a](4f3027a)) * **Translation:** Update Simplified Chinese translation ([b9fe0e8](b9fe0e8)) * **Twitter:** Added `Ability to copy video media link` patch ([14bfdc7](14bfdc7)) * **Twitter:** Added `Control video auto scroll` patch ([7a21924](7a21924)) * **Twitter:** Added `Custom downloader` ([3d5941e](3d5941e)) * **Twitter:** Added `Custom translator` patch ([737fb9e](737fb9e)) * **Twitter:** Added `Customise post font size` patch ([ea608e0](ea608e0)) * **Twitter:** Added `Customize explore tabs` patch ([4be6a7f](4be6a7f)) * **Twitter:** Added `Customize Inline action Bar items` patch ([05b06f9](05b06f9)) * **Twitter:** Added `Customize Navigation Bar items` patch ([9c6f59c](9c6f59c)) * **Twitter:** Added `Customize reply sort filter` patch ([121b8a6](121b8a6)) * **Twitter:** Added `Customize search suggestions` patch ([aaca565](aaca565)) * **Twitter:** Added `Customize search tab items` patch ([9edc97a](9edc97a)) * **Twitter:** Added `Customize side bar items` patch ([ca0d28f](ca0d28f)) * **Twitter:** Added `Customize timeline top bar` patch ([245c5f6](245c5f6)) * **Twitter:** Added `Debug Menu` patch ([7d5ca77](7d5ca77)) * **Twitter:** Added `Delete from database` patch ([d785660](d785660)) * **Twitter:** Added `Disable auto timeline scroll on launch` patch ([b8d431e](b8d431e)) * **Twitter:** Added `Enable app downgrading` patch ([9f581ce](9f581ce)) * **Twitter:** Added `Enable force HD videos` patch ([d316612](d316612)) * **Twitter:** Added `Enable PiP mode automatically` patch ([59d6b67](59d6b67)) * **Twitter:** Added `Hide Buy Premium Banner` patch ([7ba6419](7ba6419)) * **Twitter:** Added `Hide followed by context` patch ([261e1d0](261e1d0)) * **Twitter:** Added `Hide hidden replies` patch ([431acc4](431acc4)) * **Twitter:** Added `Hide nudge button` patch ([ad27484](ad27484)) * **Twitter:** Added `Patch info` section ([7f794c3](7f794c3)) * **Twitter:** Added `Profile tabs customisation` ([db0298b](db0298b)) * **Twitter:** Added `Remove main event` patch ([806598d](806598d)) * **Twitter:** Added `Remove premium upsell` patch ([37525de](37525de)) * **Twitter:** Added `Remove top people in search` patch ([95b5ef9](95b5ef9)) * **Twitter:** Added `Remove videos for you` patch ([25934a2](25934a2)) * **Twitter:** Added `Round off numbers` patch ([b1c1b13](b1c1b13)) * **Twitter:** Added ability to export and import prefs & feature flags ([01cdd6b](01cdd6b)) * **Twitter:** Added ability to export and import prefs & feature flags ([a591133](a591133)) * **Twitter:** Added ability to reset pref and flags ([4aaeb09](4aaeb09)) * **Twitter:** Added Remember filter for `Customize reply sort filter` ([24df398](24df398)) * **Twitter:** Added tab redirects hook (for Bookmark Navbar) ([f01b418](f01b418)) * **Twitter:** Custom deeplinks ([325a281](325a281)) * **ui:** app wide monet theming in light mode ([46f920b](46f920b)) * **ui:** full app wide material theming in dim mode replacing dark blue ([52d7444](52d7444)) * use browser chooser when opening links ([cc165f4](cc165f4)) ### Updates * Add spanish to languages ([e9b8efd](e9b8efd)) * **Bring back twitter:** Create strings file if not found ([9f51a5c](9f51a5c)) * **Custom sharing domain:** require settings patch also turned it on by default. ([6a3777f](6a3777f)) * Enable `Customize profile tabs` patch by default ([a8543bf](a8543bf)) * Enable `Hide Live Threads` patch by default ([b9862b5](b9862b5)) * **Hook feature flag:** Improve flag matching in search. ([d7f0827](d7f0827)) * Improve quick settings appearance ([6dc27b4](6dc27b4)) * Improve the retrieval of the patches version ([ba940da](ba940da)) * Improved the hooking of the recyclerview methods. also fixes the crash when opening feature flags. ([25e5bc4](25e5bc4)) * Russian translation ([42b68e9](42b68e9)) * Translation updates ([509dfbb](509dfbb)) * Translations ([d3ae8ec](d3ae8ec)) * **Translations:** Improved & updates polish translations ([9bbb9f4](9bbb9f4)) * **Translations:** Translation updates ([4bf8a8d](4bf8a8d)) * **Translations:** Update `Indonesian (Bahasa)` ([1442b6c](1442b6c)) * **Translations:** Update `Indonesian (Bahasa)` ([b9488d6](b9488d6)) * **Translations:** Update `japanese` ([9fce4a2](9fce4a2)) * **Translations:** Update `Japanese` ([b326d10](b326d10)) * **Translations:** Update Brazilian Portuguese ([8745f61](8745f61)) * **Translations:** Update Brazilian Portuguese ([7de9493](7de9493)) * **Translations:** Update Japanese ([61ff288](61ff288)) * **Translations:** Update polish ([9d8f4fc](9d8f4fc)) * **Translations:** Update polish translations ([6200d65](6200d65)) * **Translations:** Update Russian translation ([8b1c4c8](8b1c4c8)) * **Translations:** update simplified chinese translation ([3e5a8fd](3e5a8fd)) * **Translations:** update simplified chinese translation ([b24f7cc](b24f7cc)) * **Translations:** Update simplified chinese translation ([147cb29](147cb29)) * **Translations:** Update translations ([9686863](9686863)) * **Translations:** Update Turkish translations ([bab6ae9](bab6ae9)) * **Translation:** Update Hindi translations [Bring back Twitter] ([20ac044](20ac044)) * **Twitter:** Added hide 'Settings and privacy' in `Customize side bar items` ([cb01885](cb01885)) * **Twitter:** Added strings ([fad9b1a](fad9b1a)) * **Twitter:** Change Quick Btn path ([7febdf6](7febdf6)) * **Twitter:** Enable new patches by default ([19f9149](19f9149)) * **Twitter:** Updated `Enable force HD videos` patch description ([86ea041](86ea041)) * **Twitter:** updated string ([60afc68](60afc68)) * **Twitter:** Updated strings ([3cb159e](3cb159e)) ### Refactors * Add `enableSettings` helper function ([7d6ebd5](7d6ebd5)) * Add `SettingsPatch ` dependencies to patches ([6d252f8](6d252f8)) * **Custom Downloader:** Improve getting of tweet method declarations ([5237e49](5237e49)) * Optimize imports ([2f42add](2f42add)) * **Twitter:** `Add ability to copy media link` patch ([e8ef551](e8ef551)) * **Twitter:** Added 'Native features' section ([12d2bda](12d2bda)) * **Twitter:** Added `No shortened URL` as a settings toggle ([ea33a30](ea33a30)) * **Twitter:** Added missing patches names ([b3fda95](b3fda95)) * **Twitter:** Added multiple language support for `Bring back twitter` ([9eacab3](9eacab3)) * **Twitter:** Added Native download filename customization ([99a10b1](99a10b1)) * **Twitter:** Added quick settings button in side drawer ([c0152e3](c0152e3)) * **Twitter:** Added toggle for `Show sensitive media` patch ([cac4fe7](cac4fe7)) * **Twitter:** Change translator icon ([bf5f027](bf5f027)) * **Twitter:** Changed `Top Articles ` string ([b590695](b590695)) * **Twitter:** Combined `customize patch` into single class ([6c04aed](6c04aed)) * **Twitter:** Force enable `Enable app icon settings` patch ([ee605f1](ee605f1)) * **Twitter:** load `Utils.load()` dynamically ([5379276](5379276)) * **Twitter:** Major string changes ([f22fdf0](f22fdf0)) * **Twitter:** More strings refactor ([d5a629f](d5a629f)) * **Twitter:** Rearrange `Bring back twitter` resources ([a476924](a476924)) * **Twitter:** refactor `Custom downloader` patch ([42cc752](42cc752)) * **Twitter:** Refactor `Custom downloader` patch ([1e966f7](1e966f7)) * **Twitter:** Refactor `Enable app icon settings` patch ([e7b3d0e](e7b3d0e)) * **Twitter:** refactor default feature flag hook ([6fd6001](6fd6001)) * **Twitter:** Refactor hooks filename ([2daa292](2daa292)) * **Twitter:** refactor values of list preference ([e0e5c5b](e0e5c5b)) * **Twitter:** renamed 'Share menu button' fingerprints to hooks ([395c221](395c221)) * **Twitter:** Renamed patch `Remove Buy Premium Banner` to `Remove message prompts Banner` ([45dbad8](45dbad8)) * **Twitter:** Separated `App icon` and `Navigation icon` patch ([8a67f12](8a67f12)) * **Twitter:** Seperated/Added `Remove superhero event` patch ([d60ee17](d60ee17)) * **Twitter:** Strings in 'Customization' ([c52c2c0](c52c2c0)) * **Twitter:** Strings in 'Customization' ([a75221b](a75221b)) * **Twitter:** Strings refactor ([2db8866](2db8866)) * **Twitter:** updated profile tab string ([1af7846](1af7846)) ### Perfomance * **Bring back twitter:** Optimize string replacement ([crimera#440](https://github.com/okkidwi/piko/issues/440)) ([7e61023](7e61023))
## [1.31.0](v1.30.2...v1.31.0) (2025-01-26) ### Bug Fixes * **Bring back twitter:** Change the character "𝕏" into "Twitter". ([crimera#441](https://github.com/chemchetchagio/piko/issues/441)) ([c20e16f](c20e16f)) * **Bring back twitter:** Change x icon to legacy twitter. ([3006f47](3006f47)) * **Custom download folder:** Restore compatibility with versions prior to 10.64 ([b88b00b](b88b00b)) * **Custom downloader:** Improve fingerprint ([2a2a4a4](2a2a4a4)) * **Feature Flags:** Use ListView instead of RecyclerView for a more reliable list. ([6f16b7f](6f16b7f)) * Fix crash when opening feature flags ([2b1484d](2b1484d)) * Improve getUsername fingerprint ([af617af](af617af)) * Remove debug prints ([33e4d08](33e4d08)) * Remove duplicate strings ([94c6642](94c6642)) * **Remove Google Ad:** Include ads in the comments ([79d6e35](79d6e35)) * Resource strings getting corrupted, resulting on failure to patch on revanced manager ([crimera#439](https://github.com/chemchetchagio/piko/issues/439)) ([1763137](1763137)) * **Twitter:** `Customize Navigation Bar items` in/from `10.53.0-beta.1` ([e8154fb](e8154fb)) * **Twitter:** Add support for version 10.64.0-beta.1 ([c81378d](c81378d)) * **Twitter:** Change patch name from `Enable app icon settings` -> `Enable app icons` ([5a7ef46](5a7ef46)) * **Twitter:** fix `Control video auto scroll` in 10.57 ([b7ae78c](b7ae78c)) * **Twitter:** fix `Enable app icon settings` patch ([c2b6f79](c2b6f79)) * **Twitter:** Fix `Hide nudge button` patch ([d7572fe](d7572fe)) * **Twitter:** Fix `Remove premium upsell` patch ([4df5e32](4df5e32)) * **Twitter:** fix `Remove videos for you` patch ([b19f943](b19f943)) * **Twitter:** Fix aapt breakage due to tag mismatch ([730a51c](730a51c)) * **Twitter:** fix video entity hook in `10.58` ([e8a833d](e8a833d)) * **Twitter:** Missing download option in immersive view ([6b0aa2c](6b0aa2c)) * **Twitter:** Share menu button add hook in/from 10.67 ([a640946](a640946)) ### Features * **all:** Added `Export all activities` patch from ReVanced ([7cc405f](7cc405f)) * **Bring back twitter:** Add Japanese ([4eb08b5](4eb08b5)) * **Customize side bar items:** Allow for hiding of the "Jobs" item ([14ce811](14ce811)) * Enable recent patches by default ([e84f358](e84f358)) * **Hook feature flag:** Added ability to search for supported flags. ([28a2c0a](28a2c0a)) * Quick settings button is now optional ([e9e54e5](e9e54e5)) * **Translations:** Updated Traditional Chinese string-zh-rCN.xml ([6cc2373](6cc2373)) * **Translations:** Updated Traditional Chinese string-zh-rTW.xml ([6787c28](6787c28)) * **Twitter:** Added `Control video auto scroll` patch ([7a21924](7a21924)) * **Twitter:** Added `Custom downloader` ([3d5941e](3d5941e)) * **Twitter:** Added `Custom translator` patch ([737fb9e](737fb9e)) * **Twitter:** Added `Customise post font size` patch ([ea608e0](ea608e0)) * **Twitter:** Added `Customize explore tabs` patch ([4be6a7f](4be6a7f)) * **Twitter:** Added `Customize reply sort filter` patch ([121b8a6](121b8a6)) * **Twitter:** Added `Customize search suggestions` patch ([aaca565](aaca565)) * **Twitter:** Added `Customize search tab items` patch ([9edc97a](9edc97a)) * **Twitter:** Added `Delete from database` patch ([d785660](d785660)) * **Twitter:** Added `Enable force HD videos` patch ([d316612](d316612)) * **Twitter:** Added `Enable PiP mode automatically` patch ([59d6b67](59d6b67)) * **Twitter:** Added `Hide followed by context` patch ([261e1d0](261e1d0)) * **Twitter:** Added `Hide nudge button` patch ([ad27484](ad27484)) * **Twitter:** Added `Remove main event` patch ([806598d](806598d)) * **Twitter:** Added `Remove premium upsell` patch ([37525de](37525de)) * **Twitter:** Added `Remove top people in search` patch ([95b5ef9](95b5ef9)) * **Twitter:** Added `Remove videos for you` patch ([25934a2](25934a2)) * **Twitter:** Added Remember filter for `Customize reply sort filter` ([24df398](24df398)) * **Twitter:** Added tab redirects hook (for Bookmark Navbar) ([f01b418](f01b418)) * **Twitter:** Custom deeplinks ([325a281](325a281)) ### Updates * Add spanish to languages ([e9b8efd](e9b8efd)) * Enable `Customize profile tabs` patch by default ([a8543bf](a8543bf)) * Enable `Hide Live Threads` patch by default ([b9862b5](b9862b5)) * **Hook feature flag:** Improve flag matching in search. ([d7f0827](d7f0827)) * Improve quick settings appearance ([6dc27b4](6dc27b4)) * Improved the hooking of the recyclerview methods. also fixes the crash when opening feature flags. ([25e5bc4](25e5bc4)) * Russian translation ([42b68e9](42b68e9)) * Translation updates ([509dfbb](509dfbb)) * **Translations:** Translation updates ([4bf8a8d](4bf8a8d)) * **Translations:** Update `Japanese` ([b326d10](b326d10)) * **Translations:** Update translations ([9686863](9686863)) * **Twitter:** Added hide 'Settings and privacy' in `Customize side bar items` ([cb01885](cb01885)) * **Twitter:** Added strings ([fad9b1a](fad9b1a)) * **Twitter:** Change Quick Btn path ([7febdf6](7febdf6)) * **Twitter:** Updated `Enable force HD videos` patch description ([86ea041](86ea041)) * **Twitter:** updated string ([60afc68](60afc68)) * **Twitter:** Updated strings ([3cb159e](3cb159e)) ### Refactors * **Custom Downloader:** Improve getting of tweet method declarations ([5237e49](5237e49)) * **Twitter:** Added 'Native features' section ([12d2bda](12d2bda)) * **Twitter:** Added Native download filename customization ([99a10b1](99a10b1)) * **Twitter:** Added quick settings button in side drawer ([c0152e3](c0152e3)) * **Twitter:** Added toggle for `Show sensitive media` patch ([cac4fe7](cac4fe7)) * **Twitter:** Change translator icon ([bf5f027](bf5f027)) * **Twitter:** Changed `Top Articles ` string ([b590695](b590695)) * **Twitter:** Major string changes ([f22fdf0](f22fdf0)) * **Twitter:** More strings refactor ([d5a629f](d5a629f)) * **Twitter:** refactor `Custom downloader` patch ([42cc752](42cc752)) * **Twitter:** Refactor `Custom downloader` patch ([1e966f7](1e966f7)) * **Twitter:** Refactor hooks filename ([2daa292](2daa292)) * **Twitter:** refactor values of list preference ([e0e5c5b](e0e5c5b)) * **Twitter:** renamed 'Share menu button' fingerprints to hooks ([395c221](395c221)) * **Twitter:** Seperated/Added `Remove superhero event` patch ([d60ee17](d60ee17)) * **Twitter:** Strings in 'Customization' ([c52c2c0](c52c2c0)) * **Twitter:** Strings in 'Customization' ([a75221b](a75221b)) * **Twitter:** Strings refactor ([2db8866](2db8866)) ### Perfomance * **Bring back twitter:** Optimize string replacement ([crimera#440](https://github.com/chemchetchagio/piko/issues/440)) ([7e61023](7e61023))
## 1.0.0 (2025-03-31) ### Bug Fixes * Activate release so i can test ([34b7227](34b7227)) * add "SettingsStatusLoadFingerprint" to fingerprints of `Hide Community Notes` and `Hide Live Threads` patch ([9c0232a](9c0232a)) * Add back settings for the custom sharemenu buttons ([bc7e777](bc7e777)) * Add support for 10.83.0 releases ([9344d52](9344d52)) * Adding debug menu patch results in a crash ([caf82eb](caf82eb)) * **Bring back twitter:** Change the character "𝕏" into "Twitter". ([crimera#441](https://github.com/admknight/piko/issues/441)) ([c20e16f](c20e16f)) * **Bring back twitter:** Change x icon to legacy twitter. ([3006f47](3006f47)) * **Bring back twitter:** Resource compilation fails on ReVanced Manager ([a364bec](a364bec)) * Change run config ([18d4dce](18d4dce)) * **Custom download folder:** Restore compatibility with versions prior to 10.64 ([b88b00b](b88b00b)) * **Custom downloader:** Improve fingerprint ([2a2a4a4](2a2a4a4)) * **Custom sharing domain:** Now works on "Copy Link" ([8f71415](8f71415)) * **Enable Reader Mode:** Specify the compatible version, show a warning instead of throwing an exception when failed ([b1c52e7](b1c52e7)) * **Feature Flags:** Use ListView instead of RecyclerView for a more reliable list. ([6f16b7f](6f16b7f)) * Fix crash when opening feature flags ([2b1484d](2b1484d)) * Fix oopsie ([2af661f](2af661f)) * **Hide FAB:** Add description ([ae418a8](ae418a8)) * **Hide For You:** Included by default ([3b51053](3b51053)) * idk ([0a4ade0](0a4ade0)) * Improve getUsername fingerprint ([af617af](af617af)) * Missing `,` ([67675fe](67675fe)) * Not creating `values-night-v31` dir ([e3f3491](e3f3491)) * Opening mod settings with root installation results in crash ([8161644](8161644)) * Opening mod settings with root installation results in crash ([47e7670](47e7670)) * refactor ([eab113e](eab113e)) * Remove debug prints ([33e4d08](33e4d08)) * **Remove Detailed posts:** Change the settings label from "detailed" to "related" ([3cf5f9e](3cf5f9e)) * Remove duplicate strings ([94c6642](94c6642)) * **Remove Google Ad:** Include ads in the comments ([79d6e35](79d6e35)) * Remove obsolete `Open browser chooser on opening links` patch ([a1e2b76](a1e2b76)) * Remove semicolon ;-) ([46e60f7](46e60f7)) * Resource strings getting corrupted, resulting on failure to patch on revanced manager ([crimera#439](https://github.com/admknight/piko/issues/439)) ([1763137](1763137)) * switch jp to ja for Japanese translation ([c13cc87](c13cc87)) * tweet highlight color on hold ([crimera#243](https://github.com/admknight/piko/issues/243)) ([b22ea42](b22ea42)) * **Twitter - Bring back twitter:** Add other languages ([2c63ff1](2c63ff1)) * **Twitter - Bring back twitter:** Exclude by default ([e654549](e654549)) * **Twitter - Bring back twitter:** Now changes notification icon ([7e281e4](7e281e4)) * **Twitter - Bring back twitter:** Now changes notification icon ([8b57a07](8b57a07)) * **Twitter - Bring back twitter:** Now changes the app name by writing directly to AndroidManifest (Should make patching faster) ([f61468c](f61468c)) * **Twitter - Custom sharing domain:** Disable by default ([6e7c170](6e7c170)) * **Twitter:** `Customize Navigation Bar items` in/from `10.53.0-beta.1` ([e8154fb](e8154fb)) * **Twitter:** Add splash screen icon ([b30e083](b30e083)) * **Twitter:** Add support for version 10.64.0-beta.1 ([c81378d](c81378d)) * **twitter:** Add twitter to compatible package for SelectableTextPatch ([0b6ee33](0b6ee33)) * **Twitter:** Bookmark in nav bar dix ([03fb96c](03fb96c)) * **Twitter:** Bookmark nav bar fix ([a6e8ab9](a6e8ab9)) * **Twitter:** Bring back download and viewcount patch ([3eea91f](3eea91f)) * **Twitter:** Change patch name from `Enable app icon settings` -> `Enable app icons` ([5a7ef46](5a7ef46)) * **Twitter:** disable `Hide For You` by default. ([b933c19](b933c19)) * **Twitter:** Download patch ([f87dee7](f87dee7)) * **twitter:** Exclude `Google Ads Patch` by default ([a26e03a](a26e03a)) * **Twitter:** fix `Control video auto scroll` in 10.57 ([b7ae78c](b7ae78c)) * **Twitter:** fix `Custom downloader` patch ([f4d953a](f4d953a)) * **Twitter:** fix `Custom translator` patch ([8065fa3](8065fa3)) * **Twitter:** Fix `Customize profile tabs` crash after `10.43` ([a38d621](a38d621)) * **Twitter:** fix `Enable app icon settings` patch ([c2b6f79](c2b6f79)) * **Twitter:** fix `Enable debug menu for posts` patch ([72a72f2](72a72f2)) * **Twitter:** Fix `Hide nudge button` patch ([d7572fe](d7572fe)) * **Twitter:** Fix `Hide Promoted Trends` patch ([7052d25](7052d25)) * **Twitter:** fix `Reader mode` for 10.34 ([01cb8c9](01cb8c9)) * **Twitter:** Fix `Remove premium upsell` patch ([4df5e32](4df5e32)) * **Twitter:** fix `Remove videos for you` patch ([b19f943](b19f943)) * **Twitter:** Fix aapt breakage due to tag mismatch ([730a51c](730a51c)) * **Twitter:** fix video entity hook in `10.58` ([e8a833d](e8a833d)) * **Twitter:** Fixup patch dependecy ([867926a](867926a)) * **Twitter:** Missing download option in immersive view ([6b0aa2c](6b0aa2c)) * **Twitter:** Only show settings category if patch is applied ([2141680](2141680)) * **twitter:** Refactor packages ([8a5cea6](8a5cea6)) * **twitter:** Remove debug code ([2eb2fa3](2eb2fa3)) * **Twitter:** Share menu button add hook in/from 10.67 ([a640946](a640946)) * unescaped character on `pl` string values ([a6444be](a6444be)) * Unescaped characters ([8e539df](8e539df)) * unshort url for 10.30 ([ef3e00f](ef3e00f)) * update pr if it already exists ([6d616d2](6d616d2)) * Update pull_request.yml[skip ci] ([30e1e4f](30e1e4f)) * URL decode path to JAR containing spaces by osumatrix ([e6671ba](e6671ba)) * Use UrlDecoder API available in older Android versions ([d9e6374](d9e6374)) ### Features * Add `Show poll results` patch ([7b48f1b](7b48f1b)) * Add russian translation ([2dc9cee](2dc9cee)) * Add settings for `Disable chirp font` patch ([dad0a70](dad0a70)) * Add support for adding custom feature flags ([a6a91d1](a6a91d1)) * Add support for patches.json ([f5f63a3](f5f63a3)) * Add toggle for `Open browser chooser on opening links` patch ([6f217f0](6f217f0)) * Added resource file for strings ([181fd29](181fd29)) * **all:** Added `Export all activities` patch from ReVanced ([7cc405f](7cc405f)) * **Bring back twitter:** Add Japanese ([4eb08b5](4eb08b5)) * **ci:** Add updates and refactors to changelog ([5fb8ef7](5fb8ef7)) * **Customize side bar items:** Allow for hiding of the "Jobs" item ([14ce811](14ce811)) * Enable recent patches by default ([e84f358](e84f358)) * **Hook feature flag:** Added ability to search for supported flags. ([28a2c0a](28a2c0a)) * no t.co links ([776e700](776e700)) * Quick settings button is now optional ([e9e54e5](e9e54e5)) * Remove throw file ([86bff99](86bff99)) * **Settings:** Add a description to "Native features" page ([be7aa54](be7aa54)) * **Show poll results:** Add a toggle on mod settings ([2624561](2624561)) * **Translations:** Add `Turkish` ([bf70b91](bf70b91)) * **Translations:** Add Arabic translations ([c1d797b](c1d797b)) * **Translations:** Add Brazilian Portuguese translations [Bring back Twitter] ([3a831d3](3a831d3)) * **Translations:** add hindi ( हिन्दी ) translations [crimera#91](https://github.com/admknight/piko/issues/91) ([a766771](a766771)) * **Translations:** Add japanese ([c123d8e](c123d8e)) * **Translations:** Add polish translation ([8102f35](8102f35)) * **Translations:** Add simplified Chinese translation ([7662a34](7662a34)) * **Translations:** Add Simplified Chinese translations and Taiwanese Traditional Chinese translations[Bring back Twitter] ([d44bfd7](d44bfd7)) * **Translations:** Added Brazilian Portuguese [crimera#90](https://github.com/admknight/piko/issues/90) ([ad307da](ad307da)) * **Translations:** Added Traditional Chinese translation ([1c0b10a](1c0b10a)) * **Translations:** Fix Simplified Chinese Translation ([ec0a3dc](ec0a3dc)) * **Translations:** Update `japanese` ([444623f](444623f)) * **Translations:** Update `japanese` ([f5ece19](f5ece19)) * **Translations:** Update `Japanese` ([039aac3](039aac3)) * **Translations:** Update Russian translation ([54ba664](54ba664)) * **Translations:** Update Russian translation ([3606c10](3606c10)) * **Translations:** Updated Brazilian Portuguese ([e25ec0e](e25ec0e)) * **Translations:** Updated Brazilian Portuguese ([45aac73](45aac73)) * **Translations:** Updated Traditional Chinese string-zh-rCN.xml ([6cc2373](6cc2373)) * **Translations:** Updated Traditional Chinese string-zh-rTW.xml ([6787c28](6787c28)) * **translation:** Update Simplified Chinese translation ([4f3027a](4f3027a)) * **Translation:** Update Simplified Chinese translation ([b9fe0e8](b9fe0e8)) * **Twitter:** Add `Bring back twitter` patch ([b299b0c](b299b0c)) * **twitter:** Add `Clear tracking params` patch @FrozenAlex's ([c1f3148](c1f3148)) * **Twitter:** Add `Custom download folder` ([7c93541](7c93541)) * **Twitter:** Add `Custom sharing domain` patch ([8ffd36c](8ffd36c)) * **Twitter:** Add `Disable chirp font` patch ([59eafd1](59eafd1)) * **Twitter:** Add `Dynamic color` patch from revanced ([d2bd0ef](d2bd0ef)) * **Twitter:** Add `Premium settings` patch, Unlocks premium options from settings like custom app icon and custom navbar ([066e953](066e953)) * **Twitter:** Add back settings ([5ba3580](5ba3580)) * **twitter:** Add download patch ([b9612bf](b9612bf)) * **twitter:** Add google ads patch ([152b118](152b118)) * **twitter:** Add remove view count patch ([e31f222](e31f222)) * **twitter:** Add selectable text patch ([ee3bcf1](ee3bcf1)) * **Twitter:** Add settings for `Hide FAB` patch ([d5dde7c](d5dde7c)) * **Twitter:** Add Settings for `Hide Live Threads` and `Hide Banner` patch ([ca474d4](ca474d4)) * **Twitter:** Add Settings for `Hide Recommended Users` patch ([f43f027](f43f027)) * **Twitter:** Add settings for `Remove view count` patch ([67bb8ad](67bb8ad)) * **twitter:** Add Show sensitive media patch ([21c3fb4](21c3fb4)) * **Twitter:** Added `Ability to copy video media link` patch ([14bfdc7](14bfdc7)) * **Twitter:** Added `App Icon and NavBar Customisation` settings ([7e67d2f](7e67d2f)) * **Twitter:** Added `Control video auto scroll` patch ([7a21924](7a21924)) * **Twitter:** Added `Custom downloader` ([3d5941e](3d5941e)) * **Twitter:** Added `Custom translator` patch ([737fb9e](737fb9e)) * **Twitter:** Added `Customise post font size` patch ([ea608e0](ea608e0)) * **Twitter:** Added `Customize explore tabs` patch ([4be6a7f](4be6a7f)) * **Twitter:** Added `Customize Inline action Bar items` patch ([05b06f9](05b06f9)) * **Twitter:** Added `Customize Navigation Bar items` patch ([9c6f59c](9c6f59c)) * **Twitter:** Added `Customize reply sort filter` patch ([121b8a6](121b8a6)) * **Twitter:** Added `Customize search suggestions` patch ([aaca565](aaca565)) * **Twitter:** Added `Customize search tab items` patch ([9edc97a](9edc97a)) * **Twitter:** Added `Customize side bar items` patch ([ca0d28f](ca0d28f)) * **Twitter:** Added `Customize timeline top bar` patch ([245c5f6](245c5f6)) * **Twitter:** Added `Debug Menu` patch ([7d5ca77](7d5ca77)) * **Twitter:** Added `Delete from database` patch ([d785660](d785660)) * **Twitter:** Added `Disable auto timeline scroll on launch` patch ([b8d431e](b8d431e)) * **Twitter:** Added `Enable app downgrading` patch ([9f581ce](9f581ce)) * **Twitter:** Added `Enable force HD videos` patch ([d316612](d316612)) * **Twitter:** Added `Enable PiP mode automatically` patch ([59d6b67](59d6b67)) * **Twitter:** Added `Feature Flag Hook` ([2328baf](2328baf)) * **Twitter:** Added `Hide bookmark icon in timeline` ([ff66167](ff66167)) * **Twitter:** Added `Hide Buy Premium Banner` patch ([7ba6419](7ba6419)) * **Twitter:** Added `Hide Community Notes` to mod settings ([157a32b](157a32b)) * **Twitter:** Added `Hide followed by context` patch ([261e1d0](261e1d0)) * **Twitter:** Added `Hide For You` in Mod Settings ([86ea20f](86ea20f)) * **Twitter:** Added `Hide hidden replies` patch ([431acc4](431acc4)) * **Twitter:** Added `Hide immersive player` patch ([a649652](a649652)) * **Twitter:** Added `Hide nudge button` patch ([ad27484](ad27484)) * **Twitter:** Added `Hide Promoted Trends` to Mod Settings ([9d29f45](9d29f45)) * **Twitter:** Added `Patch info` section ([7f794c3](7f794c3)) * **Twitter:** Added `Profile tabs customisation` ([db0298b](db0298b)) * **Twitter:** added `Reader Mode patch` ([1348099](1348099)) * **Twitter:** Added `Remove main event` patch ([806598d](806598d)) * **Twitter:** Added `Remove premium upsell` patch ([37525de](37525de)) * **Twitter:** Added `Remove Todays news` patch ([8324633](8324633)) * **Twitter:** Added `Remove top people in search` patch ([95b5ef9](95b5ef9)) * **Twitter:** Added `Remove videos for you` patch ([25934a2](25934a2)) * **Twitter:** Added `Round off numbers` patch ([b1c1b13](b1c1b13)) * **Twitter:** Added `Undo Post Patch` in mod settings ([54c722e](54c722e)) * **Twitter:** added `Undo Posts Patch` ([ced73c6](ced73c6)) * **Twitter:** Added ability to export and import prefs & feature flags ([01cdd6b](01cdd6b)) * **Twitter:** Added ability to export and import prefs & feature flags ([a591133](a591133)) * **Twitter:** Added ability to reset pref and flags ([4aaeb09](4aaeb09)) * **Twitter:** Added Ad block hooks ([4811584](4811584)) * **Twitter:** Added Remember filter for `Customize reply sort filter` ([24df398](24df398)) * **Twitter:** Added tab redirects hook (for Bookmark Navbar) ([f01b418](f01b418)) * **Twitter:** Allow choosing public folder ([6c36202](6c36202)) * **Twitter:** Custom deeplinks ([325a281](325a281)) * **Twitter:** Disable in favor of official patch bundle ([9a81fab](9a81fab)) * **Twitter:** Hide `Pinned posts by followers` ([5807471](5807471)) * **Twitter:** Hide Banner ([b653c84](b653c84)) * **Twitter:** Hide Community Notes ([ab48b40](ab48b40)) * **Twitter:** Hide FAB ([4cdf50f](4cdf50f)) * **Twitter:** Hide FAB Menu Buttons ([4f25bd6](4f25bd6)) * **Twitter:** Hide For You ([c18f143](c18f143)) * **Twitter:** Hide Live Threads ([0202771](0202771)) * **Twitter:** Hide Promoted Trends ([1be736e](1be736e)) * **Twitter:** Hide Recommended Users ([2a55292](2a55292)) * **ui:** app wide monet theming in light mode ([46f920b](46f920b)) * **ui:** full app wide material theming in dim mode replacing dark blue ([52d7444](52d7444)) * Update README.md ([7d801a9](7d801a9)) * use browser chooser when opening links ([cc165f4](cc165f4)) ### Updates * Add spanish to languages ([e9b8efd](e9b8efd)) * **Bring back twitter:** Create strings file if not found ([9f51a5c](9f51a5c)) * Change settings string id ([b9c86d7](b9c86d7)) * **Custom sharing domain:** require settings patch also turned it on by default. ([6a3777f](6a3777f)) * Enable `Customize profile tabs` patch by default ([a8543bf](a8543bf)) * Enable `Hide Live Threads` patch by default ([b9862b5](b9862b5)) * **Hook feature flag:** Improve flag matching in search. ([d7f0827](d7f0827)) * Improve adding new buttons in share menu ([16cc3bd](16cc3bd)) * Improve quick settings appearance ([6dc27b4](6dc27b4)) * Improve the retrieval of the patches version ([ba940da](ba940da)) * Improved the hooking of the recyclerview methods. also fixes the crash when opening feature flags. ([25e5bc4](25e5bc4)) * ReadMe ([5c421dd](5c421dd)) * ReadMe image size fix ([5ede8e0](5ede8e0)) * Refactor directory ([b3044c3](b3044c3)) * Russian translation ([42b68e9](42b68e9)) * Translation updates ([509dfbb](509dfbb)) * Translations ([d3ae8ec](d3ae8ec)) * **Translations:** Improved & updates polish translations ([9bbb9f4](9bbb9f4)) * **Translations:** Translation updates ([4bf8a8d](4bf8a8d)) * **Translations:** Update `Indonesian (Bahasa)` ([1442b6c](1442b6c)) * **Translations:** Update `Indonesian (Bahasa)` ([b9488d6](b9488d6)) * **Translations:** Update `japanese` ([9fce4a2](9fce4a2)) * **Translations:** Update `Japanese` ([b326d10](b326d10)) * **Translations:** Update Brazilian Portuguese ([8745f61](8745f61)) * **Translations:** Update Brazilian Portuguese ([7de9493](7de9493)) * **Translations:** Update Japanese ([61ff288](61ff288)) * **Translations:** Update polish ([9d8f4fc](9d8f4fc)) * **Translations:** Update polish translations ([6200d65](6200d65)) * **Translations:** Update Russian translation ([8b1c4c8](8b1c4c8)) * **Translations:** update simplified chinese translation ([3e5a8fd](3e5a8fd)) * **Translations:** update simplified chinese translation ([b24f7cc](b24f7cc)) * **Translations:** Update simplified chinese translation ([147cb29](147cb29)) * **Translations:** Update translations ([9686863](9686863)) * **Translations:** Update Turkish translations ([bab6ae9](bab6ae9)) * **Translation:** Update Hindi translations [Bring back Twitter] ([20ac044](20ac044)) * **Twitter:** Added `Hide FAB Menu Buttons` to mod settings ([f236b52](f236b52)) * **Twitter:** Added `Hide FAB Menu Buttons` to mod settings ([c02b443](c02b443)) * **Twitter:** Added `Reader Mode` patch in mod settings ([2e12945](2e12945)) * **Twitter:** Added hide 'Settings and privacy' in `Customize side bar items` ([cb01885](cb01885)) * **Twitter:** Added strings ([fad9b1a](fad9b1a)) * **Twitter:** Added stubs to `No shortened URL` patch ([6d4f436](6d4f436)) * **Twitter:** Change Quick Btn path ([7febdf6](7febdf6)) * **Twitter:** Enable new patches by default ([19f9149](19f9149)) * **Twitter:** Made some features to use flags ([04c366a](04c366a)) * **Twitter:** move `Download Patch` to premium section ([5eafd76](5eafd76)) * **Twitter:** Refactor download media patch ([f339e1a](f339e1a)) * **Twitter:** refactor mod settings ([783df63](783df63)) * **Twitter:** refactor Timeline entry Hook ([271da73](271da73)) * **Twitter:** Updated `Enable force HD videos` patch description ([86ea041](86ea041)) * **Twitter:** updated string ([60afc68](60afc68)) * **Twitter:** Updated strings ([3cb159e](3cb159e)) * **Twitter:** use stubs for Timeline entry Hook ([3ce1aee](3ce1aee)) ### Refactors * Add `enableSettings` helper function ([7d6ebd5](7d6ebd5)) * Add `SettingsPatch ` dependencies to patches ([6d252f8](6d252f8)) * **Custom Downloader:** Improve getting of tweet method declarations ([5237e49](5237e49)) * Improve selectable text patch name ([c399a52](c399a52)) * Optimize imports ([2f42add](2f42add)) * Remove debug stuff ([c44b277](c44b277)) * Remove TODO ([ae69e22](ae69e22)) * Suppress warnings ([3a9ef0a](3a9ef0a)) * **Twitter:** `Add ability to copy media link` patch ([e8ef551](e8ef551)) * **Twitter:** Add annotation ([644393d](644393d)) * **twitter:** Add credits ([a200a08](a200a08)) * **Twitter:** Added 'Native features' section ([12d2bda](12d2bda)) * **Twitter:** Added `No shortened URL` as a settings toggle ([ea33a30](ea33a30)) * **Twitter:** Added missing patches names ([b3fda95](b3fda95)) * **Twitter:** Added multiple language support for `Bring back twitter` ([9eacab3](9eacab3)) * **Twitter:** Added Native download filename customization ([99a10b1](99a10b1)) * **Twitter:** Added quick settings button in side drawer ([c0152e3](c0152e3)) * **Twitter:** Added toggle for `Show sensitive media` patch ([cac4fe7](cac4fe7)) * **Twitter:** Arrange packages ([bc01b60](bc01b60)) * **twitter:** Change directory ([565d5b8](565d5b8)) * **Twitter:** Change translator icon ([bf5f027](bf5f027)) * **Twitter:** Changed `Top Articles ` string ([b590695](b590695)) * **Twitter:** Combined `customize patch` into single class ([6c04aed](6c04aed)) * **Twitter:** Force enable `Enable app icon settings` patch ([ee605f1](ee605f1)) * **Twitter:** load `Utils.load()` dynamically ([5379276](5379276)) * **Twitter:** Major string changes ([f22fdf0](f22fdf0)) * **Twitter:** More strings refactor ([d5a629f](d5a629f)) * **Twitter:** move comma ([e8e28c2](e8e28c2)) * **Twitter:** Rearrange `Bring back twitter` resources ([a476924](a476924)) * **Twitter:** refactor `Custom downloader` patch ([42cc752](42cc752)) * **Twitter:** Refactor `Custom downloader` patch ([1e966f7](1e966f7)) * **Twitter:** Refactor `Enable app icon settings` patch ([e7b3d0e](e7b3d0e)) * **Twitter:** refactor button class Hook ([2bf411a](2bf411a)) * **Twitter:** refactor default feature flag hook ([6fd6001](6fd6001)) * **Twitter:** Refactor hooks filename ([2daa292](2daa292)) * **Twitter:** refactor strings-pl ([9aacfa1](9aacfa1)) * **Twitter:** refactor values of list preference ([e0e5c5b](e0e5c5b)) * **twitter:** Remove debug code ([eef558e](eef558e)) * **Twitter:** Remove redundant semicolon ([67b3084](67b3084)) * **Twitter:** Removed unused string from pt-BR ([cdb2067](cdb2067)) * **Twitter:** renamed 'Share menu button' fingerprints to hooks ([395c221](395c221)) * **Twitter:** Renamed patch `Remove Buy Premium Banner` to `Remove message prompts Banner` ([45dbad8](45dbad8)) * **Twitter:** Separated `App icon` and `Navigation icon` patch ([8a67f12](8a67f12)) * **Twitter:** Seperated/Added `Remove superhero event` patch ([d60ee17](d60ee17)) * **Twitter:** Strings in 'Customization' ([c52c2c0](c52c2c0)) * **Twitter:** Strings in 'Customization' ([a75221b](a75221b)) * **Twitter:** Strings refactor ([2db8866](2db8866)) * **Twitter:** update readme ([483d4f8](483d4f8)) * **Twitter:** updated profile tab string ([1af7846](1af7846)) * **Twitter:** Use addPref from integrations ([f511c38](f511c38)) ### Perfomance * **Bring back twitter:** Optimize string replacement ([crimera#440](https://github.com/admknight/piko/issues/440)) ([7e61023](7e61023))
## 1.0.0 (2025-12-24) ### Bug Fixes * Activate release so i can test ([34b7227](34b7227)) * add "SettingsStatusLoadFingerprint" to fingerprints of `Hide Community Notes` and `Hide Live Threads` patch ([9c0232a](9c0232a)) * Add back settings for the custom sharemenu buttons ([bc7e777](bc7e777)) * Add support for 10.83.0 releases ([9344d52](9344d52)) * Adding debug menu patch results in a crash ([caf82eb](caf82eb)) * **Bring back twitter:** Change the character "𝕏" into "Twitter". ([crimera#441](https://github.com/Qingcaj/piko/issues/441)) ([c20e16f](c20e16f)) * **Bring back twitter:** Change x icon to legacy twitter. ([3006f47](3006f47)) * **Bring back twitter:** Resource compilation fails on ReVanced Manager ([a364bec](a364bec)) * Change run config ([18d4dce](18d4dce)) * **Custom download folder:** Restore compatibility with versions prior to 10.64 ([b88b00b](b88b00b)) * **Custom downloader:** Improve fingerprint ([2a2a4a4](2a2a4a4)) * **Custom sharing domain:** Now works on "Copy Link" ([8f71415](8f71415)) * **Enable Reader Mode:** Specify the compatible version, show a warning instead of throwing an exception when failed ([b1c52e7](b1c52e7)) * **Feature Flags:** Use ListView instead of RecyclerView for a more reliable list. ([6f16b7f](6f16b7f)) * Fix crash when opening feature flags ([2b1484d](2b1484d)) * Fix oopsie ([2af661f](2af661f)) * **Hide FAB:** Add description ([ae418a8](ae418a8)) * **Hide For You:** Included by default ([3b51053](3b51053)) * idk ([0a4ade0](0a4ade0)) * Improve getUsername fingerprint ([af617af](af617af)) * Missing `,` ([67675fe](67675fe)) * Not creating `values-night-v31` dir ([e3f3491](e3f3491)) * Opening mod settings with root installation results in crash ([8161644](8161644)) * Opening mod settings with root installation results in crash ([47e7670](47e7670)) * refactor ([eab113e](eab113e)) * Remove debug prints ([33e4d08](33e4d08)) * **Remove Detailed posts:** Change the settings label from "detailed" to "related" ([3cf5f9e](3cf5f9e)) * Remove duplicate strings ([94c6642](94c6642)) * **Remove Google Ad:** Include ads in the comments ([79d6e35](79d6e35)) * Remove obsolete `Open browser chooser on opening links` patch ([a1e2b76](a1e2b76)) * Remove semicolon ;-) ([46e60f7](46e60f7)) * Resource strings getting corrupted, resulting on failure to patch on revanced manager ([crimera#439](https://github.com/Qingcaj/piko/issues/439)) ([1763137](1763137)) * switch jp to ja for Japanese translation ([c13cc87](c13cc87)) * **Translations:** Fix unescaped strings in fr and vi ([be94c4c](be94c4c)) * tweet highlight color on hold ([crimera#243](https://github.com/Qingcaj/piko/issues/243)) ([b22ea42](b22ea42)) * **Twitter - Bring back twitter:** Add other languages ([2c63ff1](2c63ff1)) * **Twitter - Bring back twitter:** Exclude by default ([e654549](e654549)) * **Twitter - Bring back twitter:** Now changes notification icon ([7e281e4](7e281e4)) * **Twitter - Bring back twitter:** Now changes notification icon ([8b57a07](8b57a07)) * **Twitter - Bring back twitter:** Now changes the app name by writing directly to AndroidManifest (Should make patching faster) ([f61468c](f61468c)) * **Twitter - copy media link + Custom download folder:** Update fingerprint to work on latest twitter release ([cc8fadb](cc8fadb)) * **Twitter - Custom Downloader:** Added VideoDataClass Fingerprint ([99ff271](99ff271)) * **Twitter - Custom Downloader:** Improve fingerprints ([f962310](f962310)) * **Twitter - Custom sharing domain:** Disable by default ([6e7c170](6e7c170)) * **Twitter - Log server response:** Escape single qoutes ([cedbfaf](cedbfaf)) * **Twitter:** `Customize Navigation Bar items` in/from `10.53.0-beta.1` ([e8154fb](e8154fb)) * **Twitter:** `Hide community badges` patch ([f539260](f539260)) * **Twitter:** Add splash screen icon ([b30e083](b30e083)) * **Twitter:** Add support for version 10.64.0-beta.1 ([c81378d](c81378d)) * **twitter:** Add twitter to compatible package for SelectableTextPatch ([0b6ee33](0b6ee33)) * **Twitter:** Bookmark in nav bar dix ([03fb96c](03fb96c)) * **Twitter:** Bookmark nav bar fix ([a6e8ab9](a6e8ab9)) * **Twitter:** Bring back download and viewcount patch ([3eea91f](3eea91f)) * **Twitter:** Change patch name from `Enable app icon settings` -> `Enable app icons` ([5a7ef46](5a7ef46)) * **Twitter:** disable `Hide For You` by default. ([b933c19](b933c19)) * **Twitter:** Download patch ([f87dee7](f87dee7)) * **twitter:** Exclude `Google Ads Patch` by default ([a26e03a](a26e03a)) * **Twitter:** fix `Control video auto scroll` in 10.57 ([b7ae78c](b7ae78c)) * **Twitter:** fix `Custom downloader` patch ([f4d953a](f4d953a)) * **Twitter:** fix `Custom translator` patch ([8065fa3](8065fa3)) * **Twitter:** Fix `Customize profile tabs` crash after `10.43` ([a38d621](a38d621)) * **Twitter:** Fix `Customize side bar items` patch ([4664f02](4664f02)) * **Twitter:** fix `Enable app icon settings` patch ([c2b6f79](c2b6f79)) * **Twitter:** fix `Enable debug menu for posts` patch ([72a72f2](72a72f2)) * **Twitter:** fix `Enable force HD videos` patch ([6d8d200](6d8d200)) * **Twitter:** Fix `Enable Undo Posts` patch ([883b6cb](883b6cb)) * **Twitter:** Fix `Hide nudge button` patch ([87ceb49](87ceb49)) * **Twitter:** Fix `Hide nudge button` patch ([d7572fe](d7572fe)) * **Twitter:** fix `Hide nudge button` patch (again) ([be2cd9d](be2cd9d)) * **Twitter:** Fix `Hide Promoted Trends` patch ([7052d25](7052d25)) * **Twitter:** fix `Reader mode` for 10.34 ([01cb8c9](01cb8c9)) * **Twitter:** Fix `Remove premium upsell` patch ([4df5e32](4df5e32)) * **Twitter:** fix `Remove videos for you` patch ([b19f943](b19f943)) * **Twitter:** Fix aapt breakage due to tag mismatch ([730a51c](730a51c)) * **Twitter:** Fix App icon error toast ([2997b56](2997b56)) * **Twitter:** Fix Settings crash ([015c5bd](015c5bd)) * **Twitter:** Fix share menu patches ([ba561be](ba561be)) * **Twitter:** Fix unescaped characters ([829eedd](829eedd)) * **Twitter:** fix video entity hook in `10.58` ([e8a833d](e8a833d)) * **Twitter:** Fixup patch dependecy ([867926a](867926a)) * **Twitter:** Missing download option in immersive view ([6b0aa2c](6b0aa2c)) * **Twitter:** Only show settings category if patch is applied ([2141680](2141680)) * **twitter:** Refactor packages ([8a5cea6](8a5cea6)) * **twitter:** Remove debug code ([2eb2fa3](2eb2fa3)) * **Twitter:** Share menu button add hook in/from 10.67 ([a640946](a640946)) * **ui:** adjust monet-light colors to have a white background ([0906e93](0906e93)) * Unescaped apostrophe ([487e992](487e992)) * unescaped character on `pl` string values ([a6444be](a6444be)) * Unescaped characters ([8e539df](8e539df)) * unshort url for 10.30 ([ef3e00f](ef3e00f)) * update pr if it already exists ([6d616d2](6d616d2)) * Update pull_request.yml[skip ci] ([30e1e4f](30e1e4f)) * URL decode path to JAR containing spaces by osumatrix ([e6671ba](e6671ba)) * Use UrlDecoder API available in older Android versions ([d9e6374](d9e6374)) ### Features * Add `Show poll results` patch ([7b48f1b](7b48f1b)) * Add russian translation ([2dc9cee](2dc9cee)) * Add settings for `Disable chirp font` patch ([dad0a70](dad0a70)) * Add support for adding custom feature flags ([a6a91d1](a6a91d1)) * Add support for patches.json ([f5f63a3](f5f63a3)) * Add toggle for `Open browser chooser on opening links` patch ([6f217f0](6f217f0)) * Added resource file for strings ([181fd29](181fd29)) * **all:** Added `Export all activities` patch from ReVanced ([7cc405f](7cc405f)) * **Bring back twitter:** Add Japanese ([4eb08b5](4eb08b5)) * **ci:** Add updates and refactors to changelog ([5fb8ef7](5fb8ef7)) * **Customize side bar items:** Allow for hiding of the "Jobs" item ([14ce811](14ce811)) * Enable recent patches by default ([e84f358](e84f358)) * **Hook feature flag:** Added ability to search for supported flags. ([28a2c0a](28a2c0a)) * no t.co links ([776e700](776e700)) * Quick settings button is now optional ([e9e54e5](e9e54e5)) * Remove throw file ([86bff99](86bff99)) * **Settings:** Add a description to "Native features" page ([be7aa54](be7aa54)) * **Show poll results:** Add a toggle on mod settings ([2624561](2624561)) * **Translations:** Add `Turkish` ([bf70b91](bf70b91)) * **Translations:** Add Arabic translations ([c1d797b](c1d797b)) * **Translations:** Add Brazilian Portuguese translations [Bring back Twitter] ([3a831d3](3a831d3)) * **Translations:** add hindi ( हिन्दी ) translations [crimera#91](https://github.com/Qingcaj/piko/issues/91) ([a766771](a766771)) * **Translations:** Add italian translation ([88e22fb](88e22fb)) * **Translations:** Add japanese ([c123d8e](c123d8e)) * **Translations:** Add polish translation ([8102f35](8102f35)) * **Translations:** Add simplified Chinese translation ([7662a34](7662a34)) * **Translations:** Add Simplified Chinese translations and Taiwanese Traditional Chinese translations[Bring back Twitter] ([d44bfd7](d44bfd7)) * **Translations:** Added Brazilian Portuguese [crimera#90](https://github.com/Qingcaj/piko/issues/90) ([ad307da](ad307da)) * **Translations:** Added Traditional Chinese translation ([1c0b10a](1c0b10a)) * **Translations:** Fix Simplified Chinese Translation ([ec0a3dc](ec0a3dc)) * **Translations:** French translation added ([a6f650c](a6f650c)) * **Translations:** Korean translation added ([492e631](492e631)) * **Translations:** Update `japanese` ([444623f](444623f)) * **Translations:** Update `japanese` ([f5ece19](f5ece19)) * **Translations:** Update `Japanese` ([80282f0](80282f0)) * **Translations:** Update `Japanese` ([a7da7d7](a7da7d7)) * **Translations:** Update `Japanese` ([039aac3](039aac3)) * **Translations:** Update `Polish` ([97b3790](97b3790)) * **Translations:** Update `Polish` ([e49393e](e49393e)) * **Translations:** Update `Polish` ([d81f93c](d81f93c)) * **Translations:** Update Russian translation ([54ba664](54ba664)) * **Translations:** Update Russian translation ([3606c10](3606c10)) * **Translations:** Updated Brazilian Portuguese ([e25ec0e](e25ec0e)) * **Translations:** Updated Brazilian Portuguese ([45aac73](45aac73)) * **Translations:** Updated Traditional Chinese string-zh-rCN.xml ([6cc2373](6cc2373)) * **Translations:** Updated Traditional Chinese string-zh-rTW.xml ([6787c28](6787c28)) * **translation:** Update Simplified Chinese translation ([4f3027a](4f3027a)) * **Translation:** Update Simplified Chinese translation ([b9fe0e8](b9fe0e8)) * **Twitter:** Add `Bring back twitter` patch ([b299b0c](b299b0c)) * **twitter:** Add `Clear tracking params` patch @FrozenAlex's ([c1f3148](c1f3148)) * **Twitter:** Add `Custom download folder` ([7c93541](7c93541)) * **Twitter:** Add `Custom sharing domain` patch ([8ffd36c](8ffd36c)) * **Twitter:** Add `Disable chirp font` patch ([59eafd1](59eafd1)) * **Twitter:** Add `Dynamic color` patch from revanced ([d2bd0ef](d2bd0ef)) * **Twitter:** Add `Premium settings` patch, Unlocks premium options from settings like custom app icon and custom navbar ([066e953](066e953)) * **Twitter:** Add back settings ([5ba3580](5ba3580)) * **twitter:** Add download patch ([b9612bf](b9612bf)) * **twitter:** Add google ads patch ([152b118](152b118)) * **twitter:** Add remove view count patch ([e31f222](e31f222)) * **twitter:** Add selectable text patch ([ee3bcf1](ee3bcf1)) * **Twitter:** Add settings for `Hide FAB` patch ([d5dde7c](d5dde7c)) * **Twitter:** Add Settings for `Hide Live Threads` and `Hide Banner` patch ([ca474d4](ca474d4)) * **Twitter:** Add Settings for `Hide Recommended Users` patch ([f43f027](f43f027)) * **Twitter:** Add settings for `Remove view count` patch ([67bb8ad](67bb8ad)) * **twitter:** Add Show sensitive media patch ([21c3fb4](21c3fb4)) * **Twitter:** Added 'Native reader mode' patch ([308e1e6](308e1e6)) * **Twitter:** Added `Ability to copy video media link` patch ([14bfdc7](14bfdc7)) * **Twitter:** Added `App Icon and NavBar Customisation` settings ([7e67d2f](7e67d2f)) * **Twitter:** Added `Control video auto scroll` patch ([7a21924](7a21924)) * **Twitter:** Added `Custom downloader` ([3d5941e](3d5941e)) * **Twitter:** Added `Custom translator` patch ([737fb9e](737fb9e)) * **Twitter:** Added `Customise post font size` patch ([ea608e0](ea608e0)) * **Twitter:** Added `Customize explore tabs` patch ([4be6a7f](4be6a7f)) * **Twitter:** Added `Customize Inline action Bar items` patch ([05b06f9](05b06f9)) * **Twitter:** Added `Customize Navigation Bar items` patch ([9c6f59c](9c6f59c)) * **Twitter:** Added `Customize reply sort filter` patch ([121b8a6](121b8a6)) * **Twitter:** Added `Customize search suggestions` patch ([aaca565](aaca565)) * **Twitter:** Added `Customize search tab items` patch ([9edc97a](9edc97a)) * **Twitter:** Added `Customize side bar items` patch ([ca0d28f](ca0d28f)) * **Twitter:** Added `Customize timeline top bar` patch ([245c5f6](245c5f6)) * **Twitter:** Added `Debug Menu` patch ([7d5ca77](7d5ca77)) * **Twitter:** Added `Delete from database` patch ([d785660](d785660)) * **Twitter:** Added `Disable auto timeline scroll on launch` patch ([b8d431e](b8d431e)) * **Twitter:** Added `Enable app downgrading` patch ([9f581ce](9f581ce)) * **Twitter:** Added `Enable force HD videos` patch ([d316612](d316612)) * **Twitter:** Added `Enable PiP mode automatically` patch ([59d6b67](59d6b67)) * **Twitter:** Added `Feature Flag Hook` ([2328baf](2328baf)) * **Twitter:** Added `Hide bookmark icon in timeline` ([ff66167](ff66167)) * **Twitter:** Added `Hide Buy Premium Banner` patch ([7ba6419](7ba6419)) * **Twitter:** Added `Hide community badges` patch ([57936a1](57936a1)) * **Twitter:** Added `Hide Community Notes` to mod settings ([157a32b](157a32b)) * **Twitter:** Added `Hide followed by context` patch ([261e1d0](261e1d0)) * **Twitter:** Added `Hide For You` in Mod Settings ([86ea20f](86ea20f)) * **Twitter:** Added `Hide hidden replies` patch ([431acc4](431acc4)) * **Twitter:** Added `Hide immersive player` patch ([a649652](a649652)) * **Twitter:** Added `Hide nudge button` patch ([ad27484](ad27484)) * **Twitter:** Added `Hide Promoted Trends` to Mod Settings ([9d29f45](9d29f45)) * **Twitter:** Added `Log server response` patch ([bff4363](bff4363)) * **Twitter:** Added `Patch info` section ([7f794c3](7f794c3)) * **Twitter:** Added `Profile tabs customisation` ([db0298b](db0298b)) * **Twitter:** added `Reader Mode patch` ([1348099](1348099)) * **Twitter:** Added `Remove main event` patch ([806598d](806598d)) * **Twitter:** Added `Remove premium upsell` patch ([37525de](37525de)) * **Twitter:** Added `Remove Todays news` patch ([8324633](8324633)) * **Twitter:** Added `Remove top people in search` patch ([95b5ef9](95b5ef9)) * **Twitter:** Added `Remove videos for you` patch ([25934a2](25934a2)) * **Twitter:** Added `Round off numbers` patch ([b1c1b13](b1c1b13)) * **Twitter:** Added `Show post source label` patch ([931bc76](931bc76)) * **Twitter:** Added `Undo Post Patch` in mod settings ([54c722e](54c722e)) * **Twitter:** added `Undo Posts Patch` ([ced73c6](ced73c6)) * **Twitter:** Added ability to export and import prefs & feature flags ([01cdd6b](01cdd6b)) * **Twitter:** Added ability to export and import prefs & feature flags ([a591133](a591133)) * **Twitter:** Added ability to reset pref and flags ([4aaeb09](4aaeb09)) * **Twitter:** Added Ad block hooks ([4811584](4811584)) * **Twitter:** Added Remember filter for `Customize reply sort filter` ([24df398](24df398)) * **Twitter:** Added tab redirects hook (for Bookmark Navbar) ([f01b418](f01b418)) * **Twitter:** Allow choosing public folder ([6c36202](6c36202)) * **Twitter:** Custom deeplinks ([325a281](325a281)) * **Twitter:** Disable in favor of official patch bundle ([9a81fab](9a81fab)) * **Twitter:** Hide `Pinned posts by followers` ([5807471](5807471)) * **Twitter:** Hide Banner ([b653c84](b653c84)) * **Twitter:** Hide Community Notes ([ab48b40](ab48b40)) * **Twitter:** Hide FAB ([4cdf50f](4cdf50f)) * **Twitter:** Hide FAB Menu Buttons ([4f25bd6](4f25bd6)) * **Twitter:** Hide For You ([c18f143](c18f143)) * **Twitter:** Hide Live Threads ([0202771](0202771)) * **Twitter:** Hide Promoted Trends ([1be736e](1be736e)) * **Twitter:** Hide Recommended Users ([2a55292](2a55292)) * **Twitter:** support custom deeplink hosts ([499cc5e](499cc5e)) * **ui:** app wide monet theming in light mode ([46f920b](46f920b)) * **ui:** full app wide material theming in dim mode replacing dark blue ([52d7444](52d7444)) * Update README.md ([7d801a9](7d801a9)) * use browser chooser when opening links ([cc165f4](cc165f4)) ### Updates * Add spanish to languages ([e9b8efd](e9b8efd)) * **Bring back twitter:** Create strings file if not found ([9f51a5c](9f51a5c)) * Change settings string id ([b9c86d7](b9c86d7)) * **Custom sharing domain:** require settings patch also turned it on by default. ([6a3777f](6a3777f)) * Enable `Customize profile tabs` patch by default ([a8543bf](a8543bf)) * Enable `Hide Live Threads` patch by default ([b9862b5](b9862b5)) * **Hook feature flag:** Improve flag matching in search. ([d7f0827](d7f0827)) * Improve adding new buttons in share menu ([16cc3bd](16cc3bd)) * Improve quick settings appearance ([6dc27b4](6dc27b4)) * Improve the retrieval of the patches version ([ba940da](ba940da)) * Improved the hooking of the recyclerview methods. also fixes the crash when opening feature flags. ([25e5bc4](25e5bc4)) * ReadMe ([5c421dd](5c421dd)) * ReadMe image size fix ([5ede8e0](5ede8e0)) * Refactor directory ([b3044c3](b3044c3)) * Russian translation ([42b68e9](42b68e9)) * Translation updates ([509dfbb](509dfbb)) * Translations ([d3ae8ec](d3ae8ec)) * **Translations:** Add French & Korean to Language List ([crimera#567](https://github.com/Qingcaj/piko/issues/567)) ([6e139be](6e139be)) * **Translations:** Improved & updates polish translations ([9bbb9f4](9bbb9f4)) * **Translations:** New translations for `pt-br` ([850aa0d](850aa0d)) * **Translations:** Translation updates ([4bf8a8d](4bf8a8d)) * **Translations:** Update `Indonesian (Bahasa)` ([1442b6c](1442b6c)) * **Translations:** Update `Indonesian (Bahasa)` ([b9488d6](b9488d6)) * **Translations:** Update `japanese` ([9fce4a2](9fce4a2)) * **Translations:** Update `Japanese` ([c28d9c7](c28d9c7)) * **Translations:** Update `Japanese` ([b326d10](b326d10)) * **Translations:** Update `Polish` ([973391d](973391d)) * **Translations:** Update `Polish` ([crimera#613](https://github.com/Qingcaj/piko/issues/613)) ([b6ea9de](b6ea9de)) * **Translations:** Update Brazilian Portuguese ([8745f61](8745f61)) * **Translations:** Update Brazilian Portuguese ([7de9493](7de9493)) * **Translations:** Update Japanese ([61ff288](61ff288)) * **Translations:** Update polish ([9d8f4fc](9d8f4fc)) * **Translations:** Update polish translations ([6200d65](6200d65)) * **Translations:** Update Russian translation ([8b1c4c8](8b1c4c8)) * **Translations:** update simplified chinese translation ([3e5a8fd](3e5a8fd)) * **Translations:** update simplified chinese translation ([b24f7cc](b24f7cc)) * **Translations:** Update simplified chinese translation ([147cb29](147cb29)) * **Translations:** Update translations ([9686863](9686863)) * **Translations:** Update Turkish translations ([bab6ae9](bab6ae9)) * **Translation:** Update Hindi translations [Bring back Twitter] ([20ac044](20ac044)) * **Twitter:** Added `Hide FAB Menu Buttons` to mod settings ([f236b52](f236b52)) * **Twitter:** Added `Hide FAB Menu Buttons` to mod settings ([c02b443](c02b443)) * **Twitter:** Added `Reader Mode` patch in mod settings ([2e12945](2e12945)) * **Twitter:** Added hide 'Settings and privacy' in `Customize side bar items` ([cb01885](cb01885)) * **Twitter:** Added strings ([fad9b1a](fad9b1a)) * **Twitter:** Added stubs to `No shortened URL` patch ([6d4f436](6d4f436)) * **Twitter:** Change Quick Btn path ([7febdf6](7febdf6)) * **Twitter:** Enable new patches by default ([19f9149](19f9149)) * **Twitter:** Made some features to use flags ([04c366a](04c366a)) * **Twitter:** move `Download Patch` to premium section ([5eafd76](5eafd76)) * **Twitter:** Refactor download media patch ([f339e1a](f339e1a)) * **Twitter:** refactor mod settings ([783df63](783df63)) * **Twitter:** refactor Timeline entry Hook ([271da73](271da73)) * **Twitter:** Updated `Enable force HD videos` patch description ([86ea041](86ea041)) * **Twitter:** updated string ([60afc68](60afc68)) * **Twitter:** Updated strings ([3cb159e](3cb159e)) * **Twitter:** use stubs for Timeline entry Hook ([3ce1aee](3ce1aee)) ### Refactors * Add `enableSettings` helper function ([7d6ebd5](7d6ebd5)) * Add `SettingsPatch ` dependencies to patches ([6d252f8](6d252f8)) * **Custom Downloader:** Improve getting of tweet method declarations ([5237e49](5237e49)) * Improve selectable text patch name ([c399a52](c399a52)) * Optimize imports ([2f42add](2f42add)) * Remove debug stuff ([c44b277](c44b277)) * Remove TODO ([ae69e22](ae69e22)) * Suppress warnings ([3a9ef0a](3a9ef0a)) * **Twitter:** `Add ability to copy media link` patch ([e8ef551](e8ef551)) * **Twitter:** Add annotation ([644393d](644393d)) * **twitter:** Add credits ([a200a08](a200a08)) * **Twitter:** Added 'Native features' section ([12d2bda](12d2bda)) * **Twitter:** Added `No shortened URL` as a settings toggle ([ea33a30](ea33a30)) * **Twitter:** Added missing patches names ([b3fda95](b3fda95)) * **Twitter:** Added multiple language support for `Bring back twitter` ([9eacab3](9eacab3)) * **Twitter:** Added Native download filename customization ([99a10b1](99a10b1)) * **Twitter:** Added quick settings button in side drawer ([c0152e3](c0152e3)) * **Twitter:** Added toggle for `Show sensitive media` patch ([cac4fe7](cac4fe7)) * **Twitter:** Arrange packages ([bc01b60](bc01b60)) * **twitter:** Change directory ([565d5b8](565d5b8)) * **Twitter:** Change translator icon ([bf5f027](bf5f027)) * **Twitter:** Changed `Top Articles ` string ([b590695](b590695)) * **Twitter:** Combined `customize patch` into single class ([6c04aed](6c04aed)) * **Twitter:** consolidate native features ([79a37af](79a37af)) * **Twitter:** Force enable `Enable app icon settings` patch ([ee605f1](ee605f1)) * **Twitter:** load `Utils.load()` dynamically ([5379276](5379276)) * **Twitter:** Major string changes ([f22fdf0](f22fdf0)) * **Twitter:** More strings refactor ([d5a629f](d5a629f)) * **Twitter:** move comma ([e8e28c2](e8e28c2)) * **Twitter:** Move redirect BM to settings patch dependancy ([4dbc491](4dbc491)) * **Twitter:** Moved to `models` approach ([4bc56cb](4bc56cb)) * **Twitter:** Rearrange `Bring back twitter` resources ([a476924](a476924)) * **Twitter:** refactor `Custom downloader` patch ([42cc752](42cc752)) * **Twitter:** Refactor `Custom downloader` patch ([1e966f7](1e966f7)) * **Twitter:** Refactor `Enable app icon settings` patch ([e7b3d0e](e7b3d0e)) * **Twitter:** refactor button class Hook ([2bf411a](2bf411a)) * **Twitter:** refactor default feature flag hook ([6fd6001](6fd6001)) * **Twitter:** Refactor hooks filename ([2daa292](2daa292)) * **Twitter:** refactor strings-pl ([9aacfa1](9aacfa1)) * **Twitter:** refactor values of list preference ([e0e5c5b](e0e5c5b)) * **twitter:** Remove debug code ([eef558e](eef558e)) * **Twitter:** Remove redundant semicolon ([67b3084](67b3084)) * **Twitter:** Removed unused string from pt-BR ([cdb2067](cdb2067)) * **Twitter:** renamed 'Share menu button' fingerprints to hooks ([395c221](395c221)) * **Twitter:** Renamed patch `Remove Buy Premium Banner` to `Remove message prompts Banner` ([45dbad8](45dbad8)) * **Twitter:** Separated `App icon` and `Navigation icon` patch ([8a67f12](8a67f12)) * **Twitter:** Seperated/Added `Remove superhero event` patch ([d60ee17](d60ee17)) * **Twitter:** Strings in 'Customization' ([c52c2c0](c52c2c0)) * **Twitter:** Strings in 'Customization' ([a75221b](a75221b)) * **Twitter:** Strings refactor ([2db8866](2db8866)) * **Twitter:** update readme ([483d4f8](483d4f8)) * **Twitter:** updated profile tab string ([1af7846](1af7846)) * **Twitter:** Use addPref from integrations ([f511c38](f511c38)) ### Perfomance * **Bring back twitter:** Optimize string replacement ([crimera#440](https://github.com/Qingcaj/piko/issues/440)) ([7e61023](7e61023))
https://t.me/pikopatches/1/17451
The current implementation has poor performance as it iterates over all string elements for each entry in the stringsMap.
DOM operations using Java XML API are expensive, but on the other hand, Map lookups are fast.
So, the string replacement should be done in a single iteration.
I tested performance on a very low-end phone (Snapdragon 410, 2GB RAM) with ReVanced Manager.
Before PR:
After PR:
[ADDED]
Furthermore, with this change, adding more strings to the map will have little impact on the performance of the patch.
Thus, more "X" can be replaced with "Twiter".
I have a few questions before this PR is ready.
If a string does not exist in the original strings.xml, it was probably deleted from the app.
If so, I think adding it is no point because it will never displayed in the app.
In addition I can remove
mutableStringsMap.In my opinion, it is not needed to create a new strings.xml even if a specific language string.xml is not found,
When users merged the split APKs, they may have removed unnecessary language splits, in which case this patch does not need to add strings.xml for languages that do not exist.
Also, if a user unintentionally excludes the language split for their language, after applying this patch they will experience a strange situation where only the 60 strings included in this patch are translated.
At the time this patch was created, full APK of X was provided.
However, now that users have to merge the split APKs themselves, I believe that this behavior needs to be reconsidered.
// log which keys were not found or failed?I can't get what this comment means.
I think logging the missing strings is good idea instead of adding them silently.