[Guidance] Enable SIM hot-plug support without root - Sony Xperia 1 Guides, News, & Discussion

Sony already supported sim card hot-plug with it's Android 10's modem, So we only need to disable an App cause system reboot.
Tested on XZ2, this method should work with Xperia XZ2/Compact/Premium/XZ3/1/5 and all devices run Sony Android 10
Run this with adb-tools
Code:
adb shell pm disable-user com.sonymobile.uiccdetection
It would show a window which tells you need reboot, just ignore it.

Related

[Q] Accessing ADB shell of a device with a broken screen

Hi,
I'm trying to access ADB shell of a device (Samsung Galaxy s4 Mini LTE) where Androis 4.2 is installed.
Obviously it won't pass me because of missing public key on a device.
/adt-bundle-linux-x86_64-20140321/sdk/platform-tools $ ./adb devices
List of devices attached
x.x.x.138:5555 unauthorized
xxxx17d3 unauthorized
I have an access to ADB shell of a CWM installed on recovery partition and through that shell I'm able to access filesystem.
I have tried of: adb push ~/.android/adbkey.pub /data2/data/misc/adb
where /data2 is: mount /dev/block/platform/msm_sdcc.1/by-name/userdata /data2
But this is not working.
Anything else I could try?
There are apps out there that let you control your device remotely. But these still depend on you being able to install and launch the program.Using a package called Screencast you can get the image from the screen on your computer. It runs on your computer and doesn’t need to be installed on the phone, but it will require a rooted phone.
The phone is rooted but I can not install any apps because I cannot access ADB shell nor use display because it is all black and no touchscreen is working. Not a single pixel is lit up on a screen.

Question: Adb shell commands 4the Z3

Hi!
I have the Z3 and without my lang on settings so i willing 2add it with an App.
I opened USB Debug abd i need manually grant the premission by this command:
adb shell
pm grant sightidea.com.setlocal
android.premission.CHANGE_CONFIGURANT
ION
But i dont know what 2do that.
I just know i should open a CMD window...but it "not recognized as an internal or external command...
This info' came from the manual of this app...nothing mentioned about any file that need 2be involve in.
Need your help please.
Thank you!

adb (32bit Linux) -- "Now unlock your device ... " - but no prompt on phone

adb Android Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android (On 32-bit Linux)
Xperia Z5 Compact E5823, Android 6.0.1, 32.2.A.0.224
Installed adb to explore my old (ST15i/Gingerbread) phone. Seems to work ok.
Thought would plug in new Z5 and make backup -
Enabled developer mode, usb debug enabled.
adb_usb.ini is ok
51-android-rules is ok
phone is recognised, adb device shows phone connected, can execute shell command etc.
but when I execute
Code:
adb backup --all
I get the following prompt
Code:
Now unlock your device and confirm the backup operation.
But no prompt appears on phone (or not at least in any obvious place)
have tried restarting adb daemon, rebooted linux, rebooted phone etc to no avail.
Searching via google hasn't thrown up much except two sites, one that says Z5 does not support adb backup while the other says it works perfectly.
Comments and suggestions welcome
Use helium app from play store for backup.
Adil Tariq said:
Use helium app from play store for backup.
Click to expand...
Click to collapse
Ok, but what I'm really looking for is to find out about this specific issue.
thanks

How to remove bloatwares and preloaded apps?

Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Remove bloatware from Realme 3 Pro
Tried to do the same from adb shell for realme 3 pro
pm uninstall -k .com.coloros.video
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?
somanshumehta said:
Tried to do the same from adb shell for realme 3 pro
pm uninstall -k .com.coloros.video
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?
Click to expand...
Click to collapse
Check again the app name and put correct
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
zaouyorae said:
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
Click to expand...
Click to collapse
When we connect phone to pc, it will ask for confirmation. Then only pc detect phone.
vimal0212 said:
When we connect phone to pc, it will ask for confirmation. Then only pc detect phone.
Click to expand...
Click to collapse
What kind confirmation when we connect phone to pc? Coz my realme 5 only got some notif whether use usb as mtp or charging only...
zaouyorae said:
What kind confirmation when we connect phone to pc? Coz my realme 5 only got some notif whether use usb as mtp or charging only...
Click to expand...
Click to collapse
When we connect phone to pc, a window will appear phone something like trusted device
zaouyorae said:
excuse me... after i installed adb, turn on usb debugging mode, and open the command prompt, after i put the command (adb devices), there's no devices in list menu. also there's no notif in my phone.
so, am i doing something wrong?
Click to expand...
Click to collapse
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
---------- Post added at 02:17 PM ---------- Previous post was at 02:12 PM ----------
vimal0212 said:
Check again the app name and put correct
Click to expand...
Click to collapse
Nope, it's not the problem with package name. Same error is thrown when I try uninstalling the game centre app. It may have something to do with not having proper privileges over adb to remove the app?
anujpatil2 said:
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
So how u solve it for win 7 user? Coz my pc also run win 7 too
Click to expand...
Click to collapse
zaouyorae said:
anujpatil2 said:
This is probably a driver issue. Adb drivers for your device are not getting installed in your computer. Same happened with me on windows7. but drivers got installed automatically on windows 10.
So how u solve it for win 7 user? Coz my pc also run win 7 too
Click to expand...
Click to collapse
actually I couldn't solve it. I tried installing drivers and stuff. nothing helped. so connected my phone to another laptop (win 10) and removed the bloatware.
Click to expand...
Click to collapse
It should ask something like"Confirm RSA finger print. Also, to get adb drivers, get driver easy(free version), get the link for drivers and install manually in win 7
friedcheese said:
It should ask something like"Confirm RSA finger print. Also, to get adb drivers, get driver easy(free version), get the link for drivers and install manually in win 7
Click to expand...
Click to collapse
Can u tell me the name of the driver? So i can search n find it in search engine.
RealMe5 (not Pro)
Is it safe to get software update after doing this without factory reset.?
---------- Post added at 08:10 AM ---------- Previous post was at 08:06 AM ----------
I already did this and succeeded, but my device have software update available, is it safe to get the update without factory resetting my device?
zaouyorae said:
Can u tell me the name of the driver? So i can search n find it in search engine.
Click to expand...
Click to collapse
Just Google realme 5 adb driver, and download from the romprovider website.
Also, the same website provides instructions to do it too:
https://romprovider.com/2017/03/adb-fastboot-driver-install-window-html/
You can list apps with:
pm list packages -s (list system packages only with -s)
and running ones:
ps -ef
Oppo market app (save to uninstall if google play works well)
RMX1911:/ $ pm uninstall -k --user 0 com.oppo.market
Success
Oroaming (Settings ->Dual Sim & Cellular Network => you will see Oroaming Not installed
pm uninstall -k --user 0 com.redteamobile.roaming
pm uninstall -k --user 0 com.redteamobile.roaming.daemon
Google Play Movies & TV (I dont use it)
pm uninstall -k --user 0 com.google.android.videos
Google Music (also bloatware - prefer simpe players)
pm uninstall -k --user 0 com.google.android.music
Never used Facebook apps in phone (just browser)
Facebook services:
pm uninstall –k ––user 0 com.facebook.appmanager
pm uninstall –k ––user 0 com.facebook.services
pm uninstall –k ––user 0 com.facebook.system
Talkback (screen reader - not needed if you have good eyes)
pm uninstall –k ––user 0 com.google.android.marvin.talkback
Theme Store
pm uninstall –k ––user 0 com.nearme.themestore
Delete_failed_internal_error
RMX1851:/ $ pm uninstall -k --user 0 com.oppo.market
Failure [DELETE_FAILED_INTERNAL_ERROR]
Still getting this error - any solution?
I was able to remove a few but these 3 are giving this error:
App Market - com.oppo.market
Game Center - com.nearme.gamecenter
Theme Store - com.nearme.themestore
Hello sir,
I tried your methods, but it gives me this error message when trying it on Game Center...
"255|RMX1911:/ $ pm uninstall -k --user 0 com.oppo.market
pm uninstall -k --user 0 com.oppo.market
Failure [DELETE_FAILED_INTERNAL_ERROR]"
Unable to remove app market. Throws an error
vimal0212 said:
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Click to expand...
Click to collapse
I'm getting error message -
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
vimal0212 said:
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Users need to apply commands from ADB to uninstall preloaded apps.
1. Install ADB and Fastboot
I installed ADB and Fastboot on Ubuntu 18.04 LTS, use following commands on a command terminal to install it,
sudo apt update
sudo apt-get install android-tools-adb android-tools-fastboot
Windows user can install the Windows version of the ADB and Fastboot
2. Enable USB Debugging
Tap on many times (I think seven times) Settings > About Phone > Kernel version.
Go to Settings Additional settings > Developer options > USB Debugging and enable it.
3. Install App Inspector App
This app is helpful to find the exact name of the apps you want to remove.
Install from Google Play Store
4. Login into Realme 5
Connect the phone to PC using USB cable. Apply the following command on command terminal to check the connection,
adb devices
A dialogue window will appear on phone screen, confirm the connection from phone screen.
Enter into ADB shell,
adb shell
5. Apply the commands to remove the apps
Open the App Inspector and find the names of apps to remove,
e.g. Name of the App Market app is com.oppo.market
The command to uninstall the App Market is,
pm uninstall -k --user 0 com.oppo.market
The same way apply the commands to uninstall other unwanted apps available with Color OS 6 on Realme 5.
Information courtesy: Droid Guiding by Jayaprakash
Click to expand...
Click to collapse
Remove bloatware from Realme x2
Tried to do the same from adb shell for realme X2
pm uninstall -k --user 0 com.heytap.market
Got the following error.....
Failure[Delete_failed_Internal_Error]
Can somebody help ?

deactivate wifi scan throttle huawei p30 lite

hi, there is no option to deactivate wifi scan throttle huawei p30 lite in developer mode, nor can i get su in adb.... any help?
If phone's Android is version 10 or higher go to Settings > Developer options > Networking find “Wi-Fi scan throttling” and disable it.
tx @jwoegerbauer , but it has been removed from huawei's dev options in emui10, there is also no way i can get access through adb, it does not allow rooting with the su command and ignores the "adb shell settings put global wifi_scan_throttle_enabled 0" command...
If Android OS is properly rooted, means SU-binary's location got added to Android's global PATH variable ( it's the same mechanism as with Windows OS, too ) then you can try
Code:
adb devices
adb shell "su -c 'settings put global wifi_scan_throttle_enabled 0'"
If Android OS isn't already rooted then you may consider to make use of temporary root what you have to install at your own.
tx @jwoegerbauer , i'll try and let u know!

Categories

Resources