[Q] Manually entered APN restore not showing in GUI - Touch Pro2, Tilt 2 Android General

I figured out that the manually entered APNs are stored in /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml.
I entered my APN into it, and backed up the file.
Then I made a recovery install zip with the file.
I wiped out the data, and ran the install zip. It put the previously copied file in the correct location, but when I look at the APNs in the GUI nothing is listed.
Creating a new APN will overwrite the recently restored file. So I am guessing the OS is not seeing the new file.
Does anyone know why? Is there another entry in another file somewhere else that I need to change?

Related

New Official ROM update PREVENT removing HTC_CM_Guardian

Hi all,
In my previous Sprint Mogul ROM, I can safely remove HTC_CM_Guardian.exe and sddaemon.exe by going to \Windows\Startup folder. This is per recommendation from this thread: http://forum.xda-developers.com/showthread.php?t=334536&highlight=htc_cm_guardian.exe
These 2 files created havoc in my previous ROM, including slow connection and short battery life.
However, with the new Official Sprint ROM (which enable GPS) function, I can NO longer remove it because:
1) It's no longer shown in \Windows\Startup folder
2) It's not shown anywhere in the Registry
3) Moving the file to a temp folder (Storage Card) somehow recreate the file.
Any suggestion?
What if when you moved the file to the temp folder, you created a folder or blank text file in the /Windows directory with the same name as the guardian.exe? that might prevent it from recreating itself and starting up.
Or try copying/pasting a blank text file of the same name into /Windows and overwrite the exe
ooshnoo said:
What if when you moved the file to the temp folder, you created a folder or blank text file in the /Windows directory with the same name as the guardian.exe? that might prevent it from recreating itself and starting up.
Or try copying/pasting a blank text file of the same name into /Windows and overwrite the exe
Click to expand...
Click to collapse
I did, but I found out the file is a ROM file, so it's protected. I can copy to a Storage Card, but deleting or replacing it with a bogus file (I created a text file with the same .exe name) will give error that the file is protected.
In the past, I leave the actual .exe alone but just removed the startup shortcut in \Windows\startup. But I could not find any references in the Startup folder or Registry on how the file is started.
lanwarrior said:
I did, but I found out the file is a ROM file, so it's protected. I can copy to a Storage Card, but deleting or replacing it with a bogus file (I created a text file with the same .exe name) will give error that the file is protected.
In the past, I leave the actual .exe alone but just removed the startup shortcut in \Windows\startup. But I could not find any references in the Startup folder or Registry on how the file is started.
Click to expand...
Click to collapse
use total commander or something else other than file explorer.
no2chem said:
use total commander or something else other than file explorer.
Click to expand...
Click to collapse
I've tried Resco Explorer and it won't allow for a deletion of the .exe either.
So the file cannot be deleted. Anyone know how the file is loaded everytime the device reboot? note that it's NOT loaded from \Windows\Startup nor registry.
I was wondering the same thing. It doesn't even show up as a running task or service...
I just made a new connection and set that as my new default one as I was tired of it removing my DNS entries.
are u sure it boots up or the could have renamed it
Yes, it started by itself. I reset my device and using Memaid and SKTool I can see it starting again.
ooshnoo said:
What if when you moved the file to the temp folder, you created a folder or blank text file in the /Windows directory with the same name as the guardian.exe? that might prevent it from recreating itself and starting up.
Or try copying/pasting a blank text file of the same name into /Windows and overwrite the exe
Click to expand...
Click to collapse
I can confirm that this works. Using resco explorer I changed the attributes from a read only file and then copied a text file overtop.
Keystone said:
I can confirm that this works. Using resco explorer I changed the attributes from a read only file and then copied a text file overtop.
Click to expand...
Click to collapse
i tried to change the attributes using total commander and it just resets the settings right back after saving. still stuck...
ok i even tried using resco explorer. it says that its a file in the rom and it cant be deleted. and that was after changing the attributes as well. both times i also killed the running process. are you using the new rom?
Keystone said:
I can confirm that this works. Using resco explorer I changed the attributes from a read only file and then copied a text file overtop.
Click to expand...
Click to collapse
I believe the key here is that he 'copied a text file overtop'.
I don't think you can change attributes or delete a rom file, just copy over it.
worwig said:
I believe the key here is that he 'copied a text file overtop'.
I don't think you can change attributes or delete a rom file, just copy over it.
Click to expand...
Click to collapse
Perfect! this worked.
worwig said:
I believe the key here is that he 'copied a text file overtop'.
Click to expand...
Click to collapse
OK, I didn't bother checking the attributes after the change... Was up past 4 and was trying to remove both the Guardian and ssdaemon. After a success with copy over one I decided to rush and just repeat exactly what I did to the other.
I am using a1jatt's ROM -- a cleaned (not quite enough.. ) ROM of the Sprint release with Telus settings.
i have this rom and ive tried everything that everyone said to work and NOTHING is working. i need help. i dont put another rom on here. i just want the internet and mms working. im using metro pcs on a htc touch pro.
stupidho said:
i have this rom and ive tried everything that everyone said to work and NOTHING is working. i need help. i dont put another rom on here. i just want the internet and mms working. im using metro pcs on a htc touch pro.
Click to expand...
Click to collapse
this sucs
i want R4Reloaded rom I just flashed a Titan on metroPCS
how do I get the settings to stay?
hard reset (so you'll lose everything) then DO NOT let customizations run!!!!
it won't be installed. if you need something else from the extROm you can enable it and selectively install cabs.
hard reset (so you'll lose everything) then DO NOT let customizations run!!!!
it won't be installed. if you need something else from the extROm you can enable it and selectively install cabs.
Cycomachead said:
hard reset (so you'll lose everything) then DO NOT let customizations run!!!!
it won't be installed. if you need something else from the extROm you can enable it and selectively install cabs.
Click to expand...
Click to collapse
and this will allow me access the EPST and ##DIAG# options

I have a CWM 3.0+ updater-script question

Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
UPEngineer said:
Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
Click to expand...
Click to collapse
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
dbu said:
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
Click to expand...
Click to collapse
LOL, what I was thinking too, but it doesn't seem to work, unless I am doing it wrong.
If I replace the file and reboot, the original rebuilds.
If I delete the file completely and reboot, the original rebuilds.
If I replace the file using root explorer after phone has booted and then reboot, my modified file sticks.
That is what I can't figure out. Why it sticks after OS has loaded but rebuilds if the same file is placed before reboot.
And I can't figure out where the file is being rebuilt from.
Uggggg.

[Q] Find cached background image

Hello all.
I've recently had to repair my phone and as a result all the data I had on it was erased. However, the custom background image I picked is still there, although I can't find the original file in any of the folders.
I don't have a SD card, so it could only be on the phone itself.
Does anyone know how I can restore that image? My thoughts are that the system 'cached' it somewhere and I would like to find it. I can't remember it's name, but maybe there's a folder of cached images or something...?
Thank you!
In /system/framework/framework-res.apk there is also a wallpaper which the phone defaults to when booting up for the first time.
Inside framework-res.apk it's located in /res/drawable-hdpi and called default_wallpaper.jpg.
So if you're rooted you can extract it from there and save it somewhere more convenient

[Q] Editing /data/system/packages.xml

Hi guys,
I'm currently trying to manipulate the file /data/system/packages.xml in order to make Android start one of my apps with another user id. However, this doesn't work because it seems that Android recreates the file completely when shutting down the system which means the old user id is being written back into the file.
Without rebooting, changing the file's contents (or even deleting it completely) doesn't do anything either, it seems that the contents are being loaded into the memory on boot.
What I need are your ideas on how I can make my app run as another user (or edit the file permanently) I need this because I want to access another app's non-exported service.
Thanks in advance!
edit: Even if I try editing the file and then shutting down the system unexpectedly (One X, holding down power for like 10 seconds without using the software shutdown), the file is being restored after reboot. When I check the file in CWM after a normal shutdown, it's also back to normal. So I guess Android rebuilds it on shutdown AND on boot.. or something?
edit2: I just tried the following: Rebooting into CWM, editing /data/system/packages.xml from there, checking file contents (worked), rebooting system - file contents restored. I'm starting to think that this isn't the file I have to edit. But which one is it?
edit3: Tried editing /data/system/packages.list instead, didn't work either. The file is also being restored to the original state.
- Android 4.1.1, CM10, German
did u managed anything?got same issue

How do I create an update.zip with the following;

I am working on a motorola phone and would like to do the following;
Remove Chrome
Replace APN file with custom APN
install 2 apks into system all in one update.zip file.

Categories

Resources