Greetings!
I have tried some ROMs -Ace I SCAPE, REINCARNATION, simplicity v5- and kernels -bieltv 3.0 for cm7, rafael 201211201515- but no matter what, after a few reboots my launcher -that is in the internal memory- and link2SD -that is in the internal memory too- just disappear, I don't know how could I track this since is not consistent -is like after 8-11 reboots-.
I don't have a clue of how to prevent this or what could be triggering it.
PS: Everytime I tried any of the above ROMs with their Kernels, I got back to the stock in ODIN 3.07 then did a fresh clean installation.
Logcat says it all
Try re-creating the case scenario, then using a PC, connect your phone (make sure to enable USB Debugging after the flash) and open a command line (Start->Run->cmd.exe if on windows)
Once open, try the instructions on this thread and upload the logcat here, try to make it as short as possible, I suggest you prepare it all before taking the logcat and once you find the issue, immediately do logcat
Good luck!
El_Dark said:
Logcat says it all
Try re-creating the case scenario, then using a PC, connect your phone (make sure to enable USB Debugging after the flash) and open a command line (Start->Run->cmd.exe if on windows)
Once open, try the instructions on this thread and upload the logcat here, try to make it as short as possible, I suggest you prepare it all before taking the logcat and once you find the issue, immediately do logcat
Good luck!
Click to expand...
Click to collapse
Right after the bug right? Because I wasn't sure if the logcat would explain why is after some reboots and not in the first one.
I'll be updating this post as it happens -usually is "conviently" when I finish installing all of my previous apps, then after 8-10 boots happens-.
sgdva said:
Right after the bug right? Because I wasn't sure if the logcat would explain why is after some reboots and not in the first one.
I'll be updating this post as it happens -usually is "conviently" when I finish installing all of my previous apps, then after 8-10 boots happens-.
Click to expand...
Click to collapse
it's a possible way, but note that it's useless after a reboot lol so it has to be right before you install your apps
El_Dark said:
it's a possible way, but note that it's useless after a reboot lol so it has to be right before you install your apps
Click to expand...
Click to collapse
I installed some apps to see if because I'm installing too many of them are making the phone to cause this -not quite sure if link2SD is working properly-. I had 140 apps before the upgrade -before switching between/roms kernels-, the reason why I upgrade was that I couldn't upgrade from the store the installed apps -it always told me I was running out of memory-.
Anyways, I have tried these days to recrate the scenario , one of the random reboots -when suddenly a message telling Link2SD was not responding- my launcher got out again, when I tried to logcat this by rebooting it worked again
But my whatsapp was gone
Here's the logcat available at paste bin of what I think are the problems:
http://pastebin.com/3jMNX7LV
If needed, I upload the whole thing in box:
https://app.box.com/s/i66rfop429c0wgwldqv4
Anyways I attach the logcat in pastebin
PS: I have read that VFY is missing / replacing in the logcat, for what I have read here
Could be superuser got messed up while flashing the cm7 kernel?
sgdva said:
I installed some apps to see if because I'm installing too many of them are making the phone to cause this -not quite sure if link2SD is working properly-. I had 140 apps before the upgrade -before switching between/roms kernels-, the reason why I upgrade was that I couldn't upgrade from the store the installed apps -it always told me I was running out of memory-.
Anyways, I have tried these days to recrate the scenario , one of the random reboots -when suddenly a message telling Link2SD was not responding- my launcher got out again, when I tried to logcat this by rebooting it worked again
But my whatsapp was gone
Here's the logcat available at paste bin of what I think are the problems:
http://pastebin.com/3jMNX7LV
If needed, I upload the whole thing in box:
https://app.box.com/s/i66rfop429c0wgwldqv4
Anyways I attach the logcat in pastebin
PS: I have read that VFY is missing / replacing in the logcat, for what I have read here
Could be superuser got messed up while flashing the cm7 kernel?
Click to expand...
Click to collapse
Try reflashing... Although the issues I've experienced with Link2SD are usually related to /data/ partition getting full when having too many apps..
If after reflashing, installing Link2SD and linking your apps again you still have issues, download Link2SD again from the Play store, you could also try the following after installing Link2SD and linking your apps: connect your phone to a PC and use adb shell, while the phone boots, once shell is up, do:
Code:
su
cd /data/
ls (make sure here that you have an sdext2 directory, if not, it means Link2SD is not installed properly)
cd sdext2
ls (make sure that you have a dalvik-cache directory in this place, if not, start Link2SD for a
cd /data/dalvik-cache/
for file in data*
do
if [! -h $file] (we make sure it's not a symlink already, you don't want looping links!!!)
cp $file /data/sdext2/dalvik-cache/
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
fi
done
try that without the text in the parenthesis lol
hope that helps, it could help anyone with space issues in /data/!!
El_Dark said:
All the post above
Click to expand...
Click to collapse
Thanks for being up with this issue!
Well this install is fresh new -is like 2 days long-, I tried the commands you told me but this is what I get
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# ls
ls
efs
config
cache
sd-ext
sdcard
acct
mnt
vendor
devices
d
etc
fota.rc
init
init.charge.rc
ueventd.rc
data
init.rc
ueventd.goldfish.rc
sbin
lib
init.bcm21553.rc
sys
init.goldfish.rc
proc
recovery.rc
tmp
default.prop
system
res
root
dev
# cd sdext2
cd sdext2
cd: can't cd to sdext2
#
Also I'm not quite sure I understood this line?
El_Dark said:
installing Link2SD and linking your apps again you still have issues, download Link2SD again from the Play store,
Click to expand...
Click to collapse
Do I uninstall and re Install?
sgdva said:
Thanks for being up with this issue!
Well this install is fresh new -is like 2 days long-, I tried the commands you told me but this is what I get
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
[COLOR="Red"]you missed the "cd /data/" part lol[/COLOR]
# ls
ls
efs
config
<<intentionally snipped>>
Also I'm not quite sure I understood this line? Do I uninstall and re Install?
Click to expand...
Click to collapse
Yep, from the Play itself, just in case you're using some local/downloaded version lol, although I doubt it
El_Dark said:
Yep, from the Play itself, just in case you're using some local/downloaded version lol, although I doubt it
Click to expand...
Click to collapse
Ok Thanks for remarking my bad, lol.
Ok I got the dalvik cache folder as you state, though I get an error when typing this line
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
I thought maybe it was an if, but yeah, isn't a "then" missing for the "if [! -h $file]" that we typed before?
Full code:
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# cd /data/
cd /data/
# ls
ls
log
dontpanic
cache
misc
local
data
app-private
app
property
fota
anr
dalvik-cache
lost+found
brcm
vt
gps
lcs.socket
rilgps.socket
link2sd-debuggerd.log
link2sd-11link2sd.log
zipalign.db
zipalign.log
aeqcoe.txt
soundbooster.txt
system
secure
backup
cp_data.txt
sdext2
tombstones
# cd sdext2
cd sdext2
# ls
ls
lost+found
data
dalvik-cache
com.whatsapp-1.apk
com.jb.gosms-1.apk
com.opera.mini.android-1.apk
com.imo.android.imoim-1.apk
com.urbandroid.sleep-1.apk
com.urbandroid.sleep.full.key-1.apk
je.fit-1.apk
com.jb.gosms.widget-1.apk
jp.co.johospace.jorte-1.apk
com.c2call.app.android.friendcaller-1.apk
com.skype.raider-1.apk
com.viber.voip-1.apk
com.sds.android.ttpod-1.apk
com.facebook.katana-1.apk
com.google.android.apps.plus-1.apk
com.megacloud.android-1.apk
com.google.android.apps.maps-1.apk
com.plaincode.clinometer-1.apk
org.exobel.routerkeygen-1.apk
es.pulimento.wifi-1.apk
# cd /data/dalvik-cache/
cd /data/dalvik-cache/
# for file in data*
for file in data*
> do
do
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
sgdva said:
Ok Thanks for remarking my bad, lol.
Ok I got the dalvik cache folder as you state, though I get an error when typing this line
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
I thought maybe it was an if, but yeah, isn't a "then" missing for the "if [! -h $file]" that we typed before?
Full code:
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# cd /data/
cd /data/
# ls
ls
log
dontpanic
cache
misc
local
data
app-private
app
property
fota
anr
dalvik-cache
lost+found
brcm
vt
gps
lcs.socket
rilgps.socket
link2sd-debuggerd.log
link2sd-11link2sd.log
zipalign.db
zipalign.log
aeqcoe.txt
soundbooster.txt
system
secure
backup
cp_data.txt
sdext2
tombstones
# cd sdext2
cd sdext2
# ls
ls
lost+found
data
dalvik-cache
com.whatsapp-1.apk
com.jb.gosms-1.apk
com.opera.mini.android-1.apk
com.imo.android.imoim-1.apk
com.urbandroid.sleep-1.apk
com.urbandroid.sleep.full.key-1.apk
je.fit-1.apk
com.jb.gosms.widget-1.apk
jp.co.johospace.jorte-1.apk
com.c2call.app.android.friendcaller-1.apk
com.skype.raider-1.apk
com.viber.voip-1.apk
com.sds.android.ttpod-1.apk
com.facebook.katana-1.apk
com.google.android.apps.plus-1.apk
com.megacloud.android-1.apk
com.google.android.apps.maps-1.apk
com.plaincode.clinometer-1.apk
org.exobel.routerkeygen-1.apk
es.pulimento.wifi-1.apk
# cd /data/dalvik-cache/
cd /data/dalvik-cache/
# for file in data*
for file in data*
> do
do
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
Click to expand...
Click to collapse
heh, nice one, indeed I was missing the "then" after the "if" :silly:
El_Dark said:
heh, nice one, indeed I was missing the "then" after the "if" :silly:
Click to expand...
Click to collapse
So then, lol, is like this?
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
then
done
sgdva said:
So then, lol, is like this?
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
then
done
Click to expand...
Click to collapse
nope, it's like this:
Code:
for file in somefile*
do
if [ blablabla ]
then
some actions
fi
done
that's it
El_Dark said:
nope, it's like this:
Code:
for file in somefile*
do
if [ blablabla ]
then
some actions
fi
done
that's it
Click to expand...
Click to collapse
I'm not quite sure what you mean by "some actions" is this a command?
This is how I typed it
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> then
then
> some actions
some actions
> fi
fi
> done
done
[!: not found
some: not found
[!: not found
cp: '[email protected]@[email protected]' and '/data/
sdext2/dalvik-cache/[email protected]@[email protected]
ex' are the same file
El_Dark said:
Code:
su
cd /data/
ls (make sure here that you have an sdext2 directory, if not, it means Link2SD is not installed properly)
cd sdext2
ls (make sure that you have a dalvik-cache directory in this place, if not, start Link2SD for a
cd /data/dalvik-cache/
for file in data*
do
if [! -h $file] (we make sure it's not a symlink already, you don't want looping links!!!)
[U][B]then[/B][/U]
cp $file /data/sdext2/dalvik-cache/
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
fi
done
Click to expand...
Click to collapse
quoting myself
El_Dark said:
quoting myself
Click to expand...
Click to collapse
Oh ok, done
For what I can understand everything is supposed to be linked right? hence this is shown "! not found"?
But I'm still not getting why randomly the SSlauncher is not working in some reboots -and when this happens my link2SD gets vanished too and the message low storage is shown-.
Should I make this everytime that happens? -if it happens again?-
Code:
> if [! -h $file]
if [! -h $file]
> then
then
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
> done
done
[!: not found
sgdva said:
Oh ok, done
For what I can understand everything is supposed to be linked right? hence this is shown "! not found"?
But I'm still not getting why randomly the SSlauncher is not working in some reboots -and when this happens my link2SD gets vanished too and the message low storage is shown-.
Should I make this everytime that happens? -if it happens again?-
Code:
> if [! -h $file]
if [! -h $file]
> then
then
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
> done
done
[!: not found
Click to expand...
Click to collapse
you shouldn't need to do it every time, mainly when you install new apps, alternatively, you can check the apps' data directories to see which one is consuming a lot of space, you can do that by issuing the commands below:
Code:
su
cd /data/data
du -hc
that should tell you how much space every dir is using (I think, lol)
PS: HIGHLY IMPORTANT!!! You should no longer link dalvik-cache via link2sd with this, or you might experience Force Closes due to the apps' dalvik cache being missing, and I say being missing because if you link a dalvik-cache file that's already linked, Link2SD might move the link and overwrite the physical file, and you'll have a symlink loop
Hi,
I have a Radxa Rock on which I am running Android 4.2.2, I am trying to get cron working to schedule some scripts to run.
I have got init.d working to launch a script at boot but I can't seem to be able to start crond from it. I have installed SSHDroid on the unit so I can putty to it, if I putty to the device and run
Code:
crond -b -c /data/crontab
cron starts and everything is running fine.
But when I add
Code:
crond -b -c /data/crontab
to my init.d script nothing happends and I can't seem to figure out why.
This is the full contents of my init.d script:
Code:
#!/system/bin/sh
# Init.d test
if [ -e /data/Test.log ]; then
rm /data/Test.log
fi
echo Init.d is indeed working !!! >> /data/Test.log
echo "excecuted on $(date +"%d-%m-%Y %r" )" >> /data/Test.log
crond -b -c /data/crontab
What am I doing wrong?
Can't say this is my forte, but maybe something from this thread can get you pointed in the right direction: http://forum.xda-developers.com/showthread.php?t=2090284
Thank you for your answer
I tried updating and using the full path to the crond but that wasn't working either. Then I realized that it wasn't working via putty either with full path. My conclusion was that I was using the wrong path, found out I could run "which crond" to find the correct path which was completely different. In my case "/data/data/berserker.android.apps.sshdroid/home/.bin/crond -b -c /data/crontab" was the full path and now it's working just fine.
Cool. Glad you're on the right track!
How can I add u2nl to init.d? I have an HTC Evo 4g LTE and need to make android 4.3 Viper4g Rom run my script on boot. I've tried to use Root Explorer and Root Browser apps to manually add them to the init.d folder, set permissions and changed owner and group to root. But my phone won't boot after I've added my script. The name of my script file is autostart.sh and this is what it contains.
#!/system/bin/sh
export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o rmnet0 -p 6 ! -d 10.132.25.254 -j REDIRECT --to-port 1025
u2nl 10.132.25.254 8080 127.0.0.1 1025 >/dev/null 2>&1 &
sh -c "sleep 5;kill `ps|grep nk.bla.android.autostart|grep -v grep|awk '{print $2}'`" &
exit 0
I know someone here has the knowledge to make this happen. Please advise and assist. Thanks. P.S. I have tried to rename the script to 99data and placed it init.d directory so it would run last but phone won't boot.?
solcam said:
How can I add u2nl to init.d? I have an HTC Evo 4g LTE and need to make android 4.3 Viper4g Rom run my script on boot. I've tried to use Root Explorer and Root Browser apps to manually add them to the init.d folder, set permissions and changed owner and group to root. But my phone won't boot after I've added my script. The name of my script file is autostart.sh and this is what it contains.
#!/system/bin/sh
export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o rmnet0 -p 6 ! -d 10.132.25.254 -j REDIRECT --to-port 1025
u2nl 10.132.25.254 8080 127.0.0.1 1025 >/dev/null 2>&1 &
sh -c "sleep 5;kill `ps|grep nk.bla.android.autostart|grep -v grep|awk '{print $2}'`" &
exit 0
I know someone here has the knowledge to make this happen. Please advise and assist. Thanks. P.S. I have tried to rename the script to 99data and placed it init.d directory so it would run last but phone won't boot.?
Click to expand...
Click to collapse
have you tried a dummy test script that just echos a number to the sdcard file?
Thanks for replying. The script term-init.sh that I found elsewhere on XDA, had a test and set perms output file that can be found in /data/Test.log. I have solved the problem on my Evo 4g LTE but, not on my Sprint Galaxy S3. Turns out that I couldn't use Root Explorer to manually add the file! I had to REALLY MANUALLY add the file using the terminal emulator. That worked on the Evo but not the S3. I had placed the scripts in one postboot.rc files on S3 and it worked fine but, my battery seemed to be draining a lot faster, which was not acceptable. So I guess my problem is half solved. So, do you know how to make it work on the S3? Thanks in advance to anyone that can help me.