yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] hungry81:
Hi check out my signiture below. thats what im using on my HD2. Everything works fine. Good luck :)
[EVO 4G Q&A, Help & Troubleshooting] lazerus06:
I need some help/advice.

I have a launch Evo(hardware v.2) and recently I have an issue where the screen will randomly become un responsive. I usually have to press the power button a few times to toggle between the black screen and lock screen to get it to work.

The other issue I am having is the status bar will not drag down. Sometimes it does, and there are also other times where it will sporadically lower and hide over and over.

I am rooted, and this has happened with Mym's and Ava-Froyo's roms with different kernel combinations. I have wiped and flashed the rom each time to make sure nothing is hanging over from a previous install.

Is it something software related or is it possible the hardware is going bad?

Thanks in advance for the help!
[myTouch 3G, Magic General] rencarnacion:
Hello , I'm Ronny Encarncaion from Dominican Republic.

I'd like to know where I can Download Android 2.2 for my HTC MyTouch 3G

Thanks
[myTouch 3G, Magic General] mumilover:
Welcome :0)

You actually have to do some reading before asking for stuff...

But if you are already familiarized with android, then check out the development section and you shall find what you are seeking...
[Nexus One Q&A, Help & Troubleshooting] possebom:
My Nexus One reboots while I play any game like angry birds or I using GPS I think its a caused by temp, when phone in charger the reboot is more often.

Anybody can help me to debug this problem ?

Thank in advance
[Nexus One Q&A, Help & Troubleshooting] danger-rat:
Download a log cat, and scan for errors...
[Nexus One Q&A, Help & Troubleshooting] possebom:
I have been attached in device with adb logcat but its reboot without show any errors.
[Optimus One, P500 Original Android Development] ruigui:
Here is a script i've made (had nothing to do, so...).

Phone must be rooted and have busybox installed.

What first menu looks like:

Download:

http://www.4shared.com/file/gApTB6EG/tweaks.html

md5 b0865d9de67a82215913512cb644211d

Just copy the file to your sdcard. Then in a terminal emulator run:

su

cat /sdcard/tweaks > /data/tweaks

rm /sdcard/tweaks

cd /data/

./tweaks

If it doesn't run, type first:

chmod 755 /data/tweaks

Additional notes:

Script does not work if run from sdcard, must be in /data/ or /system/ (this one goes to allsalvati for testing)

---

If anything is wrong i will fix it, but only if you give me feedback ;)

If you know any good tweaks, say it and i'll add them.

---

Changelog:

version 1.02:

backup/restore added

version 1.01d:

working again. sorry for the mess...

version 1.01c:

nothing new. just rearranging code

version 1.01b:

messages were not staying in output. fixed

version 1.01a:

small fix. v1.01 was not working

version 1.01:

added status menu
[Optimus One, P500 Original Android Development] The_ERROR:
what the script does?
[Optimus One, P500 Original Android Development] The_ERROR:
So script should be able to do:

enable/disable hw acceleration

enable/disable jit

enable/disable stagefright player

change heapsize
[Optimus One, P500 Original Android Development] ruigui:
Yes. For now it's what it does.

The ideia is to be able to enable/disable a certain tweak, without reflashing zips, and rewriting files in phone.

But i need some feedback to know if it is working. I can't test it.

It will only change values in /data/local.prop, nothing else.
[Optimus One, P500 Original Android Development] The_ERROR:
It seems that it is well written, so I will try that and let you know what's happened. :)
[Optimus One, P500 Original Android Development] ruigui:
Thanks for testing. I'm still waiting to have some money so i can buy this phone...

Meanwhile, i'm "playing" with ROMs and files. I'm not good at scripting, but i'm trying to learn while doing something useful.
[Optimus One, P500 Original Android Development] domenic_s:
How much did you increase the heap size?
[Optimus One, P500 Original Android Development] ruigui:
I didn't increase it. Script shows this message:

"default=24, recommended=32"

"enter new heapsize value (1-64): "

You can enter any value between 1 and 64.

If you enter any other value, or a string, character, symbol... script will show this message:

"wrong value"

"please input a value between 1 and 64"
[Optimus One, P500 Original Android Development] eigokyoukan:
For those who don't feel like editing this themselves this is great. Thanks for releasing it for people to try out more tweaks on stock ROMs.
[Optimus One, P500 Original Android Development] allsalvati:
i'm trying to run this script and gives me the following message: ./tweaks: permission denied

Before anything i typed su, then chmod 777 and it gave me error.
[Optimus One, P500 Original Android Development] ruigui:
It should work be working...

Anyone else confirms this issue? Is this script running or not?

If it is working and there are more tweaks, i can easilly add them to the script.

If this is an isolated case, i really can't help. I don't own an android phone (yet), so i can't test....

allsalvati do you have busybox installed?
[Optimus One, P500 Original Android Development] allsalvati:
No, i don't.
[Optimus One, P500 Original Android Development] ruigui:
That may be your issue.

You must mount /system/ as read-write, then copy busybox binary to /system/xbin/, then run these commands in terminal emulator:

su

cd /system/xbin

/system/bin/chmod 755 busybox

./busybox --install -s /system/xbin

After that you can mount /system/ as read only again, and reboot your phone.

I don't know if there is another way to install it that is easier.
[Optimus One, P500 Original Android Development] allsalvati:
I downladed busybox installer from market and the app says that was installed. The. /tweaks gives me the same message.

How do i test if busybox was installed right?
[Optimus One, P500 Original Android Development] ruigui:
I found this:

Try to copy the file to /data/ (so you don't mess with /system/), and then try to run it with:

cd /data/

chmod 777 tweaks

./tweaks

It should not need to be run as root
[Optimus One, P500 Original Android Development] allsalvati:
Moved to /data and worked.

I changed heap size to 32 and disabled hardware accelaration just to test.

With hw acc - 981 on Quadrant

Without - 820

So i think this is working.

Perhaps you should print the values so the user can see what is enabled or not before apply.

Thanks for your help
[Optimus One, P500 Original Android Development] ruigui:
Can you test something for me?

Make sure you have hardware acceleration disabled, and reboot you phone.

Then open terminal and run:

getprop | grep hw (see what it outputs)

then run the script, enable hardware acceleration on it, but DON'T reboot your phone yet.

Then exit script, and run again:

getprop | grep hw

Has the value changed, or is it the same?

I need to know if the system assumes immediately any changes (although they may not be functional until reboot).

This is needed to work on your request.

I'll work on that and post an update after someone tries what i asked above.

Thanks for testing ;)

EDIT: to test benchmarks, enable/disable jit. It gives greater differences in values
[Optimus One, P500 Original Android Development] allsalvati:
I tried what you say and both outputs are the same:

$getprop | grep hw

[debug.sf.hw]: [0]

[hw.keyboards.65537.devname]: [7k_handset]

[hw.keyboards.65540.devname]: [thunder_keypad]

[hw.keyboards.65541.devname]: [touch_mcs6000]

[hw.keyboards.65542.devname]: [atcmd_virtual_kbd]

Edit: Tested disabling JIT and it worked. Linpack Before 7.35 - After 4.3
[Optimus One, P500 Original Android Development] ruigui:
So i can't rely on getprop to check current values...

If anything is changed, getprop won't give the right output till reboot.

Damn... Script was almost updated. Now i must find a new way and redo this section.

Thanks for testing again

EDIT:

New version for download at first post. status menu added.

I think it's all ok.
[Optimus One, P500 Original Android Development] heaven666:
It seems work fine on my phone. But I can't see the status. When I choose to see current status or status after reboot, the screen of my emulator returns too fast to the selection menu (show curent status or after reboot) and I can't see anything !
[Optimus One, P500 Original Android Development] ruigui:
When you apply any tweak, do you see any of these messages?

"nothing changed

TWEAK is already ENABLED/DISABLED"

or

"done

TWEAK is ENABLED/DISABLED"

and after that, this:

"============================

press any key to continue..."

Or they also don't show up? I need to know if it is only in status or everywhere that messages don't show.

Thanks for replying

EDIT:

Can someone test this command at terminal emulator?

read -n 1 -p "testing"

It should show message "testing" and wait for any input, and as soon as you press any key, return to prompt
[Optimus One, P500 Original Android Development] heaven666:
Now you tell me, I actually did any of these messages that appear.

I also tried to cast a glance at your script. But I have yet to find where that could come. When I apply a tweak, the terminal remains on the menu without saying if the tweak has been applied or if it was already "enable / disable" exactly like when I watch the status of tweak. I can see that something is happening, but no time to see the menu reappears so quickly.
[Optimus One, P500 Original Android Development] ruigui:
Can you download again the script? I made a small change.

Messages should show up now.
[Optimus One, P500 Original Android Development] natedogg20050:
Sh-3.28 failed /sdcard/tweaks - CrossDevice Link ? error
[Optimus One, P500 Original Android Development] ruigui:
Was that happening while doing this?

mv /sdcard/tweaks /data/

If so, i already changed my original post. Seems that mv doesn't work as it should in Android.

Instead of

mv /sdcard/tweaks /data/

do this:

cat /sdcard/tweaks > /data/tweaks

rm /sdcard/tweaks
[Optimus One, P500 Original Android Development] allsalvati:
Mv gives me the same message.

I had to use cp /sdcard/tweaks /data

Then rm /sdcard/tweaks
[Optimus One, P500 Original Android Development] heaven666:
excuse me, I was not at home this WE. I download, and I wil try that tomorow.
[Optimus One, P500 Original Android Development] ruigui:
It was my mistake...

cp /sdcard/tweaks /data/

or

cat /sdcard/tweaks > /data/tweaks

should work ok. mv does not work.

Any more issues, or is everything ok?
[Optimus One, P500 Original Android Development] heaven666:
Ok, I have tested your last update. now I have plenty of error messages ! Now nothing woks.... when I have few time, I will give you the feedback of the message
[Optimus One, P500 Original Android Development] ruigui:
Now i have a phone to test. Later today i'll upload a script that WILL WORK as it should.

I changed lots of code, to make it simpler, but it looks that i destroyed it all....

I'm changing my firmware, and as soon as i finish it i'll work on the script.

Sorry for all the mess...
[Optimus One, P500 Original Android Development] The_ERROR:
I have some errors just after start:

let: arith: syntax error: "counter_menu=1"
0 - show status
- enable/disable hardware acceleration
let: arith: syntax error: "counter_menu=+1"
- enable/disable jit
let: arith: syntax error: "counter_menu=+1"
- enable/disable stagefright player
let: arith: syntax error: "counter_menu=+1"
- change heapsize

q - quit (don't forget to reboot your phone!)
==================
enter your option:

What is wrong? I have original fw with busybox (I think)
[Optimus One, P500 Original Android Development] heaven666:
+1. There is the message that's I have sine version 1.01c
[Optimus One, P500 Original Android Development] pantzini:
Same here, as stated in first post, 1.01C is broken. I hope the script can be fixed 'cause I'm very interested in these tweaks.
[Optimus One, P500 Original Android Development] ruigui:
I only arrived home today. Script will be fix in a few hours.

Must do some stuff here, then i'll fix it.

In 1.01c i as trying to optimize the code, to make the script easier to read, but seems that i've done it all wrong...

Once again sorry for the mess, it will be uploaded real soon
[Optimus One, P500 Original Android Development] ruigui:
Script fixed. This time i could test it, thanks to my new phone ;)

I think there are no issues anymore, but give feedback if you find something wrong, or if there are new useful tweaks.

Sorry again for messing everything up
[Optimus One, P500 Original Android Development] heaven666:
works like a charm now, good job man !

thanks,I love, light script, but very effectiveness !
[Optimus One, P500 Original Android Development] weseven:
Thank you very much, everything work as intended ;)
[Optimus One, P500 Original Android Development] notthesun:
hi ruigui and thanks for your work...i' ve some errors when i try to change the heapsize in my o1...I had enabled jit and hardware acceleration through the how to present in this forum, maybe is this the problem??? By the way this is the output of my terminal;

enter new heapsize value (1-64): 32

clear: not found

[: not found

wrong value

please input a value between 1 and 64

please help me!!!!
[Optimus One, P500 Original Android Development] ruigui:
I tested the script again, and everything is working fine, here. I ran it trough adb and in terminal emulator. Had no issues at all.

I'm looking at the code and can't see any errors, now.

What terminal are you using? And have you tried with adb, instead of doing on the phone?

Anyone else has the same issue?
[Optimus One, P500 Original Android Development] notthesun:
i ve tried with terminal emulator from android market ...now i try with adb and post the result here..thanks for your help.

EDIT: again not work with adb...this is the output

C:\Users\Angelo>cd C:\Users\Angelo\Downloads\android-sdk_r07-windows\android-sdk

-windows\platform-tools

C:\Users\Angelo\Downloads\android-sdk_r07-windows\android-sdk-windows\platform-t

ools>adb shell

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

$ su

su

# cd /data/

cd /data/

# ./tweaks

./tweaks

clear: not found

0 - show status

1 - enable/disable hardware acceleration

2 - enable/disable jit

3 - enable/disable stagefright player

4 - change heapsize

q - quit (don't forget to reboot your phone!)

==================

enter your option: 4

4

clear: not found

clear: not found

1- change heapsize

b - back...

==================

enter your option: 1

1

clear: not found

default=24, recommended=32

enter new heapsize value (1-64): 24

24

clear: not found

[: not found

wrong value

please input a value between 1 and 64

==========================

Press Enter to continue...

clear: not found

1- change heapsize

b - back...

==================

enter your option: b

b

clear: not found

clear: not found

0 - show status

1 - enable/disable hardware acceleration

2 - enable/disable jit

3 - enable/disable stagefright player

4 - change heapsize

q - quit (don't forget to reboot your phone!)

==================

enter your option: 0

0

clear: not found

clear: not found

1- current status

2- status (after next reboot)

b - back...

==================

enter your option: 1

1

clear: not found

grep: not found

cut: not found

cut: not found

cut: not found

grep: not found

cut: not found

cut: not found

grep: not found

cut: not found

cut: not found

cut: not found

grep: not found

cut: not found

cut: not found

cut: not found

error. hardware acceleration has wrong value

error. jit has wrong value

error. stagefright player has wrong value

heapsize =

==========================

Press Enter to continue...
[Optimus One, P500 Original Android Development] shitfull:
I also had problems like this because busybox was not properly installed.

try busybox --install -s /system/xbin
[Optimus One, P500 Original Android Development] ruigui:
You are right. whithout busybox script won`t run (first line in first post. i'm swtiching that part to bold )

You can install from Market, or manually.

If manually, first copy busybox binary to /system/xbin/, then do:

(i'm using this binary: http://www.4shared.com/file/200BzFMV/busybox.html)

su

cd /system/xbin/

chmod 755 busybox

./busybox --install -s /system/xbin
[Optimus One, P500 Original Android Development] notthesun:
ok now works very good...sorry my fault!!!
[Optimus One, P500 Original Android Development] pantzini:
v1.0d worked flawlessly for me. The performance boost is actually hardly noticeable, but I'm happy to use any improvement.

I gained about 60 points in Quadrant.

Thanks ruigui!
[Optimus One, P500 Original Android Development] ruigui:
If you had already done some tweaks, or used a customized ROM, there won't be much improvement...

Here in Portugal we have 3 ROMS: unbranded, Vodafone and Optimus.

For ex, only Optimus has jit enabled by default, the others don't.

Me personally only have jit enabled and heapsize increased, nothing else.

I don't really need the extra performance, because my previous phone was pretty old (Nokia E50), and i'm very happy as it is ;)
[Optimus One, P500 Original Android Development] fifedogg:
With this work on the Optimus S?
[Optimus One, P500 Original Android Development] ruigui:
This should work on any android 2.2

Try it and see. This script doesn't change system files, it only uses /data/local.prop

Tomorrow i'll post an update to the script to backup that file if it exists on first run of the script, and an option to restore it if you don't want to use this anymore.

EDIT:

Script updated
[Optimus One, P500 Original Android Development] flaviopac:
worked fine on my p500!

thanks

[EDIT]

it seems to be correctly installed, but Quadrant already scores 560 as result...

I checked the script different times and all seems working fine (adb shell confirms both jit and hw acceleration enabled)

What's wrong?

[EDIT2]

I didn't enable stagefright player..

now I'm pretty happy with 1180 points on Quadrant benchmark! :D
[Optimus One, P500 Original Android Development] ciccio83a:
Can you check if enabling Stagefright you can see video divx?

I had to disable it to see them go again.

Tradotto:

Puoi verificare se abilitando stagefright player riesci a vedere i divx?

Io ho dovuto disabilitarlo per tornare a vederli di nuovo.
[Optimus One, P500 Original Android Development] flaviopac:
I'll check it soon ;)
[Optimus One, P500 Original Android Development] ruigui:
Stagefright is only good for benchmarks. It has issues with media files...

Anyway i see no difference in performance, except in benchmarks.
[Optimus One, P500 Original Android Development] diordna2:
so i got the tweaks file on sdcard/ ,i have busybox installed,and i use terminal emulator.when i try to execute the cat command it says that"no such file or directory"(i typed the command and used chrome2phone too but no luck)

any ideas?
[Optimus One, P500 Original Android Development] ruigui:
That seems to be a problem with busybox. Are you sure you have it working?

What happens in terminal if you just type busybox and hit Enter?
[Optimus One, P500 Original Android Development] diordna2:
it gives me info about busybox version and functions
[Optimus One, P500 Original Android Development] tritant:
If you have copied tweaks.bin on your sdcard rename to tweaks and try again
[Optimus One, P500 Original Android Development] ruigui:
There seems to be a problem with native android browser. If you download files without extension from phone, they will be renamed to blahblahblah.bin. I've reuploaded the file as a zip. Just decompress it to /sdcard and follow tutorial.

There's nothing wrong with your busybox.

@ tritant

thanks for that "tip" ;)
[Optimus One, P500 Original Android Development] diordna2:
thanks guys,that was it.i used opera to download the file.that added a .htm extension to tweaks and because astro hided the extension the file seemed legit.
[Optimus One, P500 Original Android Development] vhr:
Great script. It work.;)
[Optimus One, P500 Original Android Development] onlavu:
The script works great on my rooted original Vodafone´s ROM. THX! No need any custom recovery etc. :)
[Optimus One, P500 Original Android Development] nfd77:
This script works great on the Optimus S :) Can I include it in my ROM?
[Optimus One, P500 Original Android Development] ruigui:
Yes you can. If you like it, use it.

Don't forget to mail me lots of beer!! (just kidding) ;)
[Optimus One, P500 Original Android Development] The_ERROR:
You should implement method buy_me_beer() in script, and let it run on every start. :D
[Optimus One, P500 Original Android Development] fredo138:
than you a will try ...
[Optimus One, P500 Original Android Development] nfd77:
Thanks for the script! Added it to nROM and seems to be working flawlessly.
[Optimus One, P500 Original Android Development] yelo3:
Is it possible to apply this script without having a custom recovery?

For example by using adb.

My aim is to temporary root the device just to apply this fix.

Thanks
[Optimus One, P500 Original Android Development] Omnichron:
you don't need a custom recovery. a simple rooting of your device should suffice.:)
[Optimus One, P500 Original Android Development] nfd77:
A suggestion, maybe add an option for changing screen density? Ex. ro.sf.lcd_density=140
[Optimus One, P500 Original Android Development] Vivasanti:
can someone answer...

Do i have to re run the script every time i restart the phone?
[Optimus One, P500 Original Android Development] aursta:
terminal emulator says cant find it...i put tweaks.zip in system after that i tried in data..same result, cant find it. whats wrong? after all moves to system or data i made reboot to save changes, dont know what to do
[Optimus One, P500 Original Android Development] ungaze:
no need to re-run the script. run it when you need something changed, reboot and thats it.

you must extract what's inside the zip first.
[Optimus One, P500 Original Android Development] Vivasanti:
Thanks Ungaze!

I ran it while it was zipped from recovery and it worked fine?

Didnt know you had to unzip it?
[Optimus One, P500 Original Android Development] franciscofranco:
No. Follow the instructions on the first page, they are perfectly clear.
[Optimus One, P500 Original Android Development] BlackRose 22:
Hey can someone do a post for bootamimation or post a link for me .. thanks off topic

From My LG Optimus P509 CM7
[Optimus One, P500 Original Android Development] Bytecode:
What the hell? You're completely offtopic here!
[Optimus One, P500 Original Android Development] kamalnath:
LOL....... :D
[Optimus One, P500 Original Android Development] jt.one:
so for those who might bump into this and still be unclear...

download the tweaks.zip

extract the tweaks file into sd card

using [insert your file explorer app here] move it to /data

exit

go to terminal emulator

su

cat /sdcard/tweaks

rm /sdcard/tweaks

cd /data/

./tweaks

doing this will give you the menu, from there do what you have to do ;)

*

i had already HWA/JIT/STAGE enabled and i didn't even know lol?

is changing heap size to the recommended value it displays [32] any good? or should just stick to the default 24?