Related
Hi guys,
From now all my work will be on h_t_c_p_e_d_i_a, announcement of new roms or any other work from me will be on h_t_c_p_e_d_i_a.
So to be informed follow that thread.
Regards,
Weather
Have you moved from your island to have 0°C and rain? Going to install it, Sense is bloated so it could be the thinner one. Thanks
flashing
What did you remove from this? What's ''Clean'' considered as?
I gonna follow this one, looks interesting!
so is this rom faster than the other roms? ive noticed a keyboard lag which is really annoying
works quite good i likes it
what is new on this besides the pinching home screen which is quite funky
(wonder if apple are gonna try to sue for that)
shaji007 said:
works quite good i likes it
what is new on this besides the pinching home screen which is quite funky
(wonder if apple are gonna try to sue for that)
Click to expand...
Click to collapse
As it's running 2.1, it means you can install all the latest Google goodies and software that was not compatibl with 1.5. Goggles, maps with buzz , gogole translate with voice etc
Oh, and also - open your home screen with the large clock/weather widget and wait some 5 seconds and see what happens. Took me almost 24 hours of uisng these new roms to notice.
No root
what about mms is it working on this rom???
gps fix take long time from seconds
gps fix take long time from seconds to minutes with eris port roms
BO7AMZA said:
gps fix take long time from seconds to minutes with eris port roms
Click to expand...
Click to collapse
Tray to turn GPS on and reboot phone. Solved te problem for me!
working perfectly. thank you very much
Root programms don't work, but root is in rom. Why root programms don't work?
msio said:
Root programms don't work, but root is in rom. Why root programms don't work?
Click to expand...
Click to collapse
Can anyone confirm this?
BTW ... I love you for your work Lox ;-)
problem with root indeed
MarketEnabler doesn't do it's trick so I can't access my paid apps
the rom is nice and fast at first sight, thanks Lox!
iRobert said:
Can anyone confirm this?
BTW ... I love you for your work Lox ;-)
Click to expand...
Click to collapse
I haven't downloaded this ROM, but the root problem with the initial BeHero (and Villain seeing as that's based on BeHero) was the su file file was in the xbin folder and could not have the correct permissions.
This was resolved by moving it into system/bin and setting the permissions on it there. I did the same for sqlite3 too in my ROM.
I'm guessing (and this is pure speculation) that by trying to clean the ROM Lox has moved the su file back into system/xbin then installed the ROM without formatting his ext partition This would install fine on a Hero that already has root permissions, and maintain its root capabilities, but on one with a wipe the root permissions would disappear.
google earth work ??
TheAshMan said:
I haven't downloaded this ROM, but the root problem with the initial BeHero (and Villain seeing as that's based on BeHero) was the su file file was in the xbin folder and could not have the correct permissions.
This was resolved by moving it into system/bin and setting the permissions on it there.
Click to expand...
Click to collapse
is this something we can do ourselves after flashing it or does it have to be done by the rom cook?
as I don't see remounting happening without root.
Gawis said:
is this something we can do ourselves after flashing it or does it have to be done by the rom cook?
as I don't see remounting happening without root.
Click to expand...
Click to collapse
For the amount of people needing the fix it would be better if the ROM cook provided the fix.
I could modify the ROM for you but I think that would be offensive to Lox so I won't. You could do it yourself using dsxida's kitchen - it's pretty straightforward. Might need some extra (FREE) software on Windows, but works out the box on OSX or Linux.
You'd have to move that file. Find:
set_perm 0 0 06755 SYSTEM:xbin/su in the update-script
replace with
set_perm 0 0 06755 SYSTEM:bin/su
And then cook the ROM again. Job's a good 'un!
I reported a couple of kernel tweaks I came across on the web the other day but there has been no response yet so I thought I'd start a new thread to catch peoples attention!
The tweaks are for non-BFS kernels only (e.g. Flykernel 10a) and alter a couple of the parameters within the scheduler. I dont know enough about linux kernels to give more details but I was hoping someone who did know more would explain what the parameters do.
After applying the tweaks my phone is the smoothest I have ever felt it be and subsequently I have returned to 528MHz. Even now it feels smoother than I have had it on any other ROM when OC'ing > 600MHz. This means my battery life has seriously increased too. My phone has been running 26 hrs with email and weather updates with still 66% left.
I am currently using elelinux 1.8 and flykernel 10a @ 528MHz and I honeslty dont feel the need to flash any ROM updates anymore (yet!). The tweaks are:
EDIT: Due to some confusion I would like to make it clear in the following commands DO NOT type the '#' or '$' symbols. These are just to indicate what the terminal shows.
from ./adb shell or terminal emulator on phone
$ su
# mount -o remount,rw /system
# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf
# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf
# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf
# mount -o remount,ro /system
# sysctl -p
(the following should print after typing previous command)
kernel.sched_latency_ns = 600000
kernel.sched_min_granularity_ns = 400000
kernel.sched_features = 24188
# exit
$ exit
Try them and see if it makes your phone smoother. Im sure they will. and if they dont then just delete the sysctl.conf file and you should return to normal on next boot.
EDIT2: Ok so it has become apparent that the tweaks to dont speed up ALL ROMS as the title suggests. I apologise for this over big-uppery. I think the main reason for this is that some devs have already incorporated similar tweaks (cronos?). Also erasmux has been playing around with the tweaks and he has suggested that not all the tweaks have a significant effect on performance. Of course you are all welcome to play around too and find whats suits you best. As for me, im going to leave the tweaks in because for the first time since buying my hero i am pleased with its performance and I dont see the point in removing a couple of lines from a file if it makes no difference!
Also, it is worth noting that there may be some down side to these tweaks as pointed out by Decad3nce on page 5 (post #44) in that apps requiring constant cpu time such as gps may become jumpy. I havent noticed any ill-effects yet but then I havent been on any long drives with sat-nav either so I dont know. (if you have already got yourself seriously lost or missed some meeting I apologise).
If after reading all this you still want the tweaks either follow the instructions above or flash the updated kernel elelinux was kind enough to compile (page 3) or there is another link on page 4/5 i think
Now if C0mpu13rFr34k would hurry up and finish that theme my hero may well be perfect!
Oh wow Thanks i will try this now also does this affact the bechmark scores in anyway ill report if does
A-MA-ZING, wow it's so smoother ! it work so fine !
haha how you get that done so fast im still typing
Edit: Grrrrrr..!!!!!!! Terminal crashed when typing this owell try again
I've not benchmarked it since applying tweaks but I don't think this will change benchmarks. It just improves the 'interactivity' which is all I want to do. Benchmarks are just numbers!
Sent from my HTC Hero using XDA App
ah okay thanks
Edit: just done and rebooted first impresions WOW Thanks alot realy smoothed things up a bit becnch marks are around the same (5.2)mflops for me
too bad im using bfs kernel...
orangeclanz said:
too bad im using bfs kernel...
Click to expand...
Click to collapse
Just flash non-BFS and try it. It will be worth it. If you don't like flash back!
Sent from my HTC Hero using XDA App
it is smoother : )
thanks!
Floyo 0.8
will it work with the official kernel that i got with my hero? 2.1.
liorweitz said:
will it work with the official kernel that i got with my hero? 2.1.
Click to expand...
Click to collapse
As far as I know it will work. Though I think you will need root to write a file to the /system directory.
Sent from my HTC Hero using XDA App
Anyone tried adding this to one of the init.d scripts and seeing if it helps speed?
You will need root to use most of these, as they are setting kernel params, and IIRC that requires root.
Doesn't the .config file cause the settings to be applied at startup?
Sent from my HTC Hero using XDA App
f_padia said:
Doesn't the .config file cause the settings to be applied at startup?
Sent from my HTC Hero using XDA App
Click to expand...
Click to collapse
Yes, if you compiled a kernel using these tweaks in .config, then they would be applied at startup by default. This would just let people test it out and see if they wanted to compile using these settings for good, as I imagine they will.
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
BuzzyFuzzy said:
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
Click to expand...
Click to collapse
Are you definitely on a non-BFS kernel? I think this is an issue if you have a BFS kernel.
Sent from my HTC Hero using XDA App
f_padia said:
Are you definitely on a non-BFS kernel? I think this is an issue if you have a BFS kernel.
Sent from my HTC Hero using XDA App
Click to expand...
Click to collapse
yes, FlyKernel-10a
can someone copy the code in to a post here? so I could just copy paste into CMD, beacuse I really not very good with that stuff.
Thanks,
Idan.
BuzzyFuzzy said:
doesn't work at me 3x error
# sysctl -p - says short write - im not sure if is this normal
kernel.sched_latency_ns = 600000 - not found
kernel.sched_min_granularity_ns = 400000 - - not found
kernel.sched_features = 24188 - - not found
Click to expand...
Click to collapse
hmm im not too sure to be honest. If you followed the instructions as I listed them I dont think you should have the problem. It seems as though the commands werent written to the sysctl.conf file. Again im not really very good at programming so I cant give you much more help. sorry
idanfima said:
can someone copy the code in to a post here? so I could just copy paste into CMD, beacuse I really not very good with that stuff.
Thanks,
Idan.
Click to expand...
Click to collapse
If you have the Android SDK then go to the tools folder in a command prompt (or terminal in linux) and run:
adb remount (./adb remount)
adb shell
then the following: (if you go straight through the terminal emulator in your phone dont run the above 2 commands)
$ su
# mount -o remount,rw /system
# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf
# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf
# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf
# mount -o remount,ro /system
# sysctl -p
(if your above commands worked it should print:
kernel.sched_latency_ns = 600000
kernel.sched_min_granularity_ns = 400000
kernel.sched_features = 24188)
# exit
$ exit
and you should be done.
if i have a recovery image but not SU apk, can i still do it?
Hi, all!
It's my first mod and first thread on XDA, so forgive my mistakes.
I really don't like the Xperia S capacitive buttons. After ask a question about the matter on XDA, I decided to try to do it myself. And after a few hours eating some bits, I could finish my work:
Native ICS on-screen buttons on Xperia S!!!
(See screenshots attached)
Short story:
I started reading this post, that led me to this other post that led me to try to use a tool called apktool. Sadly, apktool seems a little buggy and I decided to modify the framework-res.apk without decompile and recompile it. How? Binary diff. I can't say it was easy, but after a few hours I could modify the apk. In the Long story, on the second post, I'll tell how.
Things you need:
1. Root your device (see this post to learn how to unlock and root)
2. adb installed (or a working recovery)
Things I don't need to say (but I will):
YOU are responsible for any damage this mod could cause in your phone. I did exactly what I described below and it worked for me, but only God can make sure it will work for you. I don't think it's a big deal since you can flash you ROM again in case of any problem.
How to backup:
If you really want to backup your original framework-res.apk, run it before installing:
Code:
[email protected]:~/Android/LT26i$ adb pull /system/framework/framework-res.apk framework-res.apk.bkp
And save the file framework-res.apk.bkp.
It's not very important because you can get this file from the ROM package or from here (link from optik19918).
How to install:
Install this mod is as simple as replace the file /system/framework/framework-res.apk by the modified framework-res.apk. Here follow some options to accomplish that:
Option 1 (via adb):
1. Choose a folder on your computer
2. Download framework-res.apk.
For firmware 6.1.A.0.452:
mediafire
my home (slow link)
For firmware 6.1.A.1.58:
my home (slow link)
For firmware 6.1.A.2.45:
my home (slow link)
3. Run the following steps (I did on Ubuntu Linux, but they are easily translatable to Windows):
Code:
[email protected]:~/Android/LT26i$ adb shell
[email protected]:/ $ su
[email protected]:/ # mount -o remount,rw /system
[email protected]:/ # mkdir /system/tmp
[email protected]:/ # ^D
[email protected]:/ $ ^D
[email protected]:~/Android/LT26i$ adb push framework-res.apk /system/tmp/framework-res.apk
4765 KB/s (15874684 bytes in 3.253s)
[email protected]:~/Android/LT26i$ adb shell
[email protected]:/ $ su
[email protected]:/ $ mv /system/tmp/framework-res.apk /system/framework/framework-res.apk
[email protected]:/ # ls -l /system/framework/framework-res.apk
-rw-rw-rw- shell shell 15874684 2012-06-28 03:58 framework-res.apk
[email protected]:/ # rmdir /system/tmp
[email protected]:/ # mount -o remount,ro /system
[email protected]:/ # ^D
[email protected]:/ $ ^D
[email protected]:~/Android/LT26i$ adb reboot
4. Wait your phone to restart
5. Thanks me by clicking 'Thanks' button below
6. Say some bad words to the physical buttons!!!
Option 2 (via recovery):
1. Download the on-screen-buttons.zip
2. Reboot on recovery
3. Apply this zip
4. Restart the phone
5. Thanks me by clicking 'Thanks' button below (and also Soheil_rf for the zip version)
6. Say some bad words to the physical buttons!!!
Option 3 (via file manager):
1. Download the same file of option 1, step 2 (above)
2. Use your favorite file manager to copy the downloaded file to /system/framework/framework-res.apk
3. Restart the phone
4. Thanks me by clicking 'Thanks' button below
5. Say some bad words to the physical buttons!!!
How to uninstall:
Just repeat Option 1 or 3 above, but using the framework-res.apk.bkp you backed up or this one (link from optik19918).
----------------------
Some points:
1. The file is really smaller than the original, and it must be caused by the linux archive app when I copied the patched 'resources.arsc' to the original apk. It worked for me up to now, but I will try to figure out why it happened.
2. I will explain how I patched the 'resources.arsc' and changed the boolean value in the first reply of the thread. It was a pain in the ass, but worth sharing (edit: explained here: http://forum.xda-developers.com/showthread.php?t=1823223).
Long story
Reserved to tell the long story about the patch, If I have time.
EDIT:
And finally had some time! But it was to big for a single answer, I created a new thread:
http://forum.xda-developers.com/showthread.php?p=29979582
Hope you like it!
Thanks a lot! Can u make a flashable zip since now we have recovery in kernel!
Sent from my LT26i using xda premium
WebMuth said:
Thanks a lot! Can u make a flashable zip since now we have recovery in kernel!
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
I don't know how to do it yet, but I can learn.
Let's test it on more devices before, and then we can do it.
Thanks!
but man pls upload it to mediafire or something like that! is to slow 50 minutes to download
Great Work
I make it Flashable on-screen-buttons.zip
@ brunojcm :also I can make smaller buttons if you tell us how to patch resources
Thanks brunojcm
Wow this app is amazing, Awesome work guys....
I now only have to press once to go back or home, BUT there is one little problem. The last botton on the right is not assigned to open the settings menu like the original one. Is this fixable?
thx though grate work!!!!
Also could you make the black border slightly slimmer...
slyevo said:
Wow this app is amazing, Awesome work guys....
I now only have to press once to go back or home, BUT there is one little problem. The last botton on the right is not assigned to open the settings menu like the original one. Is this fixable?
thx though grate work!!!!
Also could you make the black border slightly slimmer...
Click to expand...
Click to collapse
That button is for the task manager if you noticed is not needed the other button becose in apps that require that button now there is a new button with 3 dots that is the settings button
Oh and this thread is not ment for development section, but for themes and apps
Sent from my LT26i using xda premium
WebMuth said:
That button is for the task manager if you noticed is not needed the other button becose in apps that require that button now there is a new button with 3 dots that is the settings button
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
I have just figured that out, A bit late i know. Your mod is amazing i hit the correct button every time now!
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
wow, great work I just installed it and it works great thanks:good:
---------- Post added at 03:43 PM ---------- Previous post was at 03:38 PM ----------
one thing, it would be possible to make buttons, auto-hide, as the Galaxy Nexus?
zbuh said:
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
Click to expand...
Click to collapse
Are you for real? Cant you see the stickies?
Skickat från min LT26i via Tapatalk 2
Soheil_rf said:
I make it Flashable on-screen-buttons.zip
Click to expand...
Click to collapse
Thanks! I added an option for your method.
Soheil_rf said:
@ brunojcm :also I can make smaller buttons if you tell us how to patch resources
Thanks brunojcm
Click to expand...
Click to collapse
Man, believe me, using the way I used to patch the file, it's impossible to change images... I think we will need to wait until apktool is fixed.
zbuh said:
Nice!
I've updated my xperia S to ICS. but i didnt find a topic about rooting it...
could you please point me to that topic? thanks
I'm going to unlock BL today just because this hack!
Portugal!
Click to expand...
Click to collapse
I've put a link to a DoomLord thread explaining everything about unlock and root. You'll see there that there is two ways for root currently, both need a unlocked bootloader.
robyroby0 said:
wow, great work I just installed it and it works great thanks:good:
Click to expand...
Click to collapse
Good! Just click Thanks on me and that's all right!
robyroby0 said:
one thing, it would be possible to make buttons, auto-hide, as the Galaxy Nexus?
Click to expand...
Click to collapse
Are you talking about the little dots when you're on galery, for example? It's working for me. If you're not, I don't know this feature.
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
slyevo said:
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
Click to expand...
Click to collapse
Don't think so... Have you ever seen a Android with this behavior?
slyevo said:
Is it possible to remove the mod from the home screen & just have it appear when is task windows?
Click to expand...
Click to collapse
Atm nope wait for aokp amd maybe u'r lucky but not sure
Sent from my LT26i using xda premium
i found some bug in camera app, the camera screen button it not in the side of the screen, please fix.
also make the black bar smaller 25%, and the placement of back icon should be more left so it on a line with the dot and transparent bar so does the task manager too, should be more right.
and also please make an option to disable the original touch button
thanks for your effort
is there a way to uninstall this mod?
skydawn1001 said:
is there a way to uninstall this mod?
Click to expand...
Click to collapse
yes use this zip http://www.mediafire.com/?62d7d4c2j2uy19m
or if you made a backup of the original file use the option 1 with the stock file
Finally decided to install Cyanogen Mod 10 because it's the most stable one, but the problem is that even when Brightness settings are set to max my display is only 50% and it's very strange. Please help
MADNJPN said:
Finally decided to install Cyanogen Mod 10 because it's the most stable one, but the problem is that even when Brightness settings are set to max my display is only 50% and it's very strange. Please help
Click to expand...
Click to collapse
I'm having the same problem.....
Sent from my One X using Tapatalk 2
Jess813 said:
I'm having the same problem.....
Sent from my One X using Tapatalk 2
Click to expand...
Click to collapse
Unfortunately can't post the link due to forum ruels. But I'll copy the instruction.
CyanogenMod brightness Issue FIXED
I have installed Cyanogenmod , it is super fast and perfect rom
only one issue that is very major issue for me , is low brightness. I tried many things but no success
Today i got solution , it is very easy
- After installing cyanogenmod , install root explorer
- go to sysyem/etc directory
- Find hw_config.sh file
- Tap and hold on this hw_config.sh file , select edit in text viewer option from the menu
- Scroll down to the bottom , there you will see this code (i am using FXP054 cyanogenmod , for other versions it may vary)
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1,65,255,24,24,5,128 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 450 > $dev/button-backlight/max_current
Change above code to
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 450 > $dev/button-backlight/max_current
Reboot your phone and voila you have fixed brightness problem :
I found this post yesterday, the guy who posteed says it works, but on My Xperia S it didn't maybe I did something wrong but anyway, the only thing that has changed is the LED Stripe on the bottom became brighter but not the display, maybe somebody can rewrite this code.
PS: Before changing something backup the System file.
Brightness
Jess813 said:
I'm having the same problem.....
Sent from my One X using Tapatalk 2
Click to expand...
Click to collapse
try this...
It's a well known problem on CM
SaZh047 said:
try this...
It's a well known problem on CM
Click to expand...
Click to collapse
Hey, thanks that really helped. Huge thanks!!!!
Download "Disable Auto Brightness" on Play Store ,the best solution for this problem.
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Nuck-TH said:
Please write what you really want - just make and copy files is easy, but i think, that it isnt all u want...
Click to expand...
Click to collapse
Its what i really want to do,
I want the .sh script to make a file on the sdcard with information on it, then i want the .sh script to copy it to system/etc/init.d
Why not just make script create file directly in init.d?
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
what about making a flashable zip that contains the script? it will extract directly to init.d
Sent from my Xperia Arc S using xda premium
---------- Post added at 08:43 PM ---------- Previous post was at 08:36 PM ----------
Pizza_Dox said:
Ok, I dunno how to, and how to make that script in init.d have text
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
do you have any experience with unix scripting at all? I can help you
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Hey Guys!
Im making a script and its called Lagg Nullififer (Click Me)
Its pretty cool and it speeds up android, but i want to make a temporary mode and a permanent mode (init.d) so i want the .sh script to make files on SDCard/Lagg_Nullifier (or any other folder) and i want the files to have the text in them!
EG:
.sh script makes file in sdcard then copys to system/etc/init.d
Please, Please, Please help as i cant find how to do this ANYWHERE!, Thankz in Advance!
Click to expand...
Click to collapse
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
exactly
Sent from my Xperia Arc S using xda premium
I dont want to make a flashable zip, i want it to be like superchrager to make the files in init.d, , Heres what im trying to do for my mod, Thing is its really good, Honestly, Go try it out, If u dont like it just reboot
Here:
http://forum.xda-developers.com/showthread.php?t=2319774
Im trying to get 2 options to come up and say install in init.d or testdrive, testdrive will inject tweaks for current sesion and when u reboot they go away, and init.d will keep those tweaks and things,
Also if u want u can Be my partner in Lagg Nullifier,
wedgess said:
I'm really confused as to what you want to do, but if I understand correctly, U want to make it temporary so if users reboots the script doesn't stick but if the user wants it to stick it will create a init.d rite??
And ye i would also ask have u any experience in scripting because this is pretty/verry easy
So basically for it to be temporary you just want to run the script, if u want it to stick after reboot you must place it in init.d folder or for lupus Kernels you could also place it in boot.d, dependinfg on wether u want it to run on BOOT or INIT.
Click to expand...
Click to collapse
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
I checked your script a while ago, and it needs a lot of improvements, you should add user privilege check to the script, and add a line to mount system with read/write permission. And also you should make the script a bit more aggressive and give the user some choices to pick. Unfortunately I don't have much time to do it myself, but I'll try to.
Anyway to make the script create another script in init.d with text in it it's really simple, here's an example:
echo #put your first command here# > system/etc/init.d/99LagNullifier
echo #put your second command here# >> system/etc/init.d/99LagNullifier
">" overwrites any old text in the file
">>" adds to the existing file
Sent from my Xperia Arc S using xda premium
Pizza_Dox said:
Yes thanks, someone understands,, lol, Yes, thing is i dident Learn, i just read alot of scripts and tested out a TONNE of different things and values i wanted to use in my script which is HERE
And its universal accros all devices so some might not have boot.d but init.d most of them will have, And thats what i want
I want to have 2 options and have one to make init.d files and one for temp (Temporary method is working fine now, )
Click to expand...
Click to collapse
Oh OK and not being smart but do u know wat each line of your script does. Because I have seen many users creating scripts and although the desired effect works there are parts which are not needed or the creator does not have a clue what they do. They just cram in awhole load of things which look or sound good. IM NOT SAYING THIS IS YOU.
I'm not at a PC rite now so can't look at your script. But seen as u don't want to make it a flashable zip, I would suggest something that maybe u could run via script manager or terminal like lupus menu. With a couple if options like set on every boot. Or run until reboot and say a check to make sure other init.D's do not conflict with yours. Just some suggestions.
Lol @Themike_10452 the below will probably confuse the hell out of him
inspire yourself with this code
clear ##clear the screen
echo ""
##check for root privilege
id=`id`; id=`echo ${id#*=}`; id=`echo ${id%%\(*}`; id=`echo ${id%% *}`
if [ "$id" = "0" ] || [ "$id" = "root" ]; then
echo "Root permission: Yes"
else
echo "Root permission: No"
echo ""
echo Please run the script with SU permission
sleep 3
exit 69
fi
if [ ! "`which busybox`" ]; then ##check for busybox
echo "Busybox found: No!"
sleep 3
exit 70
else
echo "Busybox found: Yes"
fi
echo ""
busybox mount -o remount,rw /system ## mounts system as r/w
#
#
#your actions here#
#
#
line=====================
m1k3="=== Themike10452 ==="
echo $line
echo $m1k3
echo $line
echo ""
echo Done!
echo ""
echo -n "Reboot now? (Y,N)"
read input ##read user input and store it in "input" variable
case $input in
y|Y) echo "" ##if answer is "y" or "Y" then ...
echo Your phone will now reboot
sleep 2
echo ""
echo ========== POOF! =========
sleep 1
reboot ;;
*) echo "" ##any other answer then ...
echo "So reboot manually later "
sleep 2
exit ;;
esac
Sent from my Xperia Arc S using xda premium
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Pizza_Dox said:
Omg, THANKZ alot!, , only problem is I'm not on PC, so I'll continue stuff latter
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
alright hit thanks at least
Sent from my Xperia Arc S using xda premium
---------- Post added at 10:37 PM ---------- Previous post was at 10:30 PM ----------
wedgess said:
Lol @Themike_10452 the below will probably confuse the hell out of him
Click to expand...
Click to collapse
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
benefit from it as much as you can, I added some colors to make it look clearer
Sent from my Xperia Arc S using xda premium
Themike_10452 said:
I'll try to clarify things as much as I can this is Unix after all
Sent from my Xperia Arc S using xda premium
Click to expand...
Click to collapse
Oh u came back and edited it much easier for him now
Pizza_Dox said:
I can't, got to 8 today, will do tmrw, and again thanks alot and I'll check out the code, I like the input part but the reboot and etc... I mostly knew about,
@wedgess, it diddent really confuse me, , lol
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Good but I would still however look up some bash so u know exactly what's going on and how to fix it if u run into problems.
Ok I looked through your script quickly there... as mike said there is still alot of work to do. this is not ment as destructive criticism but constructive, to help you make it better, which i'm sure is what you want.
It can be cleaned up quite a bit. It looks like you took alot of other peoples scripts/tweaks and put them together with a lot of sleeps, which certainly will not be good... unless u run them in the background. Because device wont boot for a long time with them all, I think there is 3/4mins where script pauses. It will be fine in boot.d as it wont affect boot time but in init.d seems like a NO NO. also thigs like
Code:
/system/xbin/echo 1 > /proc/sys/vm/oom_kill_allocating_task
can simply be
Code:
echo 1 > /proc/sys/vm/oom_kill_allocating_task
or even better, I think its a good idea to create a variable for busybox say BB. I noticed on LuPuS script at the start certain commands would not work unless I had busybox before each command. I run my kernels busybox from /sbin, So would be
Code:
BB=/sbin/busybox
-- this way
Code:
$BB echo 1 > /proc/sys/vm/oom_kill_allocating_task
As I also mentioned u should place a check so your script will make sure any scripts already in init.d will not conflict. And if they do give the user option to overwrite or keep their current script or back it up.
edit - Crap u said u wanted it to be universal. So maybe better to check for busybox.
Code:
if [ -e /sbin/busybox ]; then
BB=/sbin/busybox
elif [ -e /system/xbin/busybox ]; then
BB=/system/xbin/busybox
elif [ -e /system/bin/busybox ]; then
BB=/system/bin/busybox
else
echo "No busybox found!"
fi
Thanks alot, for all the help guys! I'll get on working and just to clarify I took the base commands from Lenarox, Juwe11 & many others, tested them & modified alot to find the best combo and I added some of my Own Tweaks!,
Also with the whole sleeps thing I already know that it's not Good In init.d and so o was making it to
Just inject all commands
Also in the script their were alot of sleeps because this way it gives each tweak to settle in
Sent from my R800i using xda app-developers app
Ok I tried testing this:
(Thanks mike)
Code:
case $input in
y|Y) echo "Would You Like to Reboot Now?"
echo "Your phone will now reboot"
sleep 2
echo ""
echo "========== POOF! ========="
sleep 1
reboot ;;
*) echo "If You Dident Reboot Then..."
echo "Reboot Manually!"
sleep 2
exit ;;
esac
And it dosent work in smanager... Need some help with it,