[Q] How to WRITE_SECURE_SETTINGS in a rooted device? - Android Software Development

Hi folks,
I'm looking for a solution to a problem I found in one of my software.
I use the phone as a standalone datacollector. He is sent to one location and nobody sees or interacts with it.
I found it interesting to use Android, because it is reliable and easy to program, in addition to the hardware features necessary for my application.
I have 200 Galaxy S5 devices for that application.
The problem is that from time to time some of them decide to lose contact with the modem / SIM card.
The only solution I found is to turn off and on the data connection. The problem is that even with the rooted device in and asking for permission to manifest for android.permission.WRITE_SECURE_SETTINGS, when I try to change the data connection, I get a system message saying that I'm not allowed.
What should I do? Has anyone tried any solution for this?
I heard that I need to have the signature of the phone's firmware to be able to sign my software with the same key. Really?
Please do not suggest changing the APN settings to turn off and on phone data. This does not solve my problem... i`ve tried.
Thank you!

Many setprop as a terminal command or some how edit the database in settings provider

great idea, but how do you think i'll be able to tell the system that i've changed the file or the database? a reset?

Related

keyboard pwd lock

Hi All,
first of all , hope to put this issue in the correct forum path....
my friend has a problem with the Pro2, as you can see by the attach , concerning the keyboard password lock.
His password doesn't works and also performing all the reset type , after the reboot the mobile starts with the keyboard locked (only emergency number is possible call).
he has reported me that at the first time, the mobile has gave to him an alphanumeric code to try to unlock the code but it doesn't solved the issue.
probably re-installing the software (6.5) the problem is solved but he doesn't want loss the date / appointments due the fact he has a doctor.
please help us.
thanks
Hi again,
it's appreciated also if someone know if there's a way to perform the backup in this condition.
Thanks again
tezzuro said:
Hi again,
it's appreciated also if someone know if there's a way to perform the backup in this condition.
Thanks again
Click to expand...
Click to collapse
Did he ever use Activesync or Google Sync? If he did, most of his information sould be saved that way. Also, you may want to try doing a hard reset but only after exausting all attempts to back your data up. Send a couple of PM to Senior memebers or Moderators, you might get some help that way!!
Good luck!!
thanks for your post....
principal problem is that is not possible connect the mobile to pc in order to use activesync or other program due the fact the mobile is locked....and not save data has been performed before....
Double chack that his SIM card is in correctly.
Same exact thing happened to me. My phone battery was at about 10% and when I tried the password that I had set... it didn't work. This made me frantic and very ticked off. I had a ROM on my SD card so i just reflashed from there. Since then I always install a different locking app then the stock one. I just can't trust it. So I think youre only option is to hard reset and hopefully your contacts are saved to the SIM so they won't be deleted.

Stock Application

All of a sudden I can't update the stock information. I get this message "CONNECTION ERROR. There was a connection error while attempting to download stock data. Retry? Yes/No". It doesn't matter how the phone is configured or whether I initiate the update or the application does so automatically. I googled the message and found that some folks had the same trouble with the Weather application. The Solution was a registry tweak.
I haven't tried a hard reset yet. Since I don't know what the problem is or what caused it, I am reluctant. Also I hate to tweak the registry without specific information about what to change and how.
Can anybody help me with this?
Thanks in advance.
I forgot to mention that I upgraded my Rom from 1.07 to 1.36. Yesterday. I'm not so sure that was smart.

[Q] Connection Set up Not Working!!! HELP!!!

I went through the flashing okay. And I was even able to unlock and do everything else including getting a code from MS. But when I get to the step that says run connection set up, it tells me that my carrier is not in the database and then tells me to manually set up my APN.
I know I did everything else okay, but I know I can't edit my HD2 registry settings because of this. And my market and xbox features don't work because of this issue.Please, if anyone has had this experience, or knows why I'm getting a "carrier not in database" when I run HTC Connection set-up. I would greatly appreciate it. I hope I'm not the only one having this issue.
Same problem here. Whats your carrier?
I already tried to add the keys manually using a registry editor. However it didn't work and the phone has locked itself again. Now I cannot even unlock it anymore using chevron (it says no connection) so I cannot launch any registry editor or try something else. Probably I have to flush it again. However what I still really need is a solution to this problem with the carrier.
I have solved the problem. My carrier is a small carrier from austria (bob). It seems that the HTC tool simply doesn't have any data for this carrier (the tool in win mobile 6.5 has known bob...). I used another sim from another austrian carrier (a1), whith this i was able to run the tool and add the registry data!
The Connection Setup didn't work for me too. Just ask your provider for the APN (Access Point Name) the Username and the Password and type it in Settings-network- add APN. Thats all.
For A1 /bob its:
APN: A1.net
User: [email protected]
Password: ppp
Yes, but entering the APN has not been the problem. I wanted to use the Connection Setup to add registry keys according to the WP7 guide. However, I already have solved this by using another sim of another carrier.
@oscar2010 did this work for u too?

[Q] Manually Edit APN

Hello XDA,
I've been searching for a solution regarding a problem for a couple of days....to no avail. I'm with Simple Mobile and I got my Samsung Focus Flash to work correctly regarding data and mms; however, that was due to wireless manager and its ability to edit, delete, and add multiple APNs. On the original focus, wireless manager does not work and the network profile app does not allow the editing of APIs; thus, I was wondering if there is an app, registery codes, or another way to manually edit APN. Any help is greatly appreciated.
Thanks,
Guyden2
Any help? Please and thank you!
Help!
I've tried everything. Literally.
I tried editing the apn from the settings to simple, didn't work.
I tried using the network profile, didn't work.
I tried to use Samsung Tools, didn't work.
I tried contacting Simple Mobile customer service, they couldn't help.
All of these attempts will make the browser redirect me to androidapi.t-mobile.com/apppack/mvno.html each time I open a web page.
Please help.

using mobile data with international sim card

Hi,
So I'm abroad right now with my unlocked sprint s4. I can use the sim card to call and sms without any problem, but I don't have access to data, eventhough my plan includes it!
also,when going to system update-->uicc unlock, it says:"mobile data not available"....what does it mean? How can I resolve it and define my apn settings???
This is so annoying for such an expensive device and a "world" one!
Please help....
Thanks!
wolf1o said:
Hi,
So I'm abroad right now with my unlocked sprint s4. I can use the sim card to call and sms without any problem, but I don't have access to data, eventhough my plan includes it!
also,when going to system update-->uicc unlock, it says:"mobile data not available"....what does it mean? How can I resolve it and define my apn settings???
This is so annoying for such an expensive device and a "world" one!
Please help....
Thanks!
Click to expand...
Click to collapse
i believe you need to root your phone to gain access to the APN to manually connect to the data server
sheryip said:
i believe you need to root your phone to gain access to the APN to manually connect to the data server
Click to expand...
Click to collapse
My phone is rooted...the question is: do I have to flash a customized rom over the stock rom in order to gain access to this option? In the stock rom sprint/Samsung eliminated this option, you can't change the apn manually!
I'd really appreciate if you can help or if someone knows if a customized stock (also recommend which one is better) can get/let me access these apn settings.
Thanks!
answered!
Hi,
Had the exact same issue and got it fixed ..
here is how..
if your phone is already rooted..
open play store :
Download any APN database (i use HiAPN ) .. install
use titanium back up(PRO) to make that a system app.
if PRO version not available use root explorer to move the .apk to system/data..
Restart Phone.. SU will pop-up allow .. and Voila!!!
First post helping someone .. please do let me know how it goes ..
Thanks & cheer'S:good:
NeRd^ said:
Hi,
Had the exact same issue and got it fixed ..
here is how..
if your phone is already rooted..
open play store :
Download any APN database (i use HiAPN ) .. install
use titanium back up(PRO) to make that a system app.
if PRO version not available use root explorer to move the .apk to system/data..
Restart Phone.. SU will pop-up allow .. and Voila!!!
First post helping someone .. please do let me know how it goes ..
Thanks & cheer'S:good:
Click to expand...
Click to collapse
thanks
i had the same question on the general subforum so this is good to hear.
welcome
i used Hi APN to test a sim card to set up my phone for GSM use and now ca’t get Sprint data settings correctly set. i need help
NeRd^ said:
Hi,
Had the exact same issue and got it fixed ..
here is how..
if your phone is already rooted..
open play store :
Download any APN database (i use HiAPN ) .. install
use titanium back up(PRO) to make that a system app.
if PRO version not available use root explorer to move the .apk to system/data..
Restart Phone.. SU will pop-up allow .. and Voila!!!
First post helping someone .. please do let me know how it goes ..
Thanks & cheer'S:good:
Click to expand...
Click to collapse
Hi,
I'm going to try it now, but didn't completely understand: Can I do it over the stock sprint rom? I prefer to leave it as is right now, and not add/replace with a customized rom...
Where do I find this apn database? Can I edit it with my local carrier apn settings?
Also, How do I use the titanium backup app to make the apn database to an app?
Isn't the HiAPN an app to begin with?
Also, Do you have the "sprint" s4 as well?
will this work with any apn tweaking program or database?
Thanks!
wolf1o said:
Hi,
I'm going to try it now, but didn't completely understand: Can I do it over the stock sprint rom? I prefer to leave it as is right now, and not add/replace with a customized rom...
Where do I find this apn database? Can I edit it with my local carrier apn settings?
Also, How do I use the titanium backup app to make the apn database to an app?
Isn't the HiAPN an app to begin with?
Also, Do you have the "sprint" s4 as well?
will this work with any apn tweaking program or database?
Thanks!
Click to expand...
Click to collapse
Hi
It simply worked!!!
Thanks, you really "saved" me
Good to know it did.. Anything else you can lemme know :beer:
Sent from my SPH-L720 using xda app-developers app
NeRd^ said:
Hi,
Had the exact same issue and got it fixed ..
here is how..
if your phone is already rooted..
open play store :
Download any APN database (i use HiAPN ) .. install
use titanium back up(PRO) to make that a system app.
if PRO version not available use root explorer to move the .apk to system/data..
Restart Phone.. SU will pop-up allow .. and Voila!!!
First post helping someone .. please do let me know how it goes ..
Thanks & cheer'S:good:
Click to expand...
Click to collapse
Hi,
I have another problem and thought you might have encountered it as well and know how to fix: When i'm trying to do a short dial with a "*" before the number , I'm getting this message :"Connection problem or invalid MMi code". Is there a way to fix it?
Thanks again!
wolf1o said:
Hi,
I have another problem and thought you might have encountered it as well and know how to fix: When i'm trying to do a short dial with a "*" before the number , I'm getting this message :"Connection problem or invalid MMi code". Is there a way to fix it?
Thanks again!
Click to expand...
Click to collapse
Please give me more info ( i have not encountered this issue however my friend did and *#0011# worked for him so..)
which rom are you on ?
did you try *#0011# ?
Please give more details of what you have tried ..
Thanks
NeRd^ said:
Please give me more info ( i have not encountered this issue however my friend did and *#0011# worked for him so..)
which rom are you on ?
did you try *#0011# ?
Please give more details of what you have tried ..
Thanks
Click to expand...
Click to collapse
I'm on stock rom (sprint), software version L720VPUAMF9, and what other info?
'm just getting this annoying message and can't dial any "quick" dial with a "*" (star) before the number....
What does the "#0011#" do?
I'm really at loss and frustrated with the stock rom of sprint and the strange stuff they/Samsung did with the phone...
Is there a way to fix it without installing some customized ROM?
Thanks!
did you check this ?
http://forum.xda-developers.com/showthread.php?p=27453998
NeRd^ said:
did you check this ?
http://forum.xda-developers.com/showthread.php?p=27453998
Click to expand...
Click to collapse
I did now, and it didn't help...when I tried to add a "#" after the number (for instance *151#) I got a "USSD code running" message...what is it????
Somebody can help?...
Could you try a factory reset and let me know....
Edit.. Back up before resetting
and also check the USSD/MMI Fix app on playstore .. please research you will find a slution.
cheer's and good night ..its past 1 am now *yawN*
NeRd^ said:
Could you try a factory reset and let me know....
Edit.. Back up before resetting
and also check the USSD/MMI Fix app on playstore .. please research you will find a slution.
cheer's and good night ..its past 1 am now *yawN*
Click to expand...
Click to collapse
Hi,
1. I'm afraid to do a factory reset, as it will (most likely) cancel the "unlock" sprint done for us, won't it????
2. What is this USSD/MMI fix app.... just checked it, and it looks like some safety issue, not something that will allow/let me do a "speed dial" with a * before the number
Thanks!
someone?
wolf1o said:
Hi,
1. I'm afraid to do a factory reset, as it will (most likely) cancel the "unlock" sprint done for us, won't it????
2. What is this USSD/MMI fix app.... just checked it, and it looks like some safety issue, not something that will allow/let me do a "speed dial" with a * before the number
Thanks!
Click to expand...
Click to collapse
Someone? Any help with this annoyance will be much appreciated!
Location: UK Network: Vodafone Mobile Data: Working
sheryip said:
i believe you need to root your phone to gain access to the APN to manually connect to the data server
Click to expand...
Click to collapse
Hi, I'm from London and I got a Sprint S4 from the USA. I unlocked it, rooted it and got the mobile data working thanks to this article:
galaxys4root.com/galaxy-s4-tutorials/how-to-unlock-sim-on-sprint-galaxy-s4/
To manually edit APN:
Check attachment
Hope it works for you!

Categories

Resources