Skip to content

Instantly share code, notes, and snippets.

@crok
crok / MIUI_12_packages_to_be_disabled_or_deleted_safely
Last active May 23, 2023 17:02
MIUI_12_packages_to_be_disabled_or_deleted_safely
Packages to be deleted or disabled in MIUI 12:
com.google.android.projection.gearhead
com.android.cellbroadcastreceiver
com.android.egg
com.android.emergency
com.android.fileexplorer
com.android.providers.partnerbookmarks
com.android.soundrecorder
com.facebook.appmanager
@crok
crok / YoutubeDownloadBookmark_v5.txt
Created February 16, 2021 09:43
YoutubeDownloadBookmark_v5.txt credits to 1DM Telegram group @android_1dm
{"k_uuid":"e14c8374-b8db-4d5b-a51b-44e4fdc691fd","title":"00. YouTube downloader","url":"javascript:(function() {\n var domain = window.location.hostname.toLowerCase();\n if(domain == 'youtube.com' || domain.lastIndexOf('.youtube.com') != -1) {\n var overlay = document.getElementById('yt_overlay');\n if(overlay)\n overlay.remove();\n var downloadframe = document.getElementById('yt_download_frame');\n if(downloadframe)\n downloadframe.remove();\n if(typeof window.JSInterface !== 'undefined' && typeof window.JSInterface.setBooleanData !== 'undefined')\n window.JSInterface.setBooleanData('disable_new_window_allow_1dm', true);\n overlay = document.createElement(\"div\");\n document.body.appendChild(overlay);\n overlay.outerHTML = '<div id=\"yt_overlay\" style=\"position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:1000\"><div style=\"position:fixed;width:75%;left:50%;transform:translate(-50%,0);margin-top:60px;background-color:#fff;border:1px so
@crok
crok / Mido_memory_management.txt
Created May 28, 2019 13:26
Xiaomi Redmi Note 4X and memory management
TL;DR
First and foremost:
if you want some apps not to be killed/closed disable the battery optimization for them and|or lock them in the recents app list.
Ex. in Pie or Oreo: Settings / Apps and notifications / Special / Look for your app(s) / Battery opt -> disable
Pick an LMK profile according to your usage pattern (and fine-tune it if you want):
Heavy Gaming only:
Foreground Applications: 50MB
Visible Applications: 70MB
@crok
crok / Mido_charging_current_limitation.txt
Created May 26, 2019 21:13
Xiaomi Redmi Note 4X (Snapdragon - Mido) charging current limitation
TL;DR: no, it won't be beneficial to use a charger with QC3.0,
it won't charge better/quicker your Xiaomi Redmi Note 4X (Snapdragon - Mido)
Disassembly guide for pics:
http://en.miui.com/thread-554086-1-1.html
PMM8952 Power Management Module
https://developer.qualcomm.com/download/sd600/pmm8920-power-management-module-device-specification.pdf
Chip is limited to 5V and 2A max if everything is ideal
@crok
crok / Mido_wifi_bluetooth_issues.txt
Last active May 26, 2019 22:28
Xiaomi Redmi Note 4X (Snapdragon - Mido) - Wifi along with Bluetooth = bad network experience and sporadical Bluetooth connection issues
The SoC in the phone theoretically can support 802.11ac (2x2:1)
but the actual SoC in the phone does not support it, it's not built in (it's in WCN3680b) - only 802.11n.
The phone's SoC has a WCN3660B and it has no 802.11ac (in WCN3680B there is).
Doc on WCN3660B:
https://developer.qualcomm.com/download/sd410/wcn3680b-wcn3660b-device-spec.pdf
This is what the phone can do for you 802.11n:
1x1:1 antenna config and thus
@crok
crok / tempcopypasteint
Created May 7, 2019 21:52
temporary copy paste interface
.
@crok
crok / Bookmarks.md
Last active April 18, 2024 19:04
cat [google_chrome_exported_bookmarks].html | grep "<DT><A HREF=" | sed 's%.*DT.*HREF="%%g' | sed 's%".*ICON="">% -- %g' | sed 's%".*ADD_DATE="">% -- %g' | sed 's%</A>%%g' | sed 's%http%* [http%g' | sed 's% -- %] -- %g' > bookmarks.md
@crok
crok / SoT_is__not__universal.txt
Last active March 31, 2019 19:28
SoT screen on time - why it is *not* a universal measurement for ROM / kernel battery management
Android SoT is not a universal measurement of a ROM's or a kernel's battery management.
It strongly depends on way too many factors, like:
- display brightness
- mobile connectivity (signal strength / signal to noise ratio, network type, scanning / looking for better coverage..)
- wifi connectivity (signal strength / signal to noise ratio, network type,
number of neighboring devices (RF field busyness, etc..)
- frequency settings of SoC (CPU & GPU), governor behavor & "boosting" settings
(too much/too high? Possibly too much drainage..
too less/too low? Possibly battery friendly but leading to too laggy UI behavior..)
@crok
crok / IOS_versions_and_idlepc.txt
Created March 6, 2019 11:04
Example Cisco IOS versions and idlepc values for GNS3
c1700 series
1700s have 1 FastEthernet fixed port (C1700-MB-1ETH) on its motherboard,
2 subslots for WICs (maximum of 2 Ethernet ports or 4 serial ports), and
no Network Module slots.
IOS version 12.4.25d (Mainline)
File name: c1700-adventerprisek9-mz.124-25d.bin
MD5: 3ed8d56a8757771105a56070e4147716
Minimum RAM: 128MB
Proposed idle-PC value: 0x80358a60