Setting the active slot through terminal - OnePlus 7 Pro Questions & Answers

I want to change the current active slot through terminal so I don't have to use twrp to do it. Is it possible?

You mean the sim card slot?
On the 7T I can turn the sims on and off with this commands:
Code:
service call extphone 3 i32 0
service call extphone 3 i32 1
service call extphone 4 i32 0
service call extphone 4 i32 1
0 for sim 1 and 1 for sim 2
3 to turn on and 4 to turn off
Enviado de meu HD1903 usando o Tapatalk

lucfig said:
You mean the sim card slot?
On the 7T I can turn the sims on and off with this commands:
0 for sim 1 and 1 for sim 2
3 to turn on and 4 to turn off
Enviado de meu HD1903 usando o Tapatalk
Click to expand...
Click to collapse
I was thinking about AB Partitions

As far as I know, you can only change it over TWRP or fastboot command

asiranno said:
I want to change the current active slot through terminal so I don't have to use twrp to do it. Is it possible?
Click to expand...
Click to collapse
fastboot --set-active=a
If you're on slot b
fastboot --set-active=b
If you're on slot a

If you don't know which slot is active just enter this command
fastboot --set-active=other

Related

sony z3 hotspot is not working

hi
i on my sony z3 hotspot is not working i get an error.i read many posts and installed android studio 3.0.1 and ran command
settings put global tether_dun_required 0
i get an error
C:\Users\log\AndroidStudioProjects\MyApplication>settings put global tether_dun_required 0
'settings' is not recognized as an internal or external command,
operable program or batch file.
Flash the stock rom to verify if your hotspot is work.

[HOW TO] Disable Heads Up Notifications on Android 7.0 Nougat with ADB

Hello guys just want to share it.
If you want to disable the annoying Heads Up/Peek Notifications fellow these steps. No root needed!
First install this: Mega Link to ADB Just click on it type 3 times [Y]
1.) Open a command prompt in Windows 7 or 10 and check if the device is connected using the following command:
adb devices
2.) You should see your phone on the list that appears. Now use the following command:
adb shell settings put global heads_up_notifications_enabled 0
3.) Reboot your phone and you are done!
_____________________________________
Tested on G950F International Galaxy S8
Not tested on Oreo!!!
will flotify work after?
Tried it on Oreo (Renovate 9.3) working fine here [emoji4][emoji1360]
Gesendet von meinem SM-G950F mit Tapatalk

Help with installing camera2 api on Xiaomi mi A2 lite.

I enabled usb debugging and unlocked the bootloader. I downloaded the lates twrp daisy for mi A2 lite. I use the following commands in command prompt:
adb devices
adb reboot bootloader
fastboot boot twrp.img
When in enters the twrp I tried two things:
1. press do not change anything
2. swipe the arrow to the right
Next commands:
adb devices
adb shell
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enabled 1
exit
adb reboot
I read somewhere that I need to write su after adb shell, but it doesn't recognize that command.
Does anyone know what I'm doing wrong?
I want to enable google camera without rooting my phone. Build number 10.0.4.0.

[Help - Limited Success] Google pixel 3 QPST connection detects via Modem Port

Hi, I want to extract qcn file of my pixel 3 and followed other steps. After stressful searches, I was almost done with the following links
1) https://forum.xda-developers.com/pixel-2-xl/how-to/guide-qxdm-port-activation-pixel-2-xl-t3884967
2) https://forum.xda-developers.com/pixel-3/help/qxdm-pixel-3-limited-success-help-t3887152
steps I followed
1) bootloader unlock
2) factory image (android 9) from official google
3) Twrp recovery
4) Magisk from link 1
5) Module (Pixel 2 diag port.zip) from link 1
6) Mi5 Qualcomm drivers from link 2
and with that, I got diag port somehow opened but it only gets on MTP connection via USB but no proper detection in QPST. I tried to backup qcn file with partial detection of COM port but it says "checking connection" and then "backup failed no phone attached".
Is there any way for this? I'm really stuck with my mobile network problem. :crying:
P.S: just to make it clear, my question is not for VoLTE or PDC.
Update:-
I managed to get detected properly via Modem port but not in QFIL.
1) Magisk and Module from link 1
2) "QUD.WIN.1.1 Installer-10037.3 Setup" Qualcomm Drivers
3) Put phone in MTP connection
4) Following commands in adb
Code:
adb shell
su
setenforce 0
setprop sys.usb.configfs 1 && setprop sys.usb.config diag,serial_cdev,rmnet_gsi,adb
5) open "QPST Configuration"
6) Add port
7) Add Modem port
With these steps, i get manage to get detected in QPST Download and able to make a backup of "*.xqcn". But after editing and restoring, there is no such change. Am i missing something?
any usfull info here? https://gist.github.com/julian-alarcon/53f9a782008b5d5f879bf6fa878f87f3
Hello sir i lost my physical sim card on pixel 3a only shows esim option please help
luqman.mirza said:
Hi, I want to extract qcn file of my pixel 3 and followed other steps. After stressful searches, I was almost done with the following links
1) https://forum.xda-developers.com/pixel-2-xl/how-to/guide-qxdm-port-activation-pixel-2-xl-t3884967
2) https://forum.xda-developers.com/pixel-3/help/qxdm-pixel-3-limited-success-help-t3887152
steps I followed
1) bootloader unlock
2) factory image (android 9) from official google
3) Twrp recovery
4) Magisk from link 1
5) Module (Pixel 2 diag port.zip) from link 1
6) Mi5 Qualcomm drivers from link 2
and with that, I got diag port somehow opened but it only gets on MTP connection via USB but no proper detection in QPST. I tried to backup qcn file with partial detection of COM port but it says "checking connection" and then "backup failed no phone attached".
Is there any way for this? I'm really stuck with my mobile network problem. :crying:
P.S: just to make it clear, my question is not for VoLTE or PDC.
Update:-
I managed to get detected properly via Modem port but not in QFIL.
1) Magisk and Module from link 1
2) "QUD.WIN.1.1 Installer-10037.3 Setup" Qualcomm Drivers
3) Put phone in MTP connection
4) Following commands in adb
Code:
adb shell
su
setenforce 0
setprop sys.usb.configfs 1 && setprop sys.usb.config diag,serial_cdev,rmnet_gsi,adb
5) open "QPST Configuration"
6) Add port
7) Add Modem port
With these steps, i get manage to get detected in QPST Download and able to make a backup of "*.xqcn". But after editing and restoring, there is no such change. Am i missing something?
Click to expand...
Click to collapse
Can you share the XQCN file with me??

Required Dual messenger for all apps guide for rooted n20u

Anybody please share the method or guide to enable Dual messenger for all apps on Rooted N20 ultra exynos variant. [emoji120]
Sent from my Redmi K20 Pro using Tapatalk
While we are on this topic. Is it possible to have dual app on non rooted? N986U1
Sent from my SM-N986U1 using Tapatalk
yungzoe0624 said:
While we are on this topic. Is it possible to have dual app on non rooted? N986U1
Sent from my SM-N986U1 using Tapatalk
Click to expand...
Click to collapse
I've found a method that requires ADB. NO ROOT NEEDED.
Step 1: Enable Dual Messenger for an existing app (e.g. WhatsApp).
Step 2: Enable USB Debugging and connect your device to your computer.
Step 3: Open command prompt in your adb folder.
Step 4: Type
Code:
adb shell
Step 5: Type
Code:
pm list users
Step 6: In the resulting list, find the user named "DUAL_APP" and get its number. For example, the number is 95 on my device:
Code:
UserInfo{95:DUAL_APP:20000030} running
Step 7: Type
Code:
exit
Step 8: Copy your desired apk file to your adb folder.
Step 9: Type
Code:
adb install --user 95 desired_app.apk
Remember to replace "95" with whatever number you saw in Step 6.
Wait for the process to finish. A SUCCESS message should be displayed.
The app of your choice will now be installed in Dual Messenger.
JimzFreebies said:
I've found a method that requires ADB. NO ROOT NEEDED.
Step 1: Enable Dual Messenger for an existing app (e.g. WhatsApp).
Step 2: Enable USB Debugging and connect your device to your computer.
Step 3: Open command prompt in your adb folder.
Step 4: Type
Step 5: Type
Step 6: In the resulting list, find the user named "DUAL_APP" and get its number. For example, the number is 95 on my device:
Step 7: Type
Step 8: Copy your desired apk file to your adb folder.
Step 9: Type
Remember to replace "95" with whatever number you saw in Step 6.
Wait for the process to finish. A SUCCESS message should be displayed.
The app of your choice will now be installed in Dual Messenger.
Click to expand...
Click to collapse
I remember this method wouldn't give permissions to dual apps installed...
ram4ufriends said:
I remember this method wouldn't give permissions to dual apps installed...
Click to expand...
Click to collapse
[emoji22]I'm also Waiting for this feature. When it gets enable, i will buy n20 ultra immediately as I'm currently using k20 pro which has this feature by default.
Sent from my Redmi K20 Pro using Tapatalk

Categories

Resources