yashsingh1/xdaforums huggingface dataset:
[HD2 Android Themes and Apps] dorimanx:
Hi,

I am working on finding a way to fix the HOME restarts,

For now nothing that i can say working 100%

but i have digged an old script to change the priority for services in system, so all CPU power diverted to them when you open the app. (after script inserted the priority)

script i found was way far from working on our ROm, but after some time i have managed to rebuild it and it's working!

my dialer and sms and gallery and launcher and mail open in second and fly inside the app when i use it,

very cool tweak!

but the system some times once an hour i think set the defaults back.

so script need to run every 30 minutes to set the priority!

also if service was been killed then priority drop to 0

if you like to check this script do this:

First to see what priority you have now use the ps -p | grep YOUR PROCESS

in column of NICE you will see 0 no priority when you set to -16 you will see super fast app.!

About the task killer, i am using it just to kill open apps that i dont want to stay in RAM after i turn my screen off.

all the rest are excluded and never killed. (so it's a half use of task killer)

create file priority.sh (using notepadd ++ or editplus)

#!/system/bin/sh
#!/system/etc/init.d/scripts/priority.sh
#
sleep 100

# Set the priority every 5 minutes
while [ 1 ]
do
HOMEAPP=$(pidof 'android.process.acore')
busybox renice -15 $HOMEAPP
busybox renice 5 `pidof com.google.process.gapps`
busybox renice -18 `pidof com.android.phone`
busybox renice -18 `pidof android.process.media`
busybox renice -18 `pidof mediaserver`
busybox renice -16 `pidof com.android.launcher`
#busybox renice -16 `pidof com.jb.gosms`
#busybox renice -16 `pidof com.nitrodesk.droid20.nitroid`
#busybox renice -16 `pidof xxbcn.AllAppsOrganizerPlusB`
sleep 300;
done

remove the # if you have the apps.

or add yours by checking there names in autokiller (more info)

now run it using gscript and push close.

it's will keep running!

if you run again it's will be duplicated and eat more CPU!

if you like to kill it you must look for process /system/bin/sh or sh

you must start all the apps that you added if they not starting auto on boot.

script will eat 3 to 5% CPU,

also i have rebuild the HOME SHIELD Script!

Create file protector.sh

#!/system/bin/sh
#
# Set -17 oom_adj every 3 sec!
while [ 0 ]
HOMEAPP=$(pidof 'android.process.acore')
HOMEAPPREAL=$(pidof 'com.android.launcher')
#ALLAPPS=$(pidof 'xxbcn.AllAppsOrganizerPlusB')
for i in $HOMEAPP
do
echo -17 > /proc/$i/oom_adj
done;
for j in $HOMEAPPREAL
do
echo -17 > /proc/$j/oom_adj
#done;
#for k in $ALLAPPS
#do
#echo -17 > /proc/$k/oom_adj
sleep 3
done;
do
done

now they are self looping no need for watch!

RUN from gscript and close!

Remove the # if you have the app.

starting from ALLAPPS=$(pidof 'xxbcn.AllAppsOrganizerPlusB')

i have new set of ram manager, i am testing how it's will work.

and if nothing helps i will start using the PROTECTOR again.

I BE BACK!
[HD2 Android Themes and Apps] feanor91:
I just installed the rom and did not apply the tweaks
[HD2 Android Themes and Apps] orhtun01:
Two points to mention:

1. Skin Seems like coming from the Vivid Icons from Sonnysekhon (Nice to mention him I guess)

2. Missing 1 file in the hyperdroid edition (wrt to the tweak file only; 98_cpu_voltage); intentional? or just missing?

Thanks,
[HD2 Android Themes and Apps] dorimanx:
hi.

yes the skin from vivid but just part of it so its new skin by me.

the 98voltage removed. I dont know if hyperdroid have that file by default. if yes then I will insert my tweaked to new version pack.

cooking it now!
[HD2 Android Themes and Apps] orhtun01:
Thanks !

Maybe this will help, init.d contents of HyperDroid 2.1.0 (default) attached.
[HD2 Android Themes and Apps] dorimanx:
i see that it's not contain any default CPU undervoltage script.

i am afraid that if i will include it then rom will not boot.

I you have time to make some test for all people that use this rom,

then just copy from TWEAKS ONLY file 98volatage to / (root)

and change permissions to 755 owner all all the rest READ

run the script. if your phone OK.

copy it to /system/etc/init.d

And you have a new tweak to reduce battery drain :)

if not then you will have to remove that file.
[HD2 Android Themes and Apps] orhtun01:
Tried the following:

Included 98voltage with the other files. HyperDroid booted without any problems, but ROM began restarting itself.

Then, removed 98voltage only, system booted OK. But this time, when opening an application, it started to restart itself (application restarts) and overall system became less responsive and slow.

I guess it might be due to Pongster's own speed tweaks within the ROM and the CPU is already a bit undervolted as far as I can recall.

Without these updates, the ROM itself is faster (battery drain is OK). At least for me..... Hence, flashed the original ROM back to "as is".
[HD2 Android Themes and Apps] dorimanx:
I am aware that last tweaks version is not without bugs.

today I have spent long hours by googling all kind of scripts and system tweaks.

found lots of info that changed the way of my understanding of android system.

I will post today new update that contain all new stuff and fixed tweaks.

stay tuned ;-)
[HD2 Android Themes and Apps] 4D3:
is there a version for hyperdroid without the skin? i like the hyperdroid skin!!

thanks in advance

MG
[HD2 Android Themes and Apps] orhtun01:
Thanks.

Rest a bit as well..... Take it easy.
[HD2 Android Themes and Apps] Looki75:
I knew you were on something, hence your silence... ;)

As orhtun01 said, take it easy; we all really appreciate your devotion an commitment, however, don't forget to sleep and/or don't screw up your day job - the one that brings the real money!

For sure, I stay tuned! :D
[HD2 Android Themes and Apps] sasho36:
Hi,

I'm using HyperDroid and the 98cpu_voltage file without problem, I simply renamed it to 97cpu_voltage as there is already a 98xxx file (98zipalign) in the init.d folder of the rom...

Hope this helps...
[HD2 Android Themes and Apps] chrisrj28:
Swap

Anyone know whether it is better to swap from fat32 with the swapper 2 app or to setup a swap partition?
[HD2 Android Themes and Apps] dorimanx:
cool thanks for info.

I will rename it for tweaks for hyperdroid.
[HD2 Android Themes and Apps] orhtun01:
Just for my info..... aren't those scripts called from some init file? Or are they just alphabetically executed?
[HD2 Android Themes and Apps] poczesaniec1:
for me,full pACK drain more battery,byt with pack for typhon only,it,is good,but not see the diference
[HD2 Android Themes and Apps] adamhonghong:
actually pongster's hyperdroid can use 12vddlevels to edit the voltage
[HD2 Android Themes and Apps] GeitjeG:
Wow dorimanx, you first post looks..., let's say... dynamic! I think you used all fontsizes available:D. A little tidying wouldn't hurt :rolleyes:.
[HD2 Android Themes and Apps] dorimanx:
I am sorry but it's not an ART GALLERY!

So i do my work, and try to explane it, best i can.

Give feedback on my work not on my fonts! :)

good night.
[HD2 Android Themes and Apps] kypeth:
You're not getting it, the feedback is that if you were more concise in your first post we would be more on the ball of understanding exactly what we're running our phones through.
[HD2 Android Themes and Apps] Rudyfastcat:
We ? I don't think so .

Dorimanx is doing an outstanding job and his first post is very informative

and I know exactly how his tweaks improve the performance of the fabulous

Roms they are intended for.

The first post is the reason I now use his tweaks.:D
[HD2 Android Themes and Apps] kypeth:
You MUST DELETE file 94swap or 89swap from your init.d!

How do I do this?
[HD2 Android Themes and Apps] michie:
Wow... thanks for your efforts man, i was following this post from the very beginning and every time you amaze me again with your super fast updates that really make a difference!
[HD2 Android Themes and Apps] dorimanx:
use file manager to go to /system/etc/init.d/

but you need to remove it only if you used my guide to activate SWAP.

And now you are using the HIGH END Tweaks.
[HD2 Android Themes and Apps] dorimanx:
I think that if you dont have time to READ and understand what are you downloading then use the stock rom and have a great life :)

For all people that support me i am very thankful!

It's very important to me! :)
[HD2 Android Themes and Apps] dorimanx:
They are executed by alphabet from init.d folder.
[HD2 Android Themes and Apps] dorimanx:
I am happy that it's make your phone better! :)
[HD2 Android Themes and Apps] pjrmax403:
Screen Off

Mr. Dorimanx, Would you be interested in creating a simple Screen Off Script to keep it off while in pocket? There are a lot of apps with this function but I'd rather not be adding more apps. Just want the screen to stay off and locked while recieving calls in pocket. Thank You for your work, I'm using your tweaks and battery life has never been better!:)
[HD2 Android Themes and Apps] dorimanx:
This can be done only by APP. i didn't found any tweak that will use proximity to check if phone is in pocket.

i am using the Proximity screen OFF. good app.

need to get used to it, you cant close your sensor with hand for 5 sec,

It's will close the screen,

for some time it's was not nice but i got used to that. :)
[HD2 Android Themes and Apps] chrisrj28:
Thanks for your great work, tried 2.3 Lite Tweaks on my rom and Sense wouldn't load for some reason. Trying to figure out why, but overall you are doing a great job. If I was still using Typhoon I would be all over the full package but I know that your tweaks are not intended for Sense builds so I don't expect much. Just providing feedback:D

I have kept the swap partition though and I am noticing good performance with my rom and no home kils so far so you have helped :)

Thanks again
[HD2 Android Themes and Apps] dorimanx:
hi.

I dont really know why sense failing if you post logs maybe we can fix it.

or just use all that work for you. ;-)

for now I am working on tweaks that work on our rom.

but in time I will check others.
[HD2 Android Themes and Apps] dorimanx:
Important update!

there is an updated framework + skin + 1% battery change. now its will not jump by 5% any more thanks to invisablegod for making the code changes.

and for all people that installed High End pack please upgrade to 2.3.1 bug fix.

very important. find it on page 2

just install via cwm.

working on fixing the data connection speed and wifi.

and fast proximity sensor response in call.

stay tuned ;-)
[HD2 Android Themes and Apps] tageeboy:
Thanks for the great work on these updates. Ok can say that I am a daily visitor on your thread and more often that not I hit your thread deferral times Day to chem for your latest release. Wonder if you could get your tweaks added to Rom Manager in the add on section? It is pretty empty for the hd2 section of RM so out may be possible and would give tons of users a fast way to download and apply to updates as well as possibly give you some extra income if they offer some sort of advertisement revenue for traffic. Maybe something to check out. or even better can your add the files to market in the free section and then have another donate version so people can buy if they choose. Just love your work and would like to see you rewarded. Will donate myself this week on pay day

Sent with tin can and dental floss.
[HD2 Android Themes and Apps] dorimanx:
Thanks for advice,

I will check it out, maybe i can help more people,

But then all kind of roms will need to be supported!

And i will have to work full time :)

Maybe when i will fix all major bugs for out rom i will advertize my self to all ROMS.

And about rom manager how can i do it? never tried to use the service.

It's not working on MAG version.
[HD2 Android Themes and Apps] Looki75:
Hi dorimanx,

I was silent does not mean was not testing your 2.3 settings! This time I just waited the end of the day before posting! ;)

I am happy to see that there is more and more improvement every time you post an update!

You know me - I followed ALL your recommendations :cool:

First half of the day was just fantastic! Really.

Ok, HOME restart at boot (as - almost - usual).

But then very fast rom, very stable, no HOME restart, everything super fine!

Then at the end of afternoon, I had 2 HOME restarts one after the other... :confused: Don't know the reason - it just happened when I unlocked the phone...

I really thought we had it this time!

On the RAM side: you are just perfect!

On the HOME restarts side: still job to be done... :( I hope, you, as the master, can find a solution!!! We trust you!

Very good job anyway!

Cheers!
[HD2 Android Themes and Apps] gerardroid:
before ill try your swap,one question:in the installation quide your telling to install the Recovery_150M_system_5M_cache[v3.1.0.1]zip. which can be donwloaded on your post 2,is it necessary to install this? im on 3.0.2.8 150/35 is that also good?..or did you modify it?thnx in advance
[HD2 Android Themes and Apps] dorimanx:
Yes it's create the SWAP as it should be.

I had one person that complaned that he did all the work to format and copy all back and all the needed steps and then stuck on last activation process!

and when i asked him if he used my recovery he told me NO used the one that on Tyween ROM page.

So now i can tell it's will not work with that!.

Sorry you have too upgrade if you need swap.

And if you already doing all the process then make it 256! it's not too much to lose!

But you can stay with 150MB also good.
[HD2 Android Themes and Apps] dorimanx:
Hi,

The problem was in one parameter that i have not changed when packed the HIGH END tweaks!

So i have released 2.3.1 and now 2.3.2! check the main page!

No more home app restarts!!!
[HD2 Android Themes and Apps] Looki75:
I was sleeping while you released 2.3.1 and 2.3.2... :D

I have a question (maybe the answer is in the 2.3.1 description that you trimmed?): what is the file priority.sh that you have in folder \sdcard\phonePrioritizer???

It was not there in 2.3 and I don't remember any description of it, or explanation... :confused:

In particular: do I have something to do with it? Maybe a parameter to setup/update in phonePrioritizer?

I tried to execute it in Gscript and just got errors messages...
[HD2 Android Themes and Apps] michie:
Hey m8, thanks again for the updates, it's working great!

1Question, is it normal that the Phone Prioritizer app icon is just a grey box?

Or is it the NT-sense theme that i use that makes the icon ugly?

Grtz
[HD2 Android Themes and Apps] Looki75:
For information, I activated swap without any issue with the 140/5 partition that Tyween suggested for his ROM.

He is now suggesting 150/5, so I upgraded last Monday, everything works very well, swap included.

So I don't think there's any specific CWM partition requirement to activate swap...
[HD2 Android Themes and Apps] dorimanx:
There is an explanation on release of 2.3

yes you can add more apps to priority.

just on and see what inside.

you have also new app that activate it on boot.

and what errors did you get when you run it?
[HD2 Android Themes and Apps] dorimanx:
sorry for the icon its just aglly haha ;-)

I didt have time to replace it.

its not my app I have found it.

I will fix it.
[HD2 Android Themes and Apps] Looki75:
I have the following errors... well "text":

<A lot of it is invisible as Gscript does show only 14 lines...>

-i Ignore case
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file

So it looks like there was a syntax error and then it just shows the different options available... as a reminder...

And it looks it is part of the following (found on the Internet):

Usage: grep [-HhnlLoqvsriFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f
FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

Options:
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file

You're the master, tell us what does that all mean??? :)

I know about what is written in v2.3, about PhonePrioritizer and the file "script.txt" (the "new app" - PhonePrioritizer - activates "script.txt" at boot and runs it every 5 minutes). I edited this "script.txt" with my own apps (this already from v2.3) and I updated it today according to new file "script.txt" from v2.3.2.

However, the file "priority.sh" was not in the v2.3 package!

So I don't know what to do with it...

As far as I can see in the first post, nothing is described on what we should do with "priority.sh", if we should do anything at all... :confused:

(Maybe is was in the v2.3.1 package with some sort of instruction, but I missed this one as I was sleeping ;))

So I'm a bit confused now: how and where is "priority.sh" used? should it really be in sdcard\phonePrioritizer? Should we do something with it - a sort of installation?... :confused:

Thanks for your answers!
[HD2 Android Themes and Apps] dorimanx:
aaa I have forgot to write about it. and you have found it ;)

this file can help you check if your setting work from script.txt

you need to run it vi terminal with commands!

sh priority.sh phone

this will show you the priority applied to phone from -20 to 20

this is check and debug script.

for advanced users like you ;-)
[HD2 Android Themes and Apps] Looki75:
Ah... ok, no problem!

Yes I find everything :cool:

Yesterday I also found some glitches in "script.txt" where you forgot "#" in almost all of your comment lines... Didn't want to bother you as I think it was not making the script fail, just giving errors somewhere, where the user usually don't see...

So you see, your work is doubled checked :cool::D
[HD2 Android Themes and Apps] michie:
Haha no problem m8, it was not a complain just a question ;)
[HD2 Android Themes and Apps] Downy:
First of all, thanks very much for your effords, I am using your tweaks since some days now and I am really suprised how fast the rom can run :)

Since latest update my launcher is rock solid and not closed every few minutes. Very very good!

But nearly every time I install some apps from the market, I get a "process system doen't react anymore" where I just press "wait" and everything is OK again. So it doesn't really crash but hangs. Is there a chance I can finetune to clear this behavior? Maybe market has too much priority?
[HD2 Android Themes and Apps] dorimanx:
OK thanks for info.

I will check it out!

Are you using the high end pack. ? if yes then you have swap yes?

if not its a problem. ;-)

I have just updated 4 apps in market with no error about system stuck.

but I have changed some tweaks and priority and I will post and update soon.

need to test some more before.
[HD2 Android Themes and Apps] drive1975:
GPS Libraries v1.5 for HD2 Gingerbread

Hello Dorimanx, meanwhile, thanks for your good job, use your own scripts

and I must say that they are really useful and effective.

I have a weird problem using the GPS Libraries v1.5 for HD2 Gingerbread:

usually Battery consumption is good but, When I use an application with GPS, Battery consumption is very high and the charge is hard to maintain the level of the battery ( I see a slight discharge).

Do you have any idea or any suggestions?
[HD2 Android Themes and Apps] Downy:
Thanks!!

I have used a swap partition before your release 3.2, but since 3.2 I still have this partition, but I am not using it anymore as I haven't had the time to proceed the power tweak yet. Currently I am running the "light" variant :)

So swap partition is there, but unused. Maybe thats a problem?
[HD2 Android Themes and Apps] karapialis:
2.3.2 upgrade for hyperdroid cm7?

Hi m8,

Excellent update you have created for our roms, many thanks.I have seen great results to many aspects as speed and battery performance. I am on hyperdroid rom and i use your light package 2.3. Which file must i use in order to upgrade to 2.3.2. All i can see is a file for typhoon's build. Shall i use this?

Many thanks again m8
[HD2 Android Themes and Apps] holychris885:
erased that folder, wiped all, install hyperdroid, waited about 10 min, flash your and bootloop again:(
[HD2 Android Themes and Apps] dorimanx:
Ok, this time i think i know!

The build.prop is not from your ROM so there are some options that may be responsible for the bootloops.

Try to delete this file, you will lose some stuff but if it's will load then we can add tweak by tweak to your build.prop an till we get to one that stuck the phone and not use it!

I think it's probably the

dalvik.vm.execution-mode=int:jit

dalvik.vm.dexopt-data-only=1

There are not many!

Here is the list:

(safely CHANGE thous 3 common options)

ro.wifi.channels=14

ro.sf.lcd_density=190

wifi.supplicant_scan_interval=60

(if you set this then set all 3 at once, look for dalvik.vm.heapsize=32 at your file and put # before it)

dalvik.vm.heapstartsize=5m

dalvik.vm.heapgrowthlimit=48m

dalvik.vm.heapsize=128m

ro.HOME_APP_ADJ=-17

ro.HOME_APP_MEM=1

ro.PERCEPTIBLE_APP_ADJ=-17

ro.PERCEPTIBLE_APP_MEM=1

dalvik.vm.execution-mode=int:jit

dalvik.vm.dexopt-data-only=1

If you will find it's working please UPDATE :)

Thanks.
[HD2 Android Themes and Apps] dorimanx:
For now hyperdroid is not booting after my tweaks, i hope we will resolve it.

About the SWAP it's not working by default even when you set it on external partition creation!

Check my main page for instruction how to activate SWAP,

You can skip to part when you need to create file swap.sh and execute it from your nand root dir.
[HD2 Android Themes and Apps] HD2OHYEAH:
I edited the ro.sf.lcd_density=190 to ro.sf.lcd_density=240 and re flashed but the icons and apps still don't open as they did before.
[HD2 Android Themes and Apps] drmodify:
great job!!! seems like a lot of potential

say there's a problem with your tweak, is there anyway to return to default settings?

tried your tweak, had small icons as well not full screen displays of apps.. any res fix for this? usingBOYPPC-SHIFTPDA DESIRE HD_V15*SENSE 3.0_V2*GINGER CM7_V29
[HD2 Android Themes and Apps] dorimanx:
Well the easy way is to reflush your working ROM

Just go to CMW delete cache and dalvik cache and flush your working ROM,

when it will load with LOTS OF FC just wait for 3 minutes and pull your bettery out and boot again, wait for 10 minutes no less and your ROM will be back again.

Also i am checking my tweaks all the time on my device so all should work fine.
[HD2 Android Themes and Apps] dorimanx:
There is no other tweak that changing the LCD density.

go to terminal emulator

su -

cat /system/build.prop | grep ro.sf.lcd_density

if you still see =190 then you didn't saved the file correctly.
[HD2 Android Themes and Apps] jacpot:
Very interesting, i wait for miui :)
[HD2 Android Themes and Apps] jizreal:
works very well. quadrant score is 1538
[HD2 Android Themes and Apps] clio94:
Hello. i am trying to make swap but i cant finish the procedure.

when i type in terminal ./swap.sh

i have error

failed:no such file or directoryk3 on /system

:no such fileor directoryck/mmcblk0p3

cd: cant cd to /etc/init.d/

with root explorer i see that in root / exists file swap.sh and also i made swap partition.

any ideas; thank you
[HD2 Android Themes and Apps] dorimanx:
Are your device ROOTED?

What ROM are you using?

And did you created SWAP when you formatted SD via CWM?

I see that i have small error in my script with the cd to /etc/init.d/

It's should be cd /system/etc/int.d/

I will fix the main page code.

All the rest should work wright away.