[How-To]CyanogenMod 6 -Get Downloads tab back in Market for Non-Sprint Hero Users - Hero CDMA Android Development

****** WARNING do a nandroid backup before doing this in case anything goes wrong, NOTE!! if your already signed into the market this requires doing a Factory data reset before changes will be affected, so backup your data and apps before you do this... ******​
note!! this process is much easier doing on a clean rom install, you just push the eri.xml file, and make the changes to the build.prop file and reboot your phone so the settings will stick.
How to change the sprint tab in the Market back to downloads in CM6.
create an eri.xml file by copying and pasting this into a text file
Code:
<EriFile VersionNumber="1357" NumberOfEriEntries="1" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0"/>
<CallPromptId Id="1" CallPromptText="CallPromptId1"/>
<CallPromptId Id="2" CallPromptText="CallPromptId2"/>
<EriInfo RoamingIndicator="128" IconIndex="1" IconMode="0" EriText="Appalachian" CallPromptId="0" AlertId="0"/>
</EriFile>
replace Appalachian with your carrier id, save the file as eri.xml, and place it in the android-sdk/tools directory.
connect your phone to your pc, open a cmd prompt, cd into the android-sdk/tools dir.
run
Code:
adb pull /system/build.prop
open the build.prop file located in the android-sdk/tools directory with notepad++ or wordpad
scroll down to the line
Code:
ro.product.brand=sprint
replace "sprint" with your carrier id
next scroll down to
Code:
ro.com.google.clientidbase=android-sprint-us
replace "sprint" with your carrier id save the file.
open the cmd prompt cd into the android-sdk/tools directory
and push the build.prop file to your phone with
Code:
adb remount
enter
Code:
adb push build.prop /system
enter
restart your phone with
Code:
adb reboot
reset your phone to factory defaults by going to menu/Settings/Privacy/Factory data reset, after your phone resets, and boots back up, now push the eri.xml file we made earlier by conecting you phone to your pc, opening a cmd prompt, cd into the android-sdk/tools directory
and run
Code:
adb remount
enter
Code:
adb push eri.xml /data
enter
reboot your phone again last time i promise with
Code:
adb reboot
enter.
when your phone boots back up your correct carrier id will be displayed and when you sign back into the market it will be back to normal.

+1, very nice.

what about these entries
ro.cdma.home.operator.numeric=310120
ro.cdma.home.operator.alpha=Sprint

ngholson said:
what about these entries
ro.cdma.home.operator.numeric=310120
ro.cdma.home.operator.alpha=Sprint
Click to expand...
Click to collapse
i just left those entries alone, not positive but I'm guessing they are generic, because they are also present in all stock non-sprint 2.1 rom builds that I've seen.

codejunkie78 said:
i just left those entries alone, not positive but I'm guessing they are generic, because they are also present in all stock non-sprint 2.1 rom builds that I've seen.
Click to expand...
Click to collapse
wow really?? that seems odd certainly there has to be other carrier identifiers for those carriers
o well. thanks for the info!
im going to try and comment them out to see if makes any difference
ok so i changed:
ro.cdma.home.operator.alpha to my carrier id. had no effect as best i can tell.
i did not change the ro.cdma.home.operator.numeric entry.
edit:
on a side note the other changes you suggested also seem to have had no effect. my market still shows a sprint tab. also now it seems that clearing the app data doesn't fix it anymore either..... this is really starting to irritate me.

Thanks works perfectly. Even though I never had to change Appalachian..lol. Nice work.

Hello. I'm on Alltel with an HTC Hero using the CM 6.1 RC1.
This worked fine for removing the general branding but it did nothing for the Marketplace Sprint tab itself.

jfigura said:
Hello. I'm on Alltel with an HTC Hero using the CM 6.1 RC1. This worked fine for removing the general branding but it did nothing for the Marketplace Sprint tab itself.
Click to expand...
Click to collapse
I've found that, for the Tabs fix to stick, I have to go back and repeat the process after flashing a new ROM and signing into the Market.

I've used this for a long time. Always works great! A build or 2 back, my downloads tab in market changed back to sprint. I still have my regional carrier showing on my lock screen and notifications pull down. Is there a way to get the my downloads back without having to do the hard reset? Thanks.

dirtroad said:
I've used this for a long time. Always works great! A build or 2 back, my downloads tab in market changed back to sprint. I still have my regional carrier showing on my lock screen and notifications pull down. Is there a way to get the my downloads back without having to do the hard reset? Thanks.
Click to expand...
Click to collapse
I'm curious as to why you dug so deep and bumped a thread that hasn't been posted in since Nov of 2010...

dastin1015 said:
I'm curious as to why you dug so deep and bumped a thread that hasn't been posted in since Nov of 2010...
Click to expand...
Click to collapse
And, who even still uses 6.0 anymore?
nandroids are for
sissies

dastin1015 said:
I'm curious as to why you dug so deep and bumped a thread that hasn't been posted in since Nov of 2010...
Click to expand...
Click to collapse
Probably so he didn't get flamed for not searching.
Sprint shows up as a market tab for me now too after editing build prop. I am a Sprint user so it's not that annoying, but I would like to have the MyApps tab back.

I never said I used 6 anymore. I've flipped between AOSP and the CM nightlys for awhile. Right now I'm on #125. Like I said, I've used this process for awhile. I keep it bookmarked. I like having MY carrier show and my downloads tab in the market. Sometimes I would have to pull this page up and do as it says. Anyway, all I was trying to find out is if anyone had another way to get my downloads tab back without having to do the hard reset again. If I have to do a clean install then I will.
And yes I've searched.

Related

Google is trying to update my phone

I just got a message saying there is an update available. I told it not to do it. I do not want RC30 because it gets rid of root.
However, the other side of me is tempted to see if telnetd and all the other goodies are still there.
I'm also very tempted to install it to see if it removes root access. I hope someone who doesn't care about root access tests this out and reports back soon, because my curiosity is about to get the better of me.
It won't stop prompting me and I don't think I have the heart to keep saying no.
Look on your phone, and see if there is a file named "update.install" in the /cache folder. Or maybe in the /cache/recovery folder. If so, would you mind grabbing it off your phone and posting it somewhere?
Woobins said:
I'm also very tempted to install it to see if it removes root access. I hope someone who doesn't care about root access tests this out and reports back soon, because my curiosity is about to get the better of me.
It won't stop prompting me and I don't think I have the heart to keep saying no.
Click to expand...
Click to collapse
If you ever do say yes can you tell us what your software version is?
JesusFreke said:
Look on your phone, and see if there is a file named "update.install" in the /cache folder. Or maybe in the /cache/recovery folder. If so, would you mind grabbing it off your phone and posting it somewhere?
Click to expand...
Click to collapse
neoobs said:
If you ever do say yes can you tell us what your software version is?
Click to expand...
Click to collapse
The only file of interest in the /cache directory is named, signed-RC30-from-RC29-fat.1582cace.zip. From this I'm assuming it's going to update my phone to RC30. I've made the file available here in case anyone is curious.
Ah, ok. It looks like that's the same file I just posted a link to then. Thanks
boo
neoobs said:
If you ever do say yes can you tell us what your software version is?
Click to expand...
Click to collapse
It did it.
just as I get home to catch up on the "jailbreak" and start doing it I get an
error while connecting to server, "connection refused"
error while receiving from server null
So I figured I'd check (I neglect my phone when I'm at work, and no, I don't recall accepting the update)
lo and behold:
Build description: kila-user 1.0 TC4-RC30 116143
ota-rel-keys, release-keys​Build ID: TC4-RC30
Build Date: Fri Oct 31 19:00:53 PDT 2008
Build type: user
Phone type: dream
Product brand: tmobile
Build user: android-build
Build host: undroid11.corp.google.com
Linux kernel version: 2.6.25-01843-gfea26b0
[email protected] #6​Mon Oct 6 14:13:36 PDT 2008​Baseband version: 62.33.20.08H_1.22.12.29
RIL Impl version: HTC-RIL 1.0 (Aug 19 2008,21:32:33)
Default keyboard device: trout-keypad-v3
That just proves that RC30 is specificaly out to close the telnet jailbreak method.
No need to apply it to patch/update other parts of the OS since it doesn't have anything else.
MMTest97 said:
error while connecting to server, "connection refused" error while receiving from server null
Click to expand...
Click to collapse
After starting telentd via pTerminal?
quedijo said:
That just proves that RC30 is specificaly out to close the telnet jailbreak method.
No need to apply it to patch/update other parts of the OS since it doesn't have anything else.
After starting telentd via pTerminal?
Click to expand...
Click to collapse
It has more than just that fix. It patches quite a few other packages on the phone... for what purpose? I don't know.
quedijo said:
That just proves that RC30 is specificaly out to close the telnet jailbreak method.
No need to apply it to patch/update other parts of the OS since it doesn't have anything else.
After starting telentd via pTerminal?
Click to expand...
Click to collapse
yes
tried pterminal and terminal emulator
netstat shows the ip
but telnet from pc fails to connect failed on port 23 and the port shown on netstat
I also tried the steps koush put up but still fail
granted I'm no linux/unix pro and I just installed cygwin a couple days after the connect bot app came out; so I may be doing something wrong
Does google check in the new change into the source tree before they push a update?
In addition to jailbreak fix there is a battery fix as well and a few others according to androidcommunity.com.
Well I finally got tired of clicking no and decided to go ahead and perform the update. After it finished, the phone rebooted and instead of booting up, the phone simply displays a '!' icon with a triangle around it and hangs. I'm not taking this as a good sign. I tried removing the battery but that didn't help.
I really hope the update didn't just brick my phone.
Woobins said:
Well I finally got tired of clicking no and decided to go ahead and perform the update. After it finished, the phone rebooted and instead of booting up, the phone simply displays a '!' icon with a triangle around it and hangs. I'm not taking this as a good sign. I tried removing the battery but that didn't help.
I really hope the update didn't just brick my phone.
Click to expand...
Click to collapse
When you're at the screen with the ! and triangle, Try pressing home+back (maybe several times). It should reboot, and hopefully boot back up normally.
JesusFreke said:
When you're at the screen with the ! and triangle, Try pressing home+back (maybe several times). It should reboot, and hopefully boot back up normally.
Click to expand...
Click to collapse
No dice. The phone reboots but still hangs at the error screen. The only thing I can think that might have caused it is that, while playing around, I set a root password and forgot to clear it before the update rebooted the phone. Who knows. I guess I'll call tmobile and see what can be done.
edit: I should mention that pressing alt-w to wipe the phone does not work either. It still returns to the error screen. I'm talking to tmobile tech support now and the original tech said that 'they were informed that a small number of users might experience this problem with the update'. I'm on hold waiting to talk to an android tech now. My advice to everyone who's played around with adding any extra files to /etc to hold off on upgrading for now. I'll report back with the results of my call with the android tech.
Now they're saying they would like to exchange the phone. Problem is the g1 isn't in their replacement program yet.
Aaaand they're out of stock so it's going to be at least 2 weeks.
I wish I'd have just kept hitting no.
Disturbing news, especially as I'm wanting to install a modified rc30. What exactly did you change?
I was playing around with trying to get dropbear to work and in the process I created some files in /etc (passwd, shadow, groups, etc). As well as creating a new regular user, I also added a password to the root account and carelessly forgot to remove it before applying the update. I'm only guessing here but I wouldn't be surprised if the new root password is what did it. The system does not have one by default and I wonder if that caused it to hang, waiting for a password to be entered while booting.
On a brighter note, I persisted and was able to get them to send me out a new phone immediatly. This has the added benefit of possibly fixing the loose-screen/creaking problem that I, like many others, am experiencing with the phone.
I'm wondering if I should try manually applying the update from the SD card while I wait for the new phone to see if that solves the problem. I probably should have tried that before calling. I'm hesitant to do that now, however, since if it does fix it, I'm not sure how tmobile would react to me returning a perfectly working phone.
Woobins said:
No dice. The phone reboots but still hangs at the error screen. The only thing I can think that might have caused it is that, while playing around, I set a root password and forgot to clear it before the update rebooted the phone. Who knows.
Click to expand...
Click to collapse
I don't get it. The update should restore whole /system folder, isn't it? /etc is actually a symlink to /system/etc, so, it should be restored too and passwd file successively removed.
Otherwise, I don't see any problem to keep the root access! Since /system is mounted without nosiud (any changes in RC30?), just keep a copy of shell with chmod 4777 somewhere there... where it wouldn't be removed by update, as it keeps passwd, and that's it.
Please, tell me where am I wrong, cause I definitely should be wrong somewhere.
PS: BTW, what was the progress with dropbear? I actually tried to make it work too, creating passwd etc, but no success...
Dimath said:
I don't get it. The update should restore whole /system folder, isn't it? /etc is actually a symlink to /system/etc, so, it should be restored too and passwd file successively removed.
Otherwise, I don't see any problem to keep the root access! Since /system is mounted without nosiud (any changes in RC30?), just keep a copy of shell with chmod 4777 somewhere there... where it wouldn't be removed by update, as it keeps passwd, and that's it.
Please, tell me where am I wrong, cause I definitely should be wrong somewhere.
PS: BTW, what was the progress with dropbear? I actually tried to make it work too, creating passwd etc, but no success...
Click to expand...
Click to collapse
Unlike the RC29 update, the RC30 update doesn't actually do a complete wipe and restore of the /system folder. It patches a number of files (which will fail if any of them have been modified), and does a recursive chmod on the entire /system directory to clear any suid bits.

Mytouch 3g talking and working google nav

I HAVE CY 4.3.2.1 ROM RUNNING THIS IS WHAT I DID TO GET IT WORKING
I DONT KNOW HOW LONG IT WILL WORK AS I AM ONLY DOING WHAT WAS HAS BEEN DONE BEFORE ME
Copied the following onto my Android's SD card:
http://cid-3cf744d4c83401e6.skydrive.live.com/browse.aspx/.Public
build.prop
build.sapphire.prop
Maps.apk
Unplugged my phone and waited for it to prep the SD card
Fired up the application Terminal Emulator
Typed the following commands:
Code:
suYour phone may prompt you to allow or not allow this, allow it obviously, otherwise wait until you see a # before continuing to the next command
Code:
ashCode:
mount -o remount,rw /systemNext it's time to copy the build files into your system directory, but first you should backup the originals just in case.
Code:
cp /sdcard/build.prop /system
cp /sdcard/build.sapphire.prop /systemRemove the existing Google Maps app
Code:
cd /data/app
rm *Maps*
rm *maps*Code:
when i did this it siad it did not exist but i just keep going!!!
cd /data/dalvik-cache
rm *Maps*
rm *maps***END OF UPDATE**
All done with this part, time to reboot.
Code:
rebootGetting force close prompts for Google Voice? Yeah, go ahead and do the force close. Be sure to wait until your phone is done booting.
Now it's time to actually install the new app. So again, open up Terminal Emulator and type the following code:
Code:
suAgain, allow this command and/or wait until you see a # character
Code:
ash
mount -o remount,rw /system
install /sdcard/Maps.apk /system/app/At this point, I couldn't get things to work like the second post I linked earlier, so I'll did this command...
Code:
rebootGetting force close prompts for Google Voice again? Close the sucker and wait until your phone is fully booted.
Ok the app is installed and you may be thinking you're good to go, but you aren't. It's still not working for you like it wouldn't work for me. Do you have Google Voice installed before you did all this stuff? Most likely!
Go into your phone's settings and Manage Applications
Uninstall Google Voice
Fire up the Market and search for Google Voice
Install Google Voice
Reboot your phone (You can do this by holding the power button and select "reboot phone" or the long way through Terminal Emulator)
Run the Map app (now you may have your old address in there that you tried earlier, never fear. Just clear the map from the map menu)
Put in some directions like you normally would
You should see the option for "Navigate" after it gets the directions. Click it.
Accept the installation of the voice guide thingy
You're done! Revel in the awesomeness!
Get a beer and laugh at your friends with an iPhone
these is what i did exactley and it worked for me
I DONT NO HOW LONG THIS WILL WORK FOR!!!!!!
File to download
http://www.filefactory.com/dlf/f/a1a...apphireNav.zip
dude, the code tags failed. lol
also the link is dead
WOW
theomajigga said:
dude, the code tags failed. Lol
also the link is dead
Click to expand...
Click to collapse
that link died fast lol how do i upload it then i tired here and it says upload failed lol i have the neccsory file but how do i get it to you guys since that link died
i'd first fix the code tags
but im not sure, i think you cp the link wrong honestly.
-T
theomajigga said:
i'd first fix the code tags
but im not sure, i think you cp the link wrong honestly.
-T
Click to expand...
Click to collapse
http://www.mediafire.com/?tyzmnzzkhen
here is another link but this one makes face book crash i belive i dont use face book but thats what g1 users are saying
FOR SAPPHIRE
I read a post earlier about fixing some apps not working.
in build.prop
change to 4 instead of 5.
ro.build.version.sdk=4
Did this and re-ran part 1 and part 2. Works fine with Handcent and facebook app working. haven't got any FC with other apps and navigation still working after a few hours and some reboots.
Uploaded a new .rar with changes to build.prop
http://www.mediafire.com/?jwhmkzay2mm
Extract All to Desktop
Run part 1 - when prompted hit any key and phone will reboot.
when up and running, run part 2.
Test nav by opening google maps and geting directions. Underneath "Show on Maps" you should see "Navigate" If you don't try installing Google Voice (fixed it for a lot of people)
If you did the above and Navigate isn't working, here is a link to the build.prop version that causes some app errors but gets nav Working
http://www.mediafire.com/?tyzmnzzkhen
Skreacher said:
FOR SAPPHIRE
I read a post earlier about fixing some apps not working.
in build.prop
change to 4 instead of 5.
ro.build.version.sdk=4
Did this and re-ran part 1 and part 2. Works fine with Handcent and facebook app working. haven't got any FC with other apps and navigation still working after a few hours and some reboots.
Uploaded a new .rar with changes to build.prop
http://www.mediafire.com/?jwhmkzay2mm
Extract All to Desktop
Run part 1 - when prompted hit any key and phone will reboot.
when up and running, run part 2.
Test nav by opening google maps and geting directions. Underneath "Show on Maps" you should see "Navigate" If you don't try installing Google Voice (fixed it for a lot of people)
If you did the above and Navigate isn't working, here is a link to the build.prop version that causes some app errors but gets nav Working
http://www.mediafire.com/?tyzmnzzkhen
Click to expand...
Click to collapse
how do i run the .bat files on a mac? i double clicked on it and it opened terminal then it rebooted my phone but it was unable to copy the files over.
Code:
cannot stat 'build.prop': No such file or directory
cannot stat 'build.trout.prop': No such file or directory
: command not foundp/Android/tools/Part 1.bat: line 5: pause
logout
In windows all that is required is to extract all files to the same directory (only tried it by having them all on the desktop. then doubleclicking the part1.bat from the desktop.
I'm not familiar enough with OSX but it seems like its not finding the build.prop to push it to your phone.
Google Nav only works in the US
NOTE: Currently Google Nav will only work in the US.
You can get it running (as in install the app) on phones elsewhere in the world, but to actual use the Navigate feature you have to have the GPS turned on (duh) so it knows where you are, and due to licensing issues (I think) the Navigate feature will not work if you are not in the US.
Running Cyanogen 4.2.3.1, I used the files Skreacher provided on my T-Mobile MT3G, running on Mac OS X Leopard...it works! I installed the Text to Speech thing needed as well...Facebook loads as always (some people were having problems) but the only thing is that exiting Navigation sometimes doesn't work (I have to exit twice). Thanks a lot Trying this out on the road tomorrow!
for the semi-noobs, like myself lol, can someone please re-explain which codes to run with Skreacher's added input changes?
sorry dskyers, i'm confused like hell per your intructions.
i forgot to mention i'm kind of slow... lol all i want is google maps nav...
Try instructions at my blog: http://blog.mmayhew.com
Worked like a charm
I followed the instructions at the top of this thread. It works perfectly. Google voice is working too! I was having some trouble with that on my earlier attempts (i think i was using the build.prop's for the G1).
Also, I updated to CY 4.2.4 and there is no breakage. Navigation still works like a charm.
Thanks a million!
mmayhew said:
Try instructions at my blog: http://blog.mmayhew.com
Click to expand...
Click to collapse
Thanks mma, this worked perfectly and you covered all areas needed to get it installed correctly.
@op, thanks for the info and hopefully I don't offend you, but to anyone needing a clear how-to, go to the mma's blog.
I had this working. I used Nav once, then pressed 'Exit Nav' so it would shut up. Now I can't get it back. Help anyone?
Edit: By 'used once' I mean, I had it on for like an hour for a trip I had to make.
detox702 said:
I had this working. I used Nav once, then pressed 'Exit Nav' so it would shut up. Now I can't get it back. Help anyone?
Edit: By 'used once' I mean, I had it on for like an hour for a trip I had to make.
Click to expand...
Click to collapse
Try a phone reboot and test it again.
Anyone run this on any of the hero roms?
mmayhew said:
Try instructions at my blog: http://blog.mmayhew.com
Click to expand...
Click to collapse
EDIT number 1 MILLION!!!!!!!
IT WORKED!!!!!!!!!!!!!! IT WORKED!!!!!!!!!!!!!
ok... IF YOU WIPE YOUR PHONE AND YOU'RE STARTING FRESH, THEN YOU WILL MOST LIKELY HAVE TO SKIP SEVERAL STEPS IN MMAYHEW's INSTRUCTIONS!
I had to skip steps 9 through 18.
but it works!
thanks in advance guys!
thanks again to all!!! later
rydr1 said:
Try a phone reboot and test it again.
Click to expand...
Click to collapse
That would be negative. Still no option for nav.

Workaround for Fixing 'Unsupported Sources'

http://forum.xda-developers.com/archive/index.php/t-644769.html << I got my idea from there.
If you update the
Code:
/data/data/com.android.providers.settings/databases/settings.db
file so that "install_non_market_apps" = 1 instead of 0, you will be able to install non-market apps off of your sdcard or wherever.
This works for me at least, but you'll have to root first.
I ended up editing the file with the SQLite Manager firefox add-on.
But, since that took me a really long time, I'll just upload the edited settings.db for you. (don't forget to make the extention .db instead of .db.txt)
Now, as far as I know, this won't mess anything up... BUT, I'd feel a lot better if someone who knows more about Android would provide some feedback before anyone else tries this. [It works for me, but I'm not sure if any other user-specific settings are kept in that file that I don't know about!]
But, at least for me, I no longer need to use adb to install apks that aren't from the Android Market.
I hope this is useful to someone...
EDIT::
You will lose your settings if you use the attached settings.db.txt file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.
Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.
So--- if you want to side-load apps, change the variable in the database like I explained above.
Sorry, completely new to android but where would you put this file so it would allow side-loading?
You'd have to replace
Code:
/data/data/com.android.providers.settings/databases/settings.db
with it. You'll have to have your phone rooted first though. Then you'll have to transfer the file to your phone with adb, and you'll then copy it over the existing settings.db file.
Honestly, it might not even be worth the trouble now that attn1 is just doing the whole ROMs.
But make sure you take off the .txt.
This works. Thanks.
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
justince said:
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
Click to expand...
Click to collapse
did you boot the phone and do adb remount with debugging enabled?
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
justince said:
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
Click to expand...
Click to collapse
That's why made the ROM without all that -er- stuff.
attn1 said:
That's why made the ROM without all that -er- stuff.
Click to expand...
Click to collapse
Attn's Rom is ****ing great. many thanks btw
a little help please
a bit confused..
how do i type in this code "/data/data/com.android.providers.settings/databases/settings.db"?
adb /data/data/com.android.providers.settings/databases/settings.db
or something else because that doesnt work.
fluffyarmada said:
I'm not sure if any other user-specific settings are kept in that file that I don't know about!
Click to expand...
Click to collapse
The only issue I see (as an Android newcomer, but with a development background) is that the settings.db contains an android_id that is supposed to be unique (it gets generated when you boot the phone the first time after a reset). So anyone installing your settings.db is going to have the same ID.
I'm sure it won't be an issue for most people but I wonder if there'd be a collision in any apps that are designed to communicate between Android devices? For this reason I'll be tweaking my own settings.db once the phone arrives later today.
Big thanks for posting this though!
Thanks for that, I honestly had no idea. I'm very new to Android. And this was a kludge.
fluffyarmada said:
http://forum.xda-developers.com/archive/index.php/t-644769.html << I got my idea from there.
If you update the
Code:
/data/data/com.android.providers.settings/databases/settings.db
file so that "install_non_market_apps" = 1 instead of 0, you will be able to install non-market apps off of your sdcard or wherever.
This works for me at least, but you'll have to root first.
I ended up editing the file with the SQLite Manager firefox add-on.
But, since that took me a really long time, I'll just upload the edited settings.db for you. (don't forget to make the extention .db instead of .db.txt)
Now, as far as I know, this won't mess anything up... BUT, I'd feel a lot better if someone who knows more about Android would provide some feedback before anyone else tries this. [It works for me, but I'm not sure if any other user-specific settings are kept in that file that I don't know about!]
But, at least for me, I no longer need to use adb to install apks that aren't from the Android Market.
I hope this is useful to someone...
EDIT::
You will lose your settings if you use the attached settings.db.txt file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.
Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.
So--- if you want to side-load apps, change the variable in the database like I explained above.
Click to expand...
Click to collapse
NOTE: You MUST have root access in order for this to work
sqlite3 is included in the Android SDK tools, so this would be the best way:
COMMON
Enable USB debugging (settings > applications > development > USB Debugging)
adb remount
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
Linux/OS X
echo "update secure set value = 1 where name = 'install_non_market_apps';"|./sqlite3 settings.db
WINDOWS
echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db
COMMON
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
Reboot phone and sideloading works. (thanks fluffyarmada)
I wonder if this might be why google voice fails to install properly for some...
Sent from my HTC Liberty using XDA App
Cobus said:
I wonder if this might be why google voice fails to install properly for some...
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
It is possible. The Google apps all use the android_id, afaik.
Although, I do remember I was never able to get the settings menu to setup the voicemail forwarding... I always had to use the weird GSM code. (The weird number with a bunch of * and # that you have to type in if you follow google's directions.)
judicious said:
a bit confused..
how do i type in this code "/data/data/com.android.providers.settings/databases/settings.db"?
adb /data/data/com.android.providers.settings/databases/settings.db
or something else because that doesnt work.
Click to expand...
Click to collapse
After you've rooted your phone, download the new settings.db into the same folder as where your adb program is. Then type:
adb push /data/data/com.android.providers.settings/databases/settings.db
in that folder while your phone is connect via usb.
I'm not sure if you have to restart your phone into recovery or not. Can someone check on this?
tiga2001 said:
After you've rooted your phone, download the new settings.db into the same folder as where your adb program is. Then type:
adb push /data/data/com.android.providers.settings/databases/settings.db
in that folder while your phone is connect via usb.
I'm not sure if you have to restart your phone into recovery or not. Can someone check on this?
Click to expand...
Click to collapse
Well, it's
Code:
$ adb push /path/to/file/on/computer/settings.db /path/to/file/on/phone/settings.db
So, if your settings.db is in your tools folder, then you can do
Code:
$ adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
what happen to the file download? i cant find it..
judicious said:
what happen to the file download? i cant find it..
Click to expand...
Click to collapse
Please follow the instructions posted by attn1 on reply number 13 to this thread.
I removed the settings.db, because it actually has a bunch of extra settings I didn't know about like a handset specific android_id variable... that caused me a bit of trouble...
But, follow the instructions on reply #13 on this thread, and you'll be able to fix it yourself.
Sorry for the inconvenience.
so if we already used the file, is there anyway to revert it back to default and then change the settings via the method outlined above? or.. if we failed to make a copy of our original settings.db file.. basically am i SOL?
EDIT: nevermind, just rebooted into Clockwork and wiped the phone.

Data problems on all roms above 2.3.3

I know i'm not the only one having this problem, its been posted about before but no answers so id like to see if someone else who didn't get to see those can see this and come up with a solution..
I use an unlocked G2X with Cincinnati Bell, currently running Weapon. I have no problem at all on any rom though that is 2.3.3, any rom over that like 2.3.4, 2.3.4 etc data has NEVER worked, not i had it but lost it when i rebooted, never . i've never been able to run CM7 or MIUI because of this, and yes before someone suggests it my APN settings are correct i've checked them 1000 times they are the same as when on 2.3.3 roms, i've hard booted after to try to get data flowing a million times, i've followed installation instructions 100 percent and still have never had data working on those roms.
even on the new CM7 where the APN issue is fixed, data still does not work. Its obviously something in roms over 2.3.3 that is creating this problem. I BEG, BEG someone please help find an answer i would love you and most likely donate. Thanks.
58 views and no ideas? anyone, please?
You obviously haven't been checking the Development Section lately. There are many threads on this issue, and it has been fixed already. (Well, for the most part)
FatalityBoyZahy said:
You obviously haven't been checking the Development Section lately. There are many threads on this issue, and it has been fixed already. (Well, for the most part)
Click to expand...
Click to collapse
obviously you didn't read my post. I have NEVER had data work above roms with 2.3.3, most people have it then lose it. I also stated that the new kernel from ttbal and the newest CM where the issues are supposedly fixed I still can't get data. Please, read my post entirely before replying, thank you.
C-4Nati said:
I know i'm not the only one having this problem, its been posted about before but no answers so id like to see if someone else who didn't get to see those can see this and come up with a solution..
I use an unlocked G2X with Cincinnati Bell, currently running Weapon. I have no problem at all on any rom though that is 2.3.3, any rom over that like 2.3.4, 2.3.4 etc data has NEVER worked, not i had it but lost it when i rebooted, never . i've never been able to run CM7 or MIUI because of this, and yes before someone suggests it my APN settings are correct i've checked them 1000 times they are the same as when on 2.3.3 roms, i've hard booted after to try to get data flowing a million times, i've followed installation instructions 100 percent and still have never had data working on those roms.
even on the new CM7 where the APN issue is fixed, data still does not work. Its obviously something in roms over 2.3.3 that is creating this problem. I BEG, BEG someone please help find an answer i would love you and most likely donate. Thanks.
Click to expand...
Click to collapse
try editing the t-mobiles apn to yours that worked for me on simple mobile on cm7 but on the apn dont delete the password n server i think thats it
Ek07 said:
try editing the t-mobiles apn to yours that worked for me on simple mobile on cm7 but on the apn dont delete the password n server i think thats it
Click to expand...
Click to collapse
Yeah I read this in the other thread unfortunately there isn't a apn at all t mobiles or not on CM when I flash it
Sent from my LG-P999 using xda premium
I've been following the development threads, because I too have been having data issues deeper than just missing APNs. It actually seems to be an issue with the entire radio side as a whole on any rom that's not based on the factory firmware. It's become much more stable, but still I can only get a GPS instant lock immediately after a hard reboot and can only receive multimedia messages immediately after a reboot as well. Another thing I've noticed, is I will get a "No internet connection" warning whenever I open the browser, despite having a data connection, and the page still loads.
Also, why do I have to set all my carrier information (my phone number, and voicemail number specifically) when the other factory firmware roms can pull this from the sim card?
I love all the features of CM7 and it's based roms, but the data stability has made it unusable for me.
Ek07 said:
try editing the t-mobiles apn to yours that worked for me on simple mobile on cm7 but on the apn dont delete the password n server i think thats it
Click to expand...
Click to collapse
You can't edit T-MO's one. You can copy and make a duplicate of that and then edit it, but that just beats the point.
And yeah I STILL have the same problem.
I'm not a t-mobile customer so I need to add my APN manually. And yes after a hard I can see my list of APNs and I'm allowed to add APNs but still no data. even after the latest stable version. And even after that with the Dragon Kernel with the supposed APN fix.
Really hope someone can shed some light here.
C-4Nati said:
obviously you didn't read my post. I have NEVER had data work above roms with 2.3.3, most people have it then lose it. I also stated that the new kernel from ttbal and the newest CM where the issues are supposedly fixed I still can't get data. Please, read my post entirely before replying, thank you.
Click to expand...
Click to collapse
I apologize for my ignorance.
FatalityBoyZahy said:
I apologize for my ignorance.
Click to expand...
Click to collapse
Its ok
Sent from my LG-P999 using xda premium
pyromaniac1 said:
You can't edit T-MO's one. You can copy and make a duplicate of that and then edit it, but that just beats the point.
And yeah I STILL have the same problem.
I'm not a t-mobile customer so I need to add my APN manually. And yes after a hard I can see my list of APNs and I'm allowed to add APNs but still no data. even after the latest stable version. And even after that with the Dragon Kernel with the supposed APN fix.
Really hope someone can shed some light here.
Click to expand...
Click to collapse
in cm7 you can edit the tmobiles apn i done it and i got data
---------- Post added at 11:36 AM ---------- Previous post was at 11:34 AM ----------
C-4Nati said:
Yeah I read this in the other thread unfortunately there isn't a apn at all t mobiles or not on CM when I flash it
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
oh ok try going into recovery menu and wipe all data then boot up again maybe then you can see the apn
Since you are rooted go into adb and try the following. Download the attached zip file and extract the "apns-conf.xml" file and put it in the same directory you run adb from. Then execute the following adb commands.
# adb shell mv /system/etc/apns-conf.xml /system/etc/apns-conf.xml.bak
# adb push apns-conf.xml /system/etc/apns-conf.xml
# adb shell chmod 644 /system/etc/apns-conf.xml
Then go into apn settings and press menu and choose to restore to default. The TMO one will still show but now your Cincinnati Bell one should show also; and it will be a default apn like TMO now (they are on equal footing now). Make sure you press the radio button to make the Cincinnati Bell one green, it it wasn't already. Hopefully your data will work after this. Plus you will now have global apn settings automatically for virtually any sim you use from a GSM carrier worldwide.
(Note: Simple Mobile users don't use this - find my special thread for Simple Mobile users).
jboxer said:
Since you are rooted go into adb and try the following. Download the attached zip file and extract the "apns-conf.xml" file and put it in the same directory you run adb from. Then execute the following adb commands.
# adb shell mv /system/etc/apns-conf.xml /system/etc/apns-conf.xml.bak
# adb push apns-conf.xml /system/etc/apns-conf.xml
# adb shell chmod 644 /system/etc/apns-conf.xml
Then go into apn settings and press menu and choose to restore to default. The TMO one will still show but now your Cincinnati Bell one should show also; and it will be a default apn like TMO now (they are on equal footing now). Make sure you press the radio button to make the Cincinnati Bell one green, it it wasn't already. Hopefully your data will work after this. Plus you will now have global apn settings automatically for virtually any sim you use from a GSM carrier worldwide.
(Note: Simple Mobile users don't use this - find my special thread for Simple Mobile users).
Click to expand...
Click to collapse
Thanks for the help, I'm not where near an xda and phone "noob" but i have never used adb I wouldn't feel comfortable trying to do that if it risks bricking my phone. Unless you have any opinion on how doing it or if its not really complicated I don't think I will try that.
C-4Nati said:
Thanks for the help, I'm not where near an xda and phone "noob" but i have never used adb I wouldn't feel comfortable trying to do that if it risks bricking my phone. Unless you have any opinion on how doing it or if its not really complicated I don't think I will try that.
Click to expand...
Click to collapse
There is no risk of bricking your phone if you stick to the commands I gave you. Just highlight and copy them and you can paste them into the command prompt window by right clicking and selecting paste.
Download the attached zip with the adb.exe and two dlls need for it to run. All you are doing is backing up the apn configuration file, replacing it with a new one and setting permissions so the phone can use the new file. Then you reset the apns to default and the phone will set the apns from that file based on the sim in the phone.
Go into settings, applications and turn on usb debugging, if it is not on already. Then connect your phone to your computer and make sure the adb drivers load (you can find the driver pack by searching this site or installing them from the LG Updater app). To make sure the phone is connected in the command prompt window type "adb devices" and hit enter. The phone should be shown as connected. If not, the drivers are not installed.
Run the command prompt from the same directory where you unzip the three adb files and put the apns-conf.xml file in the same directory. That makes it easier for you to do this. It is actually quite simple and will take only a minute or so.
Flashable zip to replace apns-conf.xml file
Here is a flashable zip that can be installed with clockworkmod recovery. It does the same thing but does not back up your existing file. If you are running a stock rom this will prevent an ota from installing. If you are running a custom rom it doesn't matter as you cannot get ota updates anyway.
Just boot into CWM recovery and flash this zip file. Reboot and reset your apns to default.
Ok sweet, should i flash it while on my current rom that works or flash CM7 then flash it?
quick edit- it won't effect my phone being unlocked and lock it will it? after those questions i'm done asking and i will give it a try good sir thanks
Bump
Sent from my LG-P999 using xda premium
C-4Nati said:
Ok sweet, should i flash it while on my current rom that works or flash CM7 then flash it?
quick edit- it won't effect my phone being unlocked and lock it will it? after those questions i'm done asking and i will give it a try good sir thanks
Click to expand...
Click to collapse
The phone remains unlocked once you unlock it. Nothing you will do will relock it.
jboxer said:
The phone remains unlocked once you unlock it. Nothing you will do will relock it.
Click to expand...
Click to collapse
I did your suggestion, flashed the zip. Still didn't work
Sent from my LG-P999 using xda premium
I have some problem and something more.
GPRS data will not work, my default APN is mss.life.com.by, and I see arrows in my status bar, but internet not worked.
So, I changed it to internet.life.com.by(got it from operator instructions) and I anymore see arrows and internet still not work.
I have an idea with broadband, I think in my country other radio frequency.
But I can find other broadband for LG G2x

Rooted AT&T 3.18 JB Stock Wifi+USB Tethering/Hotspot

I made a thread for Rooted AT&T 2.20 about enabling factory tethering. I found out that using this same .db file on 3.18 was not working for me. So I went back and re-edited the telephony.db that came with 3.18 and it seems to work again. I have uploaded the 3.18 version of telephony.db to enable factory hotspot sharing again. I have CleanROM 6 R2 installed and this seems to work well on it. Should work on stock rooted phones as well.
To Install
1. Extract telephony.db into the same folder as your adb.exe
2. Run these commands (they create a backup as well as push the edited database):
>adb shell
[email protected]:/ $ su
[email protected]:/ # dd if=/data/data/com.android.providers.telephony/databases/telephony.db of=/sdcard/telephony.db.bak
>adb push telephony.db /sdcard/telephony.db
>adb shell
[email protected]:/ $ su
[email protected]:/ # dd if=/sdcard/telephony.db of=/data/data/com.android.providers.telephony/databases/telephony.db
[email protected]:/ # reboot
After reboot everything should work fine.
this is awesome, but you got my hopes up with the "rooted 3.18" title. you may want to move that bit to the end of the title. will definitely use this if my phone is ever unlocked again :\
Ha I got all excited too. And I may be wrong, but shouldn't this be in the development section?
lightpost712 said:
I made a thread for Rooted AT&T 2.20 about enabling factory tethering. I found out that using this same .db file on 3.18 was not working for me. So I went back and re-edited the telephony.db that came with 3.18 and it seems to work again. I have uploaded the 3.18 version of telephony.db to enable factory hotspot sharing again. I have CleanROM 6 R2 installed and this seems to work well on it. Should work on stock rooted phones as well.
To Install
1. Extract telephony.db into the same folder as your adb.exe
2. Run these commands (they create a backup as well as push the edited database):
>adb shell
[email protected]:/ $ su
[email protected]:/ # dd if=/data/data/com.android.providers.telephony/databases/telephony.db of=/sdcard/telephony.db.bak
>adb push telephony.db /sdcard/telephony.db
>adb shell
[email protected]:/ $ su
[email protected]:/ # dd if=/sdcard/telephony.db of=/data/data/com.android.providers.telephony/databases/telephony.db
[email protected]:/ # reboot
After reboot everything should work fine.
Click to expand...
Click to collapse
I downloaded file, but seems zip file is empty... I am using Peazip
diekastro said:
I downloaded file, but seems zip file is empty... I am using Peazip
Click to expand...
Click to collapse
I just re-downloaded it and the file is there. Try using a different unzipping program.
lightpost712 said:
I just re-downloaded it and the file is there. Try using a different unzipping program.
Click to expand...
Click to collapse
I tried again with windows pack and winzip... Both shows empty file.
I disabled Eset Enpoint, and I downloaded it 3 times.
However, I am using stock rom and I have the SQLite Editor. What changes did you do? Do you just have to change file 12 'broadband' to 'pta'?
Thanks
diekastro said:
I tried again with windows pack and winzip... Both shows empty file.
I disabled Eset Enpoint, and I downloaded it 3 times.
However, I am using stock rom and I have the SQLite Editor. What changes did you do? Do you just have to change file 12 'broadband' to 'pta'?
Thanks
Click to expand...
Click to collapse
I don't remember which line exactly off the top of my head. I am reattaching the zip file see if that works if that fails then I will go in a compare the standard .db with the new one. It was a simple one line change just don't remember which line it was. Trial and error is how I found it.
Thank you
lightpost712 said:
I don't remember which line exactly off the top of my head. I am reattaching the zip file see if that works if that fails then I will go in a compare the standard .db with the new one. It was a simple one line change just don't remember which line it was. Trial and error is how I found it.
Click to expand...
Click to collapse
I guess you did it using SQLite editor, it works for me.
Make a backup of telephony.db
Your internet APN should be configured (Settings - Mobile data - Access Point names)
1)Open Telephony.db (flange files: data/data/com.android.providers.telephony/databases)
2)Select 'carriers'
3)Search second row, then select Edit field
4)Change ID field with a number non used in this db (ex: in my case the last row is "42" so I used "43") - Save
5)Repeat the 3 and 4 steps, but using row 12.
6)Search the last line (or line with your carrier internet APN)
7)Select the row and Edit Field.
8)Change the ID field to "2". - Save
9)Chose the second row, then Clone Record and change ID field to '12' - Save
Just need to change a lot of things
Row number 2 -> Edit field
1)Change name to ATT Phone
2)Type to "default"
2)Insert_by field to "internal".
3)State to "readonly"
Row number 12 -> Edit field
1)Change name to Entiltlement
2)Type to "entitle"
2)Insert_by field to "internal".
3)State to "hidden"
My phone: HTC One X AT&T 3.18 unlocked and root. Stock rom
Worked great for me with a rooted, s-off HTC First and ST (ATT) SIM. Thank you!
diekastro said:
I guess you did it using SQLite editor, it works for me.
Make a backup of telephony.db
Your internet APN should be configured (Settings - Mobile data - Access Point names)
1)Open Telephony.db (flange files: data/data/com.android.providers.telephony/databases)
2)Select 'carriers'
3)Search second row, then select Edit field
4)Change ID field with a number non used in this db (ex: in my case the last row is "42" so I used "43") - Save
5)Repeat the 3 and 4 steps, but using row 12.
6)Search the last line (or line with your carrier internet APN)
7)Select the row and Edit Field.
8)Change the ID field to "2". - Save
9)Chose the second row, then Clone Record and change ID field to '12' - Save
Just need to change a lot of things
Row number 2 -> Edit field
1)Change name to ATT Phone
2)Type to "default"
2)Insert_by field to "internal".
3)State to "readonly"
Row number 12 -> Edit field
1)Change name to Entiltlement
2)Type to "entitle"
2)Insert_by field to "internal".
3)State to "hidden"
My phone: HTC One X AT&T 3.18 unlocked and root. Stock rom
Click to expand...
Click to collapse
I did all this it worked, it stopped saying "there's temporary network problem that stop the enablement of your... yari yari yari"
but it is not showing tethering status icon at the notification drawer however, it is saying limited service if i connected it with my computer..
somebody gotta help me out pls
BEST REGARDS
brilliant_smart said:
I did all this it worked, it stopped saying "there's temporary network problem that stop the enablement of your... yari yari yari"
but it is not showing tethering status icon at the notification drawer however, it is saying limited service if i connected it with my computer..
somebody gotta help me out pls
BEST REGARDS
Click to expand...
Click to collapse
The AT&T ROMs are a real pain in the butt in regards to tethering and WiFi hotspot. As you are already bootloader unlocked and rooted, I would suggest just flashing any non-AT&T base ROM, and the tethering functions should work properly. Especially if you are not on AT&T, and your carrier does not limit tethering in any way (it looks like you are not located in the US?).
In my opinion, there is nothing "good" about being on the AT&T ROM. Many functions are intentionally broken or hidden, with nothing useful added. So going to a non-AT&T based ROM is "win" all around.
brilliant_smart said:
I did all this it worked, it stopped saying "there's temporary network problem that stop the enablement of your... yari yari yari"
but it is not showing tethering status icon at the notification drawer however, it is saying limited service if i connected it with my computer..
somebody gotta help me out pls
BEST REGARDS
Click to expand...
Click to collapse
Maybe Its late for answer, but did you restar your phone after edit the file?
diekastro said:
Maybe Its late for answer, but did you restar your phone after edit the file?
Click to expand...
Click to collapse
No offense to the OP, but I would suggest not wasting any more time with this method (its been 6 months after all). As I already mentioned in Post #11 above, just flash any custom or stock rooted ROM that is not AT&T base (Sense base - I don't follow AOSP ROMs enough to know how well WiFI hotspot works on those), and WiFi hotspot will work fine.
You are right
redpoint73 said:
No offense to the OP, but I would suggest not wasting any more time with this method (its been 6 months after all). As I already mentioned in Post #11 above, just flash any custom or stock rooted ROM that is not AT&T base (Sense base - I don't follow AOSP ROMs enough to know how well WiFI hotspot works on those), and WiFi hotspot will work fine.
Click to expand...
Click to collapse
yes, really I flashed with T-mobile Sense 5 ROM five months ago, and its better option.

Categories

Resources