Init.d on embryo 7 - AT&T Samsung Galaxy S II Skyrocket SGH-I727

Can someone tell me what's wrong with this init script?
su
busybox mount -o rw,remount /
chmod 772 /storage
ln -s /storage/extSdCard /storage/sdcard1
chmod 550 /storage
busybox mount -o r,remount /
This works perfectly when executed from a terminal but when I put it in init.d, the sym link is not created.
I am just pasting this code in one of mohans init.d scripts and then turning it on from ROM customizer, so I know the permissions are right.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app

Assuming your write permissions are set does your destination spelled or typed out right? Does it exist? I know it sounds pretty simple but checking won't hurt
Sent from my SAMSUNG-SGH-I727 using xda app-developers app

Commodore 64 said:
Assuming your write permissions are set does your destination spelled or typed out right? Does it exist? I know it sounds pretty simple but checking won't hurt
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
That's not his problem, he's missing a line.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 4 Beta

Related

Touchwiz music player

Hi...does any one knows how to make touchwiz music player on rooted x10
Sent from my X10i using XDA App
I have the apk but it doesn't work...
Sent from my X10i using XDA App
maybe it needs so kind of lib files
So this is dead? Can i have the apk or something?
Sent from my X10i using XDA App
Here is from the leaked Vibrants 2.2 build never tested it.
Edit:
Doesn't work at least not on my end most likely needs a lot of modding to get it working.
urs74 said:
Here is from the leaked Vibrants 2.2 build never tested it.
Edit:
Doesn't work at least not on my end most likely needs a lot of modding to get it working.
Click to expand...
Click to collapse
Awwww...
When u tried it, u pushed with adb? Or copy paste with root explorer?
Sent from my X10i using XDA App
dk2000zx said:
Awwww...
When u tried it, u pushed with adb? Or copy paste with root explorer?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Copy and paste I'll try pushing it.
Edit:
came up failed install for me used these commands not sure if I did them right though.
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push MusicPlayer.apk /system/app
urs74 said:
Copy and paste I'll try pushing it.
Edit:
came up failed install for me used these commands not sure if I did them right though.
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push MusicPlayer.apk /system/app
Click to expand...
Click to collapse
LOL i know nothing about adb so cant help ya, all i do is copy paste then change permission,then reboot
Sent from my X10i using XDA App
dk2000zx said:
LOL i know nothing about adb so cant help ya, all i do is copy paste then change permission,then reboot
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Doesn't look promising since searching on the forums here comes up empty handed on any other phones getting a port of it. Closest music player I've found to it is power amp.

Battery manager fix!

This is not my doing or work, I just found it and am sharing it so please don't blame me for stealing or using anyone elses work
This is the script I found in squidlys rom and it is saved in system/xbin, if I can figure out how to post a file on here through the xda app on my phone I can give you guys the files used to run the fix. You can run the command in terminal emulator but im guessing first you may want to create a folder on the sd card named stock and then move the file battery manager to it and then run the script and restart the phone, that's what I did and it worked.
#!/system/bin/sh
if busybox [ -e /sdcard/stock/BatteryReport.apk ];
then
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
busybox cp /sdcard/stock/BatteryReport.apk /system/app
sync
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
echo 'battery manager fix'
else
echo 'battery manager not fixed'
echo '1) Place battery report App On The SDCard'
echo '2) Turn Off USB Storage'
echo '3) Rerun Script To Try Again'
fi
Sent from my DROID2 using XDA App
Well I can't figure out how to attach a file through the xda app on my phone and I loaded the actual page on my phone and it wont pull up my phones sd card directory so if you want the file I can post them when I get off work but the txt that I posted above is the actual file, I opened it within txt editor and copied it so if you can save it as the same kind of file that is in system/xbin (I don't know the extentions or what kind of files they are) then you could probably do it without my help, the original file name is battmanfix. Thanks for reading
hmm, just looking at the script i'd say it shouldn't work
not sure what squidlys changed in his rom (if it is for droid 2) but the default d2 mount point for /system is /dev/block/mmcblk1p21 and also file system is ext3...
did you test it?
Well I already had the folder on my sd card from the squidly rom and pretty much coppied the file to my xbin in the system folder and ran the command through the terminal emulator and it seemd to work afterwards...there were no errors in the terminal or anything and when I typed in battmanfix it responded with the whole name battery manager fix and I checked my battery manager and it worked... that's exactly what it did with squidlys so idk...
Sent from my DROID2 using XDA App
ok... so here's something funny... Looking at the script, basically all this is doing is replacing (and reactivating) the batteryreport.apk. So... me thinks to myself - "self; what happens if I just try to click on the apk as if I was gonna install it?" obviosly it didn't install, but after doing that, my battery stats were back. Something is obviously happening to where the batteryreport.apk stops syncing with the system, and anything that "reactivates" it allows it to display again...
Just my observations, yours may vary
Well like I said at the begining I just thought it was interesting and I figured id share what I found..and I don't know a whole lot about linux and codes and scripts so thanks for the info and also I didn't write it, just found it..
Sent from my DROID2 using XDA App

[Q] Mount-o: permission denied

I just unlocked and rooted my nexus s. Now im trying to stop the phone from reinstalling the custom recovery image and all im getting is problems.
I put in the command
mount-o rw,remount/dev/block/mtdblock3 /system
And every single time i get
mount-o : permission denied
Anyone have any ideas? im worried about rebooting my phone now cause i don't want to go through the whole process again. After reading around on XDA it doesn't seem like you are required to do this. Does anyone know if it will reinstall the custom recovery image if i don't do this step? I have searched everywhere to figure out the problem. But stilll im coming up with nothing. I have found people with other devices that have this problem. But nothing about fixing it.
If anyone has any ideas i really need help ASAP
try and grant yourself superuser & then try.
"su"
"mount -o rw,remount /dev/block/mtdblock3 /system"
You need a space after mount. -o specifies the mount options. The command is mount
Sent from my Nexus S using XDA App
aye, didn't notice that, couple of needed spaces. I've modified my original post.
Thanks i tried it but now it says mount-o not found.
Sent from my Nexus S using XDA App
If it says mount-o not found there's not a space between mount and -o.
mount -o remount,rw .........
Sent from my Nexus S using XDA App
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
No Android expert but I have experience with the CL. Pretty sure you're going to need to cd into the dir or write the full path to the file.
BTW what are the cool kids using for command line these days? Any of them have tab type features? ex: cd /syst<TAB>/me<TAB> for cd /system/media/
B2L said:
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I just used root explorer to rename the install-recovery.sh to install-recovery-no.sh. It disabled it from flashing over the clockwork mod recovery on reboot. After disabling it I flashed clockwork recovery again permanently.
Edit: The file is in the etc folder.
Sent from my Nexus S using XDA App
sarge363 said:
I just used root explorer to rename the install-recovery.sh to install-recovery-no.sh. It disabled it from flashing over the clockwork mod recovery on reboot. After disabling it I flashed clockwork recovery again permanently.
Edit: The file is in the etc folder.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Thanks i tried to just rename it with Root Explorer but it says it's a read only file. I can't figure out how to change it so it's not read only.
B2L said:
Sorry I read the post about the space after I posted it. But of course I'm having more problems sorry for being such an idiot.
After putting su the command works. But then I try
Mv install-recovery.sh install-recovery-no.sh
It says no such file found. Sorry if I sound like an idiot. It's just rooting my Nexus S is much harder than it was to root my old mt3g.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
B2L said:
Thanks i tried to just rename it with Root Explorer but it says it's a read only file. I can't figure out how to change it so it's not read only.
Click to expand...
Click to collapse
you have to include the path
Code:
su
mount -o rw,remount /dev/block/mtdblock3 /system
mv /etc/install-recovery.sh /etc/install-recovery.sh.bak
or
Code:
su
mount -o rw,remount /dev/block/mtdblock3 /system
cd /etc
mv install-recovery.sh install-recovery.sh.bak
It's really just a lot easier with Root Explorer. If you use root explorer app, you have to push the little button at the top that says "mount r/w" or something like that. I usually do that rather than run the mount command, because I always forget the syntax for that one.
Yeah just hit the "mount R/W" button on top when u open Root Explorer. It changes to "Mount R/O" and u can rename it after that.
Sent from my Nexus S using XDA App

Lost contact pictures?

Has anyone else lost all of there contact pictures that were linked to facebook?
Try going into the Facebook app...click menu...scroll down...sync...and then select you option and everything should sync up again.
Sent from my Desire HD using XDA Premium App
If you fixed permissions with ROM Manager, you need to correct them. Get a terminal emulator, then type this:
su
chmod 666 /data/data/com.android.providers.contacts/files/*
Sent from my Inspire 4G using XDA Premium App
I have same problem and when i type chmod 666 /data/data/com.android.providers.contacts/files/*
it says no such file or directory

How do I install an apk app as system app?

OK, I found this in the form, but it don't work, post dated 2011.
#Su
#Mount -o remount,rw -t yaffs2 /dev/block/mtdblock3/system
#Cat /sdcard/[filename].apk > /system/app/[filename].apk
#Mount -o remount,ro -t yaffs2 /dev/mtdblock3/#system
#Reboot
I am running prono what ever he calls himself ics rom , if that is any help as maybe the file structure on the second line, and forth line need to be changed and what ever else, as I looked and I don't have a mtdblock3 under my /dev/ directory.
Trying to instal holo HD as a sys app so I can press and apply Widgets, it won't let me says it got a be installed as such,
Thanks
Sent from my SGH-I997 using xda app-developers app
Just grab a root explorer such as solid explorer and copy the apk into /system/app. Then change its permissions to 644 (rw-r-r) and reboot
Sent from my SGH-I997 using xda app-developers app
andros11 said:
Just grab a root explorer such as solid explorer and copy the apk into /system/app. Then change its permissions to 644 (rw-r-r) and reboot
Sent from my SGH-I997 using xda app-developers app
Click to expand...
Click to collapse
Thanks, now need to learn how to do that, 1. Command line? 2. Easier way?
...
Got it, with root explorer, too simple. Thanks again
Sent from my SGH-I997 using xda app-developers app

Categories

Resources