[FIX] Fix poor AAC streaming performance (Pandora, Slacker, etc) on Froyo - Nexus One Android Development

When I installed Froyo on my N1, I found that streaming quality over Pandora suffered tremendously; low-quality was unbearable, and high-quality sounded worse than low-quality normally does. The change to StageFright from OpenCore is to blame here, while it improves HTTP streaming, it's AAC decoder doesn't decode LC-AAC streams properly.
To disable it temporarily, use
Code:
adb setprop media.stagefright.enable-player false
and restart any applications actively playing anything. To disable it permanently, pull build.prop from /system and change the value there. When you restart, it should be disabled; use adb getprop to verify.
Of course, the phone needs to be rooted for this to happen, as r/w access to /system is required.

THANK YOU!!!
I was so completely frustrated by this, as my phone is my primary source of music in my car via Rhapsody, that i had just rolled back to 2.1 yesterday.
I just verified your 'fix' and my sound is now perfect again!
Side note to everyone out there, setprop is a shell command, so you actual command to set the property is:
adb shell setprop media.stagefright.enable-player false
But there's no reason you shouldn't change the property in your build.prop file if you listen to streaming music regularly.
Again, THANK YOU for this fix!!
One other side note: this change also appears to fix the bluetooth "skipping" issue that appeared in 2.2 as well.

HUGE difference for the better
Thank you

cnunez1987 said:
When I installed Froyo on my N1, I found that streaming quality over Pandora suffered tremendously; low-quality was unbearable, and high-quality sounded worse than low-quality normally does. The change to StageFright from OpenCore is to blame here, while it improves HTTP streaming, it's AAC decoder doesn't decode LC-AAC streams properly.
To disable it temporarily, use
Code:
adb setprop media.stagefright.enable-player false
and restart any applications actively playing anything. To disable it permanently, pull build.prop from /system and change the value there. When you restart, it should be disabled; use adb getprop to verify.
Of course, the phone needs to be rooted for this to happen, as r/w access to /system is required.
Click to expand...
Click to collapse
Thanks for the info man
Just curious though, does anyone know the cause of why this is? Maybe a different decoder would have more success?

Thanks, sounds much better.
Now I have to remember to change my build.prop nearly everyday when I flash a new rom.

I'm rooted and pulled the build.prop file, but what program do I need to open the build.prop file and edit it?

PeRRiiN said:
I'm rooted and pulled the build.prop file, but what program do I need to open the build.prop file and edit it?
Click to expand...
Click to collapse
any text editor, notepad included, will work

Manacit said:
any text editor, notepad included, will work
Click to expand...
Click to collapse
Thank you, I'll try it out.

Thanks so much for the fix. Now I can listen to my tunes without some of the lyrics sounding like a Chimpmunks sing-a-long!

Thanks for this! Having some trouble pulling it off though I'm new to android.
I have root/unlocked, and have successfully used the adb pull command to pull the build.prop file. I've got the file edited, but cannot seem to get it to push back to the device.
Here is my problem if anyone would be willing to point me to the correct method.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

venelar said:
Thanks for this! Having some trouble pulling it off though I'm new to android.
I have root/unlocked, and have successfully used the adb pull command to pull the build.prop file. I've got the file edited, but cannot seem to get it to push back to the device.
Click to expand...
Click to collapse
I believe you have to type this command before you push it
adb remount

I used pandora all day today, and I never heard anything wrong with it. :S

I can confirm that this works! Thanks!
I think it would be a good idea to include these instructions in the OP for those who don't know the commands.
Here's what I did. For those following these steps, the file locations on your computer may be slightly different.
On Windows:
1. Open Command Prompt
2. Type cd [location of tools folder in android sdk] Example cd C:\Documents and Settings\Administrator\My Documents\Nexus One\android-sdk-windows\tools
3. Type adb pull /system/build.prop c:\build.prop [This will place build.prop in your C Drive]
4. Using any text editor, open the file, make the necessary changes, then save.
5. Type adb remount
6. Type adb push c:\build.prop /system/build.prop
7. Type adb reboot
8. To verify that it is disabled, type adb shell getprop
After a few scrolls, you will see the following:
[media.stagefright.enable-player]: [false]
This means that everything was done correctly.
I'm pretty n00bish at this stuff. If something doesn't look right, let me know.
Thanks again for the fix!

venelar said:
Thanks for this! Having some trouble pulling it off though I'm new to android.
I have root/unlocked, and have successfully used the adb pull command to pull the build.prop file. I've got the file edited, but cannot seem to get it to push back to the device.
Here is my problem if anyone would be willing to point me to the correct method.
Click to expand...
Click to collapse
Which ROM are you using? And which boot image are you using. Just root access is not enough. The ro.secure value in default.prop should be set to 0 (zero) to allow remount with read-write permissions. Check the value of ro.secure in /default.prop. If it is 1 (one), you need to flash a new boot.img which has the value set as 0 (zero)

stealthopts17 said:
I can confirm that this works! Thanks!
I think it would be a good idea to include these instructions in the OP for those who don't know the commands.
Here's what I did. For those following these steps, the file locations on your computer may be slightly different.
On Windows:
1. Open Command Prompt
2. Type cd [location of tools folder in android sdk] Example cd C:\Documents and Settings\Administrator\My Documents\Nexus One\android-sdk-windows\tools
3. Type adb pull /system/build.prop c:\build.prop [This will place build.prop in your C Drive]
4. Using any text editor, open the file, make the necessary changes, then save.
5. Type adb remount
6. Type adb push c:\build.prop /system/build.prop
7. Type adb reboot
8. To verify that it is disabled, type adb shell getprop
After a few scrolls, you will see the following:
[media.stagefright.enable-player]: [false]
This means that everything was done correctly.
I'm pretty n00bish at this stuff. If something doesn't look right, let me know.
Thanks again for the fix!
Click to expand...
Click to collapse
awesome! although i have to say i don't really see (hear) a difference using pandora on cm6rc2

mixer5911 said:
awesome! although i have to say i don't really see (hear) a difference using pandora on cm6rc2
Click to expand...
Click to collapse
i've tried every froyo rom available, and sound quality in my car was horrible on all of them. this fix definitely makes listening to pandora enjoyable again.

thanks. completely stopped using pandora because it started to sound like I was trapped in tin can; and too lazy to swap out files constantly

Super gratefull for this! Worked like a charm.
Sent from my PC36100 using XDA App

Thanks so much.
Sounds so much better now.
What real life consequences does making this change this have? The OP mentions HTTP streaming, can you elaborate?
Thanks!

Noob question: canine just access the build.prop file with root explorer and edit it that way?

Related

[Boot Animation] GingerBlur - with previews and Installer!

03.30.2011 -=*[ working on automation of backup/install of the Boot Animation... ]*=-
!!COMPLETED!! see bottom of OP
i made a few Boot Animations to go with my GingerBlur'd phone if anyone is interested in them. they're nothing fancy, just something different to look at.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
GingerBlur-bootanimation-1.zip
GingerBlur-bootanimation-2.zip
GingerBlur-bootanimation-3.zip
you will need to rename the respective GingerBlur-bootanimation-x.zip to bootanimation.zip.
original design was by ZeliardM for the Eris. i made some changes for GingerBlur.
Installation Instructions:
The script that's run on your phone WILL back up your existing /system/media/bootanimation.zip file ONE time and that's it. As long as the backup (/system/media/bootanimation.zipORG) exists from then on, it will simply overwrite the /system/media/bootanimation.zip file each time you run the install. this script should work for any of the Boot Animations that you get your hands on as long as there is a bootanimation.zip file in the same directory as the batch and script file (explanation(s) below). you can always revert back to your original bootanimation.zip, but you'll need to do so manually using adb to copy the /system/media/bootanimation.zipORG -> /system/media/bootanimation.zip
Download your Boot Animation of choice from the above links
Download the zip file (GB-BootAni.zip) below containing the install .bat and .sh file.
unzip the GB-BootAni.zip file you downloaded (should create you a GB-BootAni directory)
place your downloaded Boot Animation zip file in the above directory and either rename it bootanimation.zip or copy the file to bootanimation.zip
run the GB-BootAni.bat and the rest should take care of itself.
Download GB-BootAni.zip (installation helper for the GingerBlur Boot Animations)
md5sum: f20838c2d293f181f1f2d5650f6e8f83
i welcome any and all feedback...good, bad or indifferent.
Looks good! I'm loving all the boot screen's that have come out so far, great work!
Looks nice, and how would you go about installing this to your phone? Asking b/c I've never done this before.
crea78 said:
Looks nice, and how would you go about installing this to your phone? Asking b/c I've never done this before.
Click to expand...
Click to collapse
i'll try to post a script to facilitate things, but basically:
copy/rename the .zip file to bootanimation.zip
adb push bootanimation.zip /data/local/tmp
adb shell
<the above is done from your windows/linux machine>
<here down is done on your phone>
$ su
# cp /data/local/tmp/bootanimation.zip /system/media
# rm /data/local/tmp/bootanimation.zip (optional)
# reboot
...sit back and watch the magic happen.
itsonlym3 said:
i'll try to post a script to facilitate things, but basically:
copy/rename the .zip file to bootanimation.zip
adb push bootanimation.zip /data/local/tmp
adb shell
<the above is done from your windows/linux machine>
<here down is done on your phone>
$ su
# cp /data/local/tmp/bootanimation.zip /system/media
# rm /data/local/tmp/bootanimation.zip (optional)
# reboot
...sit back and watch the magic happen.
Click to expand...
Click to collapse
Thanks, and a script would be much easier to use
Can I do this on a stock atrix 4g
Always_Jonezen said:
Can I do this on a stock atrix 4g
Click to expand...
Click to collapse
you have to have "root" access in order to write to /system/media/
itsonlym3, I'm trying to do this manually via adb. First, does it matter where we put the bootanimation.zip because when I insert adb push bootanimation.zip /data/local/tmp in the command terminal, I get a "cannot start bootanimation.zip: No such file or directory"
Not sure what I'm doing wrong here...
itsonlym3 said:
you have to have "root" access in order to write to /system/media/
Click to expand...
Click to collapse
that sucks i lost my root with that update to 1.5.7
Always_Jonezen said:
that sucks i lost my root with that update to 1.5.7
Click to expand...
Click to collapse
you know you can get it back, right? you'll have to revert back and what not, but you can still have your update and get your root back.
check out this [SCRIPT] Root for 4.1.57 (RELEASED!) (requires 4.1.26 rooted) thread.
crea78 said:
itsonlym3, I'm trying to do this manually via adb. First, does it matter where we put the bootanimation.zip because when I insert adb push bootanimation.zip /data/local/tmp in the command terminal, I get a "cannot start bootanimation.zip: No such file or directory"
Not sure what I'm doing wrong here...
Click to expand...
Click to collapse
you need to issue the push (adb push) from your Winxx or Linux machine. if you've got adb in your path (which you probably do), then go into the directory where you downloaded the new bootanimation.zip and issue:
adb push bootanimation.zip /data/local/tmp/
that better?
i'm kind of assuming there's a /data/local/tmp. hopefully i'm correct in my assumption....?
sorry, i'm working on a script to automate this, just been busy. :/
also, you should probably back up your existing bootanimation.zip file before overwriting it if you'd like to keep it. PM me and i'll walk you through it if you need help. i'll add manual instructions to the OP once i finish up the automated script.
itsonlym3 said:
you need to issue the push (adb push) from your Winxx or Linux machine. if you've got adb in your path (which you probably do), then go into the directory where you downloaded the new bootanimation.zip and issue:
adb push bootanimation.zip /data/local/tmp/
that better?
i'm kind of assuming there's a /data/local/tmp. hopefully i'm correct in my assumption....?
sorry, i'm working on a script to automate this, just been busy. :/
also, you should probably back up your existing bootanimation.zip file before overwriting it if you'd like to keep it. PM me and i'll walk you through it if you need help. i'll add manual instructions to the OP once i finish up the automated script.
Click to expand...
Click to collapse
That clears things up. I'm patient on you making a script, and good point on making a backup.
added installer and its usage to OP.
itsonlym3 said:
added installer and its usage to OP.
Click to expand...
Click to collapse
Even while using the script, the installer failed because of the data/local/temp not being found. Not sure how to find the path in order to see if bootanimation.zip is located in there.
Edit: when I type in %temp% in the start - search, it pops up my local temp files, but there is nothing in that folder?? I'm using Chrome as a browser if that makes a difference.
crea78 said:
Even while using the script, the installer failed because of the data/local/temp not being found. Not sure how to find the path in order to see if bootanimation.zip is located in there.
Edit: when I type in %temp% in the start - search, it pops up my local temp files, but there is nothing in that folder?? I'm using Chrome as a browser if that makes a difference.
Click to expand...
Click to collapse
/data/local/tmp is a path on your phone.
you should take whichever Boot Animation file you would like to use, copy it to the directory where you unzipped the installer and name it: bootanimation.zip
then while in that directory, you should run GB-BootAni.bat file and it should do the rest for you.
first off, when you get to a command line on your PC and type:
adb devices
does it return return/display something like this:
List of devices attached
TB30607H83 device
Stupid me!! I named the zip as bootanimation.zip so it read "bootanimation.zip.zip" so that is why it never worked. The new bootanimation works perfectly after I figured out my error
Stupid me!! I named the zip as bootanimation.zip so it read "bootanimation.zip.zip" so that is why it never worked. The new bootanimation works perfectly after I figured out my error
Click to expand...
Click to collapse
glad u figured it out and got it installed!
Thanks for the update
Sent from my MB860 using XDA Premium App
where do you put the script folder to run it? im having no luck getting it to take
Spaztazim said:
where do you put the script folder to run it? im having no luck getting it to take
Click to expand...
Click to collapse
you should be able to put it anywhere on your machine, as long as you have adb.exe in your path somewhere. i didn't add it to the zip file, but i suppose i could.
is that what you were asking?
Yep didn't do the adb part, I got creative and made my own animation by combining the peking droid and honeycomb takeover then figured out how to install it manually
Sent from my Atrix 3g

<[TOOL 7/13]> Jeremy's Fre3vo Sticky-Root Windows/Linux/Mac v2.5

This script will run on Windows, Linux and Mac. No longer do you have to worry about having adb in your path, as i have included the binaries for all the operating systems.
The Linux and Mac script will automatically detect what O/S your using and use the correct binary.
You should be all set right out of the box, as long as you have the adb drivers installed for your device if you are in Windows. Linux/Mac users need not worry about the drivers.
COMING SOON.
overclocking capability and more
For Windows Users:
1. REBOOT YOUR PHONE BEFORE RUNNING
2. Extract the zip.
3. Make sure your drivers are installed.
Youtube Video from a user
http://www.youtube.com/watch?v=ZcWqeYQjjk0
older version of the script but same principal
4. Run Root.bat
5. Select your device
6. Hit #1
7. Profit!!!
Drivers For Windows:
Evo3D 32-bit Windows drivers:
Download HERE
Evo3D 64-bit Windows drivers:
Download HERE X64
For Linux/Mac Users:
1. REBOOT YOUR PHONE BEFORE RUNNING
2. Extract the zip.
3. Enter the directory.
4. Set the script permissions to allow it to execute.
Code:
chmod +x root
5. Plug in your device.
6. Run the script.
Code:
./root
7. Select your device.
8. Select #1
9. Profit!
Notes:
After the script starts all you have to do is choose option #1
The script remounts the file system R/W by itself. The other options are just there for convenience if you were to need to remount for hackery. sorry for the confusion.
All files are included including Fre3vo, su, busybox and superuser.apk
I get absolutely no superuser force closes with this. Titanium backup works perfectly. This is also the newest version of the superuser beta.
I have tested these scripts on my phone 10x each, 20 reboots if your counting If you are having problems REBOOT the phone to wipe all the changes you may have made with other scripts/errors.
Also if you install the Terminal Emulator from the market and type "su" you will get a superuser pop up to allow permissions and you will get a root prompt in the Terminal.
Let me know how it works for you.
Changelog:
v2.5
[Linux/Mac] Auto-detect Os
[Linux/Mac] Linux and Mac binaries now included so no more adb having to be in your PATH
v2.4
[Linux/Mac] Fix stupid error on my part in linux script
v2.3
[Linux/Mac]
[Windows]
Script Tweaks
New sticky temp root method (Installs to /vendor/bin/)
v2.2
[Linux/Mac]
[Windows]
HTC Sensation Support!
v2.1
[Linux/Mac] script tweaks
[Windows] rewrote script & added tools
v2.0
[Linux/Mac] rewrote script & added tools
[Windows] SORRY WINDOWS USERS NEW SCRIPT ISNT DONE FOR WINDOWS YET
v1.1
[Windows] Added Windows .bat
v1.0
[Linux/Mac] Initial Release
[Windows] Release SOON!
Download it here
http://dl.dropbox.com/u/11406774/Jeremy_Fre3vo2.5.zip
------Linux
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
------Windows
Dam sweeeet
Can someone make one for a win XP setup
I plan on making a .bat soon but if someone that knows what they are doing wants to try to convert it over for me ill update the op. I use my only windows computer to watch netflix on my tv. LOL
Pew Pew
I got Linux but how do I run this one tho?
Sent From My "Desperate For Root" 3VO...
You Sir are Amazing. Thank You. (Moves my own script into trash =) )
Eagerly awaiting a .bat file for this.
I *THINK* this should work for Window users... I made it really quick like and haven't even tested it myself..
Put this in the SDK folder "platform-tools" and run it as Admin. Make sure you extract all of the files to the root directory of the platform-tools folder and it should work.
platform-tools > root.bat
platform-tools > bin
platform-tools > apk
That should be your folder structure.
Let me know if it works
I got a mac, but from reading the OP it says I need ADB in my path? Not sure exactly what that means...
Stericson said:
I *THINK* this should work for Window users... I made it really quick like and haven't even tested it myself..
Put this in the SDK folder "platform-tools" and run it as Admin. Make sure you extract all of the files to the root directory of the platform-tools folder and it should work.
platform-tools > root.bat
platform-tools > bin
platform-tools > apk
That should be your folder structure.
Let me know if it works
Click to expand...
Click to collapse
Testing now.. ill edit once it (hopefully) completes
EDIT:
steps one thru 3 work great...
cant seem to 4 to work... any ideas?
**************
Your choices:
**************
(1) Set PATH variable for SDK platform-tools directory
(2) List devices found by adb
(3) Temp Root your Evo3d or Sensation with Fre3vo
(4) Install su, Superuser.apk and busybox
(5) Mount /system as R/W
(6) Mount /system as R/O
(7) Check mount points
(8) ADB Shell
(9) Exit
Type choice number: 4
********** su, Superuser.apk and busybox ***********
---------------------------------------------------------
Mounting /system as R/W
mount: Read-only file system
Done!!
---------------------------------------------------------
Installing su and busybox
failed to copy 'bin/su' to '/system/bin//su': Read-only file system
Unable to chmod /system/bin/su: Read-only file system
link failed File exists
failed to copy 'bin/busybox' to '/system/bin//busybox': Read-only file system
Unable to chmod /system/bin/busybox: Read-only file system
[1] Segmentation fault busybox --instal...
Done!!
---------------------------------------------------------
Installing Superuser
failed to copy 'apk/Superuser.apk' to '/system/app//Superuser.apk': Read-only fi
le system
Done!!
---------------------------------------------------------
Installing user and group
cannot create /system/etc/passwd: read-only file system
cannot create /system/etc/group: read-only file system
Unable to chmod /system/etc/passwd: No such file or directory
Unable to chmod /system/etc/group: No such file or directory
Done!!
---------------------------------------------------------
Complete, Press ENTER to return back to the main menu
Click to expand...
Click to collapse
Not sure what I'm doing wrong, copied all the folder elements into c:/android-sdk-windows/platform-tools, ran root.bat, pressed 3, waited until process finished, then pressed 4, installation says Okay. I see SU.apk installed on my phone but whenver I open up any rooted apps, it says cannot find root.
EDIT: this is through the windows version of the script.
Hmmm... I just tried it and it worked for me first go....using adb shell, do you have root?
Stericson said:
Hmmm... I just tried it and it worked for me first go....using adb shell, do you have root?
Click to expand...
Click to collapse
I'm retrying, let me test again after reboot.
fowenati said:
I got a mac, but from reading the OP it says I need ADB in my path? Not sure exactly what that means...
Click to expand...
Click to collapse
here is the mac binary for adb.
what you have to do is copy it into the /usr/bin/ folder.
Code:
sudo cp adb /usr/bin/
you need to make sure you are in the directory that adb is in when you execute that.
spunks3 said:
Testing now.. ill edit once it (hopefully) completes
EDIT:
steps one thru 3 work great...
cant seem to 4 to work... any ideas?
Click to expand...
Click to collapse
try using step 5 first then step 4?
EDIT: Well you shouldn't have to do that...try running step 3 again and show us the output?
Stericson said:
try using step 5 first then step 4?
EDIT: Well you shouldn't have to do that...try running step 3 again and show us the output?
Click to expand...
Click to collapse
my first time 3 worked okay i believe.
when i adb shell i get #
rebooting and trying again
This is my setup. Fresh reboot, fresh file extraction (directly from your .zip into platform-tools). Failed.
http://i642.photobucket.com/albums/uu150/Deflectant/Cropped.png
This picture is cropped, much easier to read.
EDIT: root.bat is in c:/android-sdk-windows/, I cropped it out of the picture though.
SuperUser keeps crashing for me....that might be the problem...
Thanks J.eremy. You asked to let you know how it went in your OP, so I'm reporting back. It worked excellent and quick, as advertised. Couldn't have been simpler, thanks. I've had it running for about an hour now, and have had no super user FC. How long have you had this lasting so far? Prior to this, I would only be able to go about a half hour or so before i got FC on super user, and would have to start over again. Is something different here? It seems to be sticking far longer...at least so far.
k2buckley said:
Thanks J.eremy. You asked to let you know how it went in your OP, so I'm reporting back. It worked excellent and quick, as advertised. Couldn't have been simpler, thanks. I've had it running for about an hour now, and have had no super user FC. How long have you had this lasting so far? Prior to this, I would only be able to go about a half hour or so before i got FC on SU, and would have to start over again. Is something different here? It seems to be sticking far longer...at least so far.
Click to expand...
Click to collapse
Your welcome
it lasts me until reboot every time normally, im pretty sure the main problem with some other scripts are they are not setting the permissions right and not modifying the passwd and group files correctly.
no f/c on my end either
spunks3 said:
my first time 3 worked okay i believe.
when i adb shell i get #
rebooting and trying again
Click to expand...
Click to collapse
yea Stericson is right, looks like the batch file isn't auto mounting the /system as R/W.
gonna go take a look at it now
Overstew said:
This is my setup. Fresh reboot, fresh file extraction (directly from your .zip into platform-tools). Failed.
http://i642.photobucket.com/albums/uu150/Deflectant/Cropped.png
This picture is cropped, much easier to read.
Click to expand...
Click to collapse
interesting...your picture shows it cannot find /bin/fre3vo
either it cant find the folder, or it cant find the file....

[Q] wifi error data log

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Everytime after i turn off my wifi connection, i will have this 'dumpstate_sys_WIFI_OFF_20134...error.log.txt' log in my data folder..i wonder why this log appear and how to prevent it from automatically arise?? It can be delete with root explorer but i just wanna know is there any way to ultimately stop this log from happening.tq
Sent from my GT-I9100G
Sent from my GT-I9100G
rascal123 said:
Sent from my GT-I9100G
Click to expand...
Click to collapse
I also got this error file, and today I notice my phone keep hanging when turning on the wifi.
same for me with Stock LB1 rooted
The problem is if we not delete them..they will consume a lot of space..eating our internal memory..
Sent from my GT-I9100G
i am experiencing this too, even up to 1gb space is consumed T_T
it is like some kind of debug function is still enabled in LB1 firmware, maybe the samsung dev forgot to disable it
Sent from my GT-I9100G using Tapatalk
I also got this on superRomv3. when i flashed stock xxla1, the problem disappear...
Is it bcos of rom or kernel?anyone knows??
Sent from my GT-I9100G using Tapatalk 2 Beta-6
fauzi_91 said:
Is it bcos of rom or kernel?anyone knows??
Sent from my GT-I9100G using Tapatalk 2 Beta-6
Click to expand...
Click to collapse
i think it's the base of LB1 Roms ...
I've written this in another thread, so I figure I'll just repost this here for everyone's reference.
There's a workaround for this problem. Just remove the execute permission from /system/bin/dumpstate so the error log is not generated. There's a few ways you can do this:
Using ADB. Just type in the computer command prompt with the phone connected via USB. Of course, you need USB debugging enabled and have the android SDK installed on the computer.
Code:
adb shell chmod a-x /system/bin/dumpstate
Using Terminal Emulator on the phone. Just type the following commands:
Code:
$ su
# chmod a-x /system/bin/dumpstate
Using a root enabled file explorer on the phone such as Root Explorer or ES File Explorer. Browse to /system/bin/, find dumpstate, tap-hold to open the properties and remove all the Execute permissions.
aidfarh said:
I've written this in another thread, so I figure I'll just repost this here for everyone's reference.
There's a workaround for this problem. Just remove the execute permission from /system/bin/dumpstate so the error log is not generated.
Click to expand...
Click to collapse
Thanks a lot! It working perfectly, no more wifi error dump file, some more it seems fix my hanging issue as well, previously I keep facing phone hanging when switching between wifi on and off.
aidfarh said:
I've written this in another thread, so I figure I'll just repost this here for everyone's reference.
There's a workaround for this problem. Just remove the execute permission from /system/bin/dumpstate so the error log is not generated. There's a few ways you can do this:
Using ADB. Just type in the computer command prompt with the phone connected via USB. Of course, you need USB debugging enabled and have the android SDK installed on the computer.
Code:
adb shell chmod a-x /system/bin/dumpstate
Using Terminal Emulator on the phone. Just type the following commands:
Code:
$ su
# chmod a-x /system/bin/dumpstate
Using a root enabled file explorer on the phone such as Root Explorer or ES File Explorer. Browse to /system/bin/, find dumpstate, tap-hold to open the properties and remove all the Execute permissions.
Click to expand...
Click to collapse
thanks so much...it works..
c. Using a root enabled file explorer on the phone such as Root Explorer or ES File Explorer. Browse to /system/bin/, find dumpstate, tap-hold to open the properties and remove all the Execute permissions.
Click to expand...
Click to collapse
Thanks for the workaround..... this one really was eating up space.
help !
aidfarh said:
I've written this in another thread, so I figure I'll just repost this here for everyone's reference.
There's a workaround for this problem. Just remove the execute permission from /system/bin/dumpstate so the error log is not generated. There's a few ways you can do this:
Using ADB. Just type in the computer command prompt with the phone connected via USB. Of course, you need USB debugging enabled and have the android SDK installed on the computer.
Code:
adb shell chmod a-x /system/bin/dumpstate
Using Terminal Emulator on the phone. Just type the following commands:
Code:
$ su
# chmod a-x /system/bin/dumpstate
Using a root enabled file explorer on the phone such as Root Explorer or ES File Explorer. Browse to /system/bin/, find dumpstate, tap-hold to open the properties and remove all the Execute permissions.
Click to expand...
Click to collapse
Thanks for that. But whenever I try method b and c , what I get is that the dumpstate is a read only file, any idea what I should do ?
thanks
System memory continously decreasing
Hi all,
I'm having this same issue of system memory decreasing at a rapid rate. Had to do a factory reset once. Phone is non rooted. Checked the dump state file but it's really small in size. And i can't change executable permissions for that using es explorer without root. Any solution please?
zidhu said:
Thanks for that. But whenever I try method b and c , what I get is that the dumpstate is a read only file, any idea what I should do ?
thanks
Click to expand...
Click to collapse
Root. Sounds like you don't have root. You need root to do the above.
Geekeek said:
Hi all,
I'm having this same issue of system memory decreasing at a rapid rate. Had to do a factory reset once. Phone is non rooted. Checked the dump state file but it's really small in size. And i can't change executable permissions for that using es explorer without root. Any solution please?
Click to expand...
Click to collapse
Same as above. To change permissions on files in the system partition, you need root.
Thanks. What is causing the continual decrease? Can't root at least until the weekend but internal memory will be over in a day by the looks of it. :what:
Sent from my GT-I9100G using XDA
Geekeek said:
Thanks. What is causing the continual decrease? Can't root at least until the weekend but internal memory will be over in a day by the looks of it. :what:
Sent from my GT-I9100G using XDA
Click to expand...
Click to collapse
You said system memory in post 15, and internal memory above in post 17. Which is it?
In any case, I don't know what all you have installed and how you use your phone, so I can only guess what the cause would be.
If you for sure want it to stop, do a factory reset, (but you will lose all apps and user data) and carefully monitor what apps you re-install.
Sorry, it's obviously the system memory I am referring to. Already did a factory reset once and hardly installed anything later on. Still 1 gb used up.
Sent from my GT-I9100G using XDA
Geekeek said:
Sorry, it's obviously the system memory I am referring to. Already did a factory reset once and hardly installed anything later on. Still 1 gb used up.
Sent from my GT-I9100G using XDA
Click to expand...
Click to collapse
Not so obvious, really. Exactly how are you seeing the space remaining? Are you looking at Menu > Storage > Device memory?

{Tutorial} [How to use ADB] For Beginners (Part 1)

The purpose of this thread is to make u familiar with the ADB (Android Debug Bridge)
It is a tool that lets u communicate with ur android device that is connected to ur pc.
In the first tutorial we shall learn some basics of adb and then advance to use pro commands in further tutorials.
Requirements
1. Adb link - http://dl.google.com/android/adt/adt-bundle-windows-x86-20130219.zip
2. Windows based pc ( yes we will use windows and not linux as i dun want to communicate anything that i havent tried by myself )
1. Download and extract the zip ADB in any drive , lets say C:
2. Go to C:/adb/sdk/platform-tools and u will something like
View attachment 1937059
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3. Now press shift key + right click on mouse/keypad
http://forum.xda-developers.com/attachment.php?attachmentid=1936847&stc=1&d=1367732560
select open command window here
then type adb start-server
in order to ensure ur device is connected and recognized by adb , type adb devices , u will get something like this
View attachment 1940190
Now once your adb is setup up, lets play.....
GETTING LOGCAT THROUGH ADB​
Easiest of all
just type
adb logcat
u will see entire log ur phone,
use ctrl+c to skip it
To get logcat in a file
type
adb logcat > logcat.txt
u will see a file logcat which will save ur phone's realtime process log.
TO GET A BUGREPORT​
type adb bugreport
bt bt bt.. this will show info that wont b readable ..
so type
adb bugreport>result.txt
http://forum.xda-developers.com/attachment.php?attachmentid=1936973&d=1367737608
USING ADB WITH SUPERUSER PERMISSIONS
for this , u must be rooted
command
adb root
if it is success it will show something like
http://forum.xda-developers.com/attachment.php?attachmentid=1937056&stc=1&d=1367740210
INSTALLING AN APP VIA ADB​
to install any app, make sure there is no space in the name of the apk...
and u should know its location,
command that u use is adb install
i have installed a game papertoss via this command, if u get success u will get something like this
View attachment 1936893
View attachment 1940189
COPYING A FILE VIA ADB​
this is pretty easy
command u use is
adb pull
i have given a example by pulling the framework-res.apk from system/framework folder
View attachment 1940191
the file that u pull, u will see it in the platform -tools folder
PUSHING A FILE INTO YOUR PHONE​
very similar to pull, bt this copies file from ur pc to ur android .
command u use is
adb push
For eg,
i have pushed the papertoss.apk file from C:\sanket\apps to sdcard/nimbuzz folder through the command
adb push C:\SANKET\apps\papertoss.apk /sdcard/nimbuzz
if u get success u will see something like this
http://forum.xda-developers.com/attachment.php?attachmentid=1937039&stc=1&d=1367739756
this command is very powerful and u can shift an entire video or movie folder via a single command anywhere on ur android
more commands added
thanks to @Guich
Code:
adb remount
This command remount the /system partition in read/write
Code:
adb usb
Restarts the adbd daemon listening on USB
Code:
adb shell
Run remote shell interactively
The command set shall b updated within few days.
Feel free to drop ur comments, corrections, commands.
All commands have been verified by me..
once i learn more, i will share more.
criticism is welcomed if its healthy
Thread material is not copied and will never be.
Thread will be updated with newer and complex commands soon with pics.
For developers, this is just a piece of cake which they can do with their eyes closed
i have made this specially for beginners ( like me )
PS - make sure the path name has no spaces
Also take care of the upper and lower case letters
Thanks @hiratafabio
op modified
new commands added
Reserved just in case
drsanket_xperia_u said:
Reserved just in case
Click to expand...
Click to collapse
Nice tut doctor g...
Sent from my MT27i using xda app-developers app
thanx a lot for this, keep it up&going !
For windows fan qtadb is much better I prefer Linux but used qtadb :beer:
Sent from my Xperia P using Tapatalk 2
Thanks mate
Sent from my LT22i using xda app-developers app
Thanks Bro, Great Tuto !!!:victory:
There are a lot of command
However, nothing
Interesting
Just what i was looking for! Thank you mate, great work!
Great tuto, well explained
Nice done, good explained
..::[ Pandemic ]...:: Face The Insanity With My Xperia P
.....:::: Jelly Bean Moonbreakers Member 4 Ever ::::....
Good and simple tutorial, thanks!
I have a question, though. Today I pushed a file from my PC to my device and it went OK, but when I tried to push another, all I got was the adb command list, as if I typed 'adb help'. I killed adb server, restarted it, no luck. Restarted the phone, no luck either. Tried 'adb device' to see if listed the device and it did, do it was connected.
What can it be?
hiratafabio said:
Good and simple tutorial, thanks!
I have a question, though. Today I pushed a file from my PC to my device and it went OK, but when I tried to push another, all I got was the adb command list, as if I typed 'adb help'. I killed adb server, restarted it, no luck. Restarted the phone, no luck either. Tried 'adb device' to see if listed the device and it did, do it was connected.
What can it be?
Click to expand...
Click to collapse
Try
Adb start-server
Adb remount
Sent from my ST25i using Tapatalk 2
drsanket_xperia_u said:
Try
Adb start-server
Adb remount
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
Will try, thanks!
Edit: No luck, when giving 'adb remount', system says 'Operation not permitted'
hiratafabio said:
Will try, thanks!
Edit: No luck, when giving 'adb remount', system says 'Operation not permitted'
Click to expand...
Click to collapse
Okay when u open cmd
Make sure u run it as administrator
Secondly
Try adb root
Which rom are u using???
Edit _ just saw ur signature
drsanket_xperia_u said:
Okay when u open cmd
Make sure u run it as administrator
Secondly
Try adb root
Which rom are u using???
Edit _ just saw ur signature
Click to expand...
Click to collapse
My user has administrator rights, so I guess it's OK, right?
Funny thing is that works for only one push, if I try another, it doesn't work.
adb root gives 'adbd cannot run in production builds' error.
I guess I figured it out: filenames can't have spaces, is this correct? I tried pushing files that have spaces and it didn't work. When I renamed them, it worked like a charm. First I thought the problem was the path, that adb couldn't push files that were two or more levels inside folders, but some I was able to push, others I wasn't, but I also figured out that the path can't have spaces on it.
So that's it, no spaces in both path and filenames do the trick. I think it's a good tip to have in the OP, so people get aware of it if they face a problem just like I did.
Thanks again!
Lol buddy yes files names cant have spaces and also u need to take care of upper n lower case
Edit _ I will add this to op @hiratafabio.. Thanks
Awaiting part 2
Free to choose....

[APP][ROOT] WearToolbox V1.54 (16-04-2016)

DISCLAIMER:
I'm not responsible for damage to your phone or watch.
You are using this app at your own responsibility
WearToolbox was just an idea to make life easier.
With WearToolbox you can connect from your phone to your watch through adb, with this it's possible to send commands or sideload apps etc. (see features).
For now design doesn't matter for me, functionality does. Design will be better when app is in a further stage.
When enough people have tested it and provided me feedback, it will be released in the Play Store for easier updating.
The app is in DEVELOPMENT and TEST stage and can have BUGS.
Tested on LG Watch R with Android Wear 5.1.1 and LG G2 5.0.2
Have fun with it and let me know if it works or not!
FEATURES
- Automatic installation of necessary binaries (adb -> /system/bin/)
- Automatic connection
- Reboot (system, recovery, bootloader)
- Sideload apps (/sdcard/WearToolbox/sideload/)
- Uninstall apps
- Push files to /sdcard/
- Send adb commands (adb command)
- Send shell commands (adb shell command)
- ADB and shell command history
- Script parser for own created scripts
TODO:
- Make a nicer UI
IDEAS:
- Pull files
- ADB filebrowser
REQUIREMENTS
- Enabled debug and bluetooth debug on android watch, developer options (youtube)
- Enabled debug on phone, developer options
- Enabled debug in Android Wear app, under settings
- Rooted phone
FAQ:
Q: How to use root with shell:
A:
Code:
"su -c '[COMMAND]'"
Snippets:
Code:
"su -c 'echo 85 > /sys/class/timed_output/vibrator/amp'"
Code:
"su -c 'echo 120 > /sys/class/timed_output/vibrator/driving_ms'"
Code:
wm density 200
Q: How to sideload apps:
A: Place apk in the folder /sdcard/WearToolbox/sideload/, restart WearToolbox, choose right apk, click sideload, wait a long time
Q: How to use scripts:
A: Make for example a dummy.txt file in /sdcard/WearToolbox/scripts/ with shell commands in it. Each command on a newline. Save it, restart WearToolbox, test it.
Example (vibrate.txt):
Code:
cat /sys/class/timed_output/vibrator/amp
cat /sys/class/timed_output/vibrator/driving_ms
"su -c 'echo 85 > /sys/class/timed_output/vibrator/amp'"
"su -c 'echo 120 > /sys/class/timed_output/vibrator/driving_ms'"
cat /sys/class/timed_output/vibrator/amp
cat /sys/class/timed_output/vibrator/driving_ms
DOWNLOAD
https://play.google.com/apps/testing/com.diechel.xda.weartoolbox
I might go ahead and try this. Having something like this would be very very useful. (fyi, I believe you initial change log date has the wrong month. Unless it is June 31st already)
Rennat said:
I might go ahead and try this. Having something like this would be very very useful. (fyi, I believe you initial change log date has the wrong month. Unless it is June 31st already)
Click to expand...
Click to collapse
Haha yes youre right about the changelog Will change.
Let me know if it works and what you think about it.
What features would you like etc etc.
stuck on "Checking Connection" for me Sammy 5.1.1 S6 Edge (arm64) and LGWR 5.1.1
EDIT - seems to download binaries every time I open the app, still won't connect - perhaps something to do with arm64 architechture ???
EDIT2 - in Android Wear Manager bluetooth debugging ON, it says HOST disconnected, TARGET connected
kashortiexda said:
stuck on "Checking Connection" for me Sammy 5.1.1 S6 Edge (arm64) and LGWR 5.1.1
EDIT - seems to download binaries every time I open the app, still won't connect - perhaps something to do with arm64 architechture ???
EDIT2 - in Android Wear Manager bluetooth debugging ON, it says HOST disconnected, TARGET connected
Click to expand...
Click to collapse
- Can you check if the files 'adb' and 'fastboot' are present in /system/bin/
- What is there permission? should be 755
- Are the files 'adb' and 'fastboot' on your root of your /sdcard/
- Can you type 'adb' and 'fastboot' in terminal and post output
- Can you type 'mount -o remount, rw /system' in terminal and post output
For me HOST and TARGET are connected in Android Wear App
@Diechel , I have adb but not fastboot in /system/bin
Okay copied adb and fastbook to /system/bin and 755'd them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
kashortiexda said:
Okay copied adb and fastbook to /system/bin and 755'd them.View attachment 3343013
Click to expand...
Click to collapse
i see something weird
Code:
localhost:4444:4444
should be
Code:
localhost:4444
Will look if i can find something.
Also wondering why copying didnt work, was searching all over the internet how to correctly remount /system
My output is as follows, see attachment. Of course a newer version but nothing changed to adb init
@Diechel am I supposed to have my watch or phone plugged into my PC by USB when doing all this / running weartoolbox ?
kashortiexda said:
@Diechel am I supposed to have my watch or phone plugged into my PC by USB when doing all this / running weartoolbox ?
Click to expand...
Click to collapse
No just bluetooth connected to each other.
And all the 3 debugging option on as stated in the OP
Edit:
Build 21 online
Yip got all that but no adb devices and the localhost:4444:4444 is clearly wrong
Would a logcat help
kashortiexda said:
Yip got all that but no adb devices and the localhost:4444:4444 is clearly wrong
Would a logcat help
Click to expand...
Click to collapse
I dont know if logcat helps, what you can try is manually connect with terminal on your phone.
Code:
su
adb kill-server
setprop service.adb.tcp.port 5555
stop adbd
start adbd
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444
adb devices
Each line need to be filled in, not all together.
And try build 21
Did the manual Terminal stuff and it FIXED the 4444 problem, installed v21 and.....[emoji1]
kashortiexda said:
Did the manual Terminal stuff and it FIXED the 4444 problem, installed v21 and.....[emoji1]
View attachment 3343080
Click to expand...
Click to collapse
TADAAAAAA
GOOD!
Let me know if you have ideas to implement. First i go for functionality then change the user interface a bit
@Diechel
EDIT: I tried sideloading es file explorer apk ... worked !!! [emoji1]
kashortiexda said:
@Diechel I tried sideloading es file explorer apk ...it says done but nothing on watch.
Have you successfully sideloaded any apks ?
Click to expand...
Click to collapse
Yes i had, will try again.
It takes some time for the watch to install, will try now and report back!
Edit:
From what i see now is that the message done comes too fast.
Bluetooth is slow and is still transferring after the done message, can see that in my top bar.
Seems not working indeed, will check thanks
EDIT:
It got installed after a while
Good that it is working! Will see how i can report in log
I got it installed too, yes the done is misleading .... GREAT app btw, well done [emoji106] [emoji106]
kashortiexda said:
I got it installed too, yes the done is misleading .... GREAT app btw, well done [emoji106] [emoji106]
Click to expand...
Click to collapse
Haha thank you, now there is a message that you need to wait untill it arrives on your watch, bluetooth is slow
@Diechel are you planning on adding the trickier "adb remove sideloaded app" but I think it may not be possible. .
kashortiexda said:
@Diechel are you planning on adding the trickier "adb remove sideloaded app" but I think it may not be possible. .
Click to expand...
Click to collapse
Can try at least, I think it's possible. Maybe a lot of work

Categories

Resources