[App]Location Based Wifi - Sony Ericsson Xperia Neo, Pro

This is system dump of Xperia T, I think it is useful and no one post it here so I post it
Installation:
Just install like a normall apps or copy it to /system or /vendor and set the right permissions..
After installation your will not find it on your apps drawer or anywhere, so you need to install the application also attached below it is an app from Play Store.
So, launch it and search for the Location Based Wifi then create the shortcut for it.
It will available on setting menu if you are using settings.apk from Xperia T, but it will cause FC or reboot on some option(outside of Location Based Wifi setting)
Usage:
It will turn on/off your wifi based on your location. Detection of your location is based on your phone network coverage. So, it won't work if you are out of your network coverage or on Airplane Mode.
How to use:
Turn on your wifi on the location that you usually use the wifi network then connect like normally. After that, launch Location Based Wifi and set it on, press the back button or home button, you will see the Location Based Wifi icon on your status bar. It will always run on backgroud.
Tested on my Neo ICS stock .587 ROM, Night Elf kernel and stock kernel.
Should work on all Xperia 2011

Will this drain lots of battery?

AfiAzrael said:
Will this drain lots of battery?
Click to expand...
Click to collapse
I think no..
I don't feel any problem with the battery drain issue after using this app

Thanks for your contribution .

working on CM10 or the ones based on it??

Related

[Q] Change connection 2G only / 3G only with simple method on gingerLOL [2.3.3]??

Like topic title, so how can i do that think on gingerLOL??
-Flash cm7setting.zip doesnt work..
-using power widget doesn't have 2g/3g menu...
Sent from my LG-P500
cupliz said:
Like topic title, so how can i do that think on gingerLOL??
-Flash cm7setting.zip doesnt work..
-using power widget doesn't have 2g/3g menu...
Sent from my LG-P500
Click to expand...
Click to collapse
Go to setting-wireless-mobile network.
Choose WCDMA for 3g only
Choose GMS for 2g only
socialdistortion said:
Go to setting-wireless-mobile network.
Choose WCDMA for 3g only
Choose GMS for 2g only
Click to expand...
Click to collapse
No better way? Make it on notif screen or on power widget...
Sent from my LG-P500
Hope somebody answear this question...
Sent from my LG-P500
Not sure what version of Power Control widget gingerLOL is using, but my version in CM7 has that option.
When I add the power control widget, I get a config settings screen where I can choose what buttons appear. 2G/3G switching is one of them. You can also set up behaviour patterns like switching sync on when wifi is on, and sync off when wifi off.
Otherwise, search the market, there are many specific widgets that will do JUST the 2G/3G switch.
eigokyoukan said:
Not sure what version of Power Control widget gingerLOL is using, but my version in CM7 has that option.
When I add the power control widget, I get a config settings screen where I can choose what buttons appear. 2G/3G switching is one of them. You can also set up behaviour patterns like switching sync on when wifi is on, and sync off when wifi off.
Otherwise, search the market, there are many specific widgets that will do JUST the 2G/3G switch.
Click to expand...
Click to collapse
Ok, thx then my bro...
I try using cm7 setting but it make my setting force close... maybe wrong version, but i dont know wich version that i need..
So, i will search from market then.. thx alot..
Sent from my LG-P500

auto switch to 2G/3G

Hey,
Since as i understand 3G draing the battery much more then 2G.
Is there any option to auto switch to 2G when the phone is not in use?
Tnx
Yaniv
I use sgs2 cyanogenmod
No simple way to do it (this has been asked on here recently more than a few times). Your best chance is to get Tasker from Google Play & see if you can set up a task to run where the phone switches to 2G where certain conditions are met.
try root box rom
yaniv_sa said:
Hey,
Since as i understand 3G draing the battery much more then 2G.
Is there any option to auto switch to 2G when the phone is not in use?
Tnx
Yaniv
I use sgs2 cyanogenmod
Click to expand...
Click to collapse
In aokp roms like RootBOX & Resurrection Remix, a 2G toggle can be set in the notification screen.
settings -> Rom-Control -> (statusbar) Toggles -> Enabled toggles.
I use it from time to time
I never used cyanogenmod....
CM also have this option. AOKP roms are based on CM, so...
Having a toggle on the status bar isn't what the OP has asked. He's asked for a way to have the phone automatically switch to 2G when 'the phone is not in use' (reading is fun. honest).
yaniv_sa said:
Hey,
Since as i understand 3G draing the battery much more then 2G.
Is there any option to auto switch to 2G when the phone is not in use?
Tnx
Yaniv
I use sgs2 cyanogenmod
Click to expand...
Click to collapse
I remember that i ever provide some of battery saving apps have any feature to do that e.g. easy baterry saver or battery saver.. at it's network settings related..
Sent from my GT-I9100 using xda app-developers app
There is a good app for that, but I think it will work with CM only:
2G Auto Toggle
seba18 said:
There is a good app for that, but I think it will work with CM only:
2G Auto Toggle
Click to expand...
Click to collapse
I saw it got bad reviews in the google play.
did ya use it?
yaniv_sa said:
I saw it got bad reviews in the google play.
did ya use it?
Click to expand...
Click to collapse
Open the dial pad, type *#*#4636#*#*, if anything pop up, you can go to Phone information to switch preferred network type to "GSM only" for 2G.
You can also create an Activity shortcut on the home screen to do this in a faster way. The activity is under Settings -> Phone info.
For the sake of simplicity, install CM and use toggles.
ksilver89 said:
Open the dial pad, type *#*#4636#*#*, if anything pop up, you can go to Phone information to switch preferred network type to "GSM only" for 2G.
You can also create an Activity shortcut on the home screen to do this in a faster way. The activity is under Settings -> Phone info.
For the sake of simplicity, install CM and use toggles.
Click to expand...
Click to collapse
Can you tell me where the toggle is? I have an option of setting the preferred network but changing it to 2G will automatically toggle it back to 3G. I am not satisfied !!
---------- Post added at 02:48 PM ---------- Previous post was at 02:45 PM ----------
rmsalihdeen said:
Can you tell me where the toggle is? I have an option of setting the preferred network but changing it to 2G will automatically toggle it back to 3G. I am not satisfied !!
Click to expand...
Click to collapse
I feel like a retard to reply to myself. But just now I tried toggling it with my data off. It sticks. I have to select the preferred network and then I have to switch it on. Might help someone!

[GUIDE] Switch between 2g and 2g/3g automatically [Tasker app needed]

Hi! Here are some profiles for the paid app Tasker which switch your phone to mixed(2g/3g) mode automatically if you turn data connections on, and turn to 2g only if data is off.
Prerequisites:
-semcphone.apk which enable network mode switching, Many systemui mods contain this file, an example is:
http://forum.xda-developers.com/showpost.php?p=30409030&postcount=131
-root
-Tasker installed, basic knowledge of the app.
Install:
Extract and copy files from attachment to sdcard/Tasker/Profiles. Import profiles into tasker.
Test app by toggling data connection (by widget or in notification bar)
Tested in stock 587 ICS.
As a bonus the phone will boot with 2g only setting if you have data connections disabled, so the network setting bug in ICS is fixed with this mod also.
Thanks, but can this be done on CM10?
Sent from my Xperia Mini Pro
I am sure that it can be done in jb. But I have locked bootloader so I can't develop or test it.
miniuser123 said:
Hi! Here are some profiles for the paid app Tasker which switch your phone to mixed(2g/3g) mode automatically if you turn data connections on, and turn to 2g only if data is off.
Prerequisites:
-semcphone.apk which enable network mode switching, Many systemui mods contain this file, an example is:
http://forum.xda-developers.com/showpost.php?p=30409030&postcount=131
Click to expand...
Click to collapse
Do you think that this pre-requisite is met by official firmwares released by SE? (i have an xperia mini pro with gingerbread 2.3.4)
Night on the web said:
Do you think that this pre-requisite is met by official firmwares released by SE? (i have an xperia mini pro with gingerbread 2.3.4)
Click to expand...
Click to collapse
For GB the following mod contains the needed semcphone.apk I think. So you have to install this first (or only semcphone.apk from it)
http://forum.xda-developers.com/showthread.php?t=1306044
miniuser123 said:
For GB the following mod contains the needed semcphone.apk I think. So you have to install this first (or only semcphone.apk from it)
http://forum.xda-developers.com/showthread.php?t=1306044
Click to expand...
Click to collapse
Ok, thanks for the link. I won't install that entire MOD but i will just pick the semcphone.apk from it
Where is this .apk supposed to be copied?
Night on the web said:
Ok, thanks for the link. I won't install that entire MOD but i will just pick the semcphone.apk from it
Where is this .apk supposed to be copied?
Click to expand...
Click to collapse
Copy to /system/app. Change permissions to rw-r-r, then reboot phone.
Make a backup before if you are unsure.
miniuser123 said:
Change permissions to rw-r-r, then reboot phone.
Click to expand...
Click to collapse
How can i do this?
Night on the web said:
How can i do this?
Click to expand...
Click to collapse
In ES File Explorer long click on file, select Properties and click Change next to permissions.
miniuser123 said:
In ES File Explorer long click on file, select Properties and click Change next to permissions.
Click to expand...
Click to collapse
Thanks! I will give it a try for sure!!
Can you explain how to make tasker switch between 2g and 3g?
I found your thread because I can't get tasker switch mobile data 2g/3g i.e. New task->Add action->Net->Mobile Data 2G/3G. It says 'Sorry, that action is unavailable on this device'.
I'm on .587 ICS, Serenity ROM, and I have 2g/3g toggle working in my SytemUI's notification toggle.
anezch said:
Can you explain how to make tasker switch between 2g and 3g?
I found your thread because I can't get tasker switch mobile data 2g/3g i.e. New task->Add action->Net->Mobile Data 2G/3G. It says 'Sorry, that action is unavailable on this device'.
I'm on .587 ICS, Serenity ROM, and I have 2g/3g toggle working in my SytemUI's notification toggle.
Click to expand...
Click to collapse
1. Extract the files from attachment to sdcard/Tasker/Profiles.
2. Open Tasker
3. Long touch on "Profiles" tab
4. Select import
5. Select "Mobile data on" profile
6. Long touch on "Profiles" tab
7. Select import
8. Select "Mobile data off" profile
9. Click Green check in bottom left corner to exit Tasker and activate changes.
10. Test by toggling data connection (by widget or in notification bar). It takes a 2-3 seconds until Tasker makes the switch.
miniuser123 said:
1. Extract the files from attachment to sdcard/Tasker/Profiles.
2. Open Tasker
3. Long touch on "Profiles" tab
4. Select import
5. Select "Mobile data on" profile
6. Long touch on "Profiles" tab
7. Select import
8. Select "Mobile data off" profile
9. Click Green check in bottom left corner to exit Tasker and activate changes.
10. Test by toggling data connection (by widget or in notification bar). It takes a 2-3 seconds until Tasker makes the switch.
Click to expand...
Click to collapse
Thanks, so it's not possible to do it manually?
Sent from my SK17i using xda app-developers app
anezch said:
Thanks, so it's not possible to do it manually?
Sent from my SK17i using xda app-developers app
Click to expand...
Click to collapse
After importing my profiles, you can see 2 new tasks on Tasks tab: 3g and 2g. You can assign those tasks to any event in Tasker. But the change in data connection state is the best event for this in my opinion.
miniuser123 said:
After importing my profiles, you can see 2 new tasks on Tasks tab: 3g and 2g. You can assign those tasks to any event in Tasker. But the change in data connection state is the best event for this in my opinion.
Click to expand...
Click to collapse
You're right, i didn't check them out first before asking . Its working like a charm, thank you.. :thumbup:
Sent from my SK17i using xda app-developers app
Glad to hear!
how about for JB?
miniuser123 said:
Hi! Here are some profiles for the paid app Tasker which switch your phone to mixed(2g/3g) mode automatically if you turn data connections on, and turn to 2g only if data is off.
Prerequisites:
-semcphone.apk which enable network mode switching
Click to expand...
Click to collapse
Is there any chance anyone has the SmecPhone.apk that toggles 2G/3G (or Phone.apk, i think is the same) for JB 4.1.2? I'm also on stock ROM and locked bootloader, and would love this function available in my Tasker app. The one provided here is for ICS.
Hi, is an option to switch only 3G? The profiles can switch 2G / 2G+3G(prefered). This is super, but i nedd 3G only too. Sorry for my bad anglish.
THX !!!
jimi-m said:
Hi, is an option to switch only 3G? The profiles can switch 2G / 2G+3G(prefered). This is super, but i nedd 3G only too. Sorry for my bad anglish.
THX !!!
Click to expand...
Click to collapse
Hi, I solved it by overriding the script to the values ​​found on the internet (Network mode 1 = 2G / 3G 2 = / = 0L 2G/3G pref), thanks for the script.
Can anyone confirm if this works on kitkat and if so where to find a working apk for it? Will this work on other devices? Tasker has 2g/3g switching but it only works under cyanogenmod based roms...all the stock rom's on my devices show the feature as unavailable so I'm trying to find an alternative. This looks like it would do the job...guess I'll just have to try it and see.
I'm not sure I understand the breakdown in previous post since it's all ran together....can you clarify the 2g/3g preferred and 3g only modes?

Stuck in Ultra Power Saving Mode.

I've been using nova launcher for months and finally uninstalled the stock S launcher. Today, I went to put my phone into ultra power saving mode and now I cannot exit it. If I get a notification, I can switch to that app and get into system settings, but I cannot exit ultra power saving mode. Without a notification, I can't even turn the screen off. The home button does nothing (no launcher) and the UPSM toggle is missing from the notification window.
So, my question is- does anyone have the stock APK for the Samsung launcher -OR- know an ADB command or some other way to get out of UPSM?
You didn't say whether you looked at the full quick settings palette or just the selected tiles subset? You should find the power saving tile on the full palette. Also does the phone exit UPSM when you fully charge the phone battery?
If that doesn't work, then just download the firmware for your phone and you can extract the stock launcher with winrar.
.
fffft said:
You didn't say whether you looked at the full quick settings palette or just the selected tiles subset? You should find the power saving tile on the full palette. Also does the phone exit UPSM when you fully charge the phone battery?
If that doesn't work, then just download the firmware for your phone and you can extract the stock launcher with winrar.
.
Click to expand...
Click to collapse
There are no settings tiles. After I get a notification, I can pull down the notification screen (not before) and hit the gear to get the settings page. In there, there's only wifi, bluetooth, airplane mode, mobile networks, location, sound, and brightness. There's no way to get rid of UPSM.
Fully charging it didn't work. Fully discharging it didn't work. Wiping cache and dalvik didn't work.
Can you provide a link to the file in question? I'm not entirely clear on your terminology. I thought the firmware was just for the radio and such while the rom had the program files?
Kayden96 said:
There are no settings tiles. After I get a notification, I can pull down the notification screen (not before) and hit the gear to get the settings page. In there, there's only wifi, bluetooth, airplane mode, mobile networks, location, sound, and brightness. There's no way to get rid of UPSM.
Fully charging it didn't work. Fully discharging it didn't work. Wiping cache and dalvik didn't work.
Can you provide a link to the file in question? I'm not entirely clear on your terminology. I thought the firmware was just for the radio and such while the rom had the program files?
Click to expand...
Click to collapse
Have you rebooted? Usually does it for me.
I tried taking the battery out, restoring my SYSTEM backup from a few months ago, upgrading to a newer version of the stock rom, and nothing works.
Everything I've tried ends up with the phone going back into UPSM with no way to leave it.
Kayden96 said:
I tried taking the battery out, restoring my SYSTEM backup from a few months ago, upgrading to a newer version of the stock rom, and nothing works.
Everything I've tried ends up with the phone going back into UPSM with no way to leave it.
Click to expand...
Click to collapse
If you are using TWRP there is a file manager under advanced. Use that to navigate to the /system/app directory and rename "Emergency" apk to have .back appended to the end after the .apk. This will "hide" it from the system and should disable it. Btw the name of the apk has Emergency in it i don't recall the exact name of it though.
Kayden96 said:
Can you provide a link to the file in question?
Click to expand...
Click to collapse
No we can't. And the reason that we can't is that you didn't provide any details about your phone. The firmware is different for every model of S5 and carrier. We don't know if you have a 900T, 900F, 900A or some other S5 version. We can't see your phone and can do little unless you provide extensive details.
Simply go to a firmware site like sammobile, click on firmware and enter the model number of your phone. Or do a search of this forum. Then use the Odin program to write that firmware (factory software) to your phone.
.
I'm having the same issue on a Verizon S5. Under /system in twrp I don't see anything. Tried chmod but didn't help. Any suggestions?
Apps Drawer
Same thing happened to me. Mine was stuck in between normal and Ultra. I was able to go to my apps drawer, clicked on the gear/settings, found Power then disabled Ultra Power Saving mode there.
I had same issue and I SOLVED it.
No disable option in the notification drawer. Gear 'setting' option (in the notification drawer) only display few setting options (no disable ultra saving mode).
I solve the issue by holding down the HOME button to trigger Google NOW app. In the search bar of Google NOW app, I clicked the microphone button and said "OPEN SETTINGS". This will open the full version of setting window. If you scroll down, you will see the 'POWER SAVING MODE', click it and you will see the disable "ULTRA POWER SAVING MODE" option.
It's a unusual way but it worked.
I also faced the same issue while running Action Launcher 3. Google Now wasn't working for me, so the way I solved it is:
- press and hold the menu button (capacitive button on the left) and select "Manage Apps"
- from the three dots on the top right corner select "Reset app preferences"
- reboot
- pressing the home button showed up "TouchWiz Home", which then allowed me to select "Disable Ultra Power Savings mode"
-done
HTH
I have they same problem with S5 LTE+ on Android 4.4.4. (I hate this ****ing bad Samsung Software!!!!) The above two posts unfortunatly don't work for me because Google Now is not working and Home Button does nothing.
I will try to launch settings due adb if I find a PC to do this (Unfortunatly I'm on holiday at the moment)
Were you able to figure this out? Facing the same issue on my friends phone. Can't believe Samsung would takeover the phone like this.
kussface said:
Were you able to figure this out? Facing the same issue on my friends phone. Can't believe Samsung would takeover the phone like this.
Click to expand...
Click to collapse
Best I remember, it had something to do with disabling the stock launcher and I ended up reflashing.
thug_life_inc brought me to my personal solution. I had the problem with the Google Now Launcher. And there is the possibility to go to the app info by placing an app on the home screen, but not dropping it there, but above it (you know the area where you can access app info / delete the app).
That brought me to the settings page for the google app where i could delete the standard launching options.
I had very low battery (maybe 3 or 2%) and then i activated the ultra power saving mode. After a while, the phone battery died, so I recharged it. The problem now is that I got stucked in UPSM. Everything is black and white, I have no acces at any of my apps and the settings is incomplete, I mean I don`t find the "disable UPSM" function. I also cannot factory reset the phone, same reason, I only have acces to wi-fi, bluetooth, volume, brightness and location.
Thank you!!!!
Strykes_Daniel said:
thug_life_inc brought me to my personal solution. I had the problem with the Google Now Launcher. And there is the possibility to go to the app info by placing an app on the home screen, but not dropping it there, but above it (you know the area where you can access app info / delete the app).
That brought me to the settings page for the google app where i could delete the standard launching options.
Click to expand...
Click to collapse
Thank you! It worked for me!
I tried multiple methods include using microphone to trigger Google Now but still nothing in Settings. The idea is trigger the Launcher Picker. here are some notes
Wish I new this sooner, wasted a whole day figuring it out. This fix is way easier
The easy fix - just open the app drawer, drag the google app to app info and drop, clear defaults , when prompted choose you service providers origional default launcher
parislawrence said:
The easy fix - just open the app drawer, drag the google app to app info and drop, clear defaults , when prompted choose you service providers origional default launcher
Click to expand...
Click to collapse
That is not possible .. in UPSM there is no app drawer or any apps settings.

Can't download big apps as wifi goes sleep mode when screen is turned off.

Hi there, so basicly im using a s9+ with pie version and my problem is that i can't download big apps or spotify lists because every time i turn my screen off, it stops downloading or updating apps and stuff.What should i do ? I tried using another wi-fi connection and also clearing caches but no luck.I also couldn't see any settings about wi-fi sleep mode in pie version
Have you tried "Keep WiFi on During Sleep"?
Open up the WiFi menu from the drop down menu at the top of the screen.
Click the three vertical dots at the top right of the screen and select Advanced.
Click View More at the bottom of the screen. Then scroll the screen down to reveal more options.
Tap Keep WiFi on During Sleep and pick Always or While Charging from the three options.
0-0-0 said:
Have you tried "Keep WiFi on During Sleep"?
Open up the WiFi menu from the drop down menu at the top of the screen.
Click the three vertical dots at the top right of the screen and select Advanced.
Click View More at the bottom of the screen. Then scroll the screen down to reveal more options.
Tap Keep WiFi on During Sleep and pick Always or While Charging from the three options.
Click to expand...
Click to collapse
Thx for suggest, but as i mentioned, there is not an option to set WiFi sleep modes in official pie rom.
mertk07 said:
Thx for suggest, but as i mentioned, there is not an option to set WiFi sleep modes in official pie rom.
Click to expand...
Click to collapse
They placed the WiFi power savings mode under developer options now.
Also check to see if Switch to Mobile Data is on under WiFi > Advanced menu. If it is try toggling it off and see if that helps. The Switch to Mobile Data feature has sometimes gotten a little quirky for me and switched my connection from WiFi to cellular when it thought the connection was bad... My connection was fine, but I disabled it since it hasn't always been 100% reliable for me.
scottusa2008 said:
They placed the WiFi power savings mode under developer options now.
Also check to see if Switch to Mobile Data is on under WiFi > Advanced menu. If it is try toggling it off and see if that helps. The Switch to Mobile Data feature has sometimes gotten a little quirky for me and switched my connection from WiFi to cellular when it thought the connection was bad... My connection was fine, but I disabled it since it hasn't always been 100% reliable for me.
Click to expand...
Click to collapse
Oh i found that option but its already switched off.Maybe my problem is something about play store because things that i can't download and install are usually big games that requires to download an additional file.
mertk07 said:
Oh i found that option but its already switched off.Maybe my problem is something about play store because things that i can't download and install are usually big games that requires to download an additional file.
Click to expand...
Click to collapse
Only things I can suggest is to go to device maintenance and change the settings under battery management. You could try disabling any power management options there and see if that helps.
You could also try having your phone plugged in and charging when the games/apps are downloading the additional files.
Myself for games and apps that download additional files I just end up extending the time delay before the screen turns off or enabling the enabling the stay awake when charging (under developer tools). I revert the settings when I am done. In this case the game/app was the cause (not google play because google play was not responsible for downloading the additional files), so that is about the only way I found to make it work... Maybe this will help for you also?
scottusa2008 said:
Only things I can suggest is to go to device maintenance and change the settings under battery management. You could try disabling any power management options there and see if that helps.
You could also try having your phone plugged in and charging when the games/apps are downloading the additional files.
Myself for games and apps that download additional files I just end up extending the time delay before the screen turns off or enabling the enabling the stay awake when charging (under developer tools). I revert the settings when I am done. In this case the game/app was the cause (not google play because google play was not responsible for downloading the additional files), so that is about the only way I found to make it work... Maybe this will help for you also?
Click to expand...
Click to collapse
Will try that, thanks ! If that doesn't work i'll probably go for factory settings.
I have that issue sometimes when downloading large files try using kinscreen on playstore to keep you screen on worked for me
Remove Download Manager & Playstore from Battery Optimization

Categories

Resources