Related
Is there a way to zipalign apps after you have installed the ROM? I found one but it won't work because either A. its for g1 only or B. I'm doing it wrong. Either way, could someone lemme know if there is a way and or how? I did it with a rom I flashed last night and I had a lot more free RAM. Pretty sure it was because of zipalign since it had everything else set up the same as the rom i have now.
You can turn ZipAlign on and off using these commands a2sd zipalign / a2sd nozipalign
bugger561 said:
You can turn ZipAlign on and off using these commands a2sd zipalign / a2sd nozipalign
Click to expand...
Click to collapse
can you give more in depth directions?loll
hope this helps...
theboo7 said:
can you give more in depth directions?loll
Click to expand...
Click to collapse
from the command prompt in your tools dir,
adb shell
cd system
cd bin
a2sd align
for all your other a2sd command type a2sd help while in the bin dir and the dev included lots of tools and options. Hope this helps.
sunder74 said:
from the command prompt in your tools dir,
adb shell
cd system
cd bin
a2sd align
for all your other a2sd command type a2sd help while in the bin dir and the dev included lots of tools and options. Hope this helps.
Click to expand...
Click to collapse
"[*] Starting A2SD version 2.5
[X] Invalid parameter -align"
Edit: Nevermind, figured it out. Followed this guide http://forum.xda-developers.com/showthread.php?t=594615 except where he says "adb shell mount -o remount,rw /system" it wouldn't work. So i just tried "adb remount" and it worked. Most of my apps were already zipaligned except about 6.
Sheen160 said:
"[*] Starting A2SD version 2.5
[X] Invalid parameter -align"
Edit: Nevermind, figured it out. Followed this guide http://forum.xda-developers.com/showthread.php?t=594615 except where he says "adb shell mount -o remount,rw /system" it wouldn't work. So i just tried "adb remount" and it worked. Most of my apps were already zipaligned except about 6.
Click to expand...
Click to collapse
you may want to look into darktremors update you're running 2.5 and he's released 2.7 final update one now...much better imo.
here's the thread with the flashable zip.
http://forum.xda-developers.com/showthread.php?p=6664102
WARNING: I've added this to my script and for some reason it has an adverse effect on the "n" button and Lock Screen if used BEFORE you complete the SetupWizard !!!
WARNING: Again BE WARNED if you do this mod before you finish the setup wizard you will loose the functionality of your "n" button and Lock Screen !!!
I have a feeling poster before me copied and pasted this from somewhere because notice how in his first sentence he says "Phone.apk and TelephonyProvider.apk" but then his script says "Mms.apk"....what happened to Phone.apk because there is no Mms.apk in the system folder on any Nook I have. So below is the corrected script and also this entire process in done in dos instead of in adb;
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
There is no adverse effect from doing this & it's confirmed after while in NookTools there is no Cell Standy service running.
Download [REMOVAL]
Want to undo this process?
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.OLD /system/app/Phone.apk
adb shell mv /system/app/TelephonyProvider.OLD /system/app/TelephonyProvider.apk
adb reboot
Download [UNDO REMOVAL]
thanks, just got my NC yesterday, and already updated/rooted + done this hack
xmas_spirit said:
thanks, just got my NC yesterday, and already updated/rooted + done this hack
Click to expand...
Click to collapse
Run my script too from the other post?
xboxexpert said:
Run my script too from the other post?
Click to expand...
Click to collapse
No, I just manually entered commands in adb shell
xboxexpert said:
I have a feeling poster before me copied and pasted this from somewhere because notice how in his first sentence he says "Phone.apk and TelephonyProvider.apk" but then his script says "Mms.apk"....what happened to Phone.apk because there is no Mms.apk in the system folder
Click to expand...
Click to collapse
90% of the internet are sites posting info from other sites. Be glad he didn't slap on some ads.
I'm new here, but trying to learn.
Your code is:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
would it make sense to add:
adb shell mount -o remount,ro /dev/block/mmcblk0p5 /system
before the reboot? Or does that get done automatically upon reboot? I assume it is bad to leave it rw and not reset it to ro?
Thanks for this, I ran 'most' of your other script.
Auto-nooter, your script, adw launcher and it is coming along nicely. Still debating remapping the volume keys to back/menu...
DC_Rob said:
I'm new here, but trying to learn.
Your code is:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
would it make sense to add:
adb shell mount -o remount,ro /dev/block/mmcblk0p5 /system
before the reboot? Or does that get done automatically upon reboot? I assume it is bad to leave it rw and not reset it to ro?
Thanks for this, I ran 'most' of your other script.
Auto-nooter, your script, adw launcher and it is coming along nicely. Still debating remapping the volume keys to back/menu...
Click to expand...
Click to collapse
yes, the system partition goes back to RO after a reboot
Can this be done using terminal emulator
Sent from my PC36100 using XDA App
Ben74 said:
yes, the system partition goes back to RO after a reboot
Click to expand...
Click to collapse
Great, now I know. I write code for a living so, I try to be tidy....
Thanks
worked perfectly, thanks.......
midnightmaraude said:
Can this be done using terminal emulator
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Just use Root Explorer; rename those two files to anything else and reboot. Really, you could just remove them, renaming is just a precaution.
Thanks for this, makes the nook even better!
Mike
sent from my nookcolor using the xda app
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
wvcachi said:
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
Click to expand...
Click to collapse
I wondered that, but I also have no reason to run unused services so it can't hurt.
wvcachi said:
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
Click to expand...
Click to collapse
I've been playing angry birds for 30 minutes and only lost 4% battery life. Seems to be awesome.
ummmmmm where is the script
ADB commands are only in OP lol
Therefore you need adb
No such file or directory?
I keep getting an error message stating the following:
"failed on '/system/app/phone.apk' - No such file or directory"
If I navigate to that file using Astro File Manager I can see the files, so I can't figure out what I'm missing here.
Salt72 said:
I keep getting an error message stating the following:
"failed on '/system/app/phone.apk' - No such file or directory"
If I navigate to that file using Astro File Manager I can see the files, so I can't figure out what I'm missing here.
Click to expand...
Click to collapse
Try capitalizing the file names.
Not to beat a dead horse, but this can easily be done in Root Explorer. All you're doing is renaming two files.
Not to be a cheapskate, but is there a free version of Root Explorer or a similar app that will do the same?
No
try Astro or Linda, thats free but ads supported
Hello,
This is the my port of the Wildfire 2.1 Eclair Rom for the Mini.
I chose Eclair because the drivers will probably be easier to find like this, you can expect a 2.2 Sense rom to come once the 2.2 AOSP is done.
[Download v0.2a Here]
[Download v0.2b Update]
Flash them is this order.
The Work's
Apps2SD
ADB
Booting
Display
xRecovery
Touch
SD-Card
OpenGL
Ext4 for Apps2SD
OMX (proper video playback)
Sound
The Won't 's
Charging [It says it's charging but it's not!]
GSM/3G
WiFi
USB mounting
Bluetooth
LED Flash & Light
Camera
YouTube Video showing installation.
YouTube Video in high quality by maxaan
Developer Notes:
Developer Notes:
Any Dev interested for testing all my future releases for the mini?
I ask developers for help to try out finding how to get the drivers for the non-working hardware parts to work. Simply said, you need to copy drivers from the SE 2.1 build to this build and report if it worked and which files were used.
Changelog:
v0.2a is up! Prepared the system for future drivers, little faster, ext4 support for apps2sd. Also for the mini fixed xrecovery thanks to peetr_
v0.2 Alpha is up! Fixed a lot: SD, Touchscreen, xRecovery, OpenGL
v0.1 Technical Preview / Pre-Alpha released for developers.
dang you are using same device..
i did try same thing but with clean wildfire [didn't get very far tho] [becouse work on kitchen] ... will download this too and see...
Problems on boot.
Or better no boot at all.
I made a full wipe, flashed the .zip and then these commands:
PHP:
adb shell
cd /system/bin
/system/bin/chmod 755 busybox
./busybox --install -s /system/xbin
./busybox --install -s /system/bin
After that reboot and stuck on Sony Ericsson white letters.
tried the mount command too but still no luck
PS: Something weird though. Xrecovery still working on me!
DaRk_dOg said:
Problems on boot.
Or better no boot at all.
I made a full wipe, flashed the .zip and then these commands:
PHP:
adb shell
cd /system/bin
/system/bin/chmod 755 busybox
./busybox --install -s /system/xbin
./busybox --install -s /system/bin
After that reboot and stuck on Sony Ericsson white letters.
tried the mount command too but still no luck
PS: Something weird though. Xrecovery still working on me!
Click to expand...
Click to collapse
Thanks for the info! This means I have to rebuild the ramdisk to have it work on the x10 mini. Oh one thing I forgot to state is that this NEEDS an ext2 partition on the sdcard (apps2sd not removed yet) and that the first boot will take ages stuck on the bootscreen since it's copying all apps over.
Could you adb pull system/bin/chargemon, open the file in notepad and send the content to me? Of the installed rom, that is.
In the update.zip package there is both an chargemon and chargemon~ file left over from text editing it with Ubuntu. Problem is that I can't acces the file through Nautilus (Ubuntu's version of Windows Explorer)
Hi, i also tried your work and i have the the same state as DarkDog with xRecovery working.
Tried the "logcat" :
sh-3.2# /system/bin/chmod 755 /system/bin/busybox
/system/bin/chmod 755 /system/bin/busybox
Unable to chmod /system/bin/busybox: Read-only file system
sh-3.2# mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
sh-3.2# cd /system/bin
cd /system/bin
sh-3.2# /system/bin/chmod 755 busybox
/system/bin/chmod 755 busybox
sh-3.2# ./busybox --install -s /system/xbin
./busybox --install -s /system/xbin
sh-3.2# ./busybox --install -s /system/bin
./busybox --install -s /system/bin
sh-3.2# logcat
logcat
I/checkabortedflash( 1065): [110] Latest flash seems OK.
E/logwrapper( 1499): executing /system/xbin/busybox failed: Permission denied
I/logwrapper( 1493): /system/xbin/busybox terminated by exit(255)
Click to expand...
Click to collapse
Seems like something goes really wrong here....
Mby because the wrong ramdisk or something.
@peetr try to give the "mount" and "ls /system/xbin" commands, mby found something..
peetr_ said:
Hi, i also tried your work and i have the the same state as DarkDog with xRecovery working.
Tried the "logcat" :
Click to expand...
Click to collapse
Ah yes.. I'll update the commands, you need to
PHP:
adb shell
cd /system/xbin
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
/system/bin/chmod 755 busybox
cd /system/bin
/system/bin/chmod 755 busybox
./busybox --install -s /system/xbin
./busybox --install -s /system/bin
Can you see if that works?
Good job ! Up and running
Linpack - 2,3 MFLOPS
But looks nice.
peetr_ said:
Good job ! Up and running
Linpack - 2,3 MFLOPS
But looks nice.
Click to expand...
Click to collapse
Huh? You mean touchscreen works on the mini?!
Yes it works.
peetr_ said:
Yes it works.
Click to expand...
Click to collapse
That's odd, it doesn't on the Pro
u10a init.rc
Mikevhl
attached is the init.rc you requested, it is from u10a USA version. hope it helps. Thank you for for effort.
strykme said:
Mikevhl
attached is the init.rc you requested, it is from u10a USA version. hope it helps. Thank you for for effort.
Click to expand...
Click to collapse
Thanks, but I understand that it's booting now on the mini?
The commands that you have to run after installing are updated, would you mind giving it a try?
I think you can write in the first post, that its working on mini. And that we have to install busybox before leaving xrecovery.
But i must say again, it is too slow in this alpha version. Hope it can be faster in later versions.
peetr_ said:
I think you can write in the first post, that its working on mini. And that we have to install busybox before leaving xrecovery.
But i must say again, it is too slow in this alpha version. Hope it can be faster in later versions.
Click to expand...
Click to collapse
Try out the Alpha please, should be a tad faster since I've fixed openGL
Well i wait for some updates, then I'm gonna try it
Nice work tho, keep it up !
can you please remove the app2sd so i am able to test it because right now i have an ext3 on my sd card and i am missing my adapter!!! Or at least someone provide a method convert to ext2 mounted from the device e.g. from ubuntu?? Can i do it this way???
First thing, you have to change chargemon to event1 for mini
THIS TWEAK IS FOR 2.3.3 ONLY
REMOVAL OF THIS TWEAK
Reflash the Rom OR
Flash a new Rom OR
Remove /cache/dalvik-cache, /system/bin/dalvik2cache and the last line in /etc/install-recovery.sh
And here is why this Tweak wont work on Versions higher than 2.3.3:
AtomicKoala said:
The new firmware changes the partition layout halving the /cache partition from 200MB to 100MB. Unless your Davlik cache is smaller then 80MB you are bound to have problems with this sadly.
Click to expand...
Click to collapse
Did you ever wonder about why your 380Mb /data partion is almost completely filled but you don't have much Apps installed?
Here's how you can get about 80~100Mb more space for Apps. (Depends on which apps are Installed)
First, I am not responsible for any Damage or Brick or whatever which is caused by wrong use of this Guide. Because using root is involved there is always a very minor chance of breaking something but normally nothing should go wrong by exactly following this guide.
Warning: Because the Dalvik-cache gets cleared your mail account settings will get cleared
As already mentioned:You will need root and Insecure ADB
For root follow this guide: http://forum.xda-developers.com/showthread.php?t=1043630
And here is the Insecure ADB apk: http://android.modaco.com/topic/339298-insecure-adb-for-the-arc-updated-now-a-simple-to-use-apk/
Now the procedure:
Make sure your Play is attached to the Computer and Insecure Adb is installed.
Run "adb remount"
Download the attachment and push the extracted dalvik2cache to /system/bin/ by running "adb push /path/to/dalvik2cache /system/bin/"
Run adb shell
"chmod 755 /system/bin/dalvik2cache"
Now you need to run this script on every boot. This is done by adding it to /etc/install-recovery.sh Just run "echo ’/system/bin/dalvik2cache’ >> /etc/install-recovery.sh
"chmod 755 /etc/install-recovery.sh"
"reboot"
The Play should now reboot (it's okay if it reboots twice) and recreate the dalvik-cache which should take about 5 minutes.
You can check if it worked by doing "adb shell" and in the shell "df".
Regards,
Laberkopf
For flashing via recovery:
FrAsErTaG said:
Please Test flashing this via recovery.
CONFIRMED WORKING http://www.mediafire.com/?3yfj8t8ld5yjez9
It has been designed to work with my System Img
If you are on something else, make sure you have insecure ADB installed before flashing this
Click to expand...
Click to collapse
Now we have a custom recovery, can't one of you clever fellows get apps2sd+ working on the play? Its not that i have no space for apps, but that we wouldnt have to worry about the install location of widgets, LWPs and apps people wish to auto sync
Sent from my R800i using Tapatalk
AndroHero said:
Now we have a custom recovery, can't one of you clever fellows get apps2sd+ working on the play? Its not that i have no space for apps, but that we would have to worry about the install location of widgets, LWPs and apps people wish to auto sync
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
I think it would be better to repartition the nand because there is a / partition with 200mb space which is completely unused.
Laberkopf said:
I think it would be better to repartition the nand because there is a / partition with 200mb space which is completely unused.
Click to expand...
Click to collapse
I just ran your DC2Cache script, works perfect, my internal storage went from 115mb to 275mb Changing the MTD partiton tables is also another idea, especially if there is a 200mb unused / partition, /cache could also be slimmed down to like 50-60mb and the rest added to /data
df after dc2cache:
sh-3.2# df
Filesystem Size Used Free Blksize
/dev 199M 76K 199M 4096
/mnt/asec 199M 0K 199M 4096
/mnt/obb 199M 0K 199M 4096
/system 312M 212M 100M 4096
/data 380M 213M 166M 4096
/cache 225M 98M 126M 4096
/data/idd 10M 1M 8M 4096
/data/dalvik-cache 225M 98M 126M 4096
damn you, / partition :/
I'd really like to do this, my play is rooted but I have no idea how to do these commands (bold parts)?
Download the attachment and push the extracted dalvik2cache to /system/bin/ by running "adb push /path/to/dalvik2cache /system/bin/"
[*]Run adb shell
[*]"chmod 755 /system/bin/dalvik2cache"
[*]Now you need to run this script on every boot. This is done by adding it to /etc/install-recovery.sh Just run "echo ’/system/bin/dalvik2cache’ >> /etc/install-recovery.sh
[*]"chmod 755 /etc/install-recovery.sh"
Click to expand...
Click to collapse
Any help?
You need to write those commands in a terminal (cmd in Windows). Before you try this, I suggest you to familiarise yourself with said terminal so that you 1) don't mess up things and 2) can try this kind of tricks in the future.
All my sync accounts were gone after moving, that is probably stored somewhere in dalvik?
And i'm having some difficulties getting whatsapp to work, it says my message history is damaged and can't restore it, but thats not that big of a deal
New market also constantly fails now, but deleting it and installing again will fix it.
Further i went from 80MB free to 205 :O
Thats a big improvement
FK1983 said:
I'd really like to do this, my play is rooted but I have no idea how to do these commands (bold parts)?
Any help?
Click to expand...
Click to collapse
You first need the Android SDK
Install it.
Go to the program files/android/android-sdk/platform-tools/ folder
extract your dalvik2cache zip there
shift + right mouse button and then open command prompt here.
make sure you have insecure adb installed on your phone !!!
type in the terminal all followed by an enter:
adb remount
adb push dalvik2cache /system/bin/
adb shell
# chmod 755 /system/bin/dalvik2cache
# echo ’/system/bin/dalvik2cache’ >> /etc/install-recovery.sh
# chmod 755 /etc/install-recovery.sh
# reboot
Click to expand...
Click to collapse
The # is a sign that you are in the adb shell, you don't have to type it yourself.
Hope this is clear enough
Please Test flashing this via recovery.
CONFIRMED WORKING http://www.mediafire.com/?3yfj8t8ld5yjez9
It has been designed to work with my System Img
If you are on something else, make sure you have insecure ADB installed before flashing this
From 70 MB free to 245MB!!
****ING NICE !!!
usb debugging was off, thanks
ok i downloaded the abd insecure and every time i click it it just ask if i want to install i. I select yes the phone reboots?
what am i missing?
when i run adb remount from the cmd line inside the sdk folder i get device not found error.
Thanks any help
Click to expand...
Click to collapse
hackit said:
ok i downloaded the abd insecure and every time i click it it just ask if i want to install i. I select yes the phone reboots?
what am i missing?
when i run adb remount from the cmd line inside the sdk folder i get device not found error.
Thanks any help
Click to expand...
Click to collapse
Is usb debugging on the device enabled? You can enable it under Settings - Applications -Developement
hell yea just did this i once had 161 mb used now its 82 mb and 298 mb free!!! wow wow!!!
also now that it is moved is it possible to just delete the dalvik-cache from the /data folder???
thatsupnow said:
hell yea just did this i once had 161 mb used now its 82 mb and 298 mb free!!! wow wow!!!
also now that it is moved is it possible to just delete the dalvik-cache from the /data folder???
Click to expand...
Click to collapse
Nope dont do that! The dalvik-cache folder in /data is just a link to the real dalvik-cache folder on /cache and so it doesn't take up space.
Ah okay sounds good I'll just leave it alone then
Sent from my R800i using XDA App
Went from 40MB Free to 192MB!!
Very, very grateful.
Is there any negatives with doing this? I heard something about a problem with the market after? if so what problem and is it fixed?
Also, can it be reversed?
Thanks!
FK1983 said:
Is there any negatives with doing this? I heard something about a problem with the market after? if so what problem and is it fixed?
Also, can it be reversed?
Thanks!
Click to expand...
Click to collapse
The cache is used to download apps from the market, so say your DC gets so big you only have 10mb left free in /cache, you wouldnt be able to download a 11mb+ apk from the market
Sent from my R800i using Tapatalk
Given that we have CWM which allows us to wipe the dalvik-cache when necessary, that should not be a big concern.
im following this to the letter,
adb remount
adb push dalvik2cache /system/bin/
adb shell
# chmod 755 /system/bin/dalvik2cache
# echo ’/system/bin/dalvik2cache’ >> /etc/install-recovery.sh
I get cannot create /ect/install-recovery.sh: directory nonexistent
any advice ?
Okay, I got sick of typing
Code:
mount -o remount,rw /dev/block/mmcblk0p12 /system
or
Code:
busybox mount -o remount,rw /system
to mount the /system partition in RW mode so I created two very simple scripts that you can run through Script Manager to Mount RW and Mount RO.
I do quite a bit from ADB and I just found it more convenient to tap a shortcut on my home screen to mount the /system partition.
With the help of imchairmanm, I have fixed the scripts to be available globally, so all you have to do is type "mountrw" (without the quotation marks) to mount the /system partition in Read/Write mode, and type "mountro" (again, without the quotation marks) to mount the /system partition in Read Only mode.
So, now it can be run both ways!
Installation:
1. You must be rooted. (See my HowTo: Root your Motorola Droid X2 tutorial.)
2. You must have Busybox installed. If you are rooted, you have busybox installed. I've tested the scripts on BB 1.18.2, 1.19.2 and 1.19.3.
3. Download the mounts.zip file and extract it to a folder on your SDCard (internal or external, it doesn't matter). I use /mnt/sdcard/Scripts/Mounts/.
3. Download Script Manager from the market.
4. Open the Script Manager app and navigate to the folder you put the mount scripts in.
5. Tap the first mount script (mountro).
6. Tap the star and the Android superuser icon next to it. This configures the script as a favorite and to run the script as root.
7. Tap SAVE.
8. Repeat steps 5 through 7 for the second mount script (mountrw)
9. Now you can run each script from within Script Manager, or create shortcuts to them on your home screen.
To create the shortcuts, do the following:
1. Long press a blank area on your home screen and select Widget.
2. In the Choose Widget popup, scroll down to Script Manager Ads (if you have the free version) and tap it.
3. In the list, tap the mountro script. This will place the shortcut on your home screen.
4. Repeat steps 1-3 for the mountrw script.
Now, when you need to mount /system as RW all you need to do is tap the mountrw script, then when you are done, either reboot, or tap the mountro script.
The following is the code for each of the scripts:
mountro:
Code:
#!/system/bin/sh
# This mounts the /system file system as Read Only which is the default when
# Android is booted.
echo "Mounting /system in Read Only mode!"
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
echo "Done!"
mountrw:
Code:
#!/system/bin/sh
# This mounts the /system file system as Read Write in order to modify or add
# files to the /system file system.
echo "Mounting /system in Write mode!"
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
echo "Done!"
It's simple and no frills... The way I like it.
Alternative install:
I didn't realize it, but, I had already made a flashable zip. Just download mount_rw_ro-V1.1.zip and boot into the BSR and flash it from there.
If anyone has any suggestions, I'm open to them! Let me know!
Ciao!
Hm, I was curious since you said you couldn't get your scripts to run globally, so I tried them out by putting them in /system/xbin. After adjusting permissions and making sure owner and group were root, they ran fine and globally as-is. I wonder if the simpler version you started with would have worked or not?
imchairmanm said:
Hm, I was curious since you said you couldn't get your scripts to run globally, so I tried them out by putting them in /system/xbin. After adjusting permissions and making sure owner and group were root, they ran fine and globally as-is. I wonder if the simpler version you started with would have worked or not?
Click to expand...
Click to collapse
did you run them from /system/xbin? I put them in /system/xbin and then cd / to get back to root and tried to run them. They are not found.
Code:
# cd /system/xbin
cd /system/xbin
# pwd
pwd
/system/xbin
# ls -l mount*
ls -l mount*
lrwxrwxrwx root root 2011-12-05 13:08 mount -> /system/xbin/busybox
lrwxrwxrwx root root 2011-12-05 13:08 mountpoint -> /system/xbin/busybox
-rwxrwxrwx root root 316 2011-11-06 19:04 mountro
-rwxrwxrwx root root 328 2011-11-06 19:04 mountrw
# cd /
cd /
# pwd
pwd
/
# mountro
mountro
mountro: not found
# sh mountro
sh mountro
sh: Can't open mountro
#
That was the problem I was running into. I even tried sh mountro. The error "Can't open mountro" essentially means it can't find it.
If this is what you did, and you had different results, I would love to find out why. Thanks!
Ciao!
Yeah, that's what I meant by they are available globally. I can run them from anywhere in the filesystem. I'm not sure what the difference is. Mine have owner and group set to root and the applicable permissions set as well.
It runs through the script correctly, I get all of the echo messages, and if I cd to system afterwards, everything is rw or ro as it should be. I don't know what other information would be helpful for you, but I'll answer whatever other questions you might have. I don't quite understand why it'd ever have a problem with your scripts in the first place. It seems like a strange thing to happen.
Edit: I just ran through and ran the same commands as you did and they were all successful. It sounds like maybe something isn't right in your $PATH? That's the only thing I can think of. What does it say when you type "echo $PATH"? Either that or something with your terminal emulator or rom? Have you tried a different terminal? It shouldn't matter but you never know.
imchairmanm said:
Yeah, that's what I meant by they are available globally. I can run them from anywhere in the filesystem. I'm not sure what the difference is. Mine have owner and group set to root and the applicable permissions set as well.
It runs through the script correctly, I get all of the echo messages, and if I cd to system afterwards, everything is rw or ro as it should be. I don't know what other information would be helpful for you, but I'll answer whatever other questions you might have. I don't quite understand why it'd ever have a problem with your scripts in the first place. It seems like a strange thing to happen.
Edit: I just ran through and ran the same commands as you did and they were all successful. It sounds like maybe something isn't right in your $PATH? That's the only thing I can think of. What does it say when you type "echo $PATH"? Either that or something with your terminal emulator or rom? Have you tried a different terminal? It shouldn't matter but you never know.
Click to expand...
Click to collapse
I dunno what is going on. My path shows /system/xbin. Oh, I'm on Eclipse 1.3 (but that shouldn't matter)... Oh well.
Code:
# echo $PATH
echo $PATH
/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
It happens from the adb shell and from the terminal program on my DX2.
Hm. My $PATH is the same except it also includes /data/local/bin. That shouldn't matter. I'm on eclipse too and running the commands from the terminal in eclipse parts. I don't know why something in the path wouldn't execute. Does "which mountrw" find it? I had a problem earlier where I thought it wasn't finding a script I wrote, but it actually was failing at the first line because I had the wrong path to sh listed. If which finds your scripts I'd say it's more likely something with the script rather than the system. I'd also try writing a little hello world script and seeing if you can get that to execute globally too.
imchairmanm said:
Hm. My $PATH is the same except it also includes /data/local/bin. That shouldn't matter. I'm on eclipse too and running the commands from the terminal in eclipse parts. I don't know why something in the path wouldn't execute. Does "which mountrw" find it? I had a problem earlier where I thought it wasn't finding a script I wrote, but it actually was failing at the first line because I had the wrong path to sh listed. If which finds your scripts I'd say it's more likely something with the script rather than the system. I'd also try writing a little hello world script and seeing if you can get that to execute globally too.
Click to expand...
Click to collapse
Aw, CRAP! I've run into this problem when I develop on a Windows machine and try to run it on a linux box... ARGH! Thank GOD I use gvim. I was able to change the file format from DOS to UNIX, then save it and push it back out to /system/xbin. chmod'd it to 777 and ran mountrw/mountro and they work now... How can I be so friggin' dense... I know better than that...
Oh, to answer your question on the which command, yes, which finds them both.
What clued me in was you saying that the problem might be with the script. Thanks! It FINALLY works! I've updated the OP with the corrected files.
Also, does anyone want me to make this a flashable zip? Let me know.
Ciao!