[mods]cm7 on hold until further notice - EVO Shift 4G Android Development

Having troubles? Provide me with a logcat from the moment you see your splash screen on booting so I can further assist you.
https://sites.google.com/site/androidhowto/how-to-1/save-logcat-to-a-text-file
YOU MUST have a recovery and kernel that supports ext4 in order to use this patch. Pleas at this time only use CWM RECOVERY, format and wipe everything before installing.
1. Format system
2. Format data
3. Format cache
4. Format sd-ext
For more information on how this type of apps2ext works please visit the CyanogenMod wiki.
http://wiki.cyanogenmod.com/wiki/Apps2SD
--------------
A lot of these scripts are based on the stock Cyanogenmod scripts to mount sd-ext partition and allow a2sd.
I've edited the stock system/etc/init.d/05mountsd to mount ext partition as ext4 instead of ext3. The system/etc/init.d/10apps2sd was made by Cyanogen himself and it can be found on the Cyanogenmod github. I've edited it to activate and utilize the sd-ext partition of the device. The swap patches and the cmparts source edits are all my own work. Please see the github for more details.
Update: There is a certain way that this patch needs to be installed.
It does not matter if you wipe or do not wipe before flashing.
1. You need
to flash in this order, otherwise the permissions for your
rom will not be correct. Flash the rom first, then the
patch, then the gapps.
2. As
many of you might know, this rom already includes
gapps, but do not include this patch like my roms on
rom manager do. Since the patch sets
permissions for the system, and gapps will not work
correctly with the permissions if already installed in
system. I use Crash's gapps from rom manager to do this.
Flash in the same order you would for normal
cyanogenmod roms. Rom first, then patch, then gapps.
Yes even if the rom already includes gapps you still must flash gapps
This thread will only be discussion for Cyanogenmod These are AOSP Roms. DO NOT EVER ASK ABOUT SENSE ROM TWEAKS EVER, they just simply won't work with these mods.
Do not submit revised versions that are already posted, I will try to keep the patches as updated as possible. Do not distribute or modify any of the scripts without my given consent, or at least give me credit!
I am not responsible for you breaking something on your device. If you come and tell me that my mods messed up your phone, I will laugh at you.
I have been running these mods flawlessly with no issues. So let's get right into it.
Options:
WARNING: Before you do anything, do a nandroid
backup. If you need to partition your sdcard via recovery, back up your
entire sdcard to your pc before doing so as it will get formated.
If you want a2sd, then you will need a ext4 partition on your sdcard. I
recommend at least a 500+mb partition. That's it, the scripts will do the
rest.
You can not have any other types of a2sd installed before applying the patch.
The patch doesn't remove, it installs If you have manually installed some
other type of a2sd, you will need to wipe and re-flash rom. The main
important thing is, make sure system gets wiped.
If you want Linux-swap, just simply add a swap partition to your sdcard when
you go to format it in recovery, simple.
Next download and flash the latest patch over your current rom. Be aware
that if you have a swap partition, that your phone will reboot itself once after
your initial boot. Don't freak out and come crying about how your phone is
boot looping, it only reboots once. This is all part of the initial setup to make
sure swap is working properly.
How to check if a2sd is active and working in terminal emulator from your
phone
Code:
$ su
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 183.6M 32.0K 183.6M 0% /dev
tmpfs 183.6M 0 183.6M 0% /mnt/asec
tmpfs 183.6M 0 183.6M 0% /mnt/obb
/dev/block/mmcblk0p26
487.8M 143.8M 318.9M 31% /system
/dev/block/mmcblk0p27
430.0M 147.3M 260.5M 36% /data
/dev/block/mmcblk0p28
149.6M 47.5M 94.4M 33% /cache
/dev/block/mmcblk0p31
19.9M 17.2M 2.7M 86% /devlog
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /sd-ext
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app-private
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/dalvik-
cache
If you see this part then you are golden
Code:
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /sd-ext
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/app-private
/dev/block/mmcblk1p2 1.9G 1.0G 788.7M 57% /data/dalvik-cache
How to check if swap is active working from terminal emulator on your
phone
Code:
$su
# free
total used free shared buffers
Mem: 376008 353776 22232 0 15756
-/+ buffers: 338020 37988
Swap: 249544 36780 212764
Next, enjoy your new mods
CMParts (Cyanogenmod settings source): https://github.com/pbeeler/android_packages_apps_CMParts
Changelog: https://github.com/pbeeler/android_packages_apps_CMParts/commits/gingerbread

Patch1 uploaded, happy Halloween

When I get home I will be checking this out!
Question, Does the mount points matter?, What i mean to day is The order of them, My guess would be 1 sd-ext,2 swap,3 storage?

JaceAlvejetti said:
When I get home I will be checking this out!
Question, Does the mount points matter?, What i mean to day is The order of them, My guess would be 1 sd-ext,2 swap,3 storage?
Click to expand...
Click to collapse
Yes. Sdcard is /dev/block/mmcblk1p1, sd-ext is /dev/block/mmcblk1p2 ect. Unless of course you manage to somehow make swap partion #2, in which case it would break the scripts. I could make another patch for just swap if someone wants it.
Sent from my PG06100 using xda premium

Thanks for the Reply, I'm semi new to android but not linux in general, so I'm still learning the ins and out,
Like I said when I get home from work ill put this in over Nightly 239, I'm running Scarystable kernel
Thanks for this,
OH am I truely over kill at 512 mb of swap?
and as in your exaple a gig for sd-ext should truely be enough right?
Again I havent even looked at the options to know if I can change these as i have no way to back up my SD card here

JaceAlvejetti said:
Thanks for the Reply, I'm semi new to android but not linux in general, so I'm still learning the ins and out,
Like I said when I get home from work ill put this in over Nightly 239, I'm running Scarystable kernel
Thanks for this,
OH am I truely over kill at 512 mb of swap?
and as in your exaple a gig for sd-ext should truely be enough right?
Again I havent even looked at the options to know if I can change these as i have no way to back up my SD card here
Click to expand...
Click to collapse
If you partition with recovery you should be good. 512mb's is overkill. Clockworkmod recovery only allows us to partition up to around 256mb's max. And I never get close to using all of it. But I like to have extra free ram and swap available and not having it maxed out. Scary kernel will work as it supports swap. This also will replace your current cm settings as I have moddified it to allow swap. 1gb is plenty for most for a ext4 partition. If you run out of room some day you can make larger and it still runs good.
Sent from my PG06100 using xda premium

Backing up SD card now, Nand Already done, Current ETA 38 min on Backup Will Update on Progress and Report back
Ok I may be Blind, or missing something, but I don't see swap partition creation in Recovery, only sd-ext
I'm on CWM, gonna try yours as this doesn't have it

JaceAlvejetti said:
Backing up SD card now, Nand Already done, Current ETA 38 min on Backup Will Update on Progress and Report back
Click to expand...
Click to collapse
Nice. I have swappiness set pretty high to 90 and I have a class4 16gb sandisk. You can change the swappiness in the swap script to whatever you would like and then re-zip the patch.zip. Also I'll have to keep updating the cyanogenmod settings because they have all types of swap disabled in the source code. I will put my source link up on the main post. That's why I have this first one as patch1. I did test this and it works great. So it's not alpha or beta
Sent from my PG06100 using xda premium

Works like a Charm, Ext 4 is increasing as i re-install apps and swap is working

This thread already exists. And swap is useless.
Not trying to hate on you sparky. I appreciate you being more active on the forums lately since "the incident".
In all seriousness I am interested in converting to ext4 without swap.
How would I do that with CWM? Doesn't it use ext3?
From what I've read there isn't much of a performance benefit from ext3 -> ext4, however I'm still interested in it because I would like to improve my sd card speeds.

VICODAN said:
This thread already exists. And swap is useless.
Not trying to hate on you sparky.
In all seriousness I am interested in converting to ext4 without swap.
How would I do that with CWM? Doesn't it use ext3?
From what I've read there isn't much of a performance benefit from ext3 -> ext4, however I'm still interested in it because I would like to improve my sd card speeds.
Click to expand...
Click to collapse
Link to my own personal patches? First you rate my thread one star and then troll it? That is abuse and a attack on a xda member which is against the rules.

sparksco said:
Link to my own personal patches? First you rate my thread one star and then troll it? That is abuse and a attack on a xda member which is against the rules.
Click to expand...
Click to collapse
I did not rate your thread 1 star sir. I like you dude. You should come hang out with us on IRC. I really appreciate your efforts. I think they are misguided though.
---------- Post added at 12:07 AM ---------- Previous post was at 12:06 AM ----------
In fact, I just rated your thread 5 stars. Does that make you feel better?

VICODAN said:
Does that make you feel better?
Click to expand...
Click to collapse
No accually it doesn't...
Sent from my PG06100 using xda premium

He's over in my thread asking for my speed scores, I have seen him in a ton of threads going on about them, I don't care about scores if from what I see is results,
More Praise for ya Sparks, I have been using this now sence i installed in and am still loving it!, only problem i had was while connecting usb to the pc,
After turning USD back off, it locked up the phone, Now i didn't swap off so it was probably my own fault so ITS AWESOME!!
Thank you again and I look forward to your further releases

JaceAlvejetti said:
He's over in my thread asking for my speed scores, I have seen him in a ton of threads going on about them, I don't care about scores if from what I see is results,
More Praise for ya Sparks, I have been using this now sence i installed in and am still loving it!, only problem i had was while connecting usb to the pc,
After turning USD back off, it locked up the phone, Now i didn't swap off so it was probably my own fault so ITS AWESOME!!
Thank you again and I look forward to your further releases
Click to expand...
Click to collapse
He believes that scores mean anything, they only matter when the phone is completely stock, unrooted
Benchmark scores can be changed easily

blahbl4hblah said:
Benchmark scores can be changed easily
Click to expand...
Click to collapse
This is everyone's excuse to say benchmarks don't mean anything.

VICODAN said:
This is everyone's excuse to say benchmarks don't mean anything.
Click to expand...
Click to collapse
They are good for stock unrooted phones. Benchmarks depend a lot on the kernel and cpu and ram and gpu and other things like sdcard ect. My latest kernel in my rom on rom manager is uv. Therefore it isn't pulling in as many voltages. This is way that kernel gets lower benchmark scores then other. If your cpu runs low on physical ram, it ramps up your cpu more and drains your battery faster. It also overheats your cpu more esspecially when you run out of physical ram. Try a normal kernel (not uv) and it will get better benchmark scores.
Benchmarks mean nothing. Proof does which I will post on the OP for you right now
Sent from my PG06100 using xda premium

JaceAlvejetti said:
He's over in my thread asking for my speed scores, I have seen him in a ton of threads going on about them, I don't care about scores if from what I see is results,
More Praise for ya Sparks, I have been using this now sence i installed in and am still loving it!, only problem i had was while connecting usb to the pc,
After turning USD back off, it locked up the phone, Now i didn't swap off so it was probably my own fault so ITS AWESOME!!
Thank you again and I look forward to your further releases
Click to expand...
Click to collapse
If your on the latest cm nightly then there will be lock-ups because there is memory leaks. Try my own nightly on rom manager. It was the last stable one on there. Try either one of the nightlies.
Sent from my PG06100 using xda premium

sparksco said:
They are good for stock unrooted phones. Benchmarks depend a lot on the kernel and cpu and ram and gpu and other things like sdcard ect. My latest kernel in my rom on rom manager is uv. Therefore it isn't pulling in as many voltages. This is way that kernel gets lower benchmark scores then other. If your cpu runs low on physical ram, it ramps up your cpu more and drains your battery faster. It also overheats your cpu more esspecially when you run out of physical ram. Try a normal kernel (not uv) and it will get better benchmark scores.
Benchmarks mean nothing. Proof does which I will post on the OP for you right now
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Agreed and thank you for the well thought out explanation, but you got better quadrant scores than me on pershoot #14.. which is not released yet? Could you elaborate on that please?

VICODAN said:
Agreed and thank you for the well thought out explanation, but you got better quadrant scores than me on pershoot #14.. which is not released yet? Could you elaborate on that please?
Click to expand...
Click to collapse
You do realize that pershoot doesn't have an evo shift right?
Sparksco himself ported this kernel from g2, he will have newer updates

Related

[DEV] /cache converted to swap

So as we all know /cache is used for OTA updates which, when you have your phone rooted is useless.
What I'm wondering is why we can't use /dev/block/mtdblock4 (aka /cache) as a permanent onboard swap partition. Granted it will only give us an additional 30MB but the speed of this swap will be higher than that of our sdcard.
In order to test this we'll have to:
convert this partition to a linux-swap partition.
mkswap /dev/block/mtdblock4
update init.rc to no longer mount this as yaffs2
add this new swap space to the swap script
The issue is of course being able to run a partition utility on the phone. Second, if this doesn't work we don't have a way to format /cache back to yaffs2 (that I know of).
If you have experience with any of the issues I listed above please comment/post. If you don't have a clue please don't post so we can keep this thread clean. I would appreciate only experienced devs responding.
If this is possible it would benefit Hero/MotoBlur ROMS which are memory intensive.
For your second concern, why would we need to change it back to /cache? Just make it a disclaimer when people attempt this operation.
More importantly, I think the primary issue is that this is rom space is it not? Doesn't this portion of the memory have a limited amount of times that it could be written to?
Hmm why not trying "parted /dev/block/mtdblock4" in recovery? ;-)
rest would be easy.
Couldn't we use mkyaffs2img (in recovery /sbin) to turn it back into yaffs?
persiansown said:
For your second concern, why would we need to change it back to /cache? Just make it a disclaimer when people attempt this operation.
More importantly, I think the primary issue is that this is rom space is it not? Doesn't this portion of the memory have a limited amount of times that it could be written to?
Click to expand...
Click to collapse
Well my concern was if there was some adverse effect of removing /cache from the system we'd need a way to revert back.
I am not aware of any MAX amount of times that /cache can be written to.
*Edited*
Due to unintelligent comments and moronism prevalent in this thread, I removed a line from this post to keep us on track of what this thread was meant to discuss.
There's another thing:
Recovery can't be used without /cache !
So we need to convert back each shutdown and convert to linux-swap each startup..
dumfuq said:
Couldn't we use mkyaffs2img (in recovery /sbin) to turn it back into yaffs?
Click to expand...
Click to collapse
I hadn't checked in the recovery img for any yaffs2 utilities. But if that indeed does exist then this will be possible.
So then the issue would be, is this safe to attempt long term with the amount of writes being done to internal flash?
maxisma said:
There's another thing:
Recovery can't be used without /cache !
So we need to convert back each shutdown and convert to linux-swap each startup..
Click to expand...
Click to collapse
So I see recovery is using it but the only thing in it is the recovery logfile. Could we modify the recovery to read/write the logfile to system/sd/recovery or something, or is the cache used for other stuff as well?
Another idea:
Instead of using it as swap, what if we could find a way to use it as compcache space? That way we don't sacrifice any of the internal ram for compcache and still have compcache running
maxisma said:
There's another thing:
Recovery can't be used without /cache !
So we need to convert back each shutdown and convert to linux-swap each startup..
Click to expand...
Click to collapse
What part of recovery needs /cache ? Does the recovery img mount the /cache partition? I'm wondering if the recovery img could be modified to write to the ext2 partition such as /system/sd/cache .
persiansown said:
Another idea:
Instead of using it as swap, what if we could find a way to use it as compcache space? That way we don't sacrifice any of the internal ram for compcache and still have compcache running
Click to expand...
Click to collapse
This is actually a good idea and it'd be interesting to see which way would benefit us more.
shafty023 said:
What part of recovery needs /cache ? Does the recovery img mount the /cache partition? I'm wondering if the recovery img could be modified to write to the ext2 partition such as /system/sd/cache .
Click to expand...
Click to collapse
When you activate an option in recovery, for example install update.zip, it writes the command into /cache/recovery and does a "quick reboot", which reads out the command and does this.
ok first dont even try it would one
reduce life on nand
cause issues with flashing
slow down any thing accessing the nand.
to the person thinking the ram is using flash. you must have never been to high school cause even typing class explains what ram is. plus g1 has memory write speeds of about 120mb/sec thats sdram. swap will never replace ram 120mb/sec versus 6 is huge
if you want real improvements you must change the code to something more efficient.
less bloat
more native code
fewer clock cycles
improved app states(cache on sd that would save the state by dumping part of ram to load later reducing clock cycles and reducing ram)
and my favorite rewrite system libs and apps to include more native code and reducing ram usage.
btw native code is about 10-100x faster than android java. that means 10%-100% more speed(or less load)
you could make a swap file and put it on there and just mount the file...........
yeah what he said!
zenulator said:
you could make a swap file and put it on there and just mount the file...........
Click to expand...
Click to collapse
This sounds like a good idea, altho we would have to get compcache working with backing swap file.
do we know if the /cache speed is compaired to Class 6 microSD?
good luck hardheads
jokersax11 said:
ok first dont even try it would one
reduce life on nand
cause issues with flashing
slow down any thing accessing the nand.
to the person thinking the ram is using flash. you must have never been to high school cause even typing class explains what ram is. plus g1 has memory write speeds of about 120mb/sec thats sdram. swap will never replace ram 120mb/sec versus 6 is huge
Click to expand...
Click to collapse
Dude honestly get a life. I have a Bachelor's degree in Computer Science. And I could code in Intel Assembly accessing each and every register in memory while you're left googling what Intel Assembly code means. Maybe you should keep up with the latest technology. If you did you'd know there are all-in-one memory chips that support NOR, NAND flash, and RAM.
http://www.eetasia.com/ART_8800466798_499486_NT_ab9e537f.HTM
jokersax11 said:
if you want real improvements you must change the code to something more efficient.
less bloat
more native code
fewer clock cycles
improved app states(cache on sd that would save the state by dumping part of ram to load later reducing clock cycles and reducing ram)
and my favorite rewrite system libs and apps to include more native code and reducing ram usage.
btw native code is about 10-100x faster than android java. that means 10%-100% more speed(or less load)
Click to expand...
Click to collapse
Exactly what type of "native code" are you referring to? And do you have any idea what type of memory the G1 uses for RAM? Go back to your typing class.
Shafty did you see Zenulator's idea? That seems like it could work.. Does the phone ever format the cache partition?

[DEV][S-OFF] Custom MTD Partitions (resize data, system, and cache)

Good news for those who have disabled security on their HTC Desire.
Having tried Firerat's Custom MTD patch on my HTC Desire and almost bricking it twice, I decided to break it apart and examine things in more detail.
As it currently stands v1.5.3 of his patch will corrupt your mtd0 partition if applied to your desire, so do not try it!
I read through lbcoder's custom partitions layout thread, then broke apart Firerat's patch to determine what it was doing, and what was going wrong on the HTC Desire.
The result, I have modified Firerat's Custom MTD script so it works on the HTC Desire and have successfully modified the partitions on my phone so system is 125MB, cache is 5MB, and data is 317MB.
Now after moving all my apps & dalvik-cache from SD-EXT back to DATA I still have 130MB free! w00t!
I will be providing minimal support for this, I am purely providing this to allow others to modify their partition table just as I have done. Ensure you read Firerat's original thread for further information and/or troubleshooting, it's 99% his patch/work, I just made a small change to stop mtd0 from being overwritten.
These are the steps I performed on my phone and are based on ClockworkMod Recovery v2.5.0.7.
If none of this makes sense to you then this is not for you:
Disable security on your phone. (S-OFF in FASTBOOT)
Place bravo-recovery-v1.5.3-CustomMTD.zip & bravo-boot-v1.5.3-CustomMTD.zip on SD card
Reboot into recovery
Take a Nandroid backup
Create mtdpartmap.txt on SD card with size of system & cache, the example provided sets system to 125MB and cache to 5MB, this will depend on your ROM: echo "mtd 125 5" > /sdcard/mtdpartmap.txt
Format system, data, and cache (found under mounts and storage)
Flash bravo-recovery-v1.5.3-CustomMTD.zip, this patches recovery to use the new partition sizes
Reboot into recovery
Format system, data, and cache again for good measure (found under mounts and storage)
Flash ROM, or restore Nandroid backup, it will be flashed to NAND based on new partition sizes
Prior to rebooting, flash bravo-boot-v1.5.3-CustomMTD.zip, this patches ROM kernel to load with same partition sizes.
Enjoy
Warnings:
Do not attempt to flash radio via recovery/ZIP, only do it via fastboot.
Has only been tested on HTC Desire, may not work on other phones.
Some users have suggested small cache size affects performance in games, if you play games on your phone it may be worth setting cache to 20-35MB
Uninstalling:
Removing this is simple.
Boot in to fastboot
Fastboot flash the original unmodified clockwork img
Reboot into recovery
Format system, data, cache
Install ROM/ZIP, gapps etc, reboot
Download:
bravo-recovery-v1.5.3-CustomMTD.zip
bravo-boot-v1.5.3-CustomMTD.zip
Credits:
AlphaRev - for bringing S-OFF to HTC Desire
Firerat - for the original patch. I will be forwarding you the exact changes/details shortly.
Lbcoder - for coming up with the idea
Skraw ( CM forums ) - for getting lbcoder interested
Koush - for AnyKernel
Cyanogen & Co - for giving us all such great ROMs to play with
Amon_RA and Koush - for giving us something to patch
Techjosh - for fixing the patchers for use with Rogers (EBi1)
Mblaster - for pointing out my nasty habit of using -r zip flag at the end of command ( breaks compatibility with older zip versions, fixed in AutoPatcher v1.5)
Kali- for porting CM6 to Desire thanks a bunch
I don't take any credit for this, other than the time invested to get it working on the Desire.
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 208112 0 208112 0% /dev
tmpfs 208112 0 208112 0% /mnt/asec
/dev/block/mtdblock3 128000 123932 4068 97% /system
/dev/block/mtdblock5 315008 184048 130960 58% /data
/dev/block/mtdblock4 5120 776 4344 15% /cache
/dev/block/mmcblk0p2 505636 2307 477224 0% /sd-ext
/dev/block/vold/179:1
7431564 5413644 2017920 73% /mnt/sdcard
/dev/block/vold/179:1
7431564 5413644 2017920 73% /mnt/secure/asec
/dev/block/dm-0 3124 1504 1620 48% /mnt/asec/com.google.android.stardroid-1
Reserved
Just in case
Interesting
Nice work.
Now THIS is what I was waiting for when I s-offed my desire
Good stuff can't wait to try it out.
Thanks.
Yeahaa ... that's what many people waiting for ... Thank you very much for that work !
Nice work!
Very very Interesting...
HTC Desire
DeFrost 5.1 rom
Which is the command to see the partition sizes? i undestand is under adb but cant find the commands
wait a sec... couldn't this be used to resize the /system to fit the complete Desire HD rom... ofc that would not allow you to have custom apps, but still
daedelus82, you seem to have made the most out of your nightshift . Thanks from all of us wondering how to put S-Off to good use.
Hi, that seems very good news and tool but can you explain me the advantage to resize or manipulate the partition ??
My English is not perfect for understand "lbcoder's custom partitions layout thread" or "Firerat's patch".
Regards, Oijkn.
Short Question: Is there anything that prevents us from mounting /dev/block/mmcblk0pX as /data? Seems like a trivial Apps2SD for me, but perhaps that would be too easy...
Otherwise ~420MB /system would be possible. Don't know if thats enough for those DesireHD Roms.
Oijkn said:
Hi, that seems very good news and tool but can you explain me the advantage to resize or manipulate the partition ??
My English is not perfect for understand "lbcoder's custom partitions layout thread" or "Firerat's patch".
Regards, Oijkn.
Click to expand...
Click to collapse
The main use is to get more space for apps on /data by shrinking /system to exactly the size needed for the rom you use and shrinking /cache as it is not really used anyway (at least on g1 it was only used for ota updates, which you don't get on a custom rom).
Other use would be to fit a huge rom on a blown up /system partition.
Question before you release it: how to predict what size of /system I need? It is equal to size of /system folder in ROM's flashable file?
Second question: it is good idea to shrink /system to something like 5 MB and move all system apps to /data (then all apps can be easily uninstalled and updated)?
mblaster said:
The main use is to get more space for apps on /data by shrinking /system to exactly the size needed for the rom you use and shrinking /cache as it is not really used anyway (at least on g1 it was only used for ota updates, which you don't get on a custom rom).
Other use would be to fit a huge rom on a blown up /system partition.
Click to expand...
Click to collapse
Thanks mate for the explain ^^ I understood a little better. Do you think that patch will make my desire more efficient ??
I think this will benefit the community a lot.
Sense HD users might finally get the whole system on nand.
AOSP users will have more memory to install appss on nand.
Win-win for everybody
Will this script Resize the Partitions automatically depending on which ROM you are flashing?
wow
it sounds great
worst case we delete some unnecessary apps, and HD port can fit to the device
wow
i tried this on my g1, trust me its not worth the trouble. stick with apps2sd if youre having space problems.
warsng said:
i tried this on my g1, trust me its not worth the trouble. stick with apps2sd if youre having space problems.
Click to expand...
Click to collapse
But thats just it though... I am using using A2SD and still having space trouble!

[Q] EXT 4

How do i find out if i have ext 3 or 4, and where do i find ext 4 to flash if i need?
thanks
An easy way to tell would be to install 4EXT Recovery to replace CWM Recovery. It will show you exactly what your partitions are in recovery.
http://forum.xda-developers.com/showthread.php?t=1161710
If you want to change your partitions to Ext4 then you can go to the first page of the Android Revolution HD thread in development and download and run Mike1986's superwipe script, which is on the first page. Flash superwipe in recovery. It will format your partitions as Ext4. Make a back up of your phone data because it will delete all of your data. It will not delete anything on your external sd card. Also make sure you have a rom on your sd card to flash after using a wipe script.
Wolf_2 said:
An easy way to tell would be to install 4EXT Recovery to replace CWM Recovery. It will show you exactly what your partitions are in recovery.
http://forum.xda-developers.com/showthread.php?t=1161710
If you want to change your partitions to Ext4 then you can go to the first page of the Android Revolution HD thread in development and download and run Mike1986's superwipe script, which is on the first page. Flash superwipe in recovery. It will format your partitions as Ext4. Make a back up of your phone data because it will delete all of your data. It will not delete anything on your external sd card. Also make sure you have a rom on your sd card to flash after using a wipe script.
Click to expand...
Click to collapse
What wolf said lol. :-D.
Enjoy the ext4 recovery. Its a great piece of work. If you want to theme it check out the links in the op of that thread wolf directed you to. Many themers including myself are listed on there. Link in my sig as well.
I got your 10 char right here
Besides really liking the way 4EXT Recovery works, I really enjoy changing and using themes by Cwhitney24 and other themers. It is great to be able to theme recovery.
Wolf_2 said:
Besides really liking the way 4EXT Recovery works, I really enjoy changing and using themes by Cwhitney24 and other themers. It is great to be able to theme recovery.
Click to expand...
Click to collapse
Well thanks! :-D
I got your 10 char right here
After reading the last 4 posts I feel the need to put my high boots on and install the newer recovery.
Agoattamer said:
After reading the last 4 posts I feel the need to put my high boots on and install the newer recovery.
Click to expand...
Click to collapse
....yes do it!!!! Lol
I got your 10 char right here
It's all good now!
brettd750 said:
It's all good now!
Click to expand...
Click to collapse
Good! :-D
I got your 10 char right here
brettd750 said:
I need 10 post to be able to post in the dev threads. Have some small potential faults with a custom rom.
Click to expand...
Click to collapse
try the Q&A stickies
Pirateghost said:
try the Q&A stickies
Click to expand...
Click to collapse
Someone finally found it and asked the question. Fixed and there is no flaw
The on screen personalize but was linked to fire up internet explorer. there was a tweak in setting to turn it off
**shudders at 'internet explorer'**
Pirateghost said:
**shudders at 'internet explorer'**
Click to expand...
Click to collapse
+10 chars! Love it!
Are there any advantages of being ext4 over ext3? Im on the absolution rom so im not sure what ext it is. Sorry for thread jacking btw.
EXT is the Linux native filesystem. EXT was quickly replaced by EXT2 which was a good rock-solid FS for Linux and survived for a decade. It was eventually supplemented with a journal and became EXT3 even though the underlying filesystem was still EXT2. EXT4 is a journaling FS, but was redesigned from the ground up. It is designed to take advantage of very high-speed drives like 15K SCSI raid-arrays in high-end server farms, or for dealing with huge file sizes efficiently, neither of which is an advantage at all on an embedded device like a smart phone.
Most Androids used yaffs2 since it was fast and efficient on an embedded device with a serial MMC type storage system, but with the advent of multi-core smartphones, yaffs2 didn't handle multi-threaded access to the filesystem.
So, in short, EXT4 is really not an appropriate filesystem for an embedded device. Any journalling filesystem is going to be hard on the MMC as it causes much more read/write cycles and will eventually result in faster failure of the MMC. EXT3 is the choice of HTC on its newer eMMC devices and probably is the best fit for multi-core systems, but Google has hired the inventor of EXT4 so that's probably the direction Android will take regardless of EXT4's inappropriateness.
For more information:
http://en.wikipedia.org/wiki/Ext4
I read that post without looking at the author and was thinking "this guy seems almost as smart as Gene".
Sent from my Inspire 4G using the power of the dark side

[MOD][REC][29/10]Data2SD -- I/O-Boost

Data2SD MOD: Moves /data partition to External SD, noticeable performance increase
All files attached are flashable .zips Installation instructions updated.
clemsyns cpu OC 1800 kernel is out! Good stuff!
Symlink added to /data2 (internal storage now found as /sdcardi)
You will need to disable journaling using the guide in post #3 if you are on CleanROM 2.1 to 2.3
as the rom does this as standard. If not you will get error!
I have had nothing to do with the development of this MOD, all credit goes to TweakerL
Also a huge thanks to scrosler for the fantastic CleanROM
Thanks to clemsyn for the amazing kernel!
Feel free to go to original thread and give your thanks: http://forum.xda-developers.com/showthread.php?t=1803252
and also to seek information, the thread is full of it.
What/Why/How?
This MOD was developed to aid the I/O-issues the Transformer Prime has and the Infinity inherited. Since it was a known fact that the internal
storage was slow/poor, TweakerL decided to try mounting the /data partition to the MicroSD card. Hence an obvious necessity
will be that you have a fast MicroSD card. Several have been tried and there is no real conclution as to what is the best in regards
to manufacturer or class (a class 6 card can have better random write speeds than a class 10 card), I use a Sandisk 64GB UHS-I
class 10 card and so does several others with good results.
The way this works is that you change the ramdisk so that it mounts /data to the second partition of your micro sd. Your internal
storage (the old /data partition) will be mounted as /data2.
Requirements
1. Unlocked and Rooted
2. You MUST repartition your Micro SD. The .zip you flash will mount /data to mmcblk1p2, which basically says "mount /data to the
second partition in the external SD." also, the ramdisk expects that partition to be ext4, so essentially:
Make sure you have an external SD with at least two partitions and that the second partition is formatted to ext4. I use fat32 on the first partition
because it's recognized by most devices.You will also need to make both partitions "primary" partitions. I personally use Gparted to repartition
my stuff, but feel free to use whatever you like. Even if you're on windows you can still use gparted by using virtualbox, or you can use a tool
called MiniTool Partition Wizard, I haven't tried it myself but it is reported to be good.
3. Research your Micro SD, find out if it has good random write speeds. There is no use in this mod if you card is slower than your internal
memory.
4. Although it's not a requirement it is a recommendation to have gone through the Nvflash procedure. It has saved alot of people from bricks
and is just great to have.
5. Verify that the .zip is compatible with your ROM, if it is not listed feel free to ask for a version for your preferred ROM.
Disclaimer
I take no responsibility for whatever happens to your device using this MOD, it is flashing a kernel so take precautions!
Installation
1. Boot to recovery, flash your preferred ROM
2. Reboot to initial setup (Don't run through)
3. Reboot to recovery, flash the matching Data2SD.zip
4. Disable journaling (Optional on all ROMs except CleanROM)
5. Reboot
When it reboots you will get a blue progress bar and it will be just as you flashed a new rom, you'll get the device setup screen.With my
MicroSD I get about twice the Random Write speed with this mod; Internal=0.20mb/s External=0.40mb/s . We will have a look at doubling
these figures further down (I currently have Random write speed average of 0.8mb/s).
Reverting
Flash a ROM
Feel free to ask any questions!
MD5 checksum for cm10-1025data2sd : 78b9e62e27204efeb0bdd3c926c4a30a
MD5 checksum for CleanROM2-3Data2SD: 60eef4e666ec97216ee0801189233719
MD5 checksum for clemsyn's 600 OC kernel ver8: e07b4a5a5f7ae2976a86460e5309199a
MD5 checksum for clemsyn's 650 OC kernel ver8: cf6d36da2d26db2e72c1c110a87cad7f
MD5 checksum for clemsyn's 650 OC kernel ver22: 1ec0e9c5c5ac7b012e3095f03f7dd234
Modded Recovery
Enough with the screenshots, I think people know what it's all about by now!
TWRP 2.3.1.0 Data2SD Edition
Modded by flumpster, thanks a million!
Attached is a version of the latest TWRP recovery, the only mod done is changing where
it mounts /data so it backs up the correct partitions!
Backup to External will backup to your first partition (fat32 maybe) and backup to internal will
backup to your ext4/2 partition.It is recommended to back up to external which is the fat partition.
If you backup to internal which is now the ext partition and something goes wrong with that partition
you wont have access to your backup.
Instructions:
You must remove the old twrp settings from your prime for this to work correctly. Delete any
TWRP folders that are in sdcard, data2/media and removable/sdcard. If you have backups there
already that you want to keep leave the backups folder in the TWRP directories and then just
delete the files that are in the root of the TWRP folder to get rid of the settings left behind.
If you are on a windows pc just extract the zip somewhere and run the bat file and then follow the
onscreen instructions. It will flash it for you. If not, navigatate to the fastboot folder, find the .blob
and flash the usual way with fastboot.
I have tested it myself but would love some feedback on this as I am currently the only one testing.
Disabling journaling!
This is a mod that flumpster tested and found to work fine. I have tested it to and it is fast as a shark. It is somewhat
controvertial though, someone thinks disabling journaling on the ext4 file system could cause crashes. Also if you are
plagued with random reboots it can cause data loss. I've been running it for a couple of days without issues and getting fantastic results.
Here is a description on how to do it if you want to try:
To Disable Journaling in EXT4
Go into TWRP and then open a command prompt on your computer where adb is.
Type adb shell and enter it then type the following commands one at a time.
umount /data
umount /sdcard
e2fsck -f /dev/block/mmcblk1p2
tune2fs -O ^has_journal -c 1 -i 1d -m 0 /dev/block/mmcblk1p2
e2fsck -f /dev/block/mmcblk1p2
Watch out for the fourth line, after tune2fs - that is a capital O not a zero. The one further along the line is a zero.
To check if it has worked type the follwing after them
tune2fs -l /dev/block/mmcblk1p2 | grep features
If you don't see has_journal in the output all is good.
And the size of the ext4 partition should be?
I was planning on taking a stab at porting this project to the TF700 this weekend. Thanks for your work! Going to test ASAP.
maxrdlf95 said:
And the size of the ext4 partition should be?
Click to expand...
Click to collapse
That is up to you really, the ext4 partition will be your new "internal storage" so if you if you need to store alot there like big games etc. you'll need more. If like me you have little use for internal storage you increase the size of first partition. I have 49gb fat 32 as my first partition and 11gb ext4 as my second.
I transfer movies etc. from a windows machine to the fat32 partition.
Good question though, I should have mentioned it in the OP.
Sent from my ASUS Transformer Pad TF700T using xda premium
The mysterious CheckROM that you've mentioned twice is just CleanROM, right?
Kisakuku said:
The mysterious CheckROM that you've mentioned twice is just CleanROM, right?
Click to expand...
Click to collapse
Yes, of course. Thank you for pointing that out, I've used CheckROM on another device so it got mixed up. OP updated.
fordwolden said:
Data2SD MOD: Moves /data partition to External SD
Click to expand...
Click to collapse
This looks very interesting!
fordwolden said:
Disabling journaling!
Click to expand...
Click to collapse
Actually the ROM does this during install. However on 2.0 it was causing issues with the latest TWRP so I temporarliy took it out.
It ended up being a twrp issue. IM going to put it back in for version 2.1 (with will be 10.4.4.18 based) and revert to the old version of twrp. The newer 2.3.x builds dont seem as reliable at this time.
But good write up!
Also worth to mention that this mod makes it a little bit harder to do nandroids. But in TWRP you have a option to backup sd-ext, that will actually be a backup of your data partition. So to restore data you just restore sd-ext. All other partitions will backup and restore normally.
Edit: No longer applicable, sd-ext backup no longer supported. Modded TWRP recovery in post #2
fordwolden said:
Also worth to mention that this mod makes it a little bit harder to do nandroids. But in TWRP you have a option to backup sd-ext, that will actually be a backup of your data partition. So to restore data you just restore sd-ext. All other partitions will backup and restore normally.
Click to expand...
Click to collapse
heh... i was just going to ask about that. thanks for the clarification.
fordwolden said:
Also worth to mention that this mod makes it a little bit harder to do nandroids. But in TWRP you have a option to backup sd-ext, that will actually be a backup of your data partition. So to restore data you just restore sd-ext. All other partitions will backup and restore normally.
Click to expand...
Click to collapse
People really use Nandroid? lol :angel:
scrosler said:
People really use Nandroid? lol :angel:
Click to expand...
Click to collapse
Some feel more comfortable doing it! I feel like it's "bringing a knife to a gunfight"! False safety.
Since the 12/10 update to .18 that I installed just yesterday my performance skyrocketed. I don't experience any lag anymore, no hickups, much faster loading etc. I suddenly don't feel like this tablet was a waste of money anymore
It's all stock and normal.
So if you don't have this update yet, try it out before trying anything like this.
Would there be any way of getting this working on a rooted stock FW?
I saved root before updating to JB so I'm going to stay unlocked for as long as I have warranty.
Moning2 said:
Since the 12/10 update to .18 that I installed just yesterday my performance skyrocketed. I don't experience any lag anymore, no hickups, much faster loading etc. I suddenly don't feel like this tablet was a waste of money anymore
It's all stock and normal.
So if you don't have this update yet, try it out before trying anything like this.
Click to expand...
Click to collapse
Gospel singers from the General section? Now that's a first for me! I'm glad you're happy with your tablets,
now try downloading CleanROM 2.1 while multi-tasking on your device, still happy? I bet you want to unlock
before the download is finished!
New version for CleanROM 2.1 coming up, sorry for the delay. Been getting some sleep and my Inet connection
is about as stable as Uranium!
New version has symlinked /data2 partition so your internal storage will now be found in /sdcardi. Just for ease
of use.
rikc said:
Would there be any way of getting this working on a rooted stock FW?
I saved root before updating to JB so I'm going to stay unlocked for as long as I have warranty.
Click to expand...
Click to collapse
You meant going to stay locked, right! No, sorry this is not possible for locked bootloaders.
fordwolden said:
You meant going to stay locked, right! No, sorry this is not possible for locked bootloaders.
Click to expand...
Click to collapse
Ok, thanks, that's clear!
I want this on stock rooted unlocked ROM
fordwolden said:
New version for CleanROM 2.1 coming up, sorry for the delay. Been getting some sleep and my Inet connection
is about as stable as Uranium!
.
Click to expand...
Click to collapse
Oh come on, Uranium has been around Earth for four and a half billion years and it's still here, can't be that unstable
Gesendet von meinem GT-N7000 mit Tapatalk 2

[SWAP] Swap on Internal * v0.5 alpha *

SWAP on internal
Extend your RAM with very quick internal SWAP
v0.5 alpha​
For the moment, the script is confirmed to work only on ROMs with the chinese x-part (or data2ext) by Atroy script only (read at the end of this post for alternative).
The only ROM I am aware of using this script out of the box is the excellent MIUI XJ x-part.
However, I intend to develop a non-loop based version shortly. It should will be compatible with most ROMs, so stay tuned.
What and Why
I decided to make a script that places the swap file on internal memory. Many people place it on SD card, but to me it seems somewhat pointless, as it hardly offers sufficient performance.
However, placing it on the internal memory makes it a much more interesting concept, because it has much better random read/write performance than even the fastest SD cards.
Warning: placing SWAP on internal memory will subject it to frequent read/write operations which in theory shortens lifespan of internal memory chip which you cannot replace. This is because flash memory has limited number of write/read cycles to it. So, consider yourself warned.
HOWEVER:
1 - although true, in reality I have been unable to find any case of this actually affecting anyone's phone. There is very limited amount of data documenting real-life effect of that process, but most likely your device will be long gone before the internal memory will show any signs of wear.
2 - the script recreates the swap file on each boot using different physical blocks of memory - this means not the same blocks are always used. More on this in 'Do it right' section.
Do It Right
1. 16-32 MB of swap should suffice. If you think you need more, you are probably wrong. NEVER use all available internal space. The larger the proportion difference between swap size and total free space on the internal data partition, the more breathing space your internal memory gets, as this allows the swap file to be moved around upon every reboot, which, in turn, will make it use the same blocks more rarely, and thus extending memory chip lifespan.
2. Get rid of bloat you don't use from the system partition, ie: ringtones, live wallpapers, useless system apps. Then create a custom
hboot with smaller system partition and larger data partition. You can do it using this (also attached to this post).
3. Play around with swappiness parameter. Still, the default set by the script should serve you well. But if you are paranoid, you can use it to further decrease how often system will write to swap.
Removal
Disable execution flag on the scipt in /system/etc/init.d and delete swap.img from internal data directory (on x-part scripts it is /mnt/asec/mtddata/ )
v0.5 alpha
* first public release
* loop device version only
Click to expand...
Click to collapse
x-part Impacted script (80% chance of rendering your ROM unbootable)
I attached a data2ext script which should offer better performance and battery life than some other a2sd scripts.
You are free to try and flash it on your ROM, but there is a good chance it won't boot any more - this is a very alpha version and I am not working on it at the moment.
Do not post complaints about it here. I only want to hear from you if it works!
So this allocates a part of your internal memory for random access? Nice.
I personally don't need more RAM, but this could be useful.
This sounds really good to my ears :good:
I will keep an eye on it.
Edit:
A small question:
So is it possible to use this for any rom if you are using data2ext for it?
Or atm only for miui xj?
Androidmarketuser said:
A small question:
So is it possible to use this for any rom if you are using data2ext for it?
Or atm only for miui xj?
Click to expand...
Click to collapse
You have to use Atroy's data2ext, which is virtually impossible to obtain because it was developed as part of chinese MIUI rom and never released as a separate script.
However, I have been working on it and I am attaching an alpha version of my adaptation of this script to the first post
Let me know if it works, but there is a good chance your ROM will not boot any more.
impactor said:
However, I have been working on it and I am attaching an alpha version of my adaptation of this script to the first post
Let me know if it works, but there is a good chance your ROM will not boot any more.
Click to expand...
Click to collapse
Thanks for your answer
I tried to install it on CM10 by vj but it didn't work. Here are my steps:
Wiped everything except sd
Installed rom, then data2ext script and finally the swap script.
I'm on a ext4 partition if it matters.
I think (not really sure) one script has created two folders: /data/ and /data-app/ on sdcard.
Or did I just install it the wrong way?
Edit: The problem was as you expected that it stucked at HTC bootlogo.
Androidmarketuser said:
Edit: The problem was as you expected that it stucked at HTC bootlogo.
Click to expand...
Click to collapse
If you want to try x-part script, then do not flash swap script until you confirm the x-part rom works.
Try with some GB rom. Maybe you'll have more luck.
impactor said:
If you want to try x-part script, then do not flash swap script until you confirm the x-part rom works.
Try with some GB rom. Maybe you'll have more luck.
Click to expand...
Click to collapse
I'll try it out that way on JB first (I am addicted to the new design, can't go back:crying, if it doesn't work I will try it out with 2.3 anyway.
---------- Post added at 08:45 PM ---------- Previous post was at 08:31 PM ----------
Ok on JB the data2ext script doesn't seem to work, I can't boot.
I will try it out later with a GB rom, propably EuroSkank
Hmm still doesn't work.
I tried MW7 on Redux2 but stucks at boot logo...
Custom hboot maker link from thalasmus blog is dead!
Can someone plz attach it here!
Sent from my HTC Desire using xda app-developers app
vasili_defy said:
Custom hboot maker link from thalasmus blog is dead!
Can someone plz attach it here!
Click to expand...
Click to collapse
Attached.
Don't have swap on internal! The number of read/writes will just kill your nand by creating loads of bad blocks.
Just my 2 cents
Kind Regards
Dave
topgeardave said:
Don't have swap on internal! The number of read/writes will just kill your nand by creating loads of bad blocks.
Just my 2 cents
Click to expand...
Click to collapse
And pray tell, apart from hearsay, what else do you have to support the claim that it will occur within foreseeable lifetime of the device?
I'd love to learn.
impactor said:
And pray tell, apart from hearsay, what else do you have to support the claim that it will occur within foreseeable lifetime of the device?
I'd love to learn.
Click to expand...
Click to collapse
After flashing ROMs on my Desire for nearly 2 years I'm starting to get bad blocks on my nand. Having a swap partition on internal would accelerate the process of getting more bad blocks. That's what I think anyway. Check your recovery.log for bad blocks next time you wipe your phone.
Kind Regards
Dave
Sent from my HTC Sensation using xda app-developers app
I tried this on Alex-V 1.8 and nothing happened
probably did something wrong
I'll try again later
topgeardave said:
After flashing ROMs on my Desire for nearly 2 years I'm starting to get bad blocks on my nand. Having a swap partition on internal would accelerate the process of getting more bad blocks. That's what I think anyway. Check your recovery.log for bad blocks next time you wipe your phone.
Kind Regards
Dave
Click to expand...
Click to collapse
Thanks for the heads-up. But I gave a clear warning about in the first post. After two years, my desire has 4 bad blocks, which amounts to less than 0.5mb of internal space (less than 0.1%). Everyone should make a concious decision about using internal swap.
It will degrade the memory chip, yes, but is the degradation significant enough to care? Everyone has to decide for himself.
impactor said:
Thanks for the heads-up. But I gave a clear warning about in the first post. After two years, my desire has 4 bad blocks, which amounts to less than 0.5mb of internal space (less than 0.1%). Everyone should make a concious decision about using internal swap.
It will degrade the memory chip, yes, but is the degradation significant enough to care? Everyone has to decide for himself.
Click to expand...
Click to collapse
how can I check if it's running on my rom...?
Balino said:
how can I check if it's running on my rom...?
Click to expand...
Click to collapse
Go into terminal and run "free"
impactor said:
Go into terminal and run "free"
Click to expand...
Click to collapse
It says swap 0... I think woh's roms doesn't support swap....

Categories

Resources