how can i change this setting to "true"?
D/TwidroidBackgroundService( 263): update while roaming false
no one? just how to change the settings with adb shell and where i should search for the it...
Related
I recieved this problem right after I turned off the wifi 2 days ago.
Before that I successfully updated LauncherPro through wifi connection.
Now I've tried almost every methods on Google to solve this problem.
#1.Wipe all and reflash CM 5.0.7.1 without any addon apps..........not working
#2.Chmod 777 wpa_supplicant.conf.........................................not working
#3.Format MicroSD card without ext and reflash ROM..................not working
What should I do to get my wifi back?
Help please~~~
Here's logcat content:
W/Settings( 250): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings
.Secure, returning read-only value.
E/WifiService( 139): Failed to load Wi-Fi driver.
D/SettingsWifiEnabler( 228): Received wifi state changed from Enabling to Unknown
W/Settings( 250): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings
.Secure, returning read-only value.
E/WifiService code change to 135 after tried method #1 and #2.
I've also tried update boot/recovery. Still not working.
Bluetooth works perfectly beside this issue so I don't think this is a HW problem.
Try pushing a wifi module in?
what's the command line please?
adb push bcm4329.ko /system/lib/modules
Try a few different wifi modules until you fix your problem.
chowlala said:
Try pushing a wifi module in?
Click to expand...
Click to collapse
You mean insmod bcm4329.ko? tried and failed.
C:\n1root>adb devices
List of devices attached
HT9CSP817562 device
C:\n1root>adb shell
# insmod /system/lib/modules/bcm4329.ko
insmod /system/lib/modules/bcm4329.ko
insmod: init_module '/system/lib/modules/bcm4329.ko' failed (Invalid argument)
where can i find more modules beside stocked in ROM please?
I found how to change device name for Bluetooth and Ethernet (separate settings).
Is there a way to change device name from XT1053 (or whatever you model is) to something else when device is connected to USB?
Disregard the post below - this is for network host name (what will appear in your WiFi router).
Executing this in terminal window:
> su
> getprop net.hostname
> setprop net.hostname <new_hostname>
only works until the reboot.
I found this solution: http://www.invialgo.com/2012/change-android-hostname/#comment-88411 but haven't tried that yet.
I'm running Dirty Unicorns ROM. It has an option for custom carrier label. When I run shell for "settings list system" the line custom_carrier_label=Verizon Wireless shows. I want to hide all notifications from the lock screen and have my carrier label show %SMS (variable for unread SMS) Message if %SMS>0. My code settings put system custom_carrier_label=%SMS Message in run shell doesn't work. If this is possible what am I doing wrong?
Sent from my Nexus 6P using Tapatalk
You probably need to restart systemui for the change to take effect.
To do that, run this shell command as root:
Code:
pkill -l TERM -f com.android.systemui
If your screen is on when this command runs, whatever you are doing well get interrupted by your lock screen.
To avoid being interrupted, add this action before the shell command:
Code:
Wait Until
%SCREEN ~ off
Also, your 'settings put ...' shell command needs to be run as root.
Depending on your ROM broadcasting
Code:
android.intent.action.CUSTOM_CARRIER_LABEL
might also work.
Hi all,
I want to change the value of " Set Preferred network type" on my S6 Active from "LTE/UMTS auto (PRL) " to " LTE/CDMA/UMTS auto(PRL)". I have tried by *#4636#*#* / Device Information/ Set Preferred Network type but after exit, i turn back to check is it save? It is not save my setting, Preferred still "LTE/UMTS auto (PRL) ". I also try change the value of that setting with adb and changed "ro.telephony.default_network=9" in to "ro.telephony.default_network=10". Commands are listed below :
1.) adb pull /system/build.prop
2.) adb root
3.) adb root remount rw
4.) adb root chmod 664 /system/build.prop
5.) adb root push ./build.prop /system/build.prop
at the last step, after "adb root push ./build.prop /system/build.prop" , i have reboot my phone and check the result by
*#4636#*#* / Device Information/ Set Preferred Network type
But the value is not changed !!! So tired !!!
Can you tell me how to change that setting?
Thanks a lot !
Try turning off the radio and then change the network,after a few moments just re-enable the radio.
Any idea why the alarm stats permission is unknown?
Phone is a Huawei P Smart 2019 with EMUI 9.1.0.264 (Android 9.0).
Code:
adb -d shell pm grant com.asksven.betterbatterystats android.permission.APPOPS_USAGE_STATS
Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown permission: android.permission.APPOPS_USAGE_STATS
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1417)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:93)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2112)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:6057)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1773)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:239)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23637)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2804)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)
at android.os.Binder.execTransact(Binder.java:739)
After installing betterbatterystats_xdaedition_debug_2.5-341.apk I also had your exact error. Magisk was installed before installing the app. I started the app and granted the root permission in the Magisk popup.
The app weirdly still required two permissions (READ_PHONE_STATE and APPOPS_USAGE_STATS), which were shown with a red background in the app:
$ sudo adb shell
[email protected]:/ $ su
[email protected]:/ # pm grant com.asksven.betterbatterystats_xdaedition android.permission.READ_PHONE_STATE
Click to expand...
Click to collapse
worked (I restarted phone and the red background color went away), but
# pm grant com.asksven.betterbatterystats_xdaedition android.permission.APPOPS_USAGE_STATS
Click to expand...
Click to collapse
didn't work and the error you have came up. I solved it by clicking on the bottom "OK" error message on the app and rechecked [it was already set to the right/allow] the permissions slider.
Having the same problem. Can't fix it...
Same here. On first installation and permissions configuration was working OK. Maybe it scanned the system further and noticed that it didnt have the proper permissions. Not rebooted yet. Probably will try to reboot and also I will read some thing in this forum.
Of course I enabled again all the USB debugging things and tried to add the permission, without success:
Code:
~\AppData\Local\Android\Sdk\platform-tools> .\adb.exe -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.APPOPS_USAGE_STATS
Exception occurred while executing 'grant':
java.lang.IllegalArgumentException: Unknown permission: android.permission.APPOPS_USAGE_STATS
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1467)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1426)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2287)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:249)
at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at android.os.ShellCommand.exec(ShellCommand.java:44)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22207)
at android.os.Binder.shellCommand(Binder.java:932)
at android.os.Binder.onTransact(Binder.java:816)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4687)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4419)
at android.os.Binder.execTransactInternal(Binder.java:1162)
at android.os.Binder.execTransact(Binder.java:1126)
But @fdxw solution solved it. However you should probably add your solution with more emphasis, I didnt see it the first time.
Solution
I solved it by clicking on the bottom "OK" error message on the app and rechecked it was already set to allow (disable it, enable it again) the permissions slider.
Click to expand...
Click to collapse
+1 Xiaomi Mi9