Related
Thanks to eViL on the G2 section, we have trackpad wake, so you dont have to press the power button to wake the phone every time, just press your trackpad
YOU NEED ROOT!
Instructions:
Copy package to the ROOT of you sdcard and extract it: http://forum.xda-developers.com/attachment.php?attachmentid=434724&d=1288983166
Install Gscript Lite
Open Gscript via app drawer
Press Menu
Add Script
Load File
Select vision-tp-wake
Ensure "Needs SU?" is checked
Save
Run Script
**The phone will then do a "Hot Restart", let it boot again et voila!
JD
Love it! Works a treat.
I extracted the zip prior to installing it on my SD card as I wasn't sure how to extract the zip once it was on my device. Use Astro perhaps, but disk mode when connected to the PC is much easier (if you have access to a PC, I guess).
I was confused about "Install Gscript (inside /sdcard/gscript)" as I couldn't specify where it was installed, however GScript Lite installed from Market using it's defaults worked just fine.
Just to be clear, make sure you're rooted prior to running the script...
@JupiterDroid:
Thanks for the contrib
1.- May I suggest you to add "YOU NEED ROOT !!" and "download GScript Lite from the Market" to the tutorial,
if you don't wat to get overwhelmd by tons of "it doesn't work" and "what gscript" posts
2.- Should this be placed @ themes and apps forum ??
.
gtrab said:
@JupiterDroid:
Thanks for the contrib
1.- May I suggest you to add "YOU NEED ROOT !!" and "download GScript Lite from the Market" to the tutorial,
if you don't wat to get overwhelmd by tons of "it doesn't work" and "what gscript" posts
2.- Should this be placed @ themes and apps forum ??
.
Click to expand...
Click to collapse
1. DONE
2. only in the themes and apps forum because the dev forum is a ghost town;(
3. will start posting ij the dev forum from now;P
JupiterDroid said:
1. DONE
2. only in the themes and apps forum because the dev forum is a ghost town;(
3. will start posting ij the dev forum from now;P
Click to expand...
Click to collapse
general forum ?? apps ?? development ??
this is an app, so it should go @ themes & apps forum,
but it's also developer's matter,
don't ask me 'coz I dunno
you should ask the Supreme Commander of the Universe,
some say he (she?) has an almighty whip
.
gtrab said:
general forum ?? apps ?? development ??
this is an app, so it should go @ themes & apps forum,
but it's also developer's matter,
don't ask me 'coz I dunno
you should ask the Supreme Commander of the Universe,
some say he (she?) has an almighty whip
.
Click to expand...
Click to collapse
Yes, My whip is well know...mostly throughout the HD2 section and of course twitter.
I am starting to understand what you guys mean w/ the G2 section...all these links make it hard to decide where to put it and how to tag. I will go ahead and move to Apps section. Thanks guys
Works great, thanks!
Ughh... missing perm root...
This fix doesn't persist..
Sent from my HTC Vision using XDA App
Is this reversable??
So is it possible to disable this feature if I don't like it??
wrapper said:
This fix doesn't persist..
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Same here, I resorted to using widget locker which does the job until a fix is available.
maus010 said:
Is this reversable??
So is it possible to disable this feature if I don't like it??
Click to expand...
Click to collapse
You could always do a backup and restore if you don't like it or run into any problems.
Had this working before but it doesn't seem to be working after I have done Perm Room, S-Off and flashed Paul's custom rom.
Any help?
When I try to run the script it gives me the following info in Gscript.
stderr: cp: not found
stderr: Unable to chmod /system/usr/keylayout/curcial-oj.ko: No such file or directory
stderr: busybox: not found
Download titanium and tell it to install the latest busybox
Sent from my D-Z with EZDZ PURE ROM Upgrade
Have titanium backup installed and clicked the "problems?" Button to install busybox but still get the same error in gscript.
gtrab said:
Download titanium and tell it to install the latest busybox
Sent from my D-Z with EZDZ PURE ROM Upgrade
Click to expand...
Click to collapse
Sent from my HTC Vision using XDA App
mount -o remount,rw /dev/block/mmcblk0p25 /system
cp /sdcard/curcial-oj.kl /system/usr/keylayout/curcial-oj.kl
chmod 04775 /system/usr/keylayout/curcial-oj.kl
mount -o remount,ro /dev/block/mmcblk0p25 /system
Click to expand...
Click to collapse
script does this...
so removing it should be, shouldnt it:
mount -o remount,rw /dev/block/mmcblk0p25 /system
rm /system/usr/keylayout/curcial-oj.kl
mount -o remount,ro /dev/block/mmcblk0p25 /system
Click to expand...
Click to collapse
and the busybox killall... just guessing
installing it could be done by hand too if it wouldnt be so long to type
well, tried this method, really nicely working with vanilla Z rom here too. Thanks for the tip.
Well, it works... But when i reboot my phone i have to run the script again and then reboot for a second time....
Update: i have s-off now and now it works great no need to run the script and reboot anymore....
what would i need to write in code to get the trackpad to wake and also put the desire z back into sleep mode? i tried looking at the code, but got abit confused where to start from lol
Any idea how to get this working again for me guys?
Okay, many of you complain about USB MASS STORAGE not working with swap enabled. So heres a guide, using CWM (latest version) to set it up with working USB.
NEEDED:
MicroSD (i use class 4 sandisk 8gb)
Root+Busybox
CWM Recovery* (see post 2 for reasons of the *)
Terminal Emulator/ADB
Download this file http://dl.dropbox.com/u/1169731/swap_enabler.sh and place it IN THE ROOT OF YOUR SD!!!
Precautionary:BACKUP EVERYTHING ON MICRO SD CARD.
Steps:
Making the partition
Make sure you have everything backed up, as this WILL wipe your SD.
Boot into clockworkmod recovery.
Go to Advanced->Partition SD Card->EXT and Swap. I chose 128mb for EXT and 256 for SWAP.
Activating Through ADB
Make sure you downloaded that file earlier.
Type this into the CMD:
Code:
adb shell
chmod 755 /mnt/sdcard/swap_enabler.sh
sh /mnt/sdcard/swap_enabler.sh
And reboot
When your phone has rebooted, go back into ADB, and type:
Code:
adb shell
free
and if you didnt not get 0's next to SWAP, it worked.
Activating through Terminal Emulator
Load up Terminal Emulator
Type in this:
Code:
su
chmod 755 /mnt/sdcard/swap_enabler.sh
sh /mnt/sdcard/swap_enabler.sh
reboot. when your phones has booted back up, load terminal emulator once more, and type:
Code:
su
free
and if there isnt a bunch of 0's next to SWAP, it worked
And thats that!
Enjoy
TO DISABLE THROUGH ADB:
adb shell (skip if you're already in adb shell)
sh /mnt/sdcard/swap_enabler.sh disable
Click to expand...
Click to collapse
TO DISABLE THROUGH TERMINAL EMUALTOR
su
sh /mnt/sdcard/swap_enabler.sh disable
Click to expand...
Click to collapse
NEW QUICK EASY WAY (HIT AND MISS)
1) download script manager from the market
2) run swap_enabler.sh with script manager
3) reboot
SPECIAL THANKS TO: Nv for the script, and cimer for the original guide.
also, thanks to cjward for reminding me to put in the thanks ;D
* this guide is for CWM recovery, as the steps for 4EXT may be different. Also, when i tried to do it with 4EXT, it never activated the swap partition correctly.
Man, I've been trying to get this right. Think I messed up because I did not restart after running the script, so when I did the free command I got them zeros.
enserio said:
Man, I've been trying to get this right. Think I messed up because I did not restart after running the script, so when I did the free command I got them zeros.
Click to expand...
Click to collapse
what SD card you have? also, i have noticed it does not work on some roms, but most it does.
I used this method to set swap up to use with virtuous 3.5 and work great for me on my first try. It definately helps out.
Sent from my HTC Vision using xda premium
xT4Z1N4TRx said:
what SD card you have? also, i have noticed it does not work on some roms, but most it does.
Click to expand...
Click to collapse
The 8GB one that came standard with the G2 in the US, Dec 2010. If you need me to take it out and confirm what kind, I will, because this something I want to learn how to do. Also, I tried it with the ILWT Rom. I was trying to get to to work because I wanted to flash that Virtuous 3.5
PS - Anyone have a better method for backing up the SD card besides creating a folder on the desktop and dragging everything in there?
when i type su in terminal emulator I get
"[1] + Stopped (signal)"
I'm now getting a +2 error.
This is mildly frustrating because it seems so easy. I've learned several other processes to do to my phone, and THIS is the one that I get hung up on?
Latest debacle:
I wipe using G2+Superwipe. Make partitions of 128 and 256. Sdcard goes completely blank, so I have to mount it in recovery, and load up a nandroid. I figure, its still all good, go through with it. So I run the commands in Terminal Emulator and get the +2 error. damn damn damn
enserio said:
I'm now getting a +2 error.
This is mildly frustrating because it seems so easy. I've learned several other processes to do to my phone, and THIS is the one that I get hung up on?
Latest debacle:
I wipe using G2+Superwipe. Make partitions of 128 and 256. Sdcard goes completely blank, so I have to mount it in recovery, and load up a nandroid. I figure, its still all good, go through with it. So I run the commands in Terminal Emulator and get the +2 error. damn damn damn
Click to expand...
Click to collapse
Have you tried with ADB?
Sent from my Desire Z running @ 2GHZ
now on terminal emu i get: arith: syntax error: "65 on +2"
I'd try adb but i dont know much about adb
Hi everybody
I was asking myself, before doing it, do I really need it ?
I mean, I'm on Cyanogen Nightly and I've seen it's needed on virtuous (awesome) roms. But on CM, will it change something to activate swap ?
Thanks in advance
xT4Z1N4TRx said:
Have you tried with ADB?
Sent from my Desire Z running @ 2GHZ
Click to expand...
Click to collapse
well, new SDK is giving me problems setting up on my mac. Now you have to use SDK manager, which says to run 'android' file, and when I do it gives me an error just as its about to finish setting up.
Ugh, I want this to happen.
EDIT: got ADB fixed. gonna gee it a go this way.
KeitaroSenpai said:
Hi everybody
I was asking myself, before doing it, do I really need it ?
I mean, I'm on Cyanogen Nightly and I've seen it's needed on virtuous (awesome) roms. But on CM, will it change something to activate swap ?
Thanks in advance
Click to expand...
Click to collapse
This I would also like to know! Thx!
While I can't be 100%, I would say that it wouldn't help you much at all, on any CM based ROMs. Just the ones that are RAM intensive (i.e., sense roms). I know that I only want it to run the Virtuous 3.5 ROM.
Can anyone tell me is there a difference between doing it this way, or just using the app "swapper for root" from the app market..?
Thanks
Thought I would pop in. Doing it via terminal does not normally work you need to do it via ADB. If you're unfamiliar with ADB please go to here: http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/ and learn about it. It can be such a useful tool. You do not need swap for CM7,MIUI, or Sense 2.1. It can be needed for Sense 3.0 or Sense 3.5 because Sense is such a memory hog at those version levels.
fredcorp6 said:
Can anyone tell me is there a difference between doing it this way, or just using the app "swapper for root" from the app market..?
Thanks
Click to expand...
Click to collapse
Yes, using this way restricts it to one partition, whereas using swapper allows it to use the FAT partition. This means, with this only your swap part will get corrupted over time, whereas with swapper your FAT will, losing your data.
Sent from my Desire Z running @ 2GHZ
Ah ok I see.. cheers
Anyone able to overcome the +2 error? Using Umaro kernal on EliteMod CM7.
Code:
# sh /mnt/sdcard/swap_enabler.sh
sh /mnt/sdcard/swap_enabler.sh
* Some tests.
/mnt/sdcard/swap_enabler.sh: arith: syntax error: "65 on +2"
EDIT:
Probably something not being compatible either busybox or CM7 but I got it to work by doing the following after looking at the code in the swap_enabler.sh file.
Since it was "65 on + 2" I figured that the cut commands weren't being executed properly somewhere and that it should have been 65 + 2 = 67..... =)
in shell i typed swapon /dev/block/vold/179:67
and it worked. Of course I had to manually make an entry in init.d and test it =)....
Maybe this can help OP edit the code.
Nshih422 said:
Anyone able to overcome the +2 error? Using Umaro kernal on EliteMod CM7.
Code:
# sh /mnt/sdcard/swap_enabler.sh
sh /mnt/sdcard/swap_enabler.sh
* Some tests.
/mnt/sdcard/swap_enabler.sh: arith: syntax error: "65 on +2"
EDIT:
Probably something not being compatible either busybox or CM7 but I got it to work by doing the following after looking at the code in the swap_enabler.sh file.
Since it was "65 on + 2" I figured that the cut commands weren't being executed properly somewhere and that it should have been 65 + 2 = 67..... =)
in shell i typed swapon /dev/block/vold/179:67
and it worked. Of course I had to manually make an entry in init.d and test it =)....
Maybe this can help OP edit the code.
Click to expand...
Click to collapse
Why do you want to use swap on cm7. There are zero benefits. But there are disadvantages, it could affect battery life, performance and wear your sdcard out faster
Sent from my HTC Vision using Tapatalk
Does anybody know of a way to fsck the system or data partitions? I've run into a few times where I had data errors on /data, and the only way I could think of to fix them was to do a backup and restore. I was worried about losing data during the backup process, as the filesystem was already questionable.
I have e2fsck in my rom, but I can't run it from a normal shell as the filesystems are already mounted. Is there a way to make a rom automatically check and repair the filesystems on boot, and if so, how can I control the options it passes to fsck? Are there other ways to get to an unmounted system or data partition? Does clockworkmod have any kind of shell or fsck utilities built in? Are there other recovery programs that may have something like that?
You should be able to boot into CWM, unmount the partitions, connect with adb and run it from there. At least if your version of CWM has fsck in it.
Sent from my SPH-D700 using xda premium
You should be able to do it while booted into recovery through ADB.
Boot to recovery
connect usb cable to PC
run `adb shell`
Code:
unmount /data
unmount /system
fsck /dev/block/stl9
fsck /dev/block/stl10
syntax for above commands needs to be checked.
toadlife said:
You should be able to do it while booted into recovery through ADB.
Boot to recovery
connect usb cable to PC
run `adb shell`
Code:
unmount /data
unmount /system
fsck /dev/block/stl9
fsck /dev/block/stl10
syntax for above commands needs to be checked.
Click to expand...
Click to collapse
Just tried this out myself. Here's the correct syntax for the fsck command:
Code:
e2fsck -fv /dev/block/stl10
EDIT: Forgot to mention also that unmount should actually be umount. Or you could just use the CWR menus to unmount partitions.
zman0900 said:
Just tried this out myself. Here's the correct syntax for the fsck command:
Code:
e2fsck -fv /dev/block/stl10
Click to expand...
Click to collapse
How bout mtd?
sent from my always aosp epic
Please consider posting questions in Q&A next time. Thank you.
Sorry for the "newbie spam"! But that worked perfectly - I didn't realize that adb shell worked when booted from cwm. That's exactly what I was looking for.
zman0900 said:
Just tried this out myself. Here's the correct syntax for the fsck command:
Code:
e2fsck -fv /dev/block/stl10
EDIT: Forgot to mention also that unmount should actually be umount. Or you could just use the CWR menus to unmount partitions.
Click to expand...
Click to collapse
Thanks for this, this is why i love xda!
I have e2fsck in my /bin
On a samsung galaxy s2 i9100
How do i identify my /system & /data blocks
I cant remember how to find out!
So mine would be
e2fsck -fv /dev/block/????
Thanks
Colliebudz said:
Thanks for this, this is why i love xda!
I have e2fsck in my /bin
On a samsung galaxy s2 i9100
How do i identify my /system & /data blocks
I cant remember how to find out!
So mine would be
e2fsck -fv /dev/block/????
Thanks
Click to expand...
Click to collapse
If you run mount with no arguments, it will show a list of mounted partitions like "xxx on /system".
Colliebudz said:
Thanks for this, this is why i love xda!
I have e2fsck in my /bin
On a samsung galaxy s2 i9100
How do i identify my /system & /data blocks
I cant remember how to find out!
So mine would be
e2fsck -fv /dev/block/????
Thanks
Click to expand...
Click to collapse
Better to do /dev/block/platform/(your processor)/by-name/xxxx. Less chance of error
Colliebudz said:
Thanks for this, this is why i love xda!
I have e2fsck in my /bin
On a samsung galaxy s2 i9100
How do i identify my /system & /data blocks
I cant remember how to find out!
So mine would be
e2fsck -fv /dev/block/????
Thanks
Click to expand...
Click to collapse
the easiest was to find what /system and /data mount points actually are
cat /etc/fstab
to see a list of mount points.
toadlife said:
You should be able to do it while booted into recovery through ADB.
Boot to recovery
connect usb cable to PC
run `adb shell`
Code:
unmount /data
unmount /system
fsck /dev/block/stl9
fsck /dev/block/stl10
syntax for above commands needs to be checked.
Click to expand...
Click to collapse
How do I get the Moto X in Recovery mode to accept the adb command?
Because when I put in Recovery (Android Robot lying down) mode, the command adb and fastboot are not recognized.
rod.gui said:
How do I get the Moto X in Recovery mode to accept the adb command?
Because when I put in Recovery (Android Robot lying down) mode, the command adb and fastboot are not recognized.
Click to expand...
Click to collapse
Flash a custom recovery first. (CWM/TWRP)
Sent from Motorola Photon Q 4G LTE @ CM11
My phone is Huawei G525. It doesn't have CWM or any custom stuff, just rooted.
My problem is that it reports an imagic flagged inode and it recommends to fsck the partition (/system). The logs are saved in sdcard folder.
I can use adb and fastboot, but fastboot shell doesn't work and /system is mounted when i can use adb.
Is there any solution for me to run e2fsck on /system partition?
Or is there the case to worry about that error? The phone works fine...no random reboots, no crashes, no force closes.
Another thing...I've tried to make a romdump and system archive is damaged. Cannot be opened even with 7-zip.
mandgeo said:
My phone is Huawei G525. It doesn't have CWM or any custom stuff, just rooted.
My problem is that it reports an imagic flagged inode and it recommends to fsck the partition (/system). The logs are saved in sdcard folder.
I can use adb and fastboot, but fastboot shell doesn't work and /system is mounted when i can use adb.
Is there any solution for me to run e2fsck on /system partition?
Or is there the case to worry about that error? The phone works fine...no random reboots, no crashes, no force closes.
Another thing...I've tried to make a romdump and system archive is damaged. Cannot be opened even with 7-zip.
Click to expand...
Click to collapse
G525 DOES have CWM recovery available, find and install one so that you can fsck from recovery using adb.
Sent from Google Nexus 4 @ CM11
AndyYan said:
G525 DOES have CWM recovery available, find and install one so that you can fsck from recovery using adb.
Sent from Google Nexus 4 @ CM11
Click to expand...
Click to collapse
As far as I understand from here... http://bbs.dospy.com/thread-16432606-1-823-1.html , the bootloader needs to be unlocked. I've submitted for an update code and i'll wait. The chinese guy talks about U8950, but there are five different types. I've selected the first one, U8950-1. Maybe i'm lucky.
I've also tried to boot directly into the recovery found here... http://www.needrom.com/mobile/huawei-g525-u00/ , but that command is not allowed, maybe because the bootloader is locked. That was the only recovery i found that seems to be in english.
I'll try the same procedure to boot into recovery (fastboot boot recovery.img) because i don't want to mess things more that they are. I didn't found any tutorial in english and google translate is confusing.
Thanks!
LE. Does anybody know if Huawei rewrites the custom recovery if it's not the stock one.
mandgeo said:
As far as I understand from here... http://bbs.dospy.com/thread-16432606-1-823-1.html , the bootloader needs to be unlocked. I've submitted for an update code and i'll wait. The chinese guy talks about U8950, but there are five different types. I've selected the first one, U8950-1. Maybe i'm lucky.
I've also tried to boot directly into the recovery found here... http://www.needrom.com/mobile/huawei-g525-u00/ , but that command is not allowed, maybe because the bootloader is locked. That was the only recovery i found that seems to be in english.
I'll try the same procedure to boot into recovery (fastboot boot recovery.img) because i don't want to mess things more that they are. I didn't found any tutorial in english and google translate is confusing.
Thanks!
LE. Does anybody know if Huawei rewrites the custom recovery if it's not the stock one.
Click to expand...
Click to collapse
Well, you know this forum is dedicated for discussion about Samsung Epic 4G, not Huawei G525... But to help you out I might be able to dig in a bit more later this week when I have time. I'm a Chinese myself and can (hopefully) understand these procedures.
Sent from Google Nexus 4 @ CM11
AndyYan said:
Well, you know this forum is dedicated for discussion about Samsung Epic 4G, not Huawei G525... But to help you out I might be able to dig in a bit more later this week when I have time. I'm a Chinese myself and can (hopefully) understand these procedures.
Sent from Google Nexus 4 @ CM11
Click to expand...
Click to collapse
My phone is a Note 2 LTE N7105 - I realise not the same as this thread, but this is the only thread I have found that is discussing this. My /data partition needs an fsck, however, while I can adb to the phone when it is booted, I can't when it is in recovery.
I have TWRP 2.7.1.0 installed, and everything else works fine. When the phone is booted, I get the GT-N7105 driver appearing in portable devices in device manager, but when recovery is booted, I just get t0lte in "other devices".
Seems like the Samsung USB driver only works when the phone is properly booted, and doesn't match when booted to recovery.
Any ideas how to work around this?
paulkoan said:
My phone is a Note 2 LTE N7105 - I realise not the same as this thread, but this is the only thread I have found that is discussing this. My /data partition needs an fsck, however, while I can adb to the phone when it is booted, I can't when it is in recovery.
I have TWRP 2.7.1.0 installed, and everything else works fine. When the phone is booted, I get the GT-N7105 driver appearing in portable devices in device manager, but when recovery is booted, I just get t0lte in "other devices".
Seems like the Samsung USB driver only works when the phone is properly booted, and doesn't match when booted to recovery.
Any ideas how to work around this?
Click to expand...
Click to collapse
Yes, the workaround is to not use stupid Windows.
Works fine on linux.
run terminal app:
su
touch /forcefsck
Then reboot. It might depend on your ROM, but give it a go.
Best dear xda members,
i was wondering how to remove apps or make them stop working example '' googlemaps ''
aygul12345 said:
Best dear xda members,
i was wondering how to remove apps or make them stop working example '' googlemaps ''
Click to expand...
Click to collapse
Info please.
Are you:
Rooted?
If Yes:
Using a custom ROM?
S-OFF?
If No, you need to be at least rooted. Please let me know exactly what your set up is.
rootSU said:
Info please.
Are you:
Rooted?
If Yes:
Using a custom ROM?
S-OFF?
If No, you need to be at least rooted. Please let me know exactly what your set up is.
Click to expand...
Click to collapse
Thanks fo ya reply,
i'm on 2.3 officeel htc rom,
Yes S -off,
Yes rooted
no not a custom rom, i'm on 2.3 officeel htc rom,
aygul12345 said:
Thanks fo ya reply,
i'm on 2.3 officeel htc rom,
Yes S -off,
Yes rooted
no not a custom rom, i'm on 2.3 officeel htc rom,
Click to expand...
Click to collapse
OK, s-off is the biggest enabler. You can do 3 things. 2 cost, one is more involved....
1) Simply "Freeze" the applications with titanium backup. This stops them running and hides them from the app drawer
2) Using root explorer, navigate to /system/app (mount R/W) and delete the apks.
3) Use adb (I have a guide for this but if you own either of the above applications, its not worth it).
If you were not s-off and using a custom rom, another option would be to remove the apk's from the rom zip file and reflash it. Thats not an option here though.
Hope this helps.
rootSU said:
OK, s-off is the biggest enabler. You can do 3 things. 2 cost, one is more involved....
1) Simply "Freeze" the applications with titanium backup. This stops them running and hides them from the app drawer
2) Using root explorer, navigate to /system/app (mount R/W) and delete the apks.
3) Use adb (I have a guide for this but if you own either of the above applications, its not worth it).
If you were not s-off and using a custom rom, another option would be to remove the apk's from the rom zip file and reflash it. Thats not an option here though.
Hope this helps.
Click to expand...
Click to collapse
I think to '' freeze '' best sulution is and to delete i gues...
Use ADB? why is it not worth for this? explain, i wanna learn it!
aygul12345 said:
I think to '' freeze '' best sulution is and to delete i gues...
Use ADB? why is it not worth for this? explain, i wanna learn it!
Click to expand...
Click to collapse
Oh ok, yeah if you want to learn...
Well its just more complex and uses command line. I have a guide to do this in my signature if you're interested.
If you want to learn adb and fastboot, I have an FAQ for those too. Read both of those
rootSU said:
Oh ok, yeah if you want to learn...
Well its just more complex and uses command line. I have a guide to do this in my signature if you're interested.
If you want to learn adb and fastboot, I have an FAQ for those too. Read both of those
Click to expand...
Click to collapse
But first... if i get it right... there a 3 ways to do it right? Step 1-2 must to do.. but what means step 3 ? How it works? What is the different about 1,2
Sent from my HTC Desire using xda premium
Im sorry, I dont know what you mean?
There's more to English than just words. I can't for the life of me, understand the meaning of this thread title. OP post seems ok, so why not make the title meaningful?
rootSU said:
Im sorry, I dont know what you mean?
Click to expand...
Click to collapse
Hahaha, you said they are 3 ways to do this, step 1 and 2 are the steps you must to do,
but like i said.. step 3 .. what is the diffence than about step 1 and 2? ,
Sent from my HTC Desire using xda premium
aygul12345 said:
Hahaha, you said they are 3 ways to do this, step 1 and 2 are the steps you must to do,
but like i said.. step 3 .. what is the diffence than about step 1 and 2? ,
Sent from my HTC Desire using xda premium
Click to expand...
Click to collapse
Oh you mean Option 1, option 2 and option 3.
Option 1 and 2 use an application that you have to pay for. In fact these applications, all rooted users should own.
Option 3 uses adb so you have to connect to a PC to do it.
Actually, you could do it in terminal emulator if you are s-off, instead of adb, but adb is easier.
In adb, you can boot to recovery, connect to adb and simply
Code:
mount /system
where as in terminal emulator you would have to
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
But thats annoying to type on a soft keyboard.
Err.. I think there's two commands in that one line.
...which you need to mount system read / write whilst android is running. Unless you have a simpler line that works?
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
-t should be required only the first time you mount it.
Droidzone said:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
-t should be required only the first time you mount it.
Click to expand...
Click to collapse
Seems to work. Whatys teh Yaffs2 actually doing then and why is it almost every solution on the internet?
yaffs2 needs to be specified the first time you're mounting something, or mounting after umounting, where you need the -t to specify file system type.
mount -t yaffs2 /dev/block/mtdblock3 /system
While specifying a re mount, system is already aware of the type.
Ah thank you.
rootSU said:
Oh you mean Option 1, option 2 and option 3.
Option 1 and 2 use an application that you have to pay for. In fact these applications, all rooted users should own.
Option 3 uses adb so you have to connect to a PC to do it.
Actually, you could do it in terminal emulator if you are s-off, instead of adb, but adb is easier.
In adb, you can boot to recovery, connect to adb and simply
Code:
mount /system
where as in terminal emulator you would have to
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
But thats annoying to type on a soft keyboard.
Click to expand...
Click to collapse
Soo.. step 1 and 2 are apps that cost, but yea indeed you must to pay it.
Soo option 3 is the easyist way? And can you learn me more about that coding/ commands, soo what do i have to download it?
Sent from my HTC Desire using xda premium
Have a read of the faq I wrote, then the guide. They both tell you what to download and do
Sent from my HTC Desire using Tapatalk
rootSU said:
Have a read of the faq I wrote, then the guide. They both tell you what to download and do
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Can you post the link please. i see differents lot a links of you.. give me the correct one.
After some experimentation, I finally figured out how to mount a swapfile from init.d
But first! A disclaimer!
STANDARD DISCLAIMER: I am TOTALLY not reponsible if you brick your own phone. This procedure is provided 'as-is', with no guarantee of non-damage, or functionality.
I *do* use this script, and it's working as I expected, but YMMV.
Now, on with the Tip...
SAFETY PRECAUTION
Install (flash) the TWRP recovery first. If all goes well, you can flash your favorite recovery back.
PREREQUISITE
You need:
A rooted phone (of course!)
.
A kernel that supports swapfiles
.
A busybox that provides the following applets: nohup, basename, dirname, renice
The latest busybox by @stericson happens to provide all needed applets.
.
A working init.d infrastructure
PROCEDURE
Make sure that the directory /data/scripts exists (create one if it doesn't)
Create a swapfile by running the following commands from within Terminal (change "64" to the size (in MiB) of the swapfile you want):
Code:
su
TARG=/sdcard/.swapfile
dd if=/dev/zero of=$TARG bs=$((1024*1024)) count=64
mkswap $TARG
echo "SWAPFILE=$TARG" > /data/scripts/wait-mount-swap.conf
Download the attached script, rename it to "wait-mount-swap.sh"
Copy the script to the /data/scripts folder
Run the following commands from within Terminal:
Code:
su
WMS=/data/scripts/wait-mount-swap.sh
FIL=/system/etc/init.d/99swap
chmod 0777 $WMS
mount -o remount,rw /system
echo "#!/bin/bash
nohup $WMS &
" > $FIL
chmod 0755 $FIL
WARNING: Unless you know exactly what you're doing, you must follow the above code *exactly*!! DO NOT add spaces to 'make it easier to read'; DO NOT forget to enter the whole line (including that ampersand '&' symbol).
Reboot
Wait up to 1.5 minutes
Check the /data/scripts/wait-mount-swap.log; the last line should declare "..successful!"
Check using the 'free' command from Terminal
Got Stuck in BootLoop?
Power off your phone, then boot into TWRP recovery.
Tap "Mount".
Check (X) "Mount System"
Tap "Home icon"
Tap "Advanced"
Tap "File Manager"
Go to /system/etc/init.d
Tap on "99swap"
Tap "Rename File"
Append ".disabled" (that's dot-disabled), and tap Enter
Swipe to confirm
Tap "Home icon"
Tap "Reboot"
Tap "System"
--- Sent from Opera on Lenovo T420 ---
Technical Explanation
The gist of the method are two parts: The script and the nohup line. We'll begin with the latter.
If you analyze the 99swap file in /system/etc/init.d, you can see that it has only one all-important line:
Code:
nohup /path/to/script.sh &
The ampersand "&" at the end of the line means: Run this line as a background (separate) process.
The 'secret sauce' is the "nohup" command: It makes the background process stay alive even when the invoking process (i.e., the init.d script) terminates.
So, at the end of the 99swap initscript, the initscript terminates, but wait-mount-swap.sh is still running in memory.
Now, for reasons unknown, the SD Card is not mounted during init.d processing. So, the wait-mount-swap.sh script must wait until the SD Card is available before it can activate the swapfile located in the SD Card.
If you analyze the wait-mount-swap.sh script, you can see that after being invoked, the script will sleep for 30 seconds before attempting to activate the swapfile. If after the 'initial sleep' the script doesn't find the swapfile, it sleeps again for 10 seconds, and repeat the process. If after 5 attempts the swapfile still hasn't appear, it gives up and exits gracefully.
-- Sent from Opera on Lenovo T420 --
Wow! You finally did it man.
Congrats! Will try this asap. Thank you.
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
Technical Explanation
The gist of the method are two parts: The script and the nohup line. We'll begin with the latter.
If you analyze the 99swap file in /system/etc/init.d, you can see that it has only one all-important line:
Code:
nohup /path/to/script.sh &
The ampersand "&" at the end of the line means: Run this line as a background (separate) process.
The 'secret sauce' is the "nohup" command: It makes the background process stay alive even when the invoking process (i.e., the init.d script) terminates.
So, at the end of the 99swap initscript, the initscript terminates, but wait-mount-swap.sh is still running in memory.
Now, for reasons unknown, the SD Card is not mounted during init.d processing. So, the wait-mount-swap.sh script must wait until the SD Card is available before it can activate the swapfile located in the SD Card.
If you analyze the wait-mount-swap.sh script, you can see that after being invoked, the script will sleep for 30 seconds before attempting to activate the swapfile. If after the 'initial sleep' the script doesn't find the swapfile, it sleeps again for 10 seconds, and repeat the process. If after 5 attempts the swapfile still hasn't appear, it gives up and exits gracefully.
-- Sent from Opera on Lenovo T420 --
Click to expand...
Click to collapse
very clever, i remember my good dos/windows days, how i wish i could do the same with linux/android
just looking and understanding your script, i feel i feel like i've gained additional 50% knowledge in linux scripting :good:
Edit: Man i have a joke for you, i mean it's not really a joke but sort of. If you decide to venture into rom development, i want to be the first person to try and test it.
Tq for tips
try your method..
Sent from my GT-I8150 using xda premium
I've figured out a way to make installation *much* easier... stay tuned for R2
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
I've figured out a way to make installation *much* easier... stay tuned for R2
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
looking forward
Hello, I tried this but when I do 'chmod +x $WMS', then shel tell me 'Bad mode'. What's wrong?
Sent from my GT-I8150 with CM 10.1 by Arco using xda premium
honzin2009 said:
Hello, I tried this but when I do 'chmod +x $WMS', then shel tell me 'Bad mode'. What's wrong?
Sent from my GT-I8150 with CM 10.1 by Arco using xda premium
Click to expand...
Click to collapse
Oops, I made a mistake there. I replaced 0777 with +x post-facto.
Try entering 'chmod 0777 $WMS' instead.
The OP has now been fixed, thanks for the report
Sent from my GT-I8150 using xda app-developers app
pepoluan said:
Oops, I made a mistake there. I replaced 0777 with +x post-facto.
Try entering 'chmod 0777 $WMS' instead.
The OP has now been fixed, thanks for the report
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Thank you, script now working well but the swap file is still not mounted after boot .
I will solve it by manual mounting of swap file after each boot, as I do now.
Sent from my GT-I8150 with CM 10.1a2 by Arco using xda premium
honzin2009 said:
Thank you, script now working well but the swap file is still not mounted after boot .
I will solve it by manual mounting of swap file after each boot, as I do now.
Sent from my GT-I8150 with CM 10.1a2 by Arco using xda premium
Click to expand...
Click to collapse
Hmmm, strange.
It does take up to 30 seconds after boot for swap to be activated.
However, I will not pursue this issue anymore with the current version; I'll be releasing version 2 sometime later this week
Sent from my GT-I8150 using xda app-developers app
boot
pepoluan said:
Hmmm, strange.
It does take up to 30 seconds after boot for swap to be activated.
However, I will not pursue this issue anymore with the current version; I'll be releasing version 2 sometime later this week
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
:good:
pepoluan said:
Hmmm, strange.
It does take up to 30 seconds after boot for swap to be activated.
However, I will not pursue this issue anymore with the current version; I'll be releasing version 2 sometime later this week
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
so is the simpler version 2 out yet? cuz the current one seems slightly overwhelming for me haha!
mount -o remount,rw /system
Click to expand...
Click to collapse
on terminal emulator, this will not run becoz of the comma after remount.
it works if it busybox b4 mount like this:
busybox mount -o remount,rw /system
Click to expand...
Click to collapse
or replace the comma with a space, like this:
mount -o remount rw /system
Click to expand...
Click to collapse
Great mounting with delay
Hi everybody
too late to post in this forum?
I see last reply is of 2013
The man who invented this delayed engine did a great thing :good::good::good::good::good:
The Background is a GT-P5200 stock ROM - android 4.4.2. In less words: Samsung Galaxy Tab 3.
I tried different methods, apps and scripts, but without lucky. I tried with Rhoesoft RAMExpander Test, that told me: your device is compatible...
Not sure 100%, I tried some free apps, with the target to see confirmed that swapfile works, before spending money and discovering that the swap don't autostart at boot. The apps I tried, they created the swapfile, but at boot it was never loaded... Furthermore I don't like having one more app continuously in execution, only to drive the swapfile. So with many doubts, I tried some scripts... But one of them tolds me that my (stock) kernel hasn't swap support :crying:
I'm little stubborn, because I began my swapfile adventure, inputting commands on terminal emulator, forced to learn what does every command. And learning I had feeling that swapfile works, with the only exception of being constrained to swapon manually from the emulator.
So (stubborn) I tried other scripts, to perform this autoload on boot... but never working! I read so many things in many forums, looking for a solution, but for an inexperienced ... things too heavy to digest.
The turning point is thanks to you, @pepoluan
You must know that after every boot, if I open the terminal rapidly, the cursor becomes active after a few minutes.... about 3-4 minutes.
So maybe... if my device is slow to boot, when the SD card will be available?
The conclusion: I took the pepoluan script, and modified the swapfile lines, and initial delay: where there was 30 I put 250
it is better to wait 5 minutes, as long as they are quiet