Hello, i'm trying to trigger s3's power saving mode toggle via adb or shell, for use with tasker, so that i can automate it depending on the occasion.
But no matter what, i just can't find a way to do so.. Any help would be much appreciated
any luck in the meantime? id like to know the same for the international note 2...
wehnsdaefflae said:
any luck in the meantime? id like to know the same for the international note 2...
Click to expand...
Click to collapse
I had found a dirty workaround to this involving shell commands and keyevents that you can check here. But it's really not a real way into accessing it and requires the screen to be on for this to work. Anyway give it a try and see if it suits your needs
Since VZW and Samsung Level 2 support didn't know the answer, here is how to enable the hidden menus on the dialer screen for the Verizon GS4. Previously, there was a 'master' code that enabled the hidden menus. Now it is a filesystem based check. Boo!
Due to editing /system/build.prop and /efs/carrier/HiddenMenu you MUST be rooted. Also, you must be on a stock TouchWiz-based ROM. This will not work on CM builds/etc. At a very minimum, hiddenmenu.apk must be present on your stock device for this to work, but possibly others, so beware of ROMs that remove 'bloat' APKs.
1) Add the following line* to /system/build.prop
Code:
sys.hiddenmenu.enable=1
Edit: I noticed that after I hosed build.prop, it was replaced when I loaded the default system image, so in fact, step 1 above is not necessary, at least for the Verizon variant. This means that once you do step #2 below, the changes made to /efs/carrier/HiddenMenu will persist after an Odin restore of the NoWipe Factory Image posted here. What this means is that root is only required to make the modification, and one could revert to stock afterwards with the hidden menus enabled.
2) Change the contents of /efs/carrier/HiddenMenu from OFF to ON
3) Reboot.
4) Try it out! Go to the phone dialer and enter *#06# (show MEID) as a test.
For more codes that worked on the S3 that (may) also work on the S4, see below:
http://androidforums.com/samsung-ga...unlocking-jelly-bean-service-modes-found.html
Having the hidden menus enabled is particularly useful for those who want to disable WiFi Power Saving mode -- I was having issues with an access point at work, but sadly disabling it didn't fix the problem. Otherwise, the hidden menus are useful to test your sensors/display/etc or just looking around in general. Enjoy!
For those that are NOT rooted, there is an alternative to get to SOME of these menus, but it is not a free app (currently $1.99). It's called "Sammy S Mode". Note that I am not affiliated with the developer, I just bought it to test if the menus were present before I dug deeper into finding out how to fully enable the hidden menus on my Verizon Galaxy S4. When I have time in the next day or so, I'll try to figure out how the app calls the menus, and update the post if I find a free solution for those that are not rooted.
---
* Note: I added the "sys.hiddenmenu.enable=1" line right after the "persist.cne.feature=0" one, but I don't think it matters where you add it. Just be careful editing this file. I managed to get my phone boot-looping, probably because I used notepad to edit the file and it added Windows CR/LFs to it, and had to use the NoWipe Factory Image posted here to restore my phone. The second time around I used Root Explorer's built in text editor and it worked fine.
In case anyone is curious how I figured this out, click here.
Mods: Thanks for moving this to the development section since it fits better here.
---
I wanted to compile a list of the ones that seem useful or new in general and working for me:
*#197328640# Service Mode
*#0228# BatteryStatus
*#0*# Screen/Sensor/Vibration/Touch/Speaker/LED/etc testing -- even gives out raw values for light sensor, barometer, etc in real time
*#2263 RF Band Selection
*#66336 MDM Randump Mode (defaults to OFF)
Thanks OP! Confirmed to be working on my Verizon S4. Followed your guide with the same placement in build.prop and using root explorer.
Thanks, worked great! :thumbup:
Sent from my SCH-I545 using xda app-developers app
I can't be rooted due to work MDM. I hope an alternative method is found. I hate the constant wifi notification.
dmichael said:
I can't be rooted due to work MDM. I hope an alternative method is found. I hate the constant wifi notification.
Click to expand...
Click to collapse
If you were talking about the menu on the S3 that opened "HiddenMenuWifiOffload" dialing *#6335623#, this does not work on my S4. In fact, it stopped working after a software update on the S3. There is a temporary solution that is lost on reboot. I tried it and it works for me. See link below:
http://androidcommunity.com/how-to-...i-notification-on-verizon-galaxy-s-4-20130527
For anyone that needs to get to a service menu without being rooted, here is the basic idea. You'll have to get a launcher or shortcut app that supports creating shortcuts to activities.
Code:
Intent localIntent1 = new Intent("android.intent.action.MAIN");
localIntent1.putExtra("keyString", "0011");
localIntent1.setClassName("com.sec.android.RilServiceModeApp", "com.sec.android.RilServiceModeApp.ServiceModeApp");
startActivity(localIntent1);
I'll expand later using a free app that supports doing that when I get it to work on my end. In the meantime, here's a very simple app that can serve as a template to place the values above:
http://viralpatel.net/blogs/android-install-uninstall-shortcut-example/
Edit 1: A free app can be used to create the shortcut. It is called Manual Intent Shortcuts.
Not working for me, did exactly what was posted. I even posted the line in the same place
Sent from Verizon Galaxy S4
tCizler said:
Not working for me, did exactly what was posted. I even posted the line in the same place
Sent from Verizon Galaxy S4
Click to expand...
Click to collapse
I should note that this only works if you're running a stock ROM. If you're running CM or some other non-TouchWiz ROM or missing hiddenmenu.apk this won't work. I have added this to the OP.
vacaloca said:
I should note that this only works if you're running a stock ROM. If you're running CM or some other non-TouchWiz ROM or missing hiddenmenu.apk this won't work. I have added this to the OP.
Click to expand...
Click to collapse
Yep, stock and rooted
Sent from Verizon Galaxy S4
thank you!
tCizler said:
Not working for me, did exactly what was posted. I even posted the line in the same place
Click to expand...
Click to collapse
tCizler said:
Yep, stock and rooted
Click to expand...
Click to collapse
The only thing I can think of is perhaps there is a space in the /efs/carrier/HiddenMenu file that is failing the code check. It is an exact match:
Code:
if (new File(this.HIDDENMENU_ENABLE_PATH).exists())
try
{
String str = read(this.HIDDENMENU_ENABLE_PATH);
if (str.equals("ON"))
return true;
You can also issue the command when USB debugging is set/connected to PC:
Code:
adb shell getprop sys.hiddenmenu.enable
or
Code:
getprop sys.hiddenmenu.enable
from a terminal emulator app on your phone to verify that the property is set correctly. Either command should return the value input -- 1 in this case.
I'll see if I make a recovery flashable update.zip to make it easier for everyone.
vacaloca said:
The only thing I can think of is perhaps there is a space in the /efs/carrier/HiddenMenu file that is failing the code check. It is an exact match:
Code:
if (new File(this.HIDDENMENU_ENABLE_PATH).exists())
try
{
String str = read(this.HIDDENMENU_ENABLE_PATH);
if (str.equals("ON"))
return true;
You can also issue the command when USB debugging is set/connected to PC:
Code:
adb shell getprop sys.hiddenmenu.enable
or
Code:
getprop sys.hiddenmenu.enable
from a terminal emulator app on your phone to verify that the property is set correctly. Either command should return the value input -- 1 in this case.
I'll see if I make a recovery flashable update.zip to make it easier for everyone.
Click to expand...
Click to collapse
I ran the "getprop sys.hiddenmenu.enable" line in terminal emulator and it came back with a value of "1".
Also, if it's any help, the *#06# code works. A few others work too. Just can't get the hidden menu *#26337# (*#codes#)
Sent from Verizon Galaxy S4
tCizler said:
I ran the "getprop sys.hiddenmenu.enable" line in terminal emulator and it came back with a value of "1".
Also, if it's any help, the *#06# code works. A few others work too. Just can't get the hidden menu *#26337# (*#codes#)
Sent from Verizon Galaxy S4
Click to expand...
Click to collapse
Oh, duh, haha. That's my fault. That was just an example of the format of the codes. There is no *#CODES# menu. :facepalm: I removed that from the OP. Sorry for the confusion, and thanks for testing/helping me clarify my post
The Service Mode Main Menu code is: *#197328640#.
vacaloca said:
Oh, duh, haha. That's my fault. That was just an example of the format of the codes. There is no *#CODES# menu. :facepalm: I removed that from the OP. Sorry for the confusion.
The Service Mode Main Menu code is: *#197328640#.
Click to expand...
Click to collapse
Hahahahaha! Wow now I feel like an ass! The facepalm should be for me
Sent from Verizon Galaxy S4
awesome!!!
vacaloca said:
The Service Mode Main Menu code is: *#197328640#.
Click to expand...
Click to collapse
Working for me.
Interesting choice of code sequence. 1973, 286 (intel), 40 (your age this year if born in 73)
Sent from my SGS4 using one opposable thumb.
ProfEngr said:
Working for me.
Interesting choice of code sequence. 1973, 286 (intel), 40 (your age this year if born in 73)
Sent from my SGS4 using one opposable thumb.
Click to expand...
Click to collapse
Ha, That sure it makes it easy to remember now
Can anyone else share their service mode setting (*#197328640#) under sim information, check nv, band pref? Mine says unexpected value.
Trying to figure out if my sim is borked and causing 4g slowness.
Sent from my SCH-I545 using xda premium
crookedview said:
Can anyone else share their service mode setting (*#197328640#) under sim information, check nv, band pref? Mine says unexpected value.
Trying to figure out if my sim is borked and causing 4g slowness.
Sent from my SCH-I545 using xda premium
Click to expand...
Click to collapse
Mine says the same and no 4g issues here either. If you have another phone handy that you can swap sims, that would be one way to test. *#2263 has band preference settings, but I haven't touched mine and don't plan to just in case, want to avoid resetting to stock and re-rooting/going back to recovery if the phone doesn't like some setting I picked there.
vacaloca said:
Mine says the same. If you have another phone handy that you can swap sims, that would be one way to test. *#2263 has band preference settings, but I haven't touched mine and don't plan to just in case, haha.
Click to expand...
Click to collapse
Mine says the same, and I have no 4g issues
Sent from Verizon Galaxy S4
Hi,
Me and a friend are trying to port a system app from the same phone but two different roms. Here's the situation. The phone is zopo zp998 and it comes with regular Android 4.2.2. Zopo is making the exact same phone for the Chinese market with on OS based on Android 4.2.2 that's called YunOS and it doesn't have Google account support so it's not usable outside China.
The YunOS has a black screen gesture feature that you can activate in the settings under display and then while the screen is Black you can make symbols on it with your finger and open specific apps. For instance if you draw the letter C the dialer will open.
Here's where we'd like the help. My friend was able to find the system app for the gestures in YunOS and all its library files and put it in his rom. When the phone boots we can see that the gestures service is running fine but we don't have the option in the settings to activate the app. Is there a guide we can use on how to transfer a system setting and app like this? Is there another app we can use to trigger the on and off of the app? I am not so advanced to figure this out by myself. All help will be greatly appreciated.
Thank you.
slekkas said:
Hi,
Me and a friend are trying to port a system app from the same phone but two different roms. Here's the situation. The phone is zopo zp998 and it comes with regular Android 4.2.2. Zopo is making the exact same phone for the Chinese market with on OS based on Android 4.2.2 that's called YunOS and it doesn't have Google account support so it's not usable outside China.
The YunOS has a black screen gesture feature that you can activate in the settings under display and then while the screen is Black you can make symbols on it with your finger and open specific apps. For instance if you draw the letter C the dialer will open.
Here's where we'd like the help. My friend was able to find the system app for the gestures in YunOS and all its library files and put it in his rom. When the phone boots we can see that the gestures service is running fine but we don't have the option in the settings to activate the app. Is there a guide we can use on how to transfer a system setting and app like this? Is there another app we can use to trigger the on and off of the app? I am not so advanced to figure this out by myself. All help will be greatly appreciated.
Thank you.
Click to expand...
Click to collapse
No one?
slekkas said:
No one?
Click to expand...
Click to collapse
Hi Slekkas, just an idea which might help:
Do you see "settings->advanced settings->Superuser" in your menu? This entry does not work at all and is useless, but the switch is there. If you can locate the adress of this "Superuser" entry in ROM then you can alter it (without really knowing how it works ). Exchange "Superuser" with "Black-SCR" and you got what you search for: A switch you can use. Hope this helps.
slekkas said:
No one?
Click to expand...
Click to collapse
AP756 said:
Hi Slekkas, just an idea which might help:
Do you see "settings->advanced settings->Superuser" in your menu? This entry does not work at all and is useless, but the switch is there. If you can locate the adress of this "Superuser" entry in ROM then you can alter it (without really knowing how it works ). Exchange "Superuser" with "Black-SCR" and you got what you search for: A switch you can use. Hope this helps.
Click to expand...
Click to collapse
Thanks, I'll check it out.
Hi, did you succed ?
tofclaire said:
Hi, did you succed ?
Click to expand...
Click to collapse
Unfortunately not... I've asked at least at 5 different forums but no one is willing to help. I feel invisible.
I've copied the file :
Gesture in /sys/devices/virtual/input/input3/
Libgesture3Dvstar.so in/system/lib/
Yunos_gestureSetting.apk in /system/app/
and it did nothing...how did you seen that gestures are ok on boot?
On 998 gestures are for sliding in app. There is an apk for active in setting.I think we had to take this apk for active blackscreen gesture, but it is integrated in settings...
no means to port yunos setting on 998...
(sorry for my bad english)
Actually i stay on yunos rom for try and try....
I'm not competent enough but Some developpers are working on it...(Fluffy...)
I worked along with fluffy on this but yunos is very complicated. It has to do something with the smali files
no further investigations here ?
This is disappointing, my previous phones LG g3 and xiaomi mi note 2 could easily screen mirror with built in functionality from the main settings menu, I'm not finding similar functionality on this phone menu...
I Googled and saw Samsung smart view app only to discover that this ****ing app only works with Samsung devices, goddamn.
So what do I do?
Soooo nobody here use screen mirroring???
Anyone???
It's working for me on a Sony XBR 65-inch.
nap007 said:
Anyone???
Click to expand...
Click to collapse
Check the sync settings on your TV.
Intljock said:
Check the sync settings on your TV.
Click to expand...
Click to collapse
Not sure what you mean, both are already could be connected, it just the TV waited for the 'final say' from the phone, and in other Droid phones I could do just that by activating the screen mirroring feature from the phones.
I don't find anything similar on this s9+
So how?
Found out how, apparently I need to use the Samsung gallery app and select a picture so that smart view option appeared on the notification panel
That's dumb and complicatedly stupid way of screen mirroring.
Goddamn, if anyone found a better solution, please tell.
I also need an alternative way to do that!
Anyone found anything?
If not is there a good screen mirroring app for this phone?
Use smart view it's built in, need to set aspect ratio after connected
Hello guys,
I did a lot of research and already tried my best to figure it out on my own.
Android 12
Samsung A52s 5G
Rooted with this Tutorial: Tutorial
I use a (anti-addiction)software that monitors all online/offline behavior.
The problem is, that I found a way to circumvent it by simply using the safe mode. With windows the solution was quite easy: deleting the registry entry for the safe mode options now leads to a blue screen.
But with android it is much more complicated for me. I rooted my device to find a solution for this.
One option could be to set the monitoring program/app as a system app (that it also starts in safe mode). But "Link2SD" and also "Systemize" mod for Magisk didn´t work.
Probably it is not that difficult to solve and I am willing to pay a tip to anyone helping me to find a good and working solution. I would prefer a solution that is not "repairable", so it can´t be turned on again.
Thanks in advance!
push
Neuland said:
push
Click to expand...
Click to collapse
one not so perfect solution would be to use family link and enrolling device as a childs device, that would prevent safe mode.
There are a lot of mdm tools that offer prevention of entering safe mode thru knox apis but they are usually paid unfortunately.
can you provide more details about fact app didnt work as expected when you turned it into a system app?
Ivan_Meler said:
one not so perfect solution would be to use family link and enrolling device as a childs device, that would prevent safe mode.
There are a lot of mdm tools that offer prevention of entering safe mode thru knox apis but they are usually paid unfortunately.
can you provide more details about fact app didnt work as expected when you turned it into a system app?
Click to expand...
Click to collapse
Thanks very much.
I am going to try it with family link. Because the rooted phone is causing lots of issues.
Neuland said:
Thanks very much.
I am going to try it with family link. Because the rooted phone is causing lots of issues.
Click to expand...
Click to collapse
I actually looked into this a bit more and found functuon used to disable safe mode
https://developer.android.com/reference/android/os/UserManager#DISALLOW_SAFE_BOOT
writing a simple app that acts as a device admin and implements this shouldn't be too hard but you could always remove app from device admin defeating the purpose
Ivan_Meler said:
I actually looked into this a bit more and found functuon used to disable safe mode
https://developer.android.com/reference/android/os/UserManager#DISALLOW_SAFE_BOOT
writing a simple app that acts as a device admin and implements this shouldn't be too hard but you could always remove app from device admin defeating the purpose
Click to expand...
Click to collapse
Nice, thanks for your effort.
I will try it with family link first and see if it works for me.
Neuland said:
Nice, thanks for your effort.
I will try it with family link first and see if it works for me.
Click to expand...
Click to collapse
no problem, if that doesn't work for you i think this function could be used together with device owner so you would only be able to defeat it with pc and adb