[REF] Disable Wifi On Screen Off - Galaxy S I9000 Android Development

Some people have picked up an annoying bug - I'm not sure where it comes from, some believe it is the voodoo kernel, I think it is probably JPC firmware or similar.
The bug: When you have wifi on and you turn the screen off, wifi does not turn off like it should.
The reality: The wifi turn-off time has been reset to the android default 15 minutes. You can change this setting if you want. (I like 10 seconds myself.)
You will need:
1. ADB root shell access.
2. SQLite3 Explorer - http://www.singular.gr/sqlite/
or SQLiteBrowser - http://sqlitebrowser.sourceforge.net/
What to do:
1. shell command: busybox cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
2. adb command: adb pull /sdcard/settings.db
3. Open settings.db in SQLExplorer
4. Right click on gservices or secure folders**, choose 'Show Data'
5. Click on the green plus icon "Insert Record"
6. Double click on name column, insert "wifi_idle_ms" - Double click on value column and insert "10000" for 10 seconds for wifi to turn off. 30000 for 30 seconds, etc.
7. Click on the green tick.
8. Right click on the folder again, choose show data, scroll to the bottom and ensure that your change has been made.
9. File -> Close Database
10. adb command: adb push settings.db /sdcard/settings.db
11. shell command: busybox mv /dbdata/databases/com.android.providers.settings/settings.db /dbdata/databases/com.android.providers.settings/settings.db.bak
12. shell command: busybox cp /sdcard/settings.db /dbdata/databases/com.android.providers.settings/settings.db
13. shell command: chown system.system /dbdata/databases/com.android.providers.settings/settings.db
** I'm not sure if the correct folder is gservices, or secure. I believe secure is the correct one though. I just added it to both.
This is too hard:
If there are 10 or more people who have this bug but can't do the required fix, I'll make a small utility to do it for you. Let me know.

Guess I'm one of the few who really likes this feature/"bug."

kareeem said:
Guess I'm one of the few who really likes this feature/"bug."
Click to expand...
Click to collapse
If you like this bug, you might like this even more!
Settings->Wireless and network->Wi-Fi settings->menu button->Advanced->Wi-Fi sleep policy set to never

Code:
D/WifiService( 2333): setting ACTION_DEVICE_IDLE timer for 900000ms.

RyanZA said:
:
If there are 10 or more people who have this bug but can't do the required fix, I'll make a small utility to do it for you. Let me know.
Click to expand...
Click to collapse
Had a quick google but how do I get my adb shell into root? The rest makes sense.

Really i dont understand why people are so fuzzed about this "bug".Im really happy with it because at home i always use wiffi and usually i stay at home in the afternoons.So i set wiffi settings to never disconect even at night.Data connection over 3g is expensive here in portugal and i have 600mb month limit wich cost about 15 euro plus my normal bill.And its not by having wifi on during 15 minutes that will drain the battery so much.Anyways i want to thank you again for your work and dedication to help people like me that have some dificulties understanding how the android system works.

Treggs said:
Had a quick google but how do I get my adb shell into root? The rest makes sense.
Click to expand...
Click to collapse
adb shell
su
confirm in SuperUser.
done.

xan said:
adb shell
su
confirm in SuperUser.
done.
Click to expand...
Click to collapse
Ah, missed the prompt on the phone. Thanks.

fane1 said:
Really i dont understand why people are so fuzzed about this "bug".
Click to expand...
Click to collapse
Becuae WIFI, uses more battery, when not being used for data, than 3G does.
ANdpossibly, why peoples batteries, are draining so much

fane1 said:
Really i dont understand why people are so fuzzed about this "bug".Im really happy with it because at home i always use wiffi and usually i stay at home in the afternoons.So i set wiffi settings to never disconect even at night.Data connection over 3g is expensive here in portugal and i have 600mb month limit wich cost about 15 euro plus my normal bill.And its not by having wifi on during 15 minutes that will drain the battery so much.Anyways i want to thank you again for your work and dedication to help people like me that have some dificulties understanding how the android system works.
Click to expand...
Click to collapse
If you want, you can use the guide to increase it up to 30 minutes or more. Point is - choice is good.

I am having trouble getting this to work
I am typing
adb pull /sdcard/settings.db
and I am getting
abd: not found
?

This is what I have done,
Opened CMD, in the adb folder.
adb shell
su
accepted SU permissions
#busybox cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
#adb pull /sdcard/settings.db
Am I doing something wrong ?

JaGuR said:
This is what I have done,
Opened CMD, in the adb folder.
adb shell
su
accepted SU permissions
#busybox cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
#adb pull /sdcard/settings.db
Am I doing something wrong ?
Click to expand...
Click to collapse
Nope worked for me. I'm trying to figure out how to edit the file....

Do I need USB debugging on ?

JaGuR said:
Do I need USB debugging on ?
Click to expand...
Click to collapse
Yep
10 char

ryanza, thanks for finding this out. tried but cant get sq3liteexplorer to work on win7 64. i get access violation errors.
hope you'll do a simple script for this. [email protected]

sunwee said:
ryanza, thanks for finding this out. tried but cant get sq3liteexplorer to work on win7 64. i get access violation errors.
hope you'll do a simple script for this. [email protected]
Click to expand...
Click to collapse
I thought I was doing it wrong but that's exactly what I'm getting and I'm on win 7 64 too.
Maybe I should try a compatibility mode...

sunwee said:
ryanza, thanks for finding this out. tried but cant get sq3liteexplorer to work on win7 64. i get access violation errors.
hope you'll do a simple script for this. [email protected]
Click to expand...
Click to collapse
Same here to RyanZA, having trouble gettin ADB, to play corrcetly.
And I know few from whirlpool. that would also appreciate, and easier fix
Cheers

JaGuR said:
This is what I have done,
Opened CMD, in the adb folder.
adb shell
su
accepted SU permissions
#busybox cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
#adb pull /sdcard/settings.db
Am I doing something wrong ?
Click to expand...
Click to collapse
you need to exit before using adb pull

jdrake001 said:
you need to exit before using adb pull
Click to expand...
Click to collapse
Exit from what ?
I just copying what I see in the opening post, and outside of that have NO understaning

Related

[How to] Remove Boot Sound

EDIT: For those who have removed Nand protection as well as toast's root method, please follow these steps:
Code:
adb remount
rm SPC_animation_final.mp3
That's it!!
Enjoy your silent (and "sleeping-wife" friendly) reboots!
For those who have NOT removed Nand protection:
If for some bizarre reason you have only done toast's "step one" then do this instead:
Code:
adb shell
reboot recovery
Once you get to the red triangle/exclamation point screen, run the "recovery-windows.bat" (assuming you're running windows) by double clicking on it (I'm using Vista and did NOT need to "run as admin") and let it do it's thing. Since this opens another command prompt window, just minimize it and go back to the one you had open before, or start a new one. Now...
Code:
adb shell
mount /dev/block/mtdblock4 /system
Your system is now read/write!
Code:
cd /system/customize/resource/
rm SPC_animation_final.mp3
nice post! you should make your title [how-to]
as it stands, it seems like you're asking a question. but, you have an answer! like it!
tells me Dir is not empty lol
timothydonohue said:
nice post! you should make your title [how-to]
as it stands, it seems like you're asking a question. but, you have an answer! like it!
Click to expand...
Click to collapse
Good advice! I changed the title.
Sporkman said:
tells me Dir is not empty lol
Click to expand...
Click to collapse
I changed the technique a bit. Check the first post.
I would love to get the first steps before your commands. I can reboot into recovery, Im just not sure how to enable r/w access, it says its read only.
adb shell
# mount /dev/block/mtdblock4 /system
# cd /system/app
# rm whatever.apk
# rm whatever.odex
brandenk said:
I would love to get the first steps before your commands. I can reboot into recovery, Im just not sure how to enable r/w access, it says its read only.
Click to expand...
Click to collapse
Updated first post to get folks into R/W mode.
EDIT: This is my 555th post!
Only 101 more until I sprout horns and become a republican.
watzone69 said:
Updated first post to get folks into R/W mode.
EDIT: This is my 555th post!
Only 101 more until I sprout horns and become a republican.
Click to expand...
Click to collapse
What happens at 656 posts...?
Gregalous said:
What happens at 656 posts...?
Click to expand...
Click to collapse
I get a calculator.
Ten posts after that I become Damien.
My girlfriend and I both thank you very much for this
Thanks so much man, that was so annoying having to listen to that thing
thanks...
thanks.. I'm assuming if we want to replace the sound with our own we can just overwrite the "sprintcrap....mp3" with something we've renamed to that filename?
EDIT: yah.. I'm dumb... ignore this... LOL also... and please don't flame me on this one... when ya'll say "in a shell"... are just talking about in a CMD window on the PC? I feel like I'm missing something.. I mean I've run all the commands from there.. but am thinking there's something else.
TIA for all your hard work. me and my evo love you!!!! LOL in a technical kind of way of course.

[MOD] 3-Click QuickTempRoot TerminalMOD :/

Alright all,
I know there's another thread about "easier" method, but this is easiest for me. 3-Clicks after installation.
I was really tired of typing the same crap over and over after rebooting just to get my temproot back to do more testing/playing.
So I redeveloped this to be quicker/easier upon reboot. Mainly I altered the Term app to be have a scripted start-up on the 1st 3 launches.
I also updated the su/Superuser combo with ChainDD's latest stuff.
Here's how it works, after it's installed.
3ClickTempRooter said:
1) You run the terminal app once, wait a few seconds and it disappears.
2) You run the terminal again, wait for it to FC.
3) You run the terminal a final time and receive root.
Click to expand...
Click to collapse
Now on each reboot, it will be simply 3-clicks (running terminal app 3 times).
Finally ... any executable script placed in /data/local/tmp will be in the path of the new terminal mod. This makes running other scripts very easy.
Installation
Download the attached QuickTempRooter.zip and place it in a directory and unpack it.
Turn on USB debugging and install through adb ...
Here's the adb installation snippet ...
Code:
adb kill-server
adb push su /sdcard/su
adb push Superuser.apk /sdcard/Superuser.apk
adb push busybox /data/local/tmp/busybox
adb push rage /data/local/tmp/rage
adb push root /data/local/tmp/root
adb shell chmod 0755 /data/local/tmp/busybox
adb shell chmod 0755 /data/local/tmp/rage
adb shell chmod 0755 /data/local/tmp/root
adb shell 'pm uninstall com.android.term'
adb install Term.apk
Has made my life wayyy easier when playing with this phone while we wait for the real-deal!!!
Hope you enjoy!
NOTES
If you get a permission denied on the ''adb shell 'pm uninstall com.android.term' '' ... this is normal if you don't have a terminal already installed or have an alternate terminal app (using a namespace other than com.android.term.
If you have another Terminal App installed, you may want to uninstall it first, to avoid confusion.
Also, you may need to reboot after the initial installation for it to work properly!
ummmmm.....Enomther??
Did you get a G2 already?
Great to see you helping out with this
Great to see you here man! Trying this now can't wait to get themes rolling once we get permanent root!
Sent from my T-Mobile G2 using XDA App
I get a permission denied response when running "adb shell 'pm uninstall com.android.term'"
burton14e7 said:
I get a permission denied response when running "adb shell 'pm uninstall com.android.term'"
Click to expand...
Click to collapse
If you didn't already have a terminal app installed that error is normal. Also you may need to reboot once after the initial installation for it to work properly.
~enom~
Thank you sir. Appreciate the goodness.
damn i wish i could hit the thanks button
Thanks man good to have you on the G2 too
Sent from my T-Mobile G2
enomther said:
If you didn't already have a terminal app installed that error is normal. Also you may need to reboot once after the initial installation for it to work properly.
~enom~
Click to expand...
Click to collapse
good to see you on this side.... i have terminal app installed rebooted but still get this denied when running adb shell 'pm uninstall com.android.term
Edit: fixed it uninstalled the Android Terminal E,ulator and just ran the setup now have root thanks
Thank You..
Enom.. (sigh)
Welcome Home..
thank u so much now i can wireless tether. easiest root ever
Sorry, this is my first Android. I came from WM and I was pretty good with it.
I've searched XDA, Youtube, and web to ADB and SDK. I've downloaded it and it's installed. The only thing I don't get is when you said to
"Download the attached QuickTempRooter.zip and place it in a directory and unpack it."
You mean place the extracted files into the sd card correct? That's why the command is "adb push su /sdcard/su".
ddgarcia05 said:
Sorry, this is my first Android. I came from WM and I was pretty good with it.
I've searched XDA, Youtube, and web to ADB and SDK. I've downloaded it and it's installed. The only thing I don't get is when you said to
"Download the attached QuickTempRooter.zip and place it in a directory and unpack it."
You mean place the extracted files into the sd card correct? That's why the command is "adb push su /sdcard/su".
Click to expand...
Click to collapse
No, he means on your PC. You are running adb to push files contained in the zip to your phone.
HamNCheese said:
No, he means on your PC. You are running adb to push files contained in the zip to your phone.
Click to expand...
Click to collapse
So they go into the tools folder? Damn. I think I've in over my head here.
Like this?
If you have better terminal, you can also add the rage and root to specific keys.
At this command I'm getting told "failed to copy 'su' to '/sdcard/su': Read-only file system"
adb push su /sdcard/su
kevdawg said:
At this command I'm getting told "failed to copy 'su' to '/sdcard/su': Read-only file system"
adb push su /sdcard/su
Click to expand...
Click to collapse
Unplug then plug ur phone back in then try again also make sure u are in usb debug mode
Good work, Temp root in like 5 seconds
Quick question, ok I was able to get root for a few mins, then it went away I guess I have to have the terminal always open or ignore so my taskiller doesnt terminated it?
Don't use task killers. (IMHO)
But I tend to have to reboot every once in a while to keep root in tacked within terminal but all my apps seem to stay with su permissions until reboot (or sometimes 12 hours)

[FIX] Wifi Sleep Policy

So I'm sure you all have noticed, especially if downloading something, when the screen turns off the Wifi on the Fire "sleeps" until the screen comes back on. So you try to change that setting. But low and behold....ITS MISSING!?
I come with a fix. I'll warn ya, its messy.
ADB:
Connect the Kindle Fire to your computer using a USB cable and tap "Disconnect Now"
Connect to the Fire using adb and open a shell and type adb shell (or your operating system's equivalent) and hit enter
run
Code:
su
run
Code:
cd /data/data/com.android.providers.settings/databases
run
Code:
cp settings.db settings.db.bak
run
Code:
cp settings.db /mnt/sdcard
Mount the Kindle Fire on the computer
Copy settings.db off your sdcard and onto your desktop
Open SQLite Browser and open the settings.db file that you just placed on your desktop
In the SQLite Browser, open the "Browse Data" tab, select "system" from the table list; scroll to the bottom.
Click the "New Record" button.
Double-click the first blank entry area to bring up the value editor.
Type
Code:
wifi_sleep_policy
Click Apply.
Double click the second blank entry area.
Type one of these integers in (Whichever you prefer) :
Sleep When Screen is Off -----> 0
Sleep When NOT Plugged In ---> 1
Never Sleep --------------------> 2
Click Apply.
Click Save.
Copy the settings.db file you just modified back onto your Kindle Fire.
Click the Disconnect button on your Fire.
Open your shell window and type
Code:
adb shell
(if you are no longer in shell or closed your shell window)
run
Code:
su
run
Code:
cp /mnt/sdcard/settings.db /data/data/com.android.providers.settings/databases/settings.db
run
Code:
cd /data/data/com.android.providers.settings/databases
run
Code:
chmod 660 settings.db
run
Code:
chown system.system settings.db
run
Code:
ls -l
The last command verifies that your modified settings.db matches the same user and group and has the same permissions as your original (settings.db.bak)
Reboot and Enjoy!
Wouldn't be easier to just use on of the apps that does this from market that way it's easy to switch between them
Sent from my DROID2 GLOBAL using Tapatalk
CrackMonkey91 said:
Wouldn't be easier to just use on of the apps that does this from market that way it's easy to switch between them
Sent from my DROID2 GLOBAL using Tapatalk
Click to expand...
Click to collapse
Some people have had issues with said apps. If the User wants yo use the apps and they work, fine. If they want to use this method, fine. I'm just offering this as an option. Not saying anyone has to do this...
Hmmm....my kindle cannot boot up after applying the change stuck on the "kindle fire" screen
---------- Post added at 11:06 PM ---------- Previous post was at 10:19 PM ----------
ipccheng said:
Hmmm....my kindle cannot boot up after applying the change stuck on the "kindle fire" screen
Click to expand...
Click to collapse
Got it fixed - step 26 should be "chown system.system settings.db" ("." instead of ":")
works great, thanks for the info and the other posters mentioning the invalid colon.
ipccheng said:
Hmmm....my kindle cannot boot up after applying the change stuck on the "kindle fire" screen
---------- Post added at 11:06 PM ---------- Previous post was at 10:19 PM ----------
Got it fixed - step 26 should be "chown system.system settings.db" ("." instead of ":")
Click to expand...
Click to collapse
thanks for noticing the typo/issue.
edited op. its now fixed
I need to root my Fire first to do this correct?
tried this last week and have "mixed" results.
sometimes wifi seems to be in after turning screen on. sometimes the wifi is off and going inti the status menu shows its turned off. the setting has to be toggled.
since then I've been thinking, doesn't spare parts have this option? the setting is already there since I modified the file. I'm wondering if spare parts would successfully do this.
Never thought of that!
Try it. It cant hurt!
Won't have to worry about this much longer though.
Just broke my Kindle reverting the mods. I didn't set the permissions DOH!
Spare parts seems to work on my KF. Just installed it from the market and let it go to sleep. Turned it back on, and wifi was still connected.
EDIT: Never mind. I guess I didn't give it enough time. Spare parts did not work to keep wifi from going to sleep.
This is an 'issue' they could correct with a software update right?
For those who don't want to chance this mod, I downloaded "Wifi Keep Alive" from the market and it worked like a charm.
baj24 said:
For those who don't want to chance this mod, I downloaded "Wifi Keep Alive" from the market and it worked like a charm.
Click to expand...
Click to collapse
Do you have an apk for this? Thanks! (I only ask because I have yet to root my KF and would like to sideload it and I can't seem to find a proper apk searching google...crazy I know, lol)
sqlite3 tools
It can edit settings.db on kindle fire. You do not need copy out .
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name, value) values ("wifi_sleep_policy", “2” );
ctrl+d
It will be ok.
likeitnot said:
Do you have an apk for this? Thanks! (I only ask because I have yet to root my KF and would like to sideload it and I can't seem to find a proper apk searching google...crazy I know, lol)
Click to expand...
Click to collapse
I attached the WiFi Keep Alive apk. It's been working great for me.
So, I thought I set permissions correctly on my settings.db.bak file before deleting my new settings.db and renaming the backup, but apparently I did not because I am in a boot loop. Anyone know of a way out of this situation?
Nvm, used zergRush to tmp root and change permissions.
It would be nice if we could have wifi stay on only if plugged in.
CptanPanic said:
It would be nice if we could have wifi stay on only if plugged in.
Click to expand...
Click to collapse
WiFi Keep alive has three modes:
1. WiFi off if screen off (White widget)
2. WiFi on if screen off (Green Widget)
3. WiFi on if screen off & charging (Amber Widget)
I keep it on Green personally...

digix sophix 8" tablet root 840g

hey this took me a few hours, i know a bit about androids and it gave me a hard time... thought i would share:
digix sophix 8" tablet root 840g
1: make sure you install your adb drivers, and your tablet is connected to your pc with usb debug mode on, and install unknown sources on.
2. goto your platform-tools adb dir and copy the attached zip files to that dir..
3. run command prompt navigate to your adb platform-tools dir
4. you could create a script, but i had to do it by hand, run these commands from your dos prompt:
Code:
adb shell mount -o rw,remount /system
adb push superuser.apk /system/app/superuser.apk
adb push su /system/bin/su
adb push su /system/xbin/su
adb shell chmod 7655 /system/bin/su
adb shell chmod 755 /system/bin/busybox
adb shell chmod 644 /system/app/Superuser.apk
adb shell chown root:shell /system/bin/su
adb shell chown root:shell /system/xbin/su
adb shell chown root:shell /system/app/Superuser.apk
adb reboot
i hope that works, cause thats all i should have had to do, and i ended up doing a ton of other things that i didnt need to... i had to re-install google apps, and market cause when i tried to root it i accidentially deleted em somehow....
but that should work.. if not.. you can understand the method of the script, and something can be worked by this im pretty sure!
my neighbor bought this tablet at gamestop.. i rooted it for him.... pissed me off for a while... it would be nice if someone could verify this... thanks!
enjoy!
Can you private message me..i really want to root my new sophix tablet... old methods are not working
does either of your tablets freeze all the time? I tried reflashing and everything went through but it still freezes
deathspankd said:
does either of your tablets freeze all the time? I tried reflashing and everything went through but it still freezes
Click to expand...
Click to collapse
I just got mine, and yeah it has frozen up a couple of times. Not all the time, but still annoying. I might return it if it keeps happening.
This is my first time rooting anything.
I have no idea what the first post means past step 1. Can I get some help?
SanguineNoir said:
This is my first time rooting anything.
I have no idea what the first post means past step 1. Can I get some help?
Click to expand...
Click to collapse
I've made a batch script that should help you. It automatically pushes Superuser and the SU binary to their proper places, fixes permissions, and reboots the device over ADB.
I haven't tested it on my father's 840G yet, so use it at your own risk, but theoretically everything should work.
jerbear294 said:
I've made a batch script that should help you. It automatically pushes Superuser and the SU binary to their proper places, fixes permissions, and reboots the device over ADB.
I haven't tested it on my father's 840G yet, so use it at your own risk, but theoretically everything should work.
Click to expand...
Click to collapse
Hey thank you so much.
However, i'm still confused/cautious.
So I got my ADB drivers from adbdriver but when I start the batch it says: Daemon not running, and then Daemon sucessfully started and then nothing. I left it for 15 minutes but nothing happened...what'd I do wrong?
SanguineNoir said:
Hey thank you so much.
However, i'm still confused/cautious.
So I got my ADB drivers from adbdriver but when I start the batch it says: Daemon not running, and then Daemon sucessfully started and then nothing. I left it for 15 minutes but nothing happened...what'd I do wrong?
Click to expand...
Click to collapse
It didn't recognize the device. How exactly did you install the drivers? It would have proceeded if they were correctly installed.
Go into ADB and type:
Code:
adb devices
If nothing comes up the tablet's not on, not plugged in, or the drivers are incorrectly installed.
Worst case scenario, download TeamViewer and I'll try to help you remotely.
SanguineNoir said:
Hey thank you so much.
However, i'm still confused/cautious.
So I got my ADB drivers from adbdriver but when I start the batch it says: Daemon not running, and then Daemon sucessfully started and then nothing. I left it for 15 minutes but nothing happened...what'd I do wrong?
Click to expand...
Click to collapse
I've linked another version of the batch in my first post in this thread. It's got a command that I believe is causing the issue commented out, as well as a bit more troubleshooting.
Also, there's a thread now that has a 15 second ADB driver installer. If the batch still doesn't work, download it here.
jerbear294 said:
I've linked another version of the batch in my first post in this thread. It's got a command that I believe is causing the issue commented out, as well as a bit more troubleshooting.
Also, there's a thread now that has a 15 second ADB driver installer. If the batch still doesn't work, download it here.
Click to expand...
Click to collapse
Yeah it's not showing up. I installed all the drivers correctly.
I'll grab team viewer and we'll just figure it out tomorrow, Reach me on skype at SanguineNoir
SanguineNoir said:
Yeah it's not showing up. I installed all the drivers correctly.
I'll grab team viewer and we'll just figure it out tomorrow, Reach me on skype at SanguineNoir
Click to expand...
Click to collapse
I would Skype you, but my mic's messed up right now. Once you grab TeamViewer, PM me the computer ID and password and I'll connect to find out what's wrong. Hopefully by then I figure out what's wrong with my mic.
sophix 840G TAB ROOT WORKS!!!!
Baidu root 2.3.9.......rooted mine an then I installed supersu for tablets off play store/ but there are no recoveries or custom ROMs for it

[Q] Problem sideloading kodi.tv

I am having issues. The first time I tried this I thought it was a success as I went through the steps and got the loading screen on the fire tv to come up. I waited for about 10 minutes and then the firetv reset but Kodi did not install.
Now I am trying to do it and when I hit enter after the string to sideload the .apk nothing happens. I get no response in the terminal and it just goes to the next line. I cannot figure this out for the life of me.
I am using terminal on a mac. This method http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/
please help.
Try the additional "-r" option during install ('-r' means reinstall the app, keeping its data).
For e.g.:
Code:
adb install -r kodi.apk
Calibaan said:
Try the additional "-r" option during install ('-r' means reinstall the app, keeping its data).
For e.g.:
Code:
adb install -r kodi.apk
Click to expand...
Click to collapse
Thanks - I am brand new to mac so this is new to me. So basically my string would be
./adb install /Users/YourUserName/Desktop/-r filename.apk
?
seagood3 said:
Thanks - I am brand new to mac so this is new to me. So basically my string would be
./adb install /Users/YourUserName/Desktop/-r filename.apk
?
Click to expand...
Click to collapse
No. The option "-r" must be used before the complete path to the APK file. Have a look:
Code:
./adb install -r /Users/YourUserName/Desktop/filename.apk
Calibaan said:
No. The option "-r" must be used before the complete path to the APK file. Have a look:
Code:
./adb install -r /Users/YourUserName/Desktop/filename.apk
Click to expand...
Click to collapse
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
seagood3 said:
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
Click to expand...
Click to collapse
Couldn't you use adbfire on your mac..... it's available from this link http://forum.xda-developers.com/showthread.php?t=2786505 it might make things a little easier...
slackbladder said:
Couldn't you use adbfire on your mac..... it's available from this link http://forum.xda-developers.com/showthread.php?t=2786505 it might make things a little easier...
Click to expand...
Click to collapse
I haven't used that because I am running into all kinds of issues. First I got the "Can't create log file" error. I googled that and see that I need to drag the app onto the desktop or into the applications folder. The problem is when I try to move it I get another error message "The operation can’t be completed because you don’t have permission to access some of the items". I feel like such a newb with this Mac. I have no clue how to troubleshoot.
any help?
Any chance you have a Windows PC connected to your network that you can try? I did this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-windows/) and had no issues.
If you can get ES File Explorer onto the FireTV, then you can go to Network/Cloud and add an account, connected it to a Dropbox account, then just download apks and open them from ES File Explorer, you won't need the PC or adb any more.
seagood3 said:
I just tried this and got the same issue where when I hit return, it just drops down to the next line. I don't understand this.
Click to expand...
Click to collapse
Can you even connect to the aTV?
Try some ADB commands to see if ADB does really work:
Code:
adb devices
This should list all via ADB connected devices. If the list is empty you´re not connected.
When your device is connected try some basic shell commands:
Code:
adb shell
This opens a bash shell. Within this shell type
Code:
ls
and the directory content of the actual folder should be listed.
ADB shell can be left with:
Code:
exit
If this isn´t working, check your ADB version you have installed and try to install a newer/other one. I had such an issue once on Windows with an Android tablet which couldn´t be connected with the ADB version I had already installed on my PC so I took another ADB version and it worked. Of course this shouldn´t be but it seems that this can happen.
Another hint might be your problems regarding adbfire. Perhaps your user restrictions prevent ADB from proper working. I´m not firm on MAC´s but I think they support the "sudo" command (explanation: http://en.wikipedia.org/wiki/Sudo). So try your ADB commands again with an additional sudo before similiar like this:
Code:
sudo adb install kodi.apk
I can't figure this out - I am following this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/) perfectly and I got it to work the first time but it just didn't complete it for some reason and now every time when I hit enter on the last step nothing happens.
I can't use the adbfire app because of the other issue.
WTF? why isn't the method through terminal working?
seagood3 said:
I can't figure this out - I am following this (http://sideloadfiretv.com/sideload-apps-amazon-fire-tv-mac/) perfectly and I got it to work the first time but it just didn't complete it for some reason and now every time when I hit enter on the last step nothing happens.
I can't use the adbfire app because of the other issue.
WTF? why isn't the method through terminal working?
Click to expand...
Click to collapse
I don't know...on mac you need to use ./ unless you configure it otherwise so to connect I'd type ./adb connect myipaddress
If you are connecting then you have adb working. I use adbfire but here's what I'd do...
I like keeping my adb folder with platform tools on my desktop. Put the apk you want to install in that folder
type "cd" <space> then drag the whole folder into the terminal--hit enter
now type ./adb connect youripaddress--hit enter
if it says connected type ./adb install<space>then drag the apk from inside your adb folder right into the terminal--hit enter
If you did it right nothing will happen instantly. It depends on how fast your connection is. Wait up to 5 minutes I'd say and you'll either get a success message of an error. If it's the latter, post it here.
Did you read my previous topic and tried what I´ve written?
Forget this Howto since it is just a general guideline and it can´t help you with your actual problem since it is more or less a first time installation guideline but you have already had a previous installation which makes the difference. It can also not deal with restrictions on your system side for e.g. if ADB wouldnt´be allowed to access USB.
If you´re sure that your system is not restricted anyway and ADB should work and if you still prefer to work only with this guideline do a factory reset within your FireTV. This should set the box in a state back again where this guideline should work how it is intended.
Or try SPMC from Amazon App Store which would be the easiest way:
http://www.amazon.com/Semperpax-SPMC/dp/B00MK49LL8

Categories

Resources