[HOW TO] Get your SWAP ON! Step by Step [GingerBread/FROYO] - Thunderbolt Android Development

After multiple messages and questions regarding SWAP I thought it would be best to put all the information into one place with simple instructions.
What is SWAP? Details on it HERE>> http://www.imoseyon.com/2011/04/why-swap.html
Imoseyon: Have you heard of Virtual Memory? Swap is pretty much that - a way to extend your physical memory. Your OS moves the less accessed memory pages to slower, and cheaper storage medium. This frees up RAM for things that require the speed. And guess what? On almost all android devices you'll find tons of flash memory which are going to provide near RAM access speed for your swap space.
Click to expand...
Click to collapse
Now lets do THIS!!!
Here is everything you need for the SWAP files and a Step by Step...
Enable SWAP and EXT4.
FIRST
Download the SWAP Enabler And the Kernel Speedtweak from the attachments in this post.
View attachment enable_swap.zip
View attachment imoseyon_v6.2.1.zip
The first one enables SWAP and the second one creates the proper files/folders and settings for m.swappiness and minfree.
Step 1: Boot into Clockwork DO NOT FLASH ANYTHING VIA Rom Manager.
Choose ZIP and flash the Swap Enabler (First File)
Then Choose ZIP and flash the SpeedTweak (Second File)
Step 2: Reboot.... Wait a minute and let the Kernel settle.
Step 3: Reboot back into Clockwork and reflash the SpeedTweak File ONLY. (not sure why, but if you don't step 3 won't happen. LOL)
Reboot again....
Step 4: After it is up and running.... Open Terminal and type (without quotes)
"su" ENTER
"sh /data/imoseyon/swap.sh create" Hit ENTER and it should create.
Reboot for the last time and enjoy.
To see your creation at work.... Open Terminal and type (without quotes)
"su" ENTER
"free" ENTER
You should see you Mem and SWAP.
ALTERNATE Finish For SOME. DISREGARD IF ALL WENT WELL FROM THE STEPS ABOVE
For some reason... It has been reported that you may get a Can Not open /data/imoseyon/swap.sh create. If so:
Alternate STEP 4: Open terminal and type (without quotes)
"su" ENTER
"sh /data/imoseyon/createswap.sh"
After it finishes: Close OUT of Terminal, Then reopen and type (without quotes)
"su" ENTER
"sh /data/imoseyon/swap.sh create" Hit ENTER and it should create and tell you to reboot for it to take effect.
ENJOY GUYS!!!!!
DISCLAIMER: I'm responsible for NOTHING. If your phone explodes, or randomly texts your wife about your girlfriend.... You never heard of me.

Very cool. Will definitely be doing this once I get home.

Is the swap being put on sd card or emmc?

Gimpeh said:
Is the swap being put on sd card or emmc?
Click to expand...
Click to collapse
Not on the SD.
Edit....

Has anyone managed to utilize emmc for swap? Would probably be a bit more speedy. Although thos phone has enough ram as is.

Gimpeh said:
Has anyone managed to utilize emmc for swap? Would probably be a bit more speedy. Although thos phone has enough ram as is.
Click to expand...
Click to collapse
It would be quicker, but I don't know how much it would be noticed in "real world". I'm sure in "tests" it would flex in nuts a lot more but.... This does smooth things out quite a bit.

Well i'm on cm7 so speed is not a terrible issue. Although you can never have enough ram. Bring on emmc swap!!!

What values should we see in Mem and Swap?

KGBxxx said:
What values should we see in Mem and Swap?
Click to expand...
Click to collapse
At first you will see 0 for swap until you use it and it builds. They will vary on your use.
Sent from my ADR6400L using XDA App

DroidTh3ory said:
On the SD.
Click to expand...
Click to collapse
Might want to re-read the link to imoseyon...kinda skeerz me that you think it's on the SD card.

Carnage9270 said:
Might want to re-read the link to imoseyon...kinda skeerz me that you think it's on the SD card.
Click to expand...
Click to collapse
I mis-spoke regarding eemc. The swap uses the flash.
My apologies to anyone that was misled.
Sent from my ADR6400L using XDA App

so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!

Is this something that carries over when you switch roms/kernals? Or do you have to do it again?

BuffoGT said:
so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!
Click to expand...
Click to collapse
What rom are you running?

iastonish said:
Is this something that carries over when you switch roms/kernals? Or do you have to do it again?
Click to expand...
Click to collapse
It needs to be re-done with any kernel change.
Sent from my ADR6400L using XDA App

Double.post.
Sent from my ADR6400L using XDA App

DroidTh3ory said:
No, it needs to be re-done with any kernel change.
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
Better wait on it then, waiting for Drod's new CM7 kernal.

BuffoGT said:
so I have been really impressed with the speed of my thubderbolt. I am rooted, running the latest imoysen kernel and the perfect storm 1.4 rom. I had seen these instructions before but never thought about implementing them. I did today and I didn't think it was possible but my speed is now at least double that it was before. Un believable thank you so much, to all reading this you should really give this a go!
Click to expand...
Click to collapse
It does really help utilize the speed. It is just smooths everything out so well.
Sent from my ADR6400L using XDA App

The prefect storm 1.4
Sent from my ADR6400L using XDA App

danger Will Robinson?
Is there a chance that, given the uncertainty around the bricks and suspicion of the emmc, that this could stress the emmc and exacerbate the bricking issue?

Related

Radio update confusion.

I'm looking to update my Inc. to 2.2 but the ROMs suggest upgrading to radio 2.x. I'm pretty new to this and a little confused by the instructions.
The instructions I'm following are these
How to flash the 2.x radio.
Rooted
1. Download PB31IMG.zip and place it in the root of you SDCARD. Make sure the FS is FAT32, otherwise PB13IMG.zip will not flash.
1a. Link has been updated so you no longer have to apply the VZW exchange OTA.
2. Now go to the bootloader.
2a. Run 'adb reboot oem-42' if powered up or hold Power + Volume Down if your phone is off.
3. It should automatically start loading PB31IMG.zip. Then accept it when it asks you to load it or not (pretty sure Vol Up).
4. You are now completely stock. You should remove PB31IMG from your SDCARD now.
5. Download dinc_ota.zip, rename it to update.zip and place it in the root of your SDCARD.
6. Now boot into recovery and apply the zip.
6a. adb reboot recovery if powered up or Power + Volume Down then select Recovery.
6b. Now hit Power + Volume Up to bring up the Recovery menu.
6c. Now select apply update.zip
7. Go to Settings > About phone > Software information > Baseband version and verify that it's 2.05.00.06.11.
8. Now download and run Unrevoked 3 to reroot and install ClockworkMod recovery.
9. Now you can go ahead and do a Full Wipe then install the Stock Froyo rom.
Click to expand...
Click to collapse
I'm actually lost right away with making sure the FS is Fat32, what is the FS and how do I check this
After that I assume I'm rebooting in Bootloader, is there a difference between that and bootin in recovery?
I guess I'm just looking for a walkthrough in lay mans terms.
Maybe format size? When you hook the drive up to the pc, go to my computer, locate the sd card, right click and then format. It gives you an option to format in FAT32, make sure its checked. Then format.
Place the PB31IMG.zip at the root of the sd card.
Go into bootloader and the file will be checked by the phone then ask you if you want to update. Yes.
Reboot.
Enjoy.
Sent from my HTC Incredible «•» Rooted/S-off/Skyraider v2.5.2 Vanilla «•» http://www.unrevoked.com/forever
FS == File System. htc_woe_is_me is spot on with what to do.
I believe if you're going to use the 2.15x radio ... you need to make sure you are S-Off using hte Unr3voked Forever tool.
If you're using the 2.05x radio, you should be fine without going S-Off
Okay, lets start with the basics. Fs is file system. There are different types of file systems. Fat32 and ntfs are common. You format your SD card as fat32, cause that is what's best for your phone. The SD card that came with your phone should be good to go. Before you follow these instructions you must be sure to accompolish a few things.
1)First you must be rooted. Unrevoked has the one stop root tool.
2)Next you must perform the unrevoked forever tool. This tool will grant you nand access allowing your radio to be updated..
have you performed these steps?
I Dont want to flood you with instructions if you aren't fully ready yet
Sent from my ADR6300 using XDA App
Sent from my ADR6300 using XDA App
qmartman711 said:
Okay, lets start with the basics. Fs is file system. There are different types of file systems. Fat32 and ntfs are common. You format your SD card as fat32, cause that is what's best for your phone. The SD card that came with your phone should be good to go. Before you follow these instructions you must be sure to accompolish a few things.
1)First you must be rooted. Unrevoked has the one stop root tool.
2)Next you must perform the unrevoked forever tool. This tool will grant you nand access allowing your radio to be updated..
have you performed these steps?
I Dont want to flood you with instructions if you aren't fully ready yet
Sent from my ADR6300 using XDA App
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Yes both those steps have been completed.
htc_woe_is_me said:
Maybe format size? When you hook the drive up to the pc, go to my computer, locate the sd card, right click and then format. It gives you an option to format in FAT32, make sure its checked. Then format.
Place the PB31IMG.zip at the root of the sd card.
Go into bootloader and the file will be checked by the phone then ask you if you want to update. Yes.
Reboot.
Enjoy.
Sent from my HTC Incredible «•» Rooted/S-off/Skyraider v2.5.2 Vanilla «•» http://www.unrevoked.com/forever
Click to expand...
Click to collapse
I'm on a mac, it says the format of my SD Card is "MS-DOS - Fat16" no sign of how to change it though
jaredkent said:
I'm on a mac, it says the format of my SD Card is "MS-DOS - Fat16" no sign of how to change it though
Click to expand...
Click to collapse
Macs are for people that just "want things to work*". If you wish to tinker (ie. learn and have fun), get a PC.
If you REALLY want to get into tinkering/hacking**/learning, skip windows and go straight to Linux. It won't be easy, but you will learn skills that are incredibly valuable***.
* - By that, I mean people that want their computers to hold their hand and think for them.
** - Search for computer hacking on wikipedia before you make any bad assumptions (sorry, I still can't post links).
*** - Why yes, I am a well paid Linux admin with incredible job security, why do you ask?
DracoDan said:
Macs are for people that just "want things to work*". If you wish to tinker (ie. learn and have fun), get a PC.
If you REALLY want to get into tinkering/hacking**/learning, skip windows and go straight to Linux. It won't be easy, but you will learn skills that are incredibly valuable***.
* - By that, I mean people that want their computers to hold their hand and think for them.
** - Search for computer hacking on wikipedia before you make any bad assumptions (sorry, I still can't post links).
*** - Why yes, I am a well paid Linux admin with incredible job security, why do you ask?
Click to expand...
Click to collapse
That was the stupidest post I've ever read in my entire life. You're paid too much whatever you do.
I think you can format it thru disk utility. My mac knowledge is very little though, try Googling it?
Sent from my ADR6300 using XDA App
jaredkent said:
I'm on a mac, it says the format of my SD Card is "MS-DOS - Fat16" no sign of how to change it though
Click to expand...
Click to collapse
qmmartman711 was correct: Go to your utilities folder and open the Disk Utility app. Click on the disk that you want to reformat (it will appear in the left pane). In the right pane there will be options (First Aid, Erase, RAID, Restore). Click on the Erase tab/button. From there you'll see an Entry near the middle of the window that says 'Format' with a drop down list. If it already says MS-DOS(FAT) you're in good shape. Fill in the name you want the volume to have and press Erase.
BTW: In response to an earlier quote about Mac/PC/Linux. Macs are at their core BSD/Unix you can drop down to a shell any time and do whatever you want.
So I formatted it to FAT32 and placed the file in the root of my sd card, the problem is when I run bootloader it doesn't automatically do anything. Both the directions I'm following and the guys in this post say it should automatically open the file but thats not happening.
Any thoughts?
any ideas?
Berzerker7 said:
That was the stupidest post I've ever read in my entire life. You're paid too much whatever you do.
Click to expand...
Click to collapse
I agree for the most part I build PC's and only recommend them because It brings in money. I personally use a Mac. I agree that PC's give you more bottom level access but 90 percent of what you can do on a PC you can do with MAC. Dont hate on us MAC users!
Kipphh said:
I agree for the most part I build PC's and only recommend them because It brings in money. I personally use a Mac. I agree that PC's give you more bottom level access but 90 percent of what you can do on a PC you can do with MAC. Dont hate on us MAC users!
Click to expand...
Click to collapse
It's not the fact that he hated on Mac users, it's just the specifics of what he wrote. But we digress.
Once you get onto the boot loader (get to boot loader by simultaneously pressing the power and volume up button) and wait a little bit it should ask for confirmation to update phone. Just press volume up button to confirm and there you sucesfully updated your phone.
Sent from my ADR6300 using XDA App
I just realized that my phone is no long reading my SD Card, I think after reformatting it, it started with the problems. That might be why it's not picking up the update.
Not I can't put anything on my SD Card when I plug it into my computer, I get a Mac error code -8003. Looks like I ruined my SD Card? Guess I'll pick up a new one, load my back up onto it and just go back to stock.
Why don't you format the card from your phone? That way it will definitely be recognizeable.
Sent from my ADR6300 using XDA App
qmartman711 said:
Why don't you format the card from your phone? That way it will definitely be recognizeable.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
That didn't even cross my mind. That worked as easily as you'd expect. I think I'll be restoring it to stock, since I can't figure out the radio thing. With SkyRaider 2.5.2 I tend to have times when 3G just doesn't work at all, and my internet is dead. I'm going to assume that has something to do with the radio upgrade. So I'll just downgrade back to 2.1 and wait it out.
Thanks for all the help guys.
Sorry you had to revert back to stock. Some people claim their radio updates give them better service. Some say less Service... Haha, I have the same service. But anyway, let me know if you wanna try again, skyraider and cm6 are awesome roms, and I'd hate for you to miss out!
Sent from my ADR6300 using XDA App
I found a couple great YouTube videos that helped me if you still want to try it. I just rooted for the first time yesterday and I'm loving it.
It won't let me post the link cause I'm new but just search for incredible ota.
There is more to it than just getting into recovery. This guy walks you through it. If you are already rooted there's another file you have to do first PB something.
Sent from my DINC using XDA App

unCoRrUpTeD Dual Boot

After some thinking about how I wanted to pursue this project and the recent release of an app that has made this possible, I decided to start working on an app of my own. While I have no experience in making an app, I have already begun working on it. Boot Manager is an awesome app for those that like flashing and running different ROMS frequently, however I have found some things that I do not like about it and features that could be added. My short term goal is to create an app with support for either 2 or 3 Roms and would be free. I'll then release a paid one that will support 5 or more roms and add some other features.
As I said, I have already begun working on it and although it won't utilize the method I wanted to use, I will implement some of it in the future. Right now I have parts of it setup and can already use certain features, but for anyone that has created an app, you know there is a lot of scripting that needs to be done.
Thanks to Conap for the motivation to get my a** back on track.
Partition your sdcard
PARTITION YOUR SDCARD
​I have made this really easy to partition your sdcard while preserving all data on the fat32 partition.
You have the option of specifying the size of the ext partitions in /sdcard/dualbootmap.txt
Code:
adb shell
echo 150 200 0 > /sdcard/dualbootmap.txt
The 1st number is cache partition for both rom2 in Mb. For right now I would not do anything less than 125 until I incorporate settings for dalvik-cache on data.
The 2nd number is ROM2 data partition in Mb. Pick whatever size you want.
The 3rd number which isn't used yet will be for a2sd on ROM1. For now this should be kept at 0.
If there is no dualbootmap.txt file the partitions will be automatically set to
cache=150
data=200
a2sd=0
Make sure you have enough free space on the card to accommodate the extra partitions plus an extra 200. If you only have a fat32 partition and use the default values above you would need 550mb of free space. After setting up the roms you will get the extra 200mb back. Its just used as temporary storage.
INSTRUCTIONS:
1. Download sdpart.zip
2. Reboot into recovery
Code:
adb shell reboot recovery
3. Unzip the contents of sdpart.zip and push the files inside sdpart folder to /tmp/
Code:
adb push c:\xxxxxx\sdpart /tmp/
4. run /tmp/sdpart.sh in adb shell
Code:
adb shell /tmp/sdpart.sh
If sdpart.sh doesn't run then you will have to chmod it before running it, but it should already have permission to run.
Code:
adb shell chmod 777 /tmp/sdpart.sh
HELP
Reserved until release day
Can't wait to try it out.
Is it going to support the aria?
12c00000-257fffff : System RAM
THANKS
Sent from my HTC Liberty using XDA App
FFXTDS said:
Can't wait to try it out.
Is it going to support the aria?
12c00000-257fffff : System RAM
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Updated OP. Thats it for today. I'll post others in the morning
Can I restore a nandroid and then flash the dualboot.zip to make that Rom store to SD instead of wiping everything and flashing the roms?
jblazea50 said:
Can I restore a nandroid and then flash the dualboot.zip to make that Rom store to SD instead of wiping everything and flashing the roms?
Click to expand...
Click to collapse
You should be able to as long as there is a boot.img in the nandroid which I think there is
I really like this idea. Is there any way that you could modify a recovery to incorporate a bootloader? I believe clockwork is open source and should allow for this to be possible.
I don't know any c programming, but am looking at alternatives. Maybe an app or 1 script that does everything.
Sent from my HERO200 using XDA App
This is F'in epic dude. Thank you!
got this working on my evo,
1. what if i want to flash a new nightly or a update, do i go through the process again? and does it matter if it's on the SD or Phone?
2. how do you nandroid the rom on the SD?
basically should i keep CM6.1 on the Phone or the SD for easy updating
EDIT: i lied it works then when i tried to boot to SD it just sat at the white screen. going to play around with this some tonight
Wow man. This is freaking amazing. I'm definitely going to give this a try. Run CM as my daily rom, but this will help when I am traveling to 4G areas, and I can just flip over to a Sense rom.
Awesome, awesome work.
so if i wanted to put cyanogenmod nightlys on and then update them to a newer nightly version how would i do that without redoing everything?
edit: been messing with this and had my question sitting without hitting submit for like 15 min and apperently in that time someone else asked same question
I can't figure out how to get my base address... Can someone please explain more... I'd love to use this on my incredible
Sent from my Incredible using XDA App
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
sd card
So how is the speed when running on a class two SD card or a Class 4
Does the rom bog down?
Tried it and when I tried to boot into the rom on sd it got stuck on splash screen. Running miui on phone and had ava 10 on sd.
Sent from my PC36100 using XDA App
PikkonX said:
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
Click to expand...
Click to collapse
What recovery and phone do you have. Run this from command or terminal and post inside code tags
Code:
adb shell cat /sdcard/dualboot/recovery.log
or attach /sdcard/dualboot/recovery.log so I can look at it. It sounds like I may have the wrong base address. I'm going to sleep now. but will check and update this in the morning
kevinniven said:
So how is the speed when running on a class two SD card or a Class 4
Does the rom bog down?
Click to expand...
Click to collapse
im no expert to android, linux, sd cards (lol)... but i think it doesnt matter, once the ROM is loaded it runs off the phone's memory, so the speed shouldnt be affected.
somebody correct me if im wrong
PikkonX said:
Booting into the rom on the SD doesn't seem to be working. The phone just stays at the initial boot screen. This happens whether I have CM6 or a Sense rom on the SD.
Click to expand...
Click to collapse
yeah i'm getting the same thing wont get past initial bootscreen
Phone = HTC EVO rev 0003
recovery = psfMod 0.7.2 (aka clockwork)
sdcard = 8gb (w/2.2gb free)
and i checked my adress base before hand so i know i got correct one
i will try again tomorrow as i gotta get some sleep now

[Script] WiFi Only (great for inactive devices)

Thanks:
Scary Alien for helping with some of my brainstorms
CPCookieMan for pointing me in the right direction with my initial thoughts for this project
MongooseHelix for the idea of the script vs a flashable zip
This is a very simple script that utilizes the radiooptions command to disable the radio but still allow use of WiFi. I wanted to make it to be run in init.d on startup but haven't successfully got it working that way yet so for now it can be run with script manager. This script can be run as follows:
1. Download the script and place it somewhere on your SD Card. (Maybe make a folder named Scripts to keep things organized)
2. Download Script Manager from the market.
3. Open Script Manager and navigate to where you saved the script then select the script.
4. Check the options for run as root and if you always use wifi only because you don't have service on your device check off Run at boot as well.
5. When prompted by superuser allow superuser permissions.
I have tested this script on my Incredible and my Eris as well and should be universal to run on any android device.
Download Here
If you are using this on an inactive device and don't want the activation screen coming up after reboot and new ROM flash follow these simple steps.
*NOTE: you need to be using a ROM that has EPST.apk (Sense or stock based) in it for this procedure to work.
1. Select emergency call and dial ##778.
2. Select edit and enter service password 000000.
3. Select NAM Settings.
4. Change Mobile Directory number to 0000000000 (Ten digits).
5. Change MIN1 to 0000000 (Seven digits).
6. Change Mobile Country Code to 000 (Three digits).
7. As you back out "Commit the Change".
The guy that made super charger script has a script that can be ran with gscript and used to modify the init file which is supposed to change it so you can run scripts on boot. I think its only for stock roms tho.
Sent from my Exodus Sense using XDA App
Interesting.... this means once my daughter gets her upgrade I can retire my fabulous old Eris and turn it into a PDA and no longer use it as a phone? Sweet! Now I have to strip it all down to be a good mp3 player+.
Izeltokatl said:
Interesting.... this means once my daughter gets her upgrade I can retire my fabulous old Eris and turn it into a PDA and no longer use it as a phone? Sweet! Now I have to strip it all down to be a good mp3 player+.
Click to expand...
Click to collapse
You don't have to... but you can
anubis2k3 said:
The guy that made super charger script has a script that can be ran with gscript and used to modify the init file which is supposed to change it so you can run scripts on boot. I think its only for stock roms tho.
Sent from my Exodus Sense using XDA App
Click to expand...
Click to collapse
I'm wondering if it could be done by adding the commands in the init.rc file inside the boot image instead of an int.d script. I think the reason it's not working the way I have it setup so far is that it requires su permissions in order for the command to take effect. I'm still researching other ways but for now this method does work
CS - That is awesome!
gersto said:
CS - That is awesome!
Click to expand...
Click to collapse
Thanks I just hope people find it useful!
CondemnedSoul said:
Thanks I just hope people find it useful!
Click to expand...
Click to collapse
I think so, especially for those of us wanting to build ROMs that give our Eris's a second life as a non-phone touch device.
I know i've been wanting to try my hand at building a ROM like that, just waiting to upgrade in a month as my cell is the only phone i've got, just in case something bad happens to it
Hey, just wanted to say thanks. I don't have a use for this at this time but I can definitely imagine I'll have a use for it eventually!
Whenever I take advantage of my upgrade, I'll be sure to give this a try on my Eris. Right now it's my primary device though. Still, great idea CS!
Works great on my rebuilt Eris ..Thanks CS
Added procedure to permanately disable activation screen for non-activated phones to OP.
Just what i was looking for after i activate the new incredible 2! Awesome work!
Sent from my MacRom MR8 using XDA Premium App
Scary Alien!!!
there's a name i haven't herd in a while. i'm sure glad he is still around.
Hey cs, congrats on the xda article on your script. I know i'm a few days late...
Sent from my ERIS using XDA App
klobkelosh said:
Hey cs, congrats on the xda article on your script. I know i'm a few days late...
Sent from my ERIS using XDA App
Click to expand...
Click to collapse
Thanks klob..... article?? Didn't know about it though lol
CondemnedSoul said:
Thanks klob..... article?? Didn't know about it though lol
Click to expand...
Click to collapse
http://www.xda-developers.com/android/script-to-allow-wifi-with-radio-disabled/
I saw it too and then kept forgetting to mention it so I'm glad someone did lol.
so exactly what might happen if i run this script on ancm7 rom that does not have the EPST.apk file?
a.mcdear said:
so exactly what might happen if i run this script on ancm7 rom that does not have the EPST.apk file?
Click to expand...
Click to collapse
It will work fine without EPST. EPST is needed for ##778 to work for disabling the activation screen. The script itself does not require that apk, it uses the radiooptions command.
Sent from my ADR6300
I don't have radiooptions in my /system/bin...
But you said it should be universal on any Android device? Do I need a certain version of busybox installed?

[PROJECT] /cache as RAM

Well i had an idea since we don't use the /cache partition, well i don't i was thinking we could use it as RAM.
Any ideas are welcome
LOL no ideas huh.....
Me either.... i wont give up tho i know for sure there is a way...
Hi
If you want a challenge try to get senors working on cm7.
Sent from my XT720 using XDA Premium App
how would that effect the ability to download market apps if its not available?
mchlbenner said:
Hi
If you want a challenge try to get senors working on cm7.
Sent from my XT720 using XDA Premium App
Click to expand...
Click to collapse
Its built on Korean right... lol i haven't even looked at it yet.... i would really like to get a fully 100% kick ass pure android working first.....
Call it a learning experience.
Because everything i know i learned here watching guys like Mz and KhP.
i need to get this finished first..
still imagine unlocking 100mb of ram bro.... cause thats what the /cache is man swap or RAM if i get that unlocked ouuuuuuuuuuuuuuuuuuuuu
mrmako777 said:
how would that effect the ability to download market apps if its not available?
Click to expand...
Click to collapse
Go away kid you bother me............
no effect.... no relevance for that matter LOL
but maybe you could help me.....
Has anyone really been far even as decided to use even go want to do look more like?
And if they did.... what about if they accidentally the whole thing?
mrmako777 said:
how would that effect the ability to download market apps if its not available?
Click to expand...
Click to collapse
hellmonger said:
no effect.... no relevance for that matter LOL
Click to expand...
Click to collapse
I don't know about that. In other ROMs, with the Dalvik on /cache larger apps, e.g. Angry Birds, wouldn't download (not enough space) when the /cache partition was to full.
You could maybe make a swap file on /cache (and an additional swap file on /data) and throw in some of the other useless small partitions. But that's still going to require fastboot.
I like using /cache for /data/dalvik-cache though and I used to get pretty close to filling it. CyanogenMod is sort of nice in that it will actually split the cache between /cache/dalvik-cache and /data/dalvik-cache with /cache/dalvik-cache holding the system apps and /data/dalvik-cache holding the downloaded cache.
3rdstring said:
I don't know about that. In other ROMs, with the Dalvik on /cache larger apps, e.g. Angry Birds, wouldn't download (not enough space) when the /cache partition was to full.
Click to expand...
Click to collapse
I was reading today on reddit that some people divert /cache to the sdcard so that large downloads work. I haven't tried it though.
Mioze7Ae said:
I was reading today on reddit that some people divert /cache to the sdcard so that large downloads work. I haven't tried it though.
Click to expand...
Click to collapse
Hmm.. Dunno about this one as well. but I never had that error, and I usually download the ROMs via my phone.
good luck! then we wont have to partition our sd card for swap anymore! possibly better battery life than swap on sd as less power is needed too!
Before you judge I'm running iceandfire 3.0 overclock at 900 and getting 13,566 to 14,000.
This build is stupid fast.
One issue sensors no big deal you can't do it I will find someone who can.
Sent from my XT720 using XDA Premium App
hellmonger said:
Go away kid you bother me............
no effect.... no relevance for that matter LOL
but maybe you could help me.....
Has anyone really been far even as decided to use even go want to do look more like?
And if they did.... what about if they accidentally the whole thing?
Click to expand...
Click to collapse
Like 3rd string mentions, cache size determines the size of an app you can download from the market as the market uses /cache as a repository to download/install apps...at least that's what I've noticed
Sent from my Milestone XT720 using Tapatalk
mchlbenner said:
Before you judge I'm running iceandfire 3.0 overclock at 900 and getting 13,566 to 14,000.
This build is stupid fast.
One issue sensors no big deal you can't do it I will find someone who can.
Sent from my XT720 using XDA Premium App
Click to expand...
Click to collapse
come on he wasnt saying he did not want to help... cant you read what Hellmonger said carefully? anyway, wouldnt it be good if you could use cache as swap? makes things more complete now that there are already so many good roms for our phone. since we are almost making 2.2 perfect, why not just do a little more, instead of leaving it there and starting to work on 2.3 where theres much more work left to do...
So i think Mz has the right idea..
But do we really have to set it up as swap the whole point ois to get this set up as ram so we dont have to fast boot anymore....
mrmako777 said:
Like 3rd string mentions, cache size determines the size of an app you can download from the market as the market uses /cache as a repository to download/install apps...at least that's what I've noticed
Sent from my Milestone XT720 using Tapatalk
Click to expand...
Click to collapse
The app will be downloaded to /sdcard/Download folder
kernel dont have swap support, so you can't use it from kernel layer. maybe you may find some swap functions in dalvik virtual machine layer, but I don't sure is there any
fjfalcon said:
kernel dont have swap support, so you can't use it from kernel layer. maybe you may find some swap functions in dalvik virtual machine layer, but I don't sure is there any
Click to expand...
Click to collapse
still no luck...
my goal is to stop the whole fastbot thing and use that cache partition as RAM, i already know how to set the download cache directory to SD card
on my ROM it's already implemented...
/cache as Ram.....
We really need to pull our bootloaders and decomplile them to see if there's a way to do the fastboot ourselves. The people that have looked the hardest at the bootloader are on Milestone A853, but according to them they don't have a working "fastboot boot" so that code pathway is missing from their studies.
What we need to find out is what the pathway through the bootloader is that ends up with booting a custom boot.img from RAM (i.e. does fastboot boot go through the entire boot stack or not and if it does how does it convince it to skip the check). In other words I have two mental two models for how fastboot works:
Model 1
Start boot process
Read flags that direct boot to fastboot
Load and execute fastboot bootloader
fastboot reads kernel from USB into memory
fastboot continues boot using the kernel in memory
Model 2
Start boot process
Read flags that direct boot to fastboot
Load and execute fastboot bootloader
fastboot reads kernel from USB into memory
fastboot sets up the phone for boot of the memory-loaded kernel
fastboot restarts boot process
Read flags that direct boot to load and execute the kernel from RAM
So the question is which one is correct? Does fastboot boot continue the current boot process, or does it alter the next boot? That's the big question. If it's model 2, here's an outline for a possible attack:
Attack for Model 2
Normal boot of blessed kernel through sh_hijack.sh
hijack loads a new kernel from the phone into memory
hijack sets up the phone for boot of the memory-loaded kernel
hijack set boot flags for fastboot boot
hijack restarts boot process
Boot memory loaded kernel
So how do we figure out if XT720 uses #1 or #2?
FYI: these are the A853 decompiled bootloaders: https://gitorious.org/droid/reversed (see the asm folder inside the source tree--we need this for XT720 so that we can understand what fastboot boot is doing)
I believe a 2nd had beem complied but it would not boot radio and we don't have a baseband made.
Sent from my Milestone using XDA Premium App

[How To] (video) Supercharge Ice Cream Sandwich!!!

EDIT: This doesn't work on ODEX ROMs! That would be stock ROMs, as most custom ROMs are deodexed. If it is an odex ROM, you can do the mod, but you have to do it manually (the web app doesn't work). Check out the second post in the supercharger thread for a how-to. But if you are on a custom ROM the method in the video will work!
Alright, so I have been reading about how to supercharge ICS for awhile, but the process looked daunting. However I figured it out, and it works great! This will work on ANY ROM, so try it out!
I have been using this for awhile, and it's just super smooth. I've been using it a lot lately, and it hasn't given me a bit of lag yet! It's just gone!
What is V6?
V6 supercharger is a script that manages the RAM memory. This makes multi-tasking much faster, and it knows when to kill off apps that are taking a lot of RAM. This makes your phone a lot faster and more efficient!
Here is the person who made the script: V6 Supercharger
Here is a dl link to the script: DOWNLOAD LINK
I'm in! So... How Do I Do this?
Well I made a video for you:
Here are instructions:
1. Download the supercharger script from the link above and put it on the root of your SD card.
2. Get an app called script manager from the market. It's free. Open it up and click on the supercharge script from the list of what's on your SD card. Click the SU button, then hit run.
3. Go through the setup. Set scrolling speed to 1. When they ask if you want to integrate it into the system, say yes. You will get to a list of about 30 options after a little bit.
4. Select number 6 (I know I said 7 in the video, but 6 has better multitasking) for this phone, and hit enter. It will go through a whole bunch of stuff.
5. It will ask you to superclean and restart. SAY NO. You'll do that inn a minute. Just hit the home button.
6. Open the browser on your phone and go to : android.mimic.ca and hit the upload button. There will be a popup, select root explorer (Install it if you don't have it already). Go into system/framework/ and select the services.jar file. It will take you back to the website. Hit upload. The page will reload. Now select the CMW flashable zip option and download it. Go to root explorer and move that to the root of your SD card.
7. Reboot into recovery, wipe cache and dalvic, then flash the zip. Reboot. Done! Enjoy the speedieness!
Click to expand...
Click to collapse
Let me know what ya think!
Alright, so enough questions have been asked that I should start giving answers to them here.
Q. Do I need to re-flash the file in recovery if I want to make changes?
A. Not if you make changes to the the supercharger script (ie. change options). The only time you have to flash it is if you upgrade/change ROMs. Just remember to make a new one, and don't flash the old file!
Q. Isn't option "X" better/faster/easier on battery?
A. Play around with them and see what works for you. I like option 6. Not too aggressive, but it still keeps control. Just use the options that are for your phone (ie 512HP for this phone because it has that much RAM. So option 5, 6, or 7). I also use the nitro-lagnullifier. It makes things even faster!
Q. Does it affect battery life?
A. Yes, in a good way! I get better battery life.
Q. How do I know if it worked??
A. Open up script manager, and go to the supercharger file. let it run, and once you get to the menu with all the options, it will tell you if you are supercharged or not right below that.
Those were the most commonly asked questions. If they don't answer your questions then post 'em!
battery life
so this looks promising but how does it the effect on battery life with ICS.
works great... noticeable difference
cloud7a said:
so this looks promising but how does it the effect on battery life with ICS.
Click to expand...
Click to collapse
This shouldn't hurt the battery. I used to use it on my Epic fairly often especially once the Gingerbread leaks started coming out. There are several different routes to go with the script too. It can also be used to improve multitasking such as when you have multiple apps open at once.
Sent from my SPH-D710 using xda premium
cloud7a said:
so this looks promising but how does it the effect on battery life with ICS.
Click to expand...
Click to collapse
If anything it makes the battery life better. It's really a win-win!
thanks for the quick tut. I was gonna try using it on aokp as well, then i saw ics you had to do something extra and i just stopped looking into it lol - It's much easier than i expected.
Btw rocket, you should try the touch cwm recovery personally I think it's easier to navigate and use
Sent from my Nexus S 4G using Tapatalk
Thanks for the .zip. I was going to do this earlier but the instructions on the page here in XDA was kinda hard to understand >__>
EDIT - Anyone have a edited odex file for stock rom?
kyouko said:
thanks for the quick tut. I was gonna try using it on aokp as well, then i saw ics you had to do something extra and i just stopped looking into it lol - It's much easier than i expected.
Btw rocket, you should try the touch cwm recovery personally I think it's easier to navigate and use
Click to expand...
Click to collapse
I looked into it awhile ago, and it was even more complicated. The web app made it really easy.
I'll try the touch recovery out. I'll flash it through fastboot in a bit. I'm just used to this one from my EVO.
jokkir said:
Thanks for the .zip. I was going to do this earlier but the instructions on the page here in XDA was kinda hard to understand >__>
EDIT - Anyone have a edited odex file for stock rom?
Click to expand...
Click to collapse
Sorry I don't. I just use custom ROMs!
just installed along with the KAK
haven't had it for long, but first impression's that there's quite a lot more ram available on boot, and pretty smooth
thanks for your instructions! they were helpful
Thanks for the writeup and video. I tried this on my Evo a while back, but the thread was huge and difficult to navigate.
Just ran the script, so we'll see how it goes.
Awesome. Thanks!
Sent from my Nexus S using Tapatalk
Phone still needs to redraw launcher..
Sent from my Nexus S using XDA App
Thank you so much man. The original thread is a mess but you made it easy!
phone went into infinite boot loop.. =[
had stock ics w/ root. tried to do the ics mod. I think odex file but when i tried running the one click script, i think something went wrong when i rebooted
can someone please explain to me why in the instructions it says for me to upload my services.jar file to this guy's website???? That just seems very fishy!!
Why can't we patch the file locally??? Why does your server have to do it for me when an app could easily be written to do it without me uploading my services.jar to some random website I don't trust!
kwantran said:
phone went into infinite boot loop.. =[
had stock ics w/ root. tried to do the ics mod. I think odex file but when i tried running the one click script, i think something went wrong when i rebooted
Click to expand...
Click to collapse
you can't use the web app for odexed roms http://forum.xda-developers.com/showpost.php?p=16635544&postcount=2
hp420 said:
can someone please explain to me why in the instructions it says for me to upload my services.jar file to this guy's website???? That just seems very fishy!!
Why can't we patch the file locally??? Why does your server have to do it for me when an app could easily be written to do it without me uploading my services.jar to some random website I don't trust!
Click to expand...
Click to collapse
You can patch it manually. Check out the link in the OP. However, it requires unziping the file, opening it in notepad++, editing the code, zipping it back up, putting it back in the phone, and editing some stuff with terminal emulator. It's a bit over most people's heads, and the website makes it easy by making the patched services.jar a flashable zip.
If you want to do it, be my guest. It's all in the second post of the supercharger thread.
phone went into infinite boot loop.. =[
had stock ics w/ root. tried to do the ics mod. I think odex file but when i tried running the one click script, i think something went wrong when i rebooted
Click to expand...
Click to collapse
I have only used it on custom ROMs. The web app doesn't work for odex ROMs (stock), but it will work on custom ROMs. Try one of them out, it should work then. just titanium backup, flash new ROM, and restore backup. Won't loose your apps!
I can confirm this is working on the cyberg rom...my min ram is 144mb now under performance setting...my phones seems snappier now!
Imppy said:
I can confirm this is working on the cyberg rom...my min ram is 144mb now under performance setting...my phones seems snappier now!
Click to expand...
Click to collapse
Sweet! I have 125 MB min free. What setting did you use on the supercharger?

Categories

Resources