It has come to my attention that for some reason ICS Root isn't working on some stock / OTA A500 A501 ICS Builds, despite the kernel version being 2.6.39.4+ which implies some sort of incompatibilities with the exploit
With this in mind I have created a second rooting solution for those of you who have issues with blackthund3r ICS Root 7.1.1
Please try ICS Root first, then try this, then ask for help This is not the most elegant of solutions but it does work
0) Have your CPUID and/or SBK to hand, along with the A500 APX Flash Tool downloaded. If you have your CPUID but not your SBK, go generate it now with http://a500bootloaderflash.tk/sbkcalc/
1) Download the root zip from http://www.blackthund3r.co.uk/hostedfiles/CWM_ICSRoot and copy it to the device's internal storage over USB
2) Load the A500 APX Flash Tool and enter the bundle market. View the bundles for the default repo (a500bootloaderflash.tk)
3) Scroll to the bottom and find the bundle which has a patched bootloader (v8) with CWM Recovery 1.7.3 (Bundle #17)
4) Enter the number in the box and press the download button
5) Allow it to automatically stage the bundle for flash, enter your SBK and press OK
6) You don't have root yet so don't dump your BCT
7) Flash the bundle as normal. If entering APX Mode doesn't work automatically, use the manual method
8) Once done DO NOT BOOT NORMALLY. Power the device off then immediately boot into recovery mode! IF YOU BOOT FIRST YOU WILL NEED TO REFLASH CWM WITH FASTBOOT OR APX MODE
10) Once in CWM, head to "Install zip file from internal storage" and select the file you copied over in step #1 & install it
11) Now reboot your tablet. You should now be rooted with CWM, busybox and native filesystem remounting!
This is version 2 which has loads of fixes in it. It is actually a pretty clean root now and includes most of ICS Root 7.1.1's features so don't be scared!
Hm I did not know that we have an official ICS for A501 now?
Sent from my A501 using Tapatalk 2
macia10 said:
Hm I did not know that we have an official ICS for A501 now?
Sent from my A501 using Tapatalk 2
Click to expand...
Click to collapse
OTAs have been appearing
Sent from my A500 using Tapatalk 2
I tried this system and it works for the superuser privileges applications, but you can not have write privileges in the system folder.
I am doing something wrong??
Great job as always, however,
tresed said:
I tried this system and it works for the superuser privileges applications, but you can not have write privileges in the system folder.
I am doing something wrong??
Great job as always, however,
Click to expand...
Click to collapse
Hmm I'm sure I added that patch to it. I'll take a look. Can you send me the output of cat /system/xbin/mount and cat /system/bin/mount ?
Sent from my A500 using Tapatalk 2
blackthund3r said:
Hmm I'm sure I added that patch to it. I'll take a look. Can you send me the output of cat /system/xbin/mount and cat /system/bin/mount ?
Sent from my A500 using Tapatalk 2
Click to expand...
Click to collapse
sorry but are impractical, what should I do/send
tresed said:
sorry but are impractical, what should I do/send
Click to expand...
Click to collapse
Haha download terminal emulator from the android market, load it up and type:
Code:
su
cat /system/bin/mount
cat /system/xbin/mount
Then copy & paste the output
Thanks!
:laugh::laugh:
export PATH=/data/local/bin:$PATH
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # cat /system/bin/mount
#!/system/bin/sh
pb="/system/xbin"
app="busybox"
if $pb/$app test "$1$2$3$4$5" = "-oremount,rw/system" ;
then { $pb/$app mount -o remount, rw /system/ ;};
elif $pb/$app test "$1$2$3$4$5" = "-orw,remount/system" ;
then { $pb/$app mount -o remount, rw /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-oremount,rw/dev/block/mmcblk0p3/system" ;
then { $pb/$app mount -o remount,rw /dev/block/mmcblk0p3 /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-orw,remount/dev/block/mmcblk0p3/system" ;
then { $pb/$app mount -o remount,rw /dev/block/mmcblk0p3 /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-oremount,rw/dev/block/platform/sdhci-tegra.3/by-name/APP/system" ;
then { $pb/$app mount -o remount,rw /dev/block/platform/sdhci-tegra.3/by-name/APP /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-orw,remount/dev/block/platform/sdhci-tegra.3/by-name/APP/system" ;
then { $pb/$app mount -o remount,rw /dev/block/platform/sdhci-tegra.3/by-name/APP /system/ ;};
else { $pb/$app mount $* ;};
fi;
[email protected]:/ #
:laugh::laugh:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # cat /system/xbin/mount
#!/system/bin/sh
pb="/system/xbin"
app="busybox"
if $pb/$app test "$1$2$3$4$5" = "-oremount,rw/system" ;
then { $pb/$app mount -o remount, rw /system/ ;};
elif $pb/$app test "$1$2$3$4$5" = "-orw,remount/system" ;
then { $pb/$app mount -o remount, rw /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-oremount,rw/dev/block/mmcblk0p3/system" ;
then { $pb/$app mount -o remount,rw /dev/block/mmcblk0p3 /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-orw,remount/dev/block/mmcblk0p3/system" ;
then { $pb/$app mount -o remount,rw /dev/block/mmcblk0p3 /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-oremount,rw/dev/block/platform/sdhci-tegra.3/by-name/APP/system" ;
then { $pb/$app mount -o remount,rw /dev/block/platform/sdhci-tegra.3/by-name/APP /system/ ;};
elif $pb/$app test "$1$2$3$4$5$6" = "-orw,remount/dev/block/platform/sdhci-tegra.3/by-name/APP/system" ;
then { $pb/$app mount -o remount,rw /dev/block/platform/sdhci-tegra.3/by-name/APP /system/ ;};
else { $pb/$app mount $* ;};
fi;
Ok??
Not meaning to sound like an airhead, but how can I find my CPUID or how to detect the SBK? (don't have a mac, and I really don't want to boot off of a Linux CD) I have googled this, and I get nothing.
Nowonmai said:
Not meaning to sound like an airhead, but how can I find my CPUID or how to detect the SBK? (don't have a mac, and I really don't want to boot off of a Linux CD) I have googled this, and I get nothing.
Click to expand...
Click to collapse
Sure Mac doesn't get quite as much love as it should around here
Download the Android SDK for Mac and you'll find adb in platform-tools. cd to that directory in terminal and (assuming your tablet is rooted with busybox) run:
Code:
. /adb shell su -c "dmesg | grep androidboot.serialno"
Then you'll find printed on the screen a long string. Inside you'll see something like androidboot.serialno=0123456789123456 which is your CPUID
You can now head to http://a500bootloaderflash.tk/sbkcalc/ and generate your SBK
Sent from my A500 using Tapatalk 2
I said I don't have a Mac, and I don't want to boot off of Linux cd. Why would I download SDK for mac? My tablet ISN"T rooted, that's the problem. So even though I already have the SDK tools for Windows, and ran the command. This is what I got
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell su -c "dmesg
| grep androidboot.serialno"
/system/bin/sh: su: not found
Nowonmai said:
I said I don't have a Mac, and I don't want to boot off of Linux cd. Why would I download SDK for mac? My tablet ISN"T rooted, that's the problem. So even though I already have the SDK tools for Windows, and ran the command. This is what I got
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell su -c "dmesg
| grep androidboot.serialno"
/system/bin/sh: su: not found
Click to expand...
Click to collapse
su will only exist if you're already rooted and that command requires busybox too - oops stupid me!
Okay in that case your only option looks to be using APX Mode to get your CPUID on Linux. Acer haven't made it easy, eh?!
And oops I misread it as you having a mac ugh dumb me
Sent from my Iconia A500 using Tapatalk 2
Bump
Added edits so it is now clear that this works on new A500 builds too
Sent from my Iconia A500 using Tapatalk 2
Update!
New version - v2 - is up now!
Hopefully this will make this method more mainstream for those with issues with ICS Root
I've fully tested this one too. It's beautiful
Related
I found a guide to aply apps to sd on my milestone. I got it working, but the problem is, that apps installed in the data/app-private folder doesn't show as installed. I can see that they are placed in ext2 partion on my sd card along with the other apps, that normaly installes in data/app.Here is the guide i used
After creatting a ext2 partition on my SD card, i copied ext2. To sd card along with
mot_boot_mode script
#!/system/bin/sh
export PATH=/system/bin:$PATH
mot_boot_mode.bin
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
Then in recovery mode i entered
adb shell
su
cp /sdcard/ext2.ko /data/ext2.ko
insmod /data/ext2.ko
mkdir /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
cp /data/app/* /data/sdapp/
mkdir /sdcard/sicherung
cp /data/app/* /sdcard/sicherung
rm -r /data/app
umount /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
ls /data/sdapp
ln -s /data/sdapp /data/app
chmod 644 /data/sdapp/*
/data/busybox/chown -h 1000:1000 /data/app
/data/busybox/chown 1000:1000 /data/sdapp/*
/data/busybox/chown 1000:1000 /data/sdapp
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
mount -o remount,rw / /system
mv /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
cp /sdcard/mot_boot_mode_script /system/bin/mot_boot_mode
chmod 755 /system/bin/mot_boot_mode
Do i need to make a symbolic link in data/app-private also?
I would realy like to get this working, because i purchased a lot of apps on the marked. But i have only half of them installed. It used to work on my HTC hero. But it was allready enabled in a custom rom. And that is not possible to do on a Milestone
Thanks
Fixed it by changing app-private folder two
hey glaus...
this almost seems like a guide, hehe...
i'm trying to get apps2sd to work on my milestone as well...
i tried booting in recovery mode and entering the chain of commands you just set out....
but when i go into recovery mode, i see the reboot system option, apply sdcard:update.zip, wipe data/factory reset and wipe cache partition....
and under it, i have e: can't open /cache/recovery/command
any ideas on how to fix this or where can i enter those commands you set out?
i tried in adb shell, but i get a /data/busybox/chown is not found error when setting the permissions...
thanks!
do
crap me too and it deleted some apps 2 i really want this been trying for a week oh i have a telus milestone and get the same above error.busybox is installed and hard drive is partioned
ah crap market is gone 2 lol gotta do a nano restore......man i want this bad i even bricked my phone and brought it back to life this week arghhhh
yeah...i don't know where claus is from...but if he has a telus milestone, he's the only one i've seen been able to install apps2sd with a telus milestone
i've seen other countries, even some with the same bands as we have, but none have had the actual "telus" one....the funny thing is that i can get everything else to work..
i have titanium backup pro, emulator, root explorer and everything is at superuser access...
if claus can help, i will bear his children
edit: how the heck do you install/activate the mot_boot_mode script? I see reference to it in a few wikis on basically that's what will allow us to use apps2sd...but I have no clue how to implement it
got app2sd working on milestone using a diff method will post soon
ok i got app2sd working on my telus milestone here is how i did it if u tried this method here ur gunna have to unroot then root or use a nano backup of freshly rooted phone busybox need mot to be installed so use titanium for back up and proceed http://forum.xda-developers.com/showthread.php?t=692367
ClausG76 said:
I found a guide to aply apps to sd on my milestone. I got it working, but the problem is, that apps installed in the data/app-private folder doesn't show as installed. I can see that they are placed in ext2 partion on my sd card along with the other apps, that normaly installes in data/app.Here is the guide i used
After creatting a ext2 partition on my SD card, i copied ext2. To sd card along with
mot_boot_mode script
#!/system/bin/sh
export PATH=/system/bin:$PATH
mot_boot_mode.bin
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
Then in recovery mode i entered
adb shell
su
cp /sdcard/ext2.ko /data/ext2.ko
insmod /data/ext2.ko
mkdir /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
cp /data/app/* /data/sdapp/
mkdir /sdcard/sicherung
cp /data/app/* /sdcard/sicherung
rm -r /data/app
umount /data/sdapp
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
ls /data/sdapp
ln -s /data/sdapp /data/app
chmod 644 /data/sdapp/*
/data/busybox/chown -h 1000:1000 /data/app
/data/busybox/chown 1000:1000 /data/sdapp/*
/data/busybox/chown 1000:1000 /data/sdapp
insmod /data/ext2.ko
mount -t ext2 /dev/block/mmcblk0p2 /data/sdapp
mount -o remount,rw / /system
mv /system/bin/mot_boot_mode /system/bin/mot_boot_mode.bin
cp /sdcard/mot_boot_mode_script /system/bin/mot_boot_mode
chmod 755 /system/bin/mot_boot_mode
Do i need to make a symbolic link in data/app-private also?
I would realy like to get this working, because i purchased a lot of apps on the marked. But i have only half of them installed. It used to work on my HTC hero. But it was allready enabled in a custom rom. And that is not possible to do on a Milestone
Thanks
Click to expand...
Click to collapse
fixed http://forum.xda-developers.com/showthread.php?t=692367
ok i have root access with busybox and su installed yet in terminal editor and adbshell i cannot remount my system as rw does anyone know why
ok update i got around my issue by using root explorer to get rw access on the system but still want to know why i cant do this
Sprint tab
How are you remounting it?
I always have good success with:
Code:
adb shell
su
remount rw /system
that is the exact code i have used and it gives me a not found error
Hmm. Check to see if /system/xbin/remount exists. If not, use Root Explorer to place this script at that location:
Code:
#!/system/bin/sh
#simplify mount rw and mount ro
#scripting wrote by forcystos - SDX - sdx-developers.com
#updated for samsunge epic by joeykrim - SDX - sdx-developers.com
case $1 in
rw)
echo "Remounting /system (/dev/stl9) in read/write mode"
/system/bin/mount -o remount,rw /dev/stl9 /system;;
ro)
echo "Remounting /system (/dev/stl9) in read-only mode"
/system/bin/mount -o remount,ro /dev/stl9 /system;;
*)
echo "usage: remount rw -or- remount ro";;
esac
Remember to change mode to 744 before executing.
I have an Atrix on AT&T. Which means there's a bootloader encryption, and the carrier prevents non-market apk installations, which I have resolved since my phone is rooted and I have changed the boot animation already.
In order to do these things, I found Ghost Commander that would let me chmod my system directories...which is fine, but I feel kind of gimped that I can't do it on terminal.
Basically, what I want to be able to do is remount /system as rw using terminal.
This method doesn't work on both terminal and emulator on my phone. I have done:
Terminal:
Code:
sudo su
cd [sdk directory]
./adb devices
./adb shell
su
mount -o remount,rw -t ext3 /dev/block/mmcblk0p12 /system
and this is where I get stuck because I just get an Invalid argument error.
Here is some info about my sytem -
Usage: mount [-r] [-w] [-o options] [-t type] device directory
/dev/block/mmcblk0p12 /system ext3 ro,noatime,nodiratime, data=ordered 0 0
Been searching for the answers for a while now, and now I'm here. What am I doing wrong? Thanks
there
Code:
mount -o remount,rw /dev/mmcblk0p12 /system
back
Code:
mount -o remount,ro /dev/mmcblk0p12 /system
Hmm, well at least I didn't get any errors this time.
I didn't get a confirmation or that it did anything at all. Is that normal?
Run mount with no parameters and look for the line with that device name, should see rw in that line instead of ro.
Sent from my MB860 using XDA App
Thanks guys, but I resorted to busybox chmod command instead lol
I tried this and got no errors, and using cat /proc/mounts/ I see the path as rw. But when I try to copy I still get the read only file system error.
**Lol, I had the phone in usb storage mode and had to switch it to Windows Media Sync**
You can fix wifi channel 12-13 support by setting the wifi_country_code to EU.
You need a rooted device and sqlite3 to fix (attached).
Unpack the attached zip and run fix_wifichannel_EU.bat (Windows only)
or with linux:
Code:
adb shell
su
mount -o rw,remount /dev/block/mmcblk0p3 /system
exit
adb push bin\sqlite3 /system/bin
adb shell
su
chmod 6755 /system/bin/sqlite3
sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'EU');"
reboot
Ohhhh it's good to see you here in the Iconia section!
I used to be a user of your great Desire Kernels/roms.
Hope to see some work from you soon.
richardtrip said:
You can fix wifi channel 12-13 support by setting the wifi_country_code to EU.
You need a rooted device and sqlite3 to fix (attached).
Unpack the attached zip and run fix_wifichannel_EU.bat (Windows only)
or with linux:
Code:
adb shell mount -o rw,remount /dev/block/mmcblk0p3 /system
adb push bin\sqlite3 /system/bin
adb shell chmod 6755 /system/bin/sqlite3
adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name, value) VALUES ('wifi_country_code', 'EU');"
adb shell reboot
Click to expand...
Click to collapse
Thank you very much and great to see you here
OT: can you help us with the recovery issues ??
Thanks in advanced. I will try sometime in the near future.
Enviado desde mi GT-I9000B usando XDA Premium App
so you got this tablet, richard =P Wonder when we will be able to start playing with custom rom =)
Btw, I notice that a huge amount of RAM is consumed and the maximum amount of RAM freed I have ever got is 440MB. Do you know what happened to the rest?
lpachuong said:
so you got this tablet, richard =P Wonder when we will be able to start playing with custom rom =)
Btw, I notice that a huge amount of RAM is consumed and the maximum amount of RAM freed I have ever got is 440MB. Do you know what happened to the rest?
Click to expand...
Click to collapse
The rest of the ram is reserved for video on boot.
I thought so, but don't you think that is too much out of 1GB ram? I found the device is laggy if ram goes under 350MB. Hope modded kernel can help optimize ram.
sweet
Nicely done! It works. Yea it is good to see you here' meaning we have somebody who knows a thing or two about android development.
W
Fix worked!
For some strange reason adb remount command didn't worked and adb wasn't able to push sqlite3 file to /system/bin even after remounting /system rw from the device itself. I had to push it to sdcard and then move it to /system/bin.
By the way, channel 13 is working fine now.
Thx
Hi Richard,
It's good to see such a great dev interested in the A500 (I have a Desire). <vbg>
EDIT: I can confirm that this works!
I cannot remount /system, either via ADB nor via a shell (on the device itself). In both cases, I get...
Code:
mount -o rw,remount /dev/block/mmcblk0p3 /system
mount: Operation not permitted
[Edit: worked with a terminal, but forgot to SU first, and I was typing mmcblkop3, not mmcblk0p3 !!]
I tried to be clever (NB: I don't have a SD card installed):
Code:
adb shell mount -rw /dev/block/mmcblk0p3 /mnt/external_sd
Usage: mount [-r] [-w] [-o options] [-t type] device directory
That's the extent of my *nix skills...
Any ideas?
-Dave
zxdavb said:
Hi Richard,
It's good to see such a great dev interested in the A500 (I have a Desire).
I cannot remount /system, either via ADB nor via a shell (on the device itself). In both cases, I get...
Code:
mount: Operation not permitted
I tried to be clever (NB: I don't have a SD card installed):
Code:
adb shell mount -rw /dev/block/mmcblk0p3 /mnt/external_sd
Usage: mount [-r] [-w] [-o options] [-t type] device directory
That's the extent of my *nix skills...
Any ideas?
-Dave
Click to expand...
Click to collapse
Try su before the mount command.
Edited the procedure in the first post so try that (should work now).
Sent from my A500 using XDA Premium App
zxdavb said:
Hi Richard,
It's good to see such a great dev interested in the A500 (I have a Desire). <vbg>
I cannot remount /system, either via ADB nor via a shell (on the device itself). In both cases, I get...
Code:
adb shell mount -o rw,remount /dev/block/mmcblk0p3 /system
mount: Operation not permitted
I tried to be clever (NB: I don't have a SD card installed):
Code:
adb shell mount -rw /dev/block/mmcblk0p3 /mnt/external_sd
Usage: mount [-r] [-w] [-o options] [-t type] device directory
That's the extent of my *nix skills...
Any ideas?
-Dave
Click to expand...
Click to collapse
Just do
Code:
su
mount -o remount,rw /system
daveba said:
Just do
Code:
su
mount -o remount,rw /system
Click to expand...
Click to collapse
Thanks!
For the beginners (like me): I noticed that /system was set back to read-only on reboot...
Works brilliantly. Thanks.
thx - but I trust editing the build.prop in Root Explorer should also do the job for those who don't want to mess with adb and commands.
hi
can anyone tell me whats this fix for?
is it going to make wifi receiver even better?
thx..
he_stheone64 said:
thx - but I trust editing the build.prop in Root Explorer should also do the job for those who don't want to mess with adb and commands.
Click to expand...
Click to collapse
yes,
add this line
ro.wifi.country=EU
and reboot.
i have this message:
'Unable to detect a device over adb'
I've connected my nexus S via usb cable, i've tryed with the usb usb storage on an off, and i get the same message.
I'm using windows / x64.
Dexter_nlb said:
yes,
add this line
ro.wifi.country=EU
and reboot.
Click to expand...
Click to collapse
i've done that but i canot save the file i get the message that it's a read only file system.
how can i gain write access to that file??
Thanks the fix_wifichannel_EU.bat in the zip worked like a charm. Channel 13 now works on my Asus Eeepad Transformer purchased from the US as well.
I want a script that will rename a /system/app on boot in userinit (.d or.sh) in /data/local. This is my first script and was thrilled when I was able to get it to work in SManager. I copied the script to /data/local and renamed to userinit.d. Rebooted, checked the file, not renamed. More research, tried various ways, which also work in SManager, but not as a userinit script. I have included the three ways I have tried with attempt counts and used # on two of them. I didn't use these all at once but included them so you could see what I've tried including a delay o allow time for the "mount" to work. This doesn't work in SManager in boot mode. And returns that it cannot rename because it is ro.
Code:
#!/system/bin/sh
#
#Renames DSPManager.apk to DSPManager.apk.bak
#export PATH=${PATH};/system/bin;/system/xbin
FN=/system/app/DSPManager.apk
if (FN.exists())
then
# attempt one
#busybox mount -o remount,ro -t ext4 /dev/block/mmcblk0p5 /system
# attempt two
#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
# attempt three
busybox mount -o remount,rw /system
#thread.wait(3000)
mv $FN $FN.bak
busybox mount -o remount,ro /system
#thread.wait(3000)
#
#busybox mount -o remount,ro -t ext4 /dev/block/mmcblk0p5 /system
#
#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
fi
Maybe I'm trying more than the userinit is supposed to do. I want this to survive and do its thing after Nightly updates. I use Speaker boost for volume and don't want DSPmanager taking extra memory.
Two things, first make sure you are using a root file manager and have set the directory to rw. Second, if you want the file to execute in /data/local you must name it userinit.sh and set the permissions of the file for execute. Or you can create a folder named userinit.d in /data/local and put multiple script files in that folder. Each script file must have its permission set to execute. To understand this, look at the contents of /etc/init.d/90userint.
Sent from my BN NookHD+ using XDA Premium HD app
leapinlar said:
Two things, first make sure you are using a root file manager and have set the directory to rw. Second, if you want the file to execute in /data/local you must name it userinit.sh and set the permissions of the file for execute. Or you can create a folder named userinit.d in /data/local and put multiple script files in that folder. Each script file must have its permission set to execute. To understand this, look at the contents of /etc/init.d/90userint.
Sent from my BN NookHD+ using XDA Premium HD app
Click to expand...
Click to collapse
I have the file permissions set to rwxr-xr-x (755) as well as the folder userinit.d set to the same. I have been using either Speed software's Root explorer (prefered) or Jrummy's Root Browser. I have named the script in the userinit.d folder "90RnamDSP". Again I can run the script in the root browser as a script and it renames the file. After set the file name back to the .apk I reboot, check in the /system/app and the file is not renamed. I have given the specific script I am using in the userinit.d folder.
Code:
#!/system/bin/sh
#
#Renames DSPManager.apk to DSPManager.apk.bak
path=/system/bin:/system/xbin;
FN=/system/app/DSPManager.apk;
if [ -e $fn];
then
busybox mount -o remount,rw -t /dev/block/mmcblk0p5 /system;
sleep 5;
mv $FN $FN.bak;
busybox mount -o remount,ro -t /dev/block/mmcblk0p5 /system;
fi;
You have the mount commands wrong for a userinit script. It should be:
mount -o remount,rw /system
and
mount -o remount,ro /system
And you don't need the path statement. You don't need the busybox in front of mount either. And shouldn't $fn be capitalized in the if statement?
Sent from my BN NookHD+ using XDA Premium HD app
Yippee, Yahoo, it works
leapinlar said:
You have the mount commands wrong for a userinit script. It should be:
mount -o remount,rw /system
and
mount -o remount,ro /system
And you don't need the path statement. You don't need the busybox in front of mount either. And shouldn't $fn be capitalized in the if statement?
Sent from my BN NookHD+ using XDA Premium HD app
Click to expand...
Click to collapse
Thanks for your help and patience. Didn't need the sleep either. I will be posting this on my help post noted in my signature below. I will give you thanks there as well. Couple of final questions.
Can you recommend a how to script reference ie: init script for dummies?
Can you recommend a how to make an install zip and install script, (again for the untrained)?
I have included the final code to maybe help someone trying to do something similar.
Code:
#!/system/bin/sh
#
#Renames DSPManager.apk to DSPManager.apk.bak
FN=/system/app/DSPManager.apk;
if [ -e $FN ];
then
mount -o remount,rw /system;
mv $FN $FN.bak;
mount -o remount,ro /system;
fi;
pastordl said:
Thanks for your help and patience. Didn't need the sleep either. I will be posting this on my help post noted in my signature below. I will give you thanks there as well. Couple of final questions.
Can you recommend a how to script reference ie: init script for dummies?
Can you recommend a how to make an install zip and install script, (again for the untrained)?
I have included the final code to maybe help someone trying to do something similar.
Code:
#!/system/bin/sh
#
#Renames DSPManager.apk to DSPManager.apk.bak
FN=/system/app/DSPManager.apk;
if [ -e $FN ];
then
mount -o remount,rw /system;
mv $FN $FN.bak;
mount -o remount,ro /system;
fi;
Click to expand...
Click to collapse
I don't know of any how-to's for those topics. I learned by studying examples of how others did them.
Sent from my SCH-i705 using Tapatalk
leapinlar said:
I don't know of any how-to's for those topics. I learned by studying examples of how others did them.
Sent from my SCH-i705 using Tapatalk
Click to expand...
Click to collapse
Thank you again. This script and a second one that adds the folder and the script are available at this post.
http://forum.xda-developers.com/showpost.php?p=50795653&postcount=6
I was able to make and debug the installer in a couple of hours. I thanked you in the post also.
The post is part of the help/info/reference post that I asked your permission to list your help files on.