[FIX] Wifi Sleep Policy - Kindle Fire Android Development

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...

Related

[REF] Disable Wifi On Screen Off

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

Bricked my phone after LCD Density Modder

Hi, First I'm not a clever man, nor do I know what I did to brick it but, I used
"LCD Density Modder" on the market and bricked my phone.
https://play.google.com/store/apps/details?id=com.birdapi.android.dpi&hl=en
My phone is bricked, it won't load anything past "Google", I've taken out the battery and put it back in MULTIPLE times, I've tried to reboot into Recovery Mode and get a red Triangle with an error.
I'm on 4.1.1 GSM model, Rooted and Stock ROM.
Is there anyway to fix this issue without completely wiping out my phone? The last backup I did was a week ago by hand, with click and drag.
Thanks for any help, I would appreciate it.
That's not bricking. And the red android is the stock recovery. Your going to need to flash a recovery and flash another ROM.
Sent From My Toro+ via White Tapatalk
First off, your device is not bricked. Bricked means it is irreparable.
Second, all you have to do is get a hold of the stock build.prop file for your ROM build and replace what you currently have with it.
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
First off, your device is not bricked. Bricked means it is irreparable.
Second, all you have to do is get a hold of the stock build.prop file for your ROM build and replace what you currently have with it.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Or this
Sent From My Toro+ via White Tapatalk
Oh, wow, thanks, and that will save my files?
Is there a step by step process? I...am not a clever man =| or if there's a keyword I can search. Thanks...
I'm asking because I can't transfer files via USB to my Galaxy Nexus, nor does my computer detect it.
Download CWM, rename it to cwm.img and place it in the same directory as your fastboot.exe file on your PC
Boot your device into the bootloader
Type: fastboot boot cwm.img
In the CWM menu on your device, navigate the mounts menu and click mount /system
Type: adb pull /system/build.prop
Open it up in a text editor, change the value in the ro.sf.lcd_density to 320 and save it.
Type: adb push build.prop /system/
Type: adb shell chmod 0644 /system/build.prop
Type: adb reboot
Ignore the post I just made,
I found it manually, and rebooted the phone but it's still black screen when I pushe d it to the phone.
"build.prop /system/" sounds wrong though...but I am still shocked I was able to pull it.
I hate double bumping but "efrant" instructions, I pushed it via your manner, which still boots into the black screen via build.prop /system" and it goes to black screen...and I tried pushing to "/system/build.prop" still doesn't work.
Any assistance?
smartedpanda said:
I hate double bumping but "efrant" instructions, I pushed it via your manner, which still boots into the black screen via build.prop /system" and it goes to black screen...and I tried pushing to "/system/build.prop" still doesn't work.
Any assistance?
Click to expand...
Click to collapse
So what did you do exactly? Did you pull the file from your ROM first, modify it, and then push it back?
So, I'm not using ADB kit, I'm using Galaxy Nexus Tookit v 7.4. I pull it through there, and modify it from 241 to 320 by hand. Save the file. Push it back up using the toolkit, and it's not sticking to the ROM.
I push it up, reboot, and check it by re-pulling it making sure it stucks but I keep seeing the 241 density not the corrected 320.
Should, I be pushing to /system/build.prop or "build.prop /system/" ?
Both methods aren't sticking to /system/build.prop
smartedpanda said:
So, I'm not using ADB kit, I'm using Galaxy Nexus Tookit v 7.4. I pull it through there, and modify it from 241 to 320 by hand. Save the file. Push it back up using the toolkit, and it's not sticking to the ROM.
I push it up, reboot, and check it by re-pulling it making sure it stucks but I keep seeing the 241 density not the corrected 320.
Should, I be pushing to /system/build.prop or "build.prop /system/" ?
Both methods aren't sticking to /system/build.prop
Click to expand...
Click to collapse
I don't provide support for toolkit use. Either do it the way I mentioned or ask in the toolkit thread for support if you want to use a toolkit.
It's to do with the permissions that get set on the file when you push it back to the device. it needs to be read only for the group and world
It baffled me for a good while. After pushing the file, do the following.
Code:
adb shell chmod 0644 /system/build.prop
Hope that helps
Sent from my HTC Sensation using xda premium
efrant said:
I don't provide support for toolkit use. Either do it the way I mentioned or ask in the toolkit thread for support if you want to use a toolkit.
Click to expand...
Click to collapse
- Didn't know it was a hassle, my apologizes. I'll try to do it the old school method.
trevd said:
Its to do with the permissions that get set on the file when you push it back to the device. it needs to be read only for the group and world
It baffled me for a good while. After pushing the file, do the following.
Code:
adb shell chmod 0644 /system/build.prop
Hope that helps
Sent from my HTC Sensation using xda premium
Click to expand...
Click to collapse
I had a feeling it was a permissions issue, but wasn't sure how to fix it.
I'll start pulling up the command prompts...wish me luck, thanks for all the help so far guys. I'll do two backup a week from now on, instead of weekly.
Finally got adb in cmd setup, I get a "failed to copy 'build.prop' to '/system/build.prop': Read-Only file system
I'll try it again, I'm pretty sure I forgot a step.
smartedpanda said:
Finally got adb in cmd setup, I get a "failed to copy 'build.prop' to '/system/build.prop': Read-Only file system
I'll try it again, I'm pretty sure I forgot a step.
Click to expand...
Click to collapse
Probably missed this step:
efrant said:
In the CWM menu on your device, navigate the mounts menu and click mount /system
Click to expand...
Click to collapse
efrant said:
Probably missed this step:
Click to expand...
Click to collapse
LOL, yeah I did, got that, did everything from scratch per your instructions, got up to the lovely adb reboot...and nothing, at all, black screen.
I re-pulled it, to make sure the DPI was changed to 320...and it was, and still black screen...=[ I'm really sad now.
smartedpanda said:
LOL, yeah I did, got that, did everything from scratch per your instructions, got up to the lovely adb reboot...and nothing, at all, black screen.
I re-pulled it, to make sure the DPI was changed to 320...and it was, and still black screen...=[ I'm really sad now.
Click to expand...
Click to collapse
Did you change the permissions like trevd suggested?
While booted in CWM with /system mounted:
adb shell chmod 0644 /system/build.prop
If that still doesn't work after a reboot, I suggest you re-flash grab the system image for 4.1.1 from Google's site, extract the system.img, reboot your device into the bootloader, and type: fastboot flash system system.img. It won't wipe your device, but it should fix anything that was messed up. (It will also remove root and busybox and whatever else you have installed on the system partition.
)
FINALLY! SUCCESS! I forgot the permission like you mentioned, but it didn't work the first two times, guess I mistyped something, it worked the third time.
I honestly appreciate all the help, and all the inputs. My phone is at 100%, and I'm doing a backup as we speak now.
efrant said:
Download CWM, rename it to cwm.img and place it in the same directory as your fastboot.exe file on your PC
Boot your device into the bootloader
Type: fastboot boot cwm.img
In the CWM menu on your device, navigate the mounts menu and click mount /system
Type: adb pull /system/build.prop
Open it up in a text editor, change the value in the ro.sf.lcd_density to 320 and save it.
Type: adb push build.prop /system/
Type: adb shell chmod 0644 /system/build.prop
Type: adb reboot
Click to expand...
Click to collapse
I know this thread is dead but I would like to say that this is the single most useful post I've seen in ages! I was looking around for nearly an hour and every post resulted in saying "reflash rom"...
Then I saw this, and worked!! My phone is her old self again
thumbs up!

[ROOT] All 360 Mods

Yesterday, @dproldan and I were editing my build.prop file for the 360. I figure that this might be a good thread to talk about what you have done with your build.prop and what it does.
ro.ambient.enable_when_plugged=false
and not sure if this is also needed,
ro.ambient.force_when_docked=false
This will turn your screen off when the device is docked.
@dproldan also suggests TRYING the CPU throttling property.
hw.cpu.throttle.state=1
If it doesn't work, just change it back to default.
ALWAYS remember to make a copy of the build.prop before you alter it.
XDA:DevDB Information
[ROOT] All 360 Mods, Device Specific App for the Moto 360
Contributors
abuttino, abuttino
Version Information
Status: Testing
Created 2014-10-17
Last Updated 2014-10-16
Yes! no more worries about the display getting the image persistence issue or the wife complaining about the room being illuminated by the watch.
About the throttle property. It is used in the /init.minnow.rc file, at the end you'll see that when it's not set (0), the max frequency is 1GHz, when it's set (1), the max frequency is 600MHz. It does so by writing a value to /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
The valid frequencies, set in the kernel, are 300MHz, 600MHz, 800MHz and 1 GHz. so you can write directly to that and get a direct result:
Code:
echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
This doesn't mean that It will use less battery, but it's something to try.
Awesome! Any chance of turning off automatic HRM? I'm really curious how much battery increases since it turns on every 5 min.
HRM?
abuttino said:
HRM?
Click to expand...
Click to collapse
Heart Rate Monitor
I found the name of the apk that needs to be modified for the HRM but I'm not at home to message dproldan
Any way to change the ambient mode to be always on and/or adjust the brightness?
PsychDrummer said:
Awesome! Any chance of turning off automatic HRM? I'm really curious how much battery increases since it turns on every 5 min.
Click to expand...
Click to collapse
We need to edit a Motorola package, but that will take some time.
For the moment, you could disable the constant monitoring with:
Code:
pm disable com.motorola.targetnotif
This will remove the automatic heart monitoring, but also the default watchfaces and the connection to the motorola app in the phone. The rest of the functions are not modified. You can still access the HRM with the google Fit app.
dproldan said:
We need to edit a Motorola package, but that will take some time.
For the moment, you could disable the constant monitoring with:
Code:
pm disable com.motorola.targetnotif
This will remove the automatic heart monitoring, but also the default watchfaces and the connection to the motorola app in the phone. The rest of the functions are not modified. You can still access the HRM with the google Fit app.
Click to expand...
Click to collapse
Thanks! Will running that command with "enable" instead of "disable" reverse it?
Tonight was a very productive night for the 360!
@dproldan and I were on a conversation on the freenode IRC chat #moto360 and he and I have tested some things out that seem to work extremely well.
The first and most requested thing was to disable the unattended heart rate monitor called "Heart Activity"
So, with your rooted watch in a root/su shell prompt type:
pm disable com.motorola.targetnotif/com.motorola.omni.HealthActivity
Now, until we figure out which EXACT activity is using the pedometer, he suggested we kill the fit app altogether by using this command:
pm disable com.google.android.apps.fitness
If you feel that you MUST disable the Heart Rate program that DOES NOT take your heart rate unattended, or use any battery unless you run it yourself:
pm disable com.motorola.targetnotif/com.motorola.omni.HeartRateActivity
I've seen this mentioned a few times and, figure I would at least put it out there for people to try if they need to.
If you need to root your watch, @dproldan is selling a cradle that he designed and, is a LOT more stable than a self built cat5e connector that can short at any time.
http://forum.xda-developers.com/moto-360/development/cradles-moto360-usb-conection-sale-t2901110
The 360 community needs more devs and people willing to test. If you have any requests, solutions please post in this thread. If you need help with rooting your watch; please don't be afraid to post in the Q&A section of the 360 forum.
PsychDrummer said:
Thanks! Will running that command with "enable" instead of "disable" reverse it?
Click to expand...
Click to collapse
Yes.
Just got Rooted and and been doing little mods here and there, some inverted apps and such. The thing I'm having an issue with is writing to system, the keep getting permission failed, is any one else successfully writing to system. I even edited the 360 superboot.Img to install busybox and still no success. If any one has a solution to this I can start adding some cool mods and possible features.
Did you rename it to boot.img?
I just Rooted using the utility, I have root, just if I try pushing something to system I get a permission denied error, samething with adb remount.
Get the boot image from the post here, rename it to boot.img and do this:
"fastboot boot boot.img"
Stick with the tried and true methods
ok ill try that right now. one question are you pushing to system with the adapter or over BT?
Fastboot is always over USB. ADB commands can be done over b/t
steal25 said:
ok ill try that right now. one question are you pushing to system with the adapter or over BT?
Click to expand...
Click to collapse
To push things to /system, you need to make the partition writable. With previous devices, you'de do that with "adb remount", but the moto360 over bluetooth doesn't allow that, AFAIK. We also don't have a root adb yet, so you need to put things in /storage/sdcard0 from the computer, then move them to the final folder from a root shell
What I've been doing is:
Code:
computer: adb -e shell
moto360: su
moto360: mount -o rw,remount /dev/block/mmcblk0p14 /system
moto360: exit
moto360: exit
computer: adb -e push whatever-you-want-to-push /storage/sdcard0/
computer: adb -e shell
moto360: cp /storage/sdcard0/whatever-you-want-to-push /where-you-want-to-place-it
I hope that makes sense. I have only moved simple things yet, but I hope we'll find better ways soon.
You can push the build.prop over Bluetooth and should be able to remount system too. I've done it every time I've edited my build.prop
dproldan said:
To push things to /system, you need to make the partition writable. With previous devices, you'de do that with "adb remount", but the moto360 over bluetooth doesn't allow that, AFAIK. We also don't have a root adb yet, so you need to put things in /storage/sdcard0 from the computer, then move them to the final folder from a root shell
What I've been doing is:
Code:
computer: adb -e shell
moto360: su
moto360: mount -o rw,remount /dev/block/mmcblk0p14 /system
moto360: exit
moto360: exit
computer: adb -e push whatever-you-want-to-push /storage/sdcard0/
computer: adb -e shell
moto360: cp /storage/sdcard0/whatever-you-want-to-push /where-you-want-to-place-it
I hope that makes sense. I have only moved simple things yet, but I hope we'll find better ways soon.
Click to expand...
Click to collapse
Yep makes sense, been driving me nuts, I even edited the Rooted boot . Img to install busybox and it works but when I ran busybox mount..... It returned couldn't find etc/Fstab. I'll do a little more digging when i get home

[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

Extract Fire TV APKs?

Hi, i have a fire tv and nexus player. I'd like to try and install some of the apps designed for the fire tv to see if they will work on the nexus, seeing as these apps should be designed to be used with a remote.
I've tried following this guide .. http://www.aftvnews.com/how-to-transfer-amazon-fire-tv-apps-to-a-fire-tv-stick/ .. but i must be doing something wrong as i get an error at the last step, maybe i am not entering the directory correctly as i get a 'no such file or directory exists' error.
this is the string i am entering. 'adb pull /data/app/uk.co.bbc.iplayer-2.apk F:/Downloads'
can anyone help?
thanks.
..
hendoben said:
Hi, i have a fire tv and nexus player. I'd like to try and install some of the apps designed for the fire tv to see if they will work on the nexus, seeing as these apps should be designed to be used with a remote.
I've tried following this guide .. http://www.aftvnews.com/how-to-transfer-amazon-fire-tv-apps-to-a-fire-tv-stick/ .. but i must be doing something wrong as i get an error at the last step, maybe i am not entering the directory correctly as i get a 'no such file or directory exists' error.
this is the string i am entering. 'adb pull /data/app/uk.co.bbc.iplayer-2.apk F:/Downloads'
can anyone help?
thanks.
Click to expand...
Click to collapse
Enable ADB DEBUGGING on your Fire TV.
Find the IP address of your Fire TV.
Install adb on your windows machine.
Type
Code:
adb connect 192.168.1.115
(Just replace the IP I listed with your IP address)
then to confirm it connected type
Code:
adb devices
You should get an output like this:
Code:
192.168.1.115:5555 device
then do
Code:
adb shell
then run
Code:
pm list packages -3 -f
You will get an output that looks similar to mine:
Code:
package:/data/app/com.amz.games505.Terraria-1.apk=com.amz.games505.Terraria
package:/data/app/com.concretesoftware.pbachallenge_amazonfree-1.apk=com.concretesoftware.pbachallenge_amazonfree
package:/data/app/com.digitalx.amazonvirtualfireplace-1.apk=com.digitalx.amazonvirtualfireplace
package:/data/app/com.digitalx.amazonvirtualsnowfallhd-1.apk=com.digitalx.amazonvirtualsnowfallhd
package:/data/app/com.dotgears.flapfire-1.apk=com.dotgears.flapfire
package:/data/app/com.ea.life_full_azn-1.apk=com.ea.life_full_azn
package:/data/app/com.edgeway.firefliesambience-1.apk=com.edgeway.firefliesambience
package:/data/app/com.edgeway.moonlightocean-1.apk=com.edgeway.moonlightocean
package:/data/app/com.edgeway.perfectstorm-1.apk=com.edgeway.perfectstorm
package:/data/app/com.edgewaysoft.snowyambience-1.apk=com.edgewaysoft.snowyambience
package:/data/app/com.edgewaysoft.stormyambience-1.apk=com.edgewaysoft.stormyambience
package:/data/app/com.estrongs.android.pop-1.apk=com.estrongs.android.pop
package:/data/app/com.fallentreegames.amazon.quellmemento-1.apk=com.fallentreegames.amazon.quellmemento
package:/data/app/com.fallentreegames.amazon.quellreflect-2.apk=com.fallentreegames.amazon.quellreflect
package:/data/app/com.inxile.BardTale-1.apk=com.inxile.BardTale
package:/data/app/com.lego.starwars.thenewyodachronicles-1.apk=com.lego.starwars.thenewyodachronicles
package:/data/app/com.mg.meteoearth-1.apk=com.mg.meteoearth
package:/data/app/com.pbs.video-1.apk=com.pbs.video
package:/data/app/com.playrisedigital.ttaf-1.apk=com.playrisedigital.ttaf
package:/data/app/com.playrisedigital.ttra-1.apk=com.playrisedigital.ttra
package:/data/app/com.serenity.calmfireplace-1.apk=com.serenity.calmfireplace
package:/data/app/com.the10tons.trouserheart-1.apk=com.the10tons.trouserheart
package:/data/app/com.vectorunit.purple.amazon-1.apk=com.vectorunit.purple.amazon
package:/data/app/com.wukongtv.wkhelper-1.apk=com.wukongtv.wkhelper
package:/data/app/com.zenstudios.ZenPinball.amazon-1.apk=com.zenstudios.ZenPinball.amazon
package:/data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
Now copy and past that into notepad and go to Edit, then Replace... and under "Find what" put "package:", and under "replace with" put "adb pull " (make sure there is a space after the word 'pull')
Now click on Replace all, then you will have an output similar to this:
Code:
adb pull /data/app/com.amz.games505.Terraria-1.apk=com.amz.games505.Terraria
adb pull /data/app/com.concretesoftware.pbachallenge_amazonfree-1.apk=com.concretesoftware.pbachallenge_amazonfree
adb pull /data/app/com.digitalx.amazonvirtualfireplace-1.apk=com.digitalx.amazonvirtualfireplace
adb pull /data/app/com.digitalx.amazonvirtualsnowfallhd-1.apk=com.digitalx.amazonvirtualsnowfallhd
adb pull /data/app/com.dotgears.flapfire-1.apk=com.dotgears.flapfire
adb pull /data/app/com.ea.life_full_azn-1.apk=com.ea.life_full_azn
adb pull /data/app/com.edgeway.firefliesambience-1.apk=com.edgeway.firefliesambience
adb pull /data/app/com.edgeway.moonlightocean-1.apk=com.edgeway.moonlightocean
adb pull /data/app/com.edgeway.perfectstorm-1.apk=com.edgeway.perfectstorm
adb pull /data/app/com.edgewaysoft.snowyambience-1.apk=com.edgewaysoft.snowyambience
adb pull /data/app/com.edgewaysoft.stormyambience-1.apk=com.edgewaysoft.stormyambience
adb pull /data/app/com.estrongs.android.pop-1.apk=com.estrongs.android.pop
adb pull /data/app/com.fallentreegames.amazon.quellmemento-1.apk=com.fallentreegames.amazon.quellmemento
adb pull /data/app/com.fallentreegames.amazon.quellreflect-2.apk=com.fallentreegames.amazon.quellreflect
adb pull /data/app/com.inxile.BardTale-1.apk=com.inxile.BardTale
adb pull /data/app/com.lego.starwars.thenewyodachronicles-1.apk=com.lego.starwars.thenewyodachronicles
adb pull /data/app/com.mg.meteoearth-1.apk=com.mg.meteoearth
adb pull /data/app/com.pbs.video-1.apk=com.pbs.video
adb pull /data/app/com.playrisedigital.ttaf-1.apk=com.playrisedigital.ttaf
adb pull /data/app/com.playrisedigital.ttra-1.apk=com.playrisedigital.ttra
adb pull /data/app/com.serenity.calmfireplace-1.apk=com.serenity.calmfireplace
adb pull /data/app/com.the10tons.trouserheart-1.apk=com.the10tons.trouserheart
adb pull /data/app/com.vectorunit.purple.amazon-1.apk=com.vectorunit.purple.amazon
adb pull /data/app/com.wukongtv.wkhelper-1.apk=com.wukongtv.wkhelper
adb pull /data/app/com.zenstudios.ZenPinball.amazon-1.apk=com.zenstudios.ZenPinball.amazon
adb pull /data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
Now on each line just delete everything after apk, for exmaple:
Code:
adb pull /data/app/org.chromium.youtube_apk-1.apk=org.chromium.youtube_apk
becomes
Code:
adb pull /data/app/org.chromium.youtube_apk-1.apk
Now just save that file as a bat file and run it from whichever directory you want the files stored in on your PC and it will copy all your apks from your Fire TV (Stick) to your PC. It may take a few minutes.
Hi thanks for your thorough explanation. Just a bit stuck on the last part, how do i save as a .bat?
okay i know how to make a bat, but i'm still unclear what the bat needs to consist of? all the txt from each box above?
hendoben said:
Hi thanks for your thorough explanation. Just a bit stuck on the last part, how do i save as a .bat?
Click to expand...
Click to collapse
Just rename the text file from .txt to .bat
thanks again. i had just edited my post before i realised you replied. is there any chance you could post a sample .txt? just so i know exactly what to include before i make the .bat. as the one i created didn't work.
also got this error 'error more than one device and emulator' after i entered..
Code:
adb shell
hendoben said:
thanks again. i had just edited my post before i realised you replied. is there any chance you could post a sample .txt? just so i know exactly what to include before i make the .bat. as the one i created didn't work.
also got this error 'error more than one device and emulator' after i entered..
Code:
adb shell
Click to expand...
Click to collapse
There I attached a zip file of the text file that I actually found can just save directly as a bat file if you, when saving, select *.* all files and just type in the name and put ".bat" at the end of the name when saving. As far as the error you're getting, just disconnect whatever other devices you have connected that have adb debugging enabled..
Any chance I can get someone to download and pull HBO GO for the fire TV? I have an ADT-1 and comcast is not allowing activation of hbo go on android tv's but will allow it on Fire Tv's so I want to see if I can use the apk from the Fire Tv to get it working. Thanks!
Hello, can someone sideload the Amazon Video apk for me from a Fire TV and make available (public or PM). I would like this install on my nvidia shield TV.
Could someone please extract the following apps so the community can try to use them on Android TV?
All4, ITVHub, Demand 5, RTÉ Player, 3Player, and TG4 .
---------- Post added at 07:52 PM ---------- Previous post was at 07:17 PM ----------
dusf said:
Could someone please extract the following apps so the community can try to use them on Android TV?
All4, ITVHub, Demand 5, RTÉ Player, 3Player, and TG4 .
Click to expand...
Click to collapse
Mod, please delete my post as I am creating a separate thread.

Categories

Resources