General Codes and study of the Redmi Note 10 PRO (SWEET) and some findings

Search This thread

Zibri

Senior Member
Dec 10, 2010
328
89
Code:
code    name
76937    com.miui.powerkeeper.cloudcontrol.CloudUpdateReceiver
8437625    com.miui.powerkeeper.thermalconfig.ThermalConfigReceiver
37263    com.miui.powerkeeper.ui.framerate.FrameRateSecretCodeReceiver
2877    com.miui.powerkeeper.ui.framerate.FrameRateSecretCodeReceiver
666    com.bsp.catchlog.CatBroadcastReceiver
64663    com.bsp.catchlog.CatBroadcastReceiver
284    com.bsp.catchlog.CatBroadcastReceiver
995995    com.bsp.catchlog.CatBroadcastReceiver
996996    com.bsp.catchlog.CatBroadcastReceiver
997997    com.bsp.catchlog.CatBroadcastReceiver
717717    com.bsp.catchlog.CatBroadcastReceiver
27284    com.bsp.catchlog.CatBroadcastReceiver
334334    com.bsp.catchlog.CatBroadcastReceiver
477477    com.bsp.catchlog.CatBroadcastReceiver
632    com.bsp.catchlog.CatBroadcastReceiver
63231    com.bsp.catchlog.CatBroadcastReceiver
63232    com.bsp.catchlog.CatBroadcastReceiver
63233    com.bsp.catchlog.CatBroadcastReceiver
63239    com.bsp.catchlog.CatBroadcastReceiver
9434    com.bsp.catchlog.CatBroadcastReceiver
5959    com.bsp.catchlog.CatBroadcastReceiver
25327337    com.bsp.catchlog.CatBroadcastReceiver
5228378    com.bsp.catchlog.CatBroadcastReceiver
6485    com.bsp.catchlog.CatBroadcastReceiver
6335463    com.bsp.catchlog.CatBroadcastReceiver
9959951    com.bsp.catchlog.CatBroadcastReceiver
9959952    com.bsp.catchlog.CatBroadcastReceiver
286    com.bsp.catchlog.CatBroadcastReceiver
4679    com.bsp.catchlog.CatBroadcastReceiver
72745    com.bsp.catchlog.CatBroadcastReceiver
289434    com.bsp.catchlog.CatBroadcastReceiver
998998    com.bsp.catchlog.CatBroadcastReceiver
436284    com.xiaomi.mi_connect_service.LogExtractionReceiver
8477    "Home screen tips"
672    com.xiaomi.ad.debug.DebuggerReceiver
0000    com.qti.qualcomm.deviceinfo.DeviceInfoReceiver
36245    com.android.email.service.EmailBroadcastReceiver
6484    com.miui.cit.receiver.CitBroadcastReceiver
201314    com.miui.fg.common.developer.DeveloperReceiver
995    com.miui.modemlog.ModemLogGenerator
66336    com.miui.modemlog.ModemLogGenerator
123    com.miui.bugreport.receiver.FeedbackComposeReceiver
239587    com.xiaomi.joyose.cloud.CloudServerReceiver
4976    com.xiaomi.joyose.cloud.CloudServerReceiver
663368378    com.xiaomi.mtb.MtbBroadcastReceiver
123456    com.xiaomi.mtb.MtbBroadcastReceiver
663364636    com.xiaomi.mtb.MtbBroadcastReceiver
996    com.xiaomi.mtb.MtbBroadcastReceiver
477    com.xiaomi.mtb.MtbBroadcastReceiver
334    com.xiaomi.mtb.MtbBroadcastReceiver
 
Last edited:

Zibri

Senior Member
Dec 10, 2010
328
89
Note:
all codes should be enclosed inside *#*# and #*#*
most of these are know but some are not.I tried them all and there are no "dangerous" ones.
This one totally resets EFS *#*#25327337#*#*
And this one enables TESTLAB mode (I wonder what that is) entering it again it disables it.
*#*#5228378#*#*
 
  • Like
Reactions: Ezio553

Zibri

Senior Member
Dec 10, 2010
328
89
A nice find:
In the latest firmware (13.0.13.0) I wanted to set the double tap on fingerprint sensor to lock the phone. Sadly the menu does not allow it.
Well, I found a way: from ADB enter:
Code:
settings put system fingerprint_double_tap go_to_sleep
 

Zibri

Senior Member
Dec 10, 2010
328
89
If anyone is interested, this is my way of creating a copy of the original recovery.img but with root and unsecured adb.

Code:
qemu-aarch64-static magiskboot unpack -h recovery.img
qemu-aarch64-static magiskboot hexpatch ramdisk.cpio 726F2E7365637572653D31 726F2E7365637572653D30
qemu-aarch64-static magiskboot hexpatch ramdisk.cpio 6164622E7365637572653D31 6164622E7365637572653D30
qemu-aarch64-static magiskboot hexpatch ramdisk.cpio 726f2e64656275676761626c653d30  726f2e64656275676761626c653d31
qemu-aarch64-static magiskboot repack recovery.img

I did it on pc using qemu.. but obviously you can do it on the phone itself

P.S.
This will work on any android recovery, even for other phones.
It just does the equivalent of this:
Code:
sed -i s/ro.secure=1/ro.secure=0/g ramdisk.cpio
sed -i s/ro.adb.secure=1/ro.adb.secure=0/g ramdisk.cpio
sed -i s/ro.debuggable=0/ro.debuggable=1/g ramdisk.cpio
 
Last edited:
  • Like
Reactions: Elinx

Zibri

Senior Member
Dec 10, 2010
328
89

1664290505045.png
 

Zibri

Senior Member
Dec 10, 2010
328
89
P.S.
I disabled the thermal daemons and set the cpu to performance at top speed.
No crashes and no throttling.. and I live in a very hot place.
It makes me think that 732G is an underclocked cpu by design.. probably the same internally than a more pricey cpu...
GPU is overclockable too...
I am studying how to do both...
(And don't tell me itàs futile on a phone.. it's just to check the limits... this phone is so good that probably would even be better to underclock it a little...)
 
Last edited:
  • Like
Reactions: RAMBO29 and Elinx

Zibri

Senior Member
Dec 10, 2010
328
89
A nice find: if you erase logo partition you get a nice fastboot menu :D
You can even relock bootloader with logo partition erased.
Code:
fastboot erase logo
1665946317262.png


You will also get a warning text when booting recovery or system if your bootloader is unlocked.
310609168_1191122198508476_9189609300753126152_n.jpg
 
Last edited:

Zibri

Senior Member
Dec 10, 2010
328
89
magiskboot utility compiled for Linux X86_64:
 

Attachments

  • magiskboot.zip
    336 KB · Views: 2

Zibri

Senior Member
Dec 10, 2010
328
89
Another milestone:
I successfully compiled the horrible original Xiaomi firmware (still at 4.14.180).

Code:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-perf ([email protected]) (Ubuntu clang version 11.0.0-2~ubuntu20.04.1, GNU ld (GNU Binutils for Ubuntu) 2.34) #6 SMP PREEMPT Tue Oct 18 17:31:04 UTC 2022
[    0.000000] Boot CPU: AArch64 Processor [51df805e]
[    0.000000] memblock_reserve: 0x978d5 setup_arch+0xac/0x600
[    0.000000] Powerup reason=0x40011
[    0.000000] Machine: Qualcomm Technologies, Inc. SDMMAGPIE PM6150 SWEET

I am studying now how to upstream it...
I am not a newbie in general but it's a long time I don't play with android at a low level...
 
  • Like
Reactions: RAMBO29

Zibri

Senior Member
Dec 10, 2010
328
89
Latest TWRP recovery but with the latest original stock kernel.
 

Attachments

  • twrp-3.7.0-zib.zip
    42.4 MB · Views: 13

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Code:
    code    name
    76937    com.miui.powerkeeper.cloudcontrol.CloudUpdateReceiver
    8437625    com.miui.powerkeeper.thermalconfig.ThermalConfigReceiver
    37263    com.miui.powerkeeper.ui.framerate.FrameRateSecretCodeReceiver
    2877    com.miui.powerkeeper.ui.framerate.FrameRateSecretCodeReceiver
    666    com.bsp.catchlog.CatBroadcastReceiver
    64663    com.bsp.catchlog.CatBroadcastReceiver
    284    com.bsp.catchlog.CatBroadcastReceiver
    995995    com.bsp.catchlog.CatBroadcastReceiver
    996996    com.bsp.catchlog.CatBroadcastReceiver
    997997    com.bsp.catchlog.CatBroadcastReceiver
    717717    com.bsp.catchlog.CatBroadcastReceiver
    27284    com.bsp.catchlog.CatBroadcastReceiver
    334334    com.bsp.catchlog.CatBroadcastReceiver
    477477    com.bsp.catchlog.CatBroadcastReceiver
    632    com.bsp.catchlog.CatBroadcastReceiver
    63231    com.bsp.catchlog.CatBroadcastReceiver
    63232    com.bsp.catchlog.CatBroadcastReceiver
    63233    com.bsp.catchlog.CatBroadcastReceiver
    63239    com.bsp.catchlog.CatBroadcastReceiver
    9434    com.bsp.catchlog.CatBroadcastReceiver
    5959    com.bsp.catchlog.CatBroadcastReceiver
    25327337    com.bsp.catchlog.CatBroadcastReceiver
    5228378    com.bsp.catchlog.CatBroadcastReceiver
    6485    com.bsp.catchlog.CatBroadcastReceiver
    6335463    com.bsp.catchlog.CatBroadcastReceiver
    9959951    com.bsp.catchlog.CatBroadcastReceiver
    9959952    com.bsp.catchlog.CatBroadcastReceiver
    286    com.bsp.catchlog.CatBroadcastReceiver
    4679    com.bsp.catchlog.CatBroadcastReceiver
    72745    com.bsp.catchlog.CatBroadcastReceiver
    289434    com.bsp.catchlog.CatBroadcastReceiver
    998998    com.bsp.catchlog.CatBroadcastReceiver
    436284    com.xiaomi.mi_connect_service.LogExtractionReceiver
    8477    "Home screen tips"
    672    com.xiaomi.ad.debug.DebuggerReceiver
    0000    com.qti.qualcomm.deviceinfo.DeviceInfoReceiver
    36245    com.android.email.service.EmailBroadcastReceiver
    6484    com.miui.cit.receiver.CitBroadcastReceiver
    201314    com.miui.fg.common.developer.DeveloperReceiver
    995    com.miui.modemlog.ModemLogGenerator
    66336    com.miui.modemlog.ModemLogGenerator
    123    com.miui.bugreport.receiver.FeedbackComposeReceiver
    239587    com.xiaomi.joyose.cloud.CloudServerReceiver
    4976    com.xiaomi.joyose.cloud.CloudServerReceiver
    663368378    com.xiaomi.mtb.MtbBroadcastReceiver
    123456    com.xiaomi.mtb.MtbBroadcastReceiver
    663364636    com.xiaomi.mtb.MtbBroadcastReceiver
    996    com.xiaomi.mtb.MtbBroadcastReceiver
    477    com.xiaomi.mtb.MtbBroadcastReceiver
    334    com.xiaomi.mtb.MtbBroadcastReceiver
    2
    P.S.
    I disabled the thermal daemons and set the cpu to performance at top speed.
    No crashes and no throttling.. and I live in a very hot place.
    It makes me think that 732G is an underclocked cpu by design.. probably the same internally than a more pricey cpu...
    GPU is overclockable too...
    I am studying how to do both...
    (And don't tell me itàs futile on a phone.. it's just to check the limits... this phone is so good that probably would even be better to underclock it a little...)
    1
    Note:
    all codes should be enclosed inside *#*# and #*#*
    most of these are know but some are not.I tried them all and there are no "dangerous" ones.
    This one totally resets EFS *#*#25327337#*#*
    And this one enables TESTLAB mode (I wonder what that is) entering it again it disables it.
    *#*#5228378#*#*