[TWEAK] How to get more RAM and speed up responses! - Samsung Galaxy SL i9003

I was browsing at the Android Software and Hacking General thread and I just found this. I tested this on my phone and I think I got 10 - 20MB of free RAM. I'm still not sure if this will work for you, but you can give it a try..
According to the OP..
This is not useful in odexed ROMs & devices with 1GB or more RAM. However, this will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing. It's not that you can't apply this tweak on an odexed ROM but rather, it's useless to do so.
Click to expand...
Click to collapse
Advantages:
More free RAM.
Faster launch for system & user apps during the second launch.
Gives as much as of a performance boost as ODEX without odexing. Themer friendly.
Smoother app switching.
Disadvantages:
Might break some apps.
Click to expand...
Click to collapse
Here's the link to the original thread:
http://forum.xda-developers.com/showthread.php?t=1263119
Dont forget to give him your thanks if it works! And for me too
Credit goes to nibras_reeza
NOTICE:
Please don't use this tweak for those who already installed the CF-Root by ganeshbiyer, this tweak is already integrated to the kernel itself.

Silentkiller101197 said:
I was browsing at the Android Software and Hacking General thread and I just found this. I tested this on my phone and I think my I got 10 - 20MB of free RAM. I'm still not sure if this will work for you, but you should give it a try..
According to the OP..
Here's the link to the original thread:
http://forum.xda-developers.com/showthread.php?t=1263119
Dont forget to give him your thanks if it works! And for me too
Credit goes to nibras_reeza
Click to expand...
Click to collapse
I think this tweak in all ROM's

TheFrankenstain said:
I think this tweak in all ROM's
Click to expand...
Click to collapse
What do you mean buddy ??

Silentkiller101197 said:
What do you mean buddy ??
Click to expand...
Click to collapse
This tweak included in all custom ROM

yeah this tweak is present in every custom rom

yeah this tweak is present in every custom rom
Click to expand...
Click to collapse
This tweak included in all custom ROM
Click to expand...
Click to collapse
Oh I didn't knew that.. Sorry
But it is still useful for those who have a stock ROMs, right ?

ya, I'm using stock rom, and I just did this tweak yesterday...
and my "Go Keyboard" starting to act strange...
may be it doesn't like the tweak?

How strange ..
alex88510 said:
ya, I'm using stock rom, and I just did this tweak yesterday...
and my "Go Keyboard" starting to act strange...
may be it doesn't like the tweak?
Click to expand...
Click to collapse
not sure.. but this tweak has nothing to do with keyboard, ALTHOUGH according to the op, this can break some apps..
But you can still undo this tweak.. just go open up your Terminal Emulator or ADB shell and type these commands:
su
# setprop dalvik.vm.verify-bytecode true
# rm /data/dalvik-cache/*
# rm /cache/dalvik-cache/*
# reboot
Click to expand...
Click to collapse

alex88510 said:
ya, I'm using stock rom, and I just did this tweak yesterday...
and my "Go Keyboard" starting to act strange...
may be it doesn't like the tweak?
Click to expand...
Click to collapse
Did u find any improvements, other than the keyboard issue.. Concerned coz I'm on stock rom too..

sorry, I found that the keyboard problem is not cause by this tweak but its recent update.
About improvement, I did found that the apps are opening faster.

Hope somebody who's tried this tweak can help me..
In the first step in terminal emulator, the fourth line.
rm /cache/dalvik-cache/*
It said no such directory found.. Tried twice but the same thing..
Step 2- do I need to add both the following lines to system/build.prop
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v-n, o=v
I found the 2nd line already present in the build. prop.. So I just modified it without adding the 1st one...
Please tell me where I've gone wrong, I'm the first and second steps.. Cheers..

ivAnash said:
Hope somebody who's tried this tweak can help me..
In the first step in terminal emulator, the fourth line.
rm /cache/dalvik-cache/*
It said no such directory found.. Tried twice but the same thing..
Step 2- do I need to add both the following lines to system/build.prop
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v-n, o=v
I found the 2nd line already present in the build. prop.. So I just modified it without adding the 1st one...
Please tell me where I've gone wrong, I'm the first and second steps.. Cheers..
Click to expand...
Click to collapse
For the fourth line, which show no directory found, I just skip it and manually clear cache and dalvik-cache in the recovery.
for the step 2, I just modified it if it already existed.

alex88510 said:
For the fourth line, which show no directory found, I just skip it and manually clear cache and dalvik-cache in the recovery.
for the step 2, I just modified it if it already existed.
Click to expand...
Click to collapse
K.. For step 2 do u just modify one line which is there in the build. prop or add the other line too..

ivAnash said:
K.. For step 2 do u just modify one line which is there in the build. prop or add the other line too..
Click to expand...
Click to collapse
Modify one and add one.

Related

Sprint Stock Rom with A2SD Support

This is the latest Sprint Rom based on the latest RUU leak with A2SD support (I used Darktremor A2SD 2.7 since it was easy to add it).
I have verified that A2SD is working as I downloaded and installed a couple of programs from the market. The programs are being stored in /system/sd/app.
Here's the link: http://www.darktremor.info/files/2.1/2.1-ruu-a2sd-signed.ziphttp://www.darktremor.info/files/2.1/sprintstock-21-a2sd-b-signed.zip
This one now has adb rooted (thanks to nfinitefx45 for his assistance) and does flash (heard complaints on the symlink issue...never sure what causes that, but ended up starting over and porting the files from the previous build).
This is for those people who want to keep with the stock installation but want the addition of A2SD. If you want a customized look, faster performance and A2SD support, I suggest a custom rom. Fresh 2.1.2 or FreshToast is a good one to use.
Note: It will not affect recovery.
Enjoy and I'll answer any questions you may have (if I can answer them).
did you manually edit the init.rc? and you should mention that this is a ROM, not an RUU
tkirton said:
This is the latest Sprint RUU leak with A2SD support (I used Darktremor A2SD 2.7 since it was easy to add it).
This is definitely an RUU as when I go into adb shell, I get the dollar sign as a prompt rather than the pound sign...I'm pretty certain it is not rooted.
.
Click to expand...
Click to collapse
<<<snip>>>
This makes no sense at all.
Good point about the Rom vs RUU. Edited to correct.
As for the init.rc. Mainly it was init.rc edit.
regaw_leinad said:
did you manually edit the init.rc? and you should mention that this is a ROM, not an RUU
Click to expand...
Click to collapse
Don't look at me...that's what I'm getting. Doesn't make much sense to me, either. I just know if I do adb shell, I don't have root access. But A2SD works fine.
I went ahead and released it since the goal was to get A2SD working...and I did that. Everything else is for a Rom developer.
wctom said:
<<<snip>>>
This makes no sense at all.
Click to expand...
Click to collapse
tkirton said:
Don't look at me...that's what I'm getting. Doesn't make much sense to me, either. I just know if I do adb shell, I don't have root access. But A2SD works fine.
I went ahead and released it since the goal was to get A2SD working...and I did that. Everything else is for a Rom developer.
Click to expand...
Click to collapse
Thanks, I'll just use your boot image for RegawMOD 2.5. saves me a few minutes
working perfectly all apps installed and 132 megs still open internal
Sent from my HERO200 using the XDA mobile application powered by Tapatalk
sandboxlove said:
is it a general consensus that if you want to run a2sd successfully you should use a class6? i currently have a class4
Click to expand...
Click to collapse
right now, I switched back to my class 4 and its working great
nvmchars....
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
sandboxlove said:
i just want to be clear...this is the latest sprint leak? you seriously deodexed the whole thing?
i thought vince was crazy for trying, your completely BANANNAS
Click to expand...
Click to collapse
yeah, i thought I'd post it in here. Didn't think since it's the same thing as he posted but deodexed that I should make another thread.
and yes, the latest sprint leak. you should test this. I can't right now.
Oooh...cool. Enhancements. I like enhancements.
regaw_leinad said:
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
Click to expand...
Click to collapse
tkirton said:
Oooh...cool. Enhancements. I like enhancements.
Click to expand...
Click to collapse
Well, I like your work, so that's for you
did anyone test it out to make sure it boots?
Sorry to be such a noob, but what is "deodexed" a ROM mean?
regaw_leinad said:
tkirton,
here is your exact rom that's in your first post, but I deodexed it. You can add that to the OP if you'd like.
Everyone else, here it is too:
http://www.4shared.com/file/Fm3pXapi/21-ruu-a2sd-deodexed-signed.html
I have not tested it, but it should work fine. Deodexed /system/app and /system/framework
Click to expand...
Click to collapse
Well I flashed it and stuck on the HTC screen. Flashed the non deodexed version and loads fine.
So apparently i f***ed up deodexing lol. I guess that ROM that I did wont work..
well just loving this rom, but one question, can we get a updated boot.img with the adb enabled for access as root?
Now that the A2SD stuff is behind me, I'll take a look at that. Flipzmode or Toastcfh may be able to shed some light on how you get this image rooted correctly, especially Flipz since he's using the latest leak for Fresh 2.1.1.
The original goal was to get A2SD working on a stock rom, which I did....but it is rather annoying that it isn't rooted (or fully rooted).
Damage said in his point that it was rooted, but I got the same thing you did...no root when doing adb.
I'll talk to Flipz or Toast and see if they can point me in a direction to go.
nfinitefx45 said:
well just loving this rom, but one question, can we get a updated boot.img with the adb enabled for access as root?
Click to expand...
Click to collapse
well this is a piece from some of the reading I've been doing I beleice this needs to be done with in the boot image. I dont know if this will help in your research,
-------------------------
You also need to modify the ROM update script to change the default permissions for /system/bin/su so it can be used to elevate privileges to root. The script is in $WKD/dst/META-INF/com/google/android/update-script. Open it in your favorite editor and find the line starting with set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh and after it add the following set_perm 0 0 04755 SYSTEM:bin/su
=======================
Hi tkirton,
Nice job on this and thanks for all your hard work on everything! I am also wondering what dedoxed means? Is it like where application data is also stored on the SD card instead of on the phone itself?
Thanks!

SD Card Speed Fix!! IMPLEMENT INTO CM7 PLEASE

http://forum.xda-developers.com/showthread.php?t=921530
THIS WORKS on the Aria. BIG DIFFERENCE!
akira02rex said:
http://forum.xda-developers.com/showthread.php?t=921530
THIS WORKS on the Aria. BIG DIFFERENCE!
Click to expand...
Click to collapse
I just tried this, and it appears that the tweak to the file makes a difference in speed tests.
I'm trying to get my hands around how to actually test it in real-world situations.
So for CM7 - this would definitely be a nice addition to this already excellent ROM...
akira02rex said:
http://forum.xda-developers.com/showthread.php?t=921530
THIS WORKS on the Aria. BIG DIFFERENCE!
Click to expand...
Click to collapse
This should have been posted in the CM7 thread. Why start a new one?
Here is a flashable zip that will add the fix to an init.d script and will survive reboot. It checks to see if the value is 4, and if so changes it to 128. You have to apply it after each new rom flash.
This can be tested with adb pull.
Pull it with the setting at 4. pull pack the cm rom to a local folder. you will get speed stats. after the first pull, set the param to 128. pull again.
syntax from adb: adb shell echo 128 > /sys/devices/virtual/bdi/179:0/read_ahead_kb
from terminal - just skip the adb.
one note, I tried this on my Aria - it broke adb transfers. Then I tried it again and it worked.
Before I add this to CM, I want to make sure it's reliable.
The gallery loads even faster.
Sent from my Liberty using XDA App
attn1 said:
This can be tested with adb pull.
Pull it with the setting at 4. pull pack the cm rom to a local folder. you will get speed stats. after the first pull, set the param to 128. pull again.
syntax from adb: adb shell echo 128 > /sys/devices/virtual/bdi/179:0/read_ahead_kb
from terminal - just skip the adb.
one note, I tried this on my Aria - it broke adb transfers. Then I tried it again and it worked.
Before I add this to CM, I want to make sure it's reliable.
Click to expand...
Click to collapse
Im at 128 with the update.zip I posted above, and I can adb pull and push to my hearts content. I am on nightly 18 BTW.
bkmo said:
Im at 128 with the update.zip I posted above, and I can adb pull and push to my hearts content. I am on nightly 18 BTW.
Click to expand...
Click to collapse
the correct way is to add it to init.rc - that's when I had a failure. but the failure is not consistent.
bkmo said:
This should have been posted in the CM7 thread. Why start a new one?
Here is a flashable zip that will add the fix to an init.d script and will survive reboot. It checks to see if the value is 4, and if so changes it to 128. You have to apply it after each new rom flash.
Click to expand...
Click to collapse
On cm, if you want to preserve an init script, you can do anyone of the following:
Save it in /sd-ext/userinit.d/
Save it as /sd-ext/userinit.sh
Save it as /data/local/userinit.sh
Use cm's backuptool, it runs on rom installation. Just save its path (without the leading "/system/") into /system/etc/custom_backup_list.txt
Code:
etc/init.d/04sdcardspeedfix
Apparent improvement
Just flashed the above posted zip on CM7 Nightly 18 - seems to be a dramatic improvement, at least in stats, on my cheapie class 6 card:
before update: Write 5 / Read 6
after update: Write 4 / Read 12
I did not conduct this test at all scientifically - just ran one speed test before and one after the update, so take it for what it's worth I guess...just figured I'd share.
attn1 said:
the correct way is to add it to init.rc - that's when I had a failure. but the failure is not consistent.
Click to expand...
Click to collapse
I have it running as an init.d script and cannot make it fail. I do see this tweak posted in a lot of different forums.
Looks like this thread is now dead. This has been commited to cm7.
bkmo said:
Looks like this thread is now dead. This has been commited to cm7.
Click to expand...
Click to collapse
I dont quite understand. This last change set it back to 4? We still gotta manually change it? Or that's just the MIN value?
Darius_bd said:
I dont quite understand. This last change set it back to 4? We still gotta manually change it? Or that's just the MIN value?
Click to expand...
Click to collapse
The last commit is making a correction for the nand flash after the sd commit changed all memory readahead to128.
.
Gotcha, thanks for the clear up
bkmo said:
The last commit is making a correction for the nand flash after the sd commit changed all memory readahead to128.
Click to expand...
Click to collapse
Correct! The changes will be built in tonight's nightly.
Have anyone who can build boot.img already flashed the new kernel files? Is Wi-Fi broken? Or just me?
Sent from my Liberty using XDA App
EDIT: sorry... my bad, it's my typo of modules folder

[HOWTO] Enable JIT automatically

[HOW TO] activate JIT on 2.2
PEOPLE. NO OFF TOPIC HERE!
if you dont know what JIT is it basically speeds up your phone, very recommended! more info ---> http://en.wikipedia.org/wiki/Just-in-time_compilation
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi all! i know some of you want to test JIT complier... so i did a little research and found greek forum ---> http://www.myphone.gr/forum/showthread.php?t=286161
there our friend kyrillos13 has posted a way to activate JIT. so heres guide in english how to do it:
Activation Wizard of JIT
You need to install the root explorer (find it by searching on google). After the installation will take you to leave a message superuser. Press allowed. Download the file from here http://www.multiupload.com/9HK3NP4MML Unzip and copy the system folder on your memory card. With root explorer access the bin folder, select all the files and copy them to the path / system / bin / on your mobile. Upon return to the system folder that you copied to your phone and open the folder lib. Select all the files and then copy the path / system / lib / on your mobile. Then execute the commands listed in the file folder JIT instructions to download either via the adb pc or terminal emulator through the phone. Stir in and reboot. Download from the MARKET linpack do the install and run. If you pull MFLOPS 7 + (maybe even 11+) your ok. The linpack is optional. The jit will work anyway. just if you have doubts about whether you did it right then test it with the linpack (from market)...
the commands:
(adb shell) write this IF using ADB,
su
chmod 755 /system/bin/dalvikvm
chmod 755 /system/bin/dexopt
chmod 755 /system/bin/logcat
---------------------------------------------------
automatic batch script is the best way!!
-tested on: kyrillos 3.3 and 3.0, lestatious 1.7 with fugumod 2.2 BE, odexed JPM rom+fugumod 2.2, normal JPM, normal JPF, normal JP3.
-how to enable JIT on 2.1 ---> http://forum.xda-developers.com/showpost.php?p=9701019&postcount=2457 by rulez81
-automatic batch script: http://forum.xda-developers.com/attachment.php?attachmentid=563441&d=1302230974 by moole
all credits to ARMV-DEV-TEAM!
Sent from my GT-I5800 using XDA App
Here's a packaged version of ARMV Team's files designed to enable JIT.
The zip contains a batch script which automatically pushes the files to your phone, chmods the relevant ones and then reboots your phone.
has haree changed the topic?? cuz i didnt write it like that...
Sent from my GT-I5800 using XDA App
Which task has the build.prop in /System/ ?
Everywhere you can read that you have enable Jit in this file,
but I can't see any difference if I write : dalvik.vm.execution-mode=int:jit
or if I erase this.
If I change the the heapsize, I can't see any differences too.
Can anybody tell me something about the build.prop ?
moole said:
Here's a packaged version of ARMV Team's files designed to enable JIT.
The zip contains a batch script which automatically pushes the files to your phone, chmods the relevant ones and then reboots your phone.
Click to expand...
Click to collapse
Did u tried this? impressions?
GOOD JOB
Tried JASUX links, 8,3MFLOPs instead of 2,8 - good improvement.
Using Lestat 1.7, Fugumod 2.2 no OC
Quadrant improved from 320 to 380.
Copy/Paste with Root Explorer, CHMOD with ADB.
I hope the war about "who own`s the Linux" is over now.
Anyone tried ARMV batch? Scores?
Thanx to all dev`s
Urmas1 said:
Tried JASUX links, 8,3MFLOPs instead of 2,8 - good improvement.
Using Lestat 1.7, Fugumod 2.2 no OC
Quadrant improved from 320 to 380.
Copy/Paste with Root Explorer, CHMOD with ADB.
I hope the war about "who own`s the Linux" is over now.
Anyone tried ARMV batch? Scores?
Thanx to all dev`s
Click to expand...
Click to collapse
the war is over! but what filesystem you use?
Sent from my GT-I5800 using XDA App
vonuzu said:
Did u tried this? impressions?
Click to expand...
Click to collapse
well he wouldnt post it if it wouldnt work...
Sent from my GT-I5800 using XDA App
hi friends,
I tried enabling JIT but after reboot it is stuck at bootanimation screen. it has been more that 10 mins ..shud i wait or shud i switch off and restart ?
jazux said:
has haree changed the topic?? cuz i didnt write it like that...
Sent from my GT-I5800 using XDA App
Click to expand...
Click to collapse
hi
no i did not just closed ur old thread and merged another thread related to this one deleted un wanted post here one thats all did not do any change at all
jazux said:
the war is over! but what filesystem you use?
Sent from my GT-I5800 using XDA App
Click to expand...
Click to collapse
system - ex4
data - ext4
cache - ext2
p_san_p said:
hi friends,
I tried enabling JIT but after reboot it is stuck at bootanimation screen. it has been more that 10 mins ..shud i wait or shud i switch off and restart ?
Click to expand...
Click to collapse
What build you use?
Edit: Jazux, I think you have to be more specific in first post about system demands for JIT - deodexed, rooted, base FW etc...
Urmas1 said:
Edit: Jazux, I think you have to be more specific in first post about system demands for JIT - deodexed, rooted, base FW etc...
Click to expand...
Click to collapse
Jazux it's not the dev of the mod and probably doesn't know...
I think the jit is based on a JPM release, anyway if you don't wanna brick your phones (well, softbrick!) wait for apocalypse, this is experimental as everything in this forum
Re
I tried but i got this msg...
Phone reboots and nothing
Mr.Gamer said:
Jazux it's not the dev of the mod and probably doesn't know...
I think the jit is based on a JPM release, anyway if you don't wanna brick your phones (well, softbrick!) wait for apocalypse, this is experimental as everything in this forum
Click to expand...
Click to collapse
Well, I was struggling to get JIT for three days before it came up here.
All I learned about JIT is that you have to have DEODEXED ROM and be ROOTED. This package of JIF is specific to our phones but do you have to be on JPM - I`m not sure. This may even work for Eclair. Until not tested can`t say. I`m not going to test it on Eclair or any other version and who does have Eclair anyway nowadays
If I`m wrong please correct me.
zavisa said:
I tried but i got this msg...
Phone reboots and nothing
Click to expand...
Click to collapse
You should mount your system writeable...
Code:
$ su
# mount -o remount,rw /system
zavisa said:
I tried but i got this msg...
Phone reboots and nothing
Click to expand...
Click to collapse
Is your phone rooted?
Damn, I was close to making it myself, would have probably posted it later today But anyways, great news. Now I don't have to do the work
P.S. same issue as zavisa. though on JPM, problem was probably that it wasnt deodoxed. will flash indroid now and try again
s3th.g3ck9 said:
You should mount your system writeable...
Code:
$ su
# mount -o remount,rw /system
Click to expand...
Click to collapse
or use Root Explorer to mount system before starting "enable_jit.cmd"
stubborn_d0nkey said:
Damn, I was close to making it myself, would have probably posted it later today But anyways, great news. Now I don't have to do the work
P.S. same issue as zavisa. though on JPM, problem was probably that it wasnt deodoxed. will flash indroid now and try again
Click to expand...
Click to collapse
guys do not push the file with ADB use ROOT EX transfer the files in corect place than open CMD type the comm and ENJOY

[Q] I need help on zipalign.

What is zipalign, what are the benefits of zipalign and how do i do this?
Thank you
60 views but 0 replies
Someone help me please
just use the search option
EdisDee said:
just use the search option
Click to expand...
Click to collapse
I find just one thread with the same question and that thread also has only 2 posts and the person who made the thread posted saying he found the answer but never mentions what the answer is.
I found something about placing a file in the init.d folder but the file was not specified so if anyone has the file in their init.d folder could they copy it to their sd card, upload it to dropbox or any other file share website and share it with me please.
Help please
I know this is bloody perfect forum but sometimes you just need to jump out for a while. It's easier.
"The Android SDK includes a tool called zipalign that optimizes the way an application is packaged. Running zipalign against your application enables Android to interact it more efficiently at run time and thus has the potential to make it and the overall system run faster. We strongly encourage you to use zipalign on both..."
source: http://developer.android.com/resources/articles/zipalign.html
Enable? Nor sure. Kyrillos has it by default. I don't remember about others...
EDIT: Remove ".TXT" and place in /etc/init.d (or /system/etc/init.d). I belive it should be enoguh but can't say for sure. I only hope Kyrillos will not mind, it is from his 8.1 rom. Or hillbeast who edited it to work with hybrid.
mrvek said:
I know this is bloody perfect forum but sometimes you just need to jump out for a while. It's easier.
"The Android SDK includes a tool called zipalign that optimizes the way an application is packaged. Running zipalign against your application enables Android to interact it more efficiently at run time and thus has the potential to make it and the overall system run faster. We strongly encourage you to use zipalign on both..."
source: http://developer.android.com/resources/articles/zipalign.html
Enable? Nor sure. Kyrillos has it by default. I don't remember about others...
EDIT: Remove ".TXT" and place in /etc/init.d (or /system/etc/init.d). I belive it should be enoguh but can't say for sure. I only hope Kyrillos will not mind, it is from his 8.1 rom. Or hillbeast who edited it to work with hybrid.
Click to expand...
Click to collapse
I did what you said. I am rebooting the phone now and hopefully your help is sufficient
Smonic said:
What is zipalign, what are the benefits of zipalign and how do i do this?
Thank you
Click to expand...
Click to collapse
Download "ADB Mask Controller"
install it, connect your phone with USB debugging enabled.
Make sure the connection is detected by the application, click on the refresh button beside SEARCH Option in the program.
in the first screen, you will find option "Push Zipalign" Do that.
Go to the screen titled "Zipalign"
select the optioin you want to use zipalign for user app or system app or both.
Caution : Use this tool judiciously, it has many advanced features used by ROM developers mainly. Like pushing an app to system, removing bloatware, Sql LIte, and many many more.....A wrong step may force you to reflash your ROM.
Hope it helped.
umangsagar said:
Download "ADB Mask Controller"
install it, connect your phone with USB debugging enabled.
Make sure the connection is detected by the application, click on the refresh button beside SEARCH Option in the program.
in the first screen, you will find option "Push Zipalign" Do that.
Go to the screen titled "Zipalign"
select the optioin you want to use zipalign for user app or system app or both.
Caution : Use this tool judiciously, it has many advanced features used by ROM developers mainly. Like pushing an app to system, removing bloatware, Sql LIte, and many many more.....A wrong step may force you to reflash your ROM.
Hope it helped.
Click to expand...
Click to collapse
I clicked on 'push zipalign' a number of times and then clicked on zipalign data/app but nothing happens. It says zipalign not found. Push zipalign and try again or sth like that. I've rebooted my phone and i'm trying now,
Check if you have /system/bin/zipalign. If not try to put it there manually.
ADB controller might have problems mounting your /system r/w and it is read-only. Maybe you can mount it r/w and then try with controller (just guessing, though).
And you'll need to have the S03_zipalign made by kyrillos and hillbeast in /system/etc/init.d (or just /etc/init.d) posted earlier. For what I can tell it zipalign's all apps from /system/app and /data/app.
mrvek said:
Check if you have /system/bin/zipalign. If not try to put it there manually.
ADB controller might have problems mounting your /system r/w and it is read-only. Maybe you can mount it r/w and then try with controller (just guessing, though).
And you'll need to have the S03_zipalign made by kyrillos and hillbeast in /system/etc/init.d (or just /etc/init.d) posted earlier. For what I can tell it zipalign's all apps from /system/app and /data/app.
Click to expand...
Click to collapse
I second that esp rw option, its already there in ADB Controller. U can manually browse as instructed above. Its not that difficult, I am sure u will be able to do it well, reply here if u still get probs even after taking all steps as directed in my previous post and the post i quote above.
umangsagar said:
I second that esp rw option, its already there in ADB Controller. U can manually browse as instructed above. Its not that difficult, I am sure u will be able to do it well, reply here if u still get probs even after taking all steps as directed in my previous post and the post i quote above.
Click to expand...
Click to collapse
Thanks for the help. I'll go back and thank the posts
Anyway i decided not to do any tweaks because i always end up flashing a different ROM anyway, I'm weak when it comes to flashing ROMS
It's like an addiction
Smonic said:
Thanks for the help. I'll go back and thank the posts
Anyway i decided not to do any tweaks because i always end up flashing a different ROM anyway, I'm weak when it comes to flashing ROMS
It's like an addiction
Click to expand...
Click to collapse
hahhahahha...this tweak is not that difficult to implement..and i guess pretty safe...agree totally to the last line
I thought I'd give this a go. I've moved the first file on the previous page to system/etc/init.d and the second file on the top of this page to system/bin. Is this sufficient?
you mean to say you have s03_zipalign in /system/etc/ini.d and zipalign file posted above as /system/bin/zipalign ??
i guess this should do for you .. awaiting to hear if u succeeded.
umangsagar said:
you mean to say you have s03_zipalign in /system/etc/ini.d and zipalign file posted above as /system/bin/zipalign ??
i guess this should do for you .. awaiting to hear if u succeeded.
Click to expand...
Click to collapse
It's working fine. The apps load up fast and i'm happy Thanks!

[Mod-Request] HAL1/HAL3 Swichter

Hi,
I saw now days few ROM has HAL switch. Which is fantastic to use any camera apps in our favourite ROM.
As that feature is not available in all ROM and if i want to try a ROM which has good battery life or good performance but that ROM lacks with that HAL switch feature, so i can't use my favourite cam app there.
Can anyone please make a TWRP flashable zip for
"HAL swichter - switch between hal1 and hal3"
So i can use or anyone can use Oxygen OS port Cam with Google Camera or Sultan's cam.
Thanks & Regards,
Normas Interruptor said:
Hi,
I saw now days few ROM has HAL switch. Which is fantastic to use any camera apps in our favourite ROM.
As that feature is not available in all ROM and if i want to try a ROM which has good battery life or good performance but that ROM lacks with that HAL switch feature, so i can't use my favourite cam app there.
Can anyone please make a TWRP flashable zip for
"HAL swichter - switch between hal1 and hal3"
So i can use or anyone can use Oxygen OS port Cam with Google Camera or Sultan's cam.
Thanks & Regards,
Click to expand...
Click to collapse
its just a shell command. do it in terminal. make a .txt right down the command to remember it, open shell execute it.
app ? heh..... make 2 .sh scripts. one with each command. Thats easy for the most amateur user.
For a more advanced user make a .sh script with an if command to getprop and if = {command1} true -> then {command2}.
Then this script in sd, link it on homescreen and single press it to execute. Voila. Here is your app.
kessaras said:
its just a shell command. do it in terminal. make a .txt right down the command to remember it, open shell execute it.
app ? heh..... make 2 .sh scripts. one with each command. Thats easy for the most amateur user.
For a more advanced user make a .sh script with an if command to getprop and if = {command1} true -> then {command2}.
Then this script in sd, link it on homescreen and single press it to execute. Voila. Here is your app.
Click to expand...
Click to collapse
Well, thank you for your reply ?.
But I'm kind of noob here who don't know how to make that script or .sh script. That's why i asked to someone to make a flashable zip so i can flash this via TWRP recovery and after that I don't need to do anything with emulator or other step.
Normas Interruptor said:
Well, thank you for your reply .
But I'm kind of noob here who don't know how to make that script or .sh script. That's why i asked to someone to make a flashable zip so i can flash this via TWRP recovery and after that I don't need to do anything with emulator or other step.
Click to expand...
Click to collapse
ok, but
i don't think anyone is interested in this.
for example me. i don't care changing hals to use different camera apps.
but the idea of how to do it is just like i said in the previous post. so someone that uses it and has a few script knowledge will do it
kessaras said:
ok, but
i don't think anyone is interested in this.
for example me. i don't care changing hals to use different camera apps.
but the idea of how to do it is just like i said in the previous post. so someone that uses it and has a few script knowledge will do it
Click to expand...
Click to collapse
I hope so
setprop presist.camera.HAL3.enabled=1
cpt.macp said:
setprop presist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
Where i need to do that?
Please elaborate the full steps... As I'm using RR ROM unofficial by "niceash_soni"
Deleted
Normas Interruptor said:
Where i need to do that?
Please elaborate the full steps... As I'm using RR ROM unofficial by "niceash_soni"
Click to expand...
Click to collapse
Still haven't solved it ?
You just need to make a .sh script with just 2 if commands.
One will check for hal1 and one will check for hal3.
You don't need app and it's boring to open terminal and write a whole line every time you need to toggle that.
Try it and if you can't do it I'll write it for you when I'm back.
Or simply make 2 scripts with the setprop commands if you can't make it with the if command to check.
Tapping one script will do hal1=0 and hal3=1.
Tapping the other will do hal1=1 and hal3=0.
kessaras said:
Still haven't solved it ?
You just need to make a .sh script with just 2 if commands.
One will check for hal1 and one will check for hal3.
You don't need app and it's boring to open terminal and write a whole line every time you need to toggle that.
Try it and if you can't do it I'll write it for you when I'm back.
Click to expand...
Click to collapse
Thank you for your reply.
I'm noob bro.
I don't know how to do it...
If you can write down all the steps so i can try with it but with the above short note I can't understand what I need to do with script.
Please make a flashable zip if you can or any best thing.
Regards,
Normas Interruptor said:
Thank you for your reply.
I'm noob bro.
I don't know how to do it...
If you can write down all the steps so i can try with it but with the above short note I can't understand what I need to do with script.
Please make a flashable zip if you can or any best thing.
Regards,
Click to expand...
Click to collapse
pfffffffffffffffffff why nobody answers to him ?
2 scripts. +install app from play store to press and execute them.
Code:
#!/system/bin/sh
#Enable HAL3
setprop persist.camera.HAL1.enabled=0
setprop persist.camera.HAL3.enabled=1
echo "HAL3 Enabled"
Code:
#!/system/bin/sh
#Enable HAL1
setprop persist.camera.HAL3.enabled=0
setprop persist.camera.HAL1.enabled=1
echo "HAL1 Enabled"
Otherwise use if to check prop. getprop ........... > x if x=1 then ............
Use the 1st way for now. Going to bed cause im drunk xD
kessaras said:
pfffffffffffffffffff why nobody answers to him ?
2 scripts. +install app from play store to press and execute them.
Otherwise use if to check prop. getprop ........... > x if x=1 then ............
Use the 1st way for now. Going to bed cause im drunk xD
Click to expand...
Click to collapse
Thank you for your time.
But still I don't know how to use this ?...
Need more guidance.
Normas Interruptor said:
Thank you for your time.
But still I don't know how to use this ...
Need more guidance.
Click to expand...
Click to collapse
decompress at sdcard. search google , find app to easy press execute scripts, link scripts to homescreen , thats it.
Use local terminal for those command with root access , don't expect spoon feeding , use Google.
kessaras said:
pfffffffffffffffffff why nobody answers to him ?
2 scripts. +install app from play store to press and execute them.
Otherwise use if to check prop. getprop ........... > x if x=1 then ............
Use the 1st way for now. Going to bed cause im drunk xD
Click to expand...
Click to collapse
Here is my build.prop file... Can you please tell me which code do i need to use?
Or
If it is possible to you? Can you please add these codes in that build.prop file and share with me?
https://drive.google.com/file/d/0B5c0qxNUWHOkcFBYSmNpaE1xSFU/view?usp=drivesdk
Thanks
Normas Interruptor said:
Here is my build.prop file... Can you please tell me which code do i need to use?
Or
If it is possible to you? Can you please add these codes in that build.prop file and share with me?
https://drive.google.com/file/d/0B5c0qxNUWHOkcFBYSmNpaE1xSFU/view?usp=drivesdk
Thanks
Click to expand...
Click to collapse
its not a prop in build.prop. its a prop in the kernel, at another file, depending the kernel.
i think it was missing su permission. try those with an app that can execute scripts.
kessaras said:
its not a prop in build.prop. its a prop in the kernel, at another file, depending the kernel.
i think it was missing su permission. try those with an app that can execute scripts.
Click to expand...
Click to collapse
So, i have to flash the attached your Camera HAL zip that's it. Right?
Normas Interruptor said:
So, i have to flash the attached your Camera HAL zip that's it. Right?
Click to expand...
Click to collapse
No... In there , there are only 2 scripts. Want to enable hal1 ? You tap execute the hal1 script. Want to enable hal3? Execute hal3 script.
I didn't make any app or module.
But if this goes on for long I will make it.
I believe soon the maintainers will do something about that because many people ask for this now. If they don't do it, I'll do it in the end even if I don't care about hal -_-
Anyway. Search Google play for app that can execute scripts on tap and you are good with those 2 scripts for now. Easy tap the one you want.
kessaras said:
No... In there , there are only 2 scripts. Want to enable hal1 ? You tap execute the hal1 script. Want to enable hal3? Execute hal3 script.
I didn't make any app or module.
But if this goes on for long I will make it.
I believe soon the maintainers will do something about that because many people ask for this now. If they don't do it, I'll do it in the end even if I don't care about hal -_-
Anyway. Search Google play for app that can execute scripts on tap and you are good with those 2 scripts for now. Easy tap the one you want.
Click to expand...
Click to collapse
Well, i have tried two script apps... Script manager and shscript... Can't understand how to make these two command executable on one touch... People are smart who actually know that how to do that, even i have tried to watching YT videos as well, so i can understand how to make those scripts executable... But no luck...
You are the only one who help me alot here...
Heartiest thanks to you.
------------------------------------------
Now closing this thread as I'm so dumb to understand these methods, i know that would be very easy one for those who know how to do that... That's why people calling me here "spoon feeding" and all...
Now going to switching from RR ROM unofficial build by "Niceash_soni" to APEX ROM, however I don't feel comfortable on that, because that ROM has EAS kernel, that is very laggy all the time to me (using OP3). Don't know the reason behind that. So i would have to use that ROM with EXkernel for custom ROM V12 (latest one).
Though i love the RR ROM by "Niceash_soni" but he will not adding these method and sometimes he was very rude to me as i have request him twice. It's okay as i can understand he could be frustrating with so many requests or repeated requests.
__________________
Thank buddy, helping me so much here.
Normas Interruptor said:
Well, i have tried two script apps... Script manager and shscript... Can't understand how to make these two command executable on one touch... People are smart who actually know that how to do that, even i have tried to watching YT videos as well, so i can understand how to make those scripts executable... But no luck...
You are the only one who help me alot here...
Heartiest thanks to you.
------------------------------------------
Now closing this thread as I'm so dumb to understand these methods, i know that would be very easy one for those who know how to do that... That's why people calling me here "spoon feeding" and all...
Now going to switching from RR ROM unofficial build by "Niceash_soni" to APEX ROM, however I don't feel comfortable on that, because that ROM has EAS kernel, that is very laggy all the time to me (using OP3). Don't know the reason behind that. So i would have to use that ROM with EXkernel for custom ROM V12 (latest one).
Though i love the RR ROM by "Niceash_soni" but he will not adding these method and sometimes he was very rude to me as i have request him twice. It's okay as i can understand he could be frustrating with so many requests or repeated requests.
__________________
Thank buddy, helping me so much here.
Click to expand...
Click to collapse
Other people also ask in other roms. It's the same in the official rr. No worries. Soon someone that needs it, will do something. Otherwise me or some other guy will do. Since more people ask for it , it will definitely come.
Don't close the thread. It seems it's only you but there are hundreds more hidden behind this
It's just that our free time is always little as we work for more than 8 hours. Sometimes 12 hours. Anyway. Leave it as it is . Soon a maintainer or a senior will do something.

Categories

Resources