I see there is already a method to update non market app installs(sideloading), however it requires you buy Root Explorer(which is a good app to buy), but here is a guide for us cheap people:
This requires that you have already rooted your phone.
WINDOWS from the android sdk tools folder in a command prompt:
Code:
adb shell
su
chmod 666 /dbdata/databases/com.android.providers.settings/settings.db
exit
exit
adb pull /dbdata/databases/com.android.providers.settings/settings.db settings.db
echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db
adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
LINUX/MAC from the android sdk tools folder in a terminal:
Code:
./adb shell
su
chmod 666 /dbdata/databases/com.android.providers.settings/settings.db
exit
exit
./adb pull /dbdata/databases/com.android.providers.settings/settings.db settings.db
echo "update secure set value = 1 where name = 'install_non_market_apps';"|./sqlite3 settings.db
./adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
Thanks to ATTN1 and FluffyArmada, most of it was stolen from the HTC Aria.
Thank you... I was trying to do this last night and kept having permissions problems.
the last step shld be
adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
Thanks, fixed the typos.
If I start a adb shell and add su, I get a access denied message.
Thanks for any help.
Shouldn't the line for pushing the file be:
Code:
./adb push [b]settings.db[/b] /dbdata/databases/com.android.providers.settings/settings.db
for linux/mac?
Thanks for the tutorial, by the way!
Edit: wow, nevermind, it's already been posted. That's what I get for not reading (and comprehending) the thread.
You're missing the first settings.db in the last command for windows. It should read
Code:
adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
smitty1 said:
If I start a adb shell and add su, I get a access denied message.
Thanks for any help.
Click to expand...
Click to collapse
Go to the homescreen of your phone, then type su in the command prompt. The Superuser app should pop up and ask for permission, just allow it then continue like normal.
unclejimbo88 said:
You're missing the first settings.db in the last command for windows. It should read
Code:
adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
Click to expand...
Click to collapse
Thanks, don't know how I missed that, I've updated the post.
no settings.db file
Hello,
Thank you for the video instructions.
shad0wf0x, I tried to input the command lines but it was stating:
Unable to chmod /dbdata/databases/com.android.providers.settings/settings.db: Operation not permitted
How do I get around that? Also, I looked in the phone's root directory and didn't see a folder named "dbdata".
Thank you in advance.
***Edit: Nevermind, I got it to install the way you showed on how to install SirusXM. Thank you.***
I've tacked this method into the consolidated thread, we're up to 5 methods now.
http://forum.xda-developers.com/showthread.php?t=738376
Even better, Sideload Wonder Machine. Doesn't even require root access.
Link to the app.
I'll reply in the my thread, so..
We really need a thank you system, really appreciate the spread of knowledge here, thanks
Got it to work perfectly for me, the other methods seem so much longer and more steps, this was very easy.
But you need to add one final step, turn off your phone and turn it back on or 'reboot' basically..
Thank you very much!
/dbdata/ is empty
This has been driving me bonkers for the past few days...I can't change settings.db because I don't HAVE settings.db. (And I get an 'insufficient permissions for device' error using ./adb shell anyway.) /dbdata/ is completely empty. A search from ASTRO shows no results for com.android.providers.settings or settings.db.
I have no idea what to do! None of these methods work for me, because they are all doing the same thing: editing a file which does not exist on my phone. (I should also point out that I don't really have access to a windows machine right now.)
Thanks in advance. Any help is appreciated.
MacBook:~ User$ cd /Users/User/Desktop/AndroidHacks/SDK/platform-tools
MacBooklatform-tools User$ ./adb shell
$ su
# chmod 666 /dbdata/databases/com.android.providers.settings/settings.db
# exit
$ exit
MacBooklatform-tools User$ ./adb pull /dbdata/databases/com.android.providers.settings/settings.db settings.db
1865 KB/s (52224 bytes in 0.027s)
MacBooklatform-tools User$ echo "update secure set value = 1 where name = 'install_non_market_apps';"|./sqlite3 settings.db
-bash: ./sqlite3: No such file or directory
MacBooklatform-tools User$ ./adb push settings.db /dbdata/databases/com.android.providers.settings/settings.db
815 KB/s (52224 bytes in 0.062s)
What did i do wrong exactly?
Help please
It appears you do not know what the following line is doing:
echo "update secure set value = 1 where name = 'install_non_market_apps';" | ./sqlite3 settings.db
The | character is called "pipe". It pipes the output of one command to the input of the next. In that line "echo" is a command and so is "sqlite3". The ./ prefix to sqlite3 is an explicit path to the command. Any path the begins with ./ is relative to your "current working directory". So, the original poster is assuming that you are doing this process from a location where there is a copy of sqlite3 in the current directory. And based on the error you got...
-bash: ./sqlite3: No such file or directory
...clearly this is not true.
I'm pretty sure that the Mac has sqlite3 present in the base install, and that it is located within your system $PATH (to be exact, /usr/bin/sqlite3). This means that you ought to be able to run that line without the explicit path. (That is to say change "./sqlite3" to "sqlite3".) Then you can do the "push" line again and you are set.
There is a lot of information in this post. Learn what it all means. The world has changed. Mac power users now have to know this stuff. Once you are comfortable with the idea of commands and piping, research $PATH, you'll learn something.
Hi,
I'm trying to Wake my device using the adb interface.
I works fine is when I turn it off using:
adb shell input keyevent 26
but it does not turn back on using the same
Any ideas?
Thanks!
I tried all kinds of screen capture apps but none of them worked on the FireTV for me. So after too much research, I found this nifty terminal command.
adb shell screencap -p /sdcard/screen.png
NOTE: replace /sdcard/ with desired save location if you want and screen.png with desired image name .png)
Perfect screen captures. Hope this saves someone else some time.
The following command is what I use. It may need to be modified for windows, as I use it in OS X's terminal. The command takes a screenshot, names it with a timestamp, and saves it to the connected PC (not the Fire TV).
Code:
./adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "~/Downloads/firetvscreenshot_$(date +%Y%m%d-%H%M%S).png"
I have the following in my Mac's .bash_profile file so that I can just enter "adbpic" and a screenshot file will appear in my downloads directory.
Code:
alias adbpic='~/adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "/Users/YOURUSERNAME/Downloads/firetvscreenshot_$(date +%Y%m%d-%H%M%S).png"'
fireTVnews.com said:
The following command is what I use. It may need to be modified for windows, as I use it in OS X's terminal. The command takes a screenshot, names it with a timestamp, and saves it to the connected PC (not the Fire TV).
Code:
./adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "~/Downloads/firetvscreenshot_$(date +%Y%m%d-%H%M%S).png"
I have the following in my Mac's .bash_profile file so that I can just enter "adbpic" and a screenshot file will appear in my downloads directory.
Code:
alias adbpic='~/adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "/Users/YOURUSERNAME/Downloads/firetvscreenshot_$(date +%Y%m%d-%H%M%S).png"'
Click to expand...
Click to collapse
That's great!
You don't have to do an 'adb pull' to download the .png file and works with just '>'? Is that an adb feature or perl?
It's probably really easy to make a Windows batch file with the same purpose.
Newcron said:
That's great!
You don't have to do an 'adb pull' to download the .png file and works with just '>'? Is that an adb feature or perl?
It's probably really easy to make a Windows batch file with the same purpose.
Click to expand...
Click to collapse
'>' is shell syntax to redirect the output of a command to a file. The little perl code is there to clean up some end-of-line character conversion caused by adb shell.
Hi,
I try to run a shell script from tasker.
But it won't get executed.
this is an example:
06.46.49/E Run Shell: ->
06.46.49/E Run Shell: ->
06.46.49/Shell runBackground /data/test/test.sh root: true timeout: -1
06.46.49/Shell start process-thread ID 136
06.46.49/E add wait type Shell2 time 2147483647
06.46.49/E add wait type Shell2 done
does anyone has a solution?
ok got it, I had to put "su -c sh" in front of my script
Hi all,
Could anyone please advise how to call TSP FW Update (general) from adb or which file is that?
Since I could not run *#2663# command neither from phone pad nor from adb, so I need to find another way.
Every response is very appreciated.
Thanks,
Gerry
ADB shell
su
am broadcast -a android.provider.Telephony.SECRET_CODE -d android_secret_code://2663
or
am broadcast -a android.provider.Telephony.SECRET_CODE -d android_secret_code://*#2663#