[Q] New Tutorial for OPENvpn? - XPERIA X10 Q&A, Help & Troubleshooting

hi there..is there a thread for new tutorial for installing openvpn for the gingerbread?
i already tried the search button but theres such no topic except for jimbo..which is kinda outdated..im a bit skeptic asking him because he no longer possess an x10.?
i tried to issue this command on TE
su
mkdir /system/xbin/bb
ln -s /system/bin/busybox /system/xbin/bb/ifconfig
ln -s /system/bin/busybox /system/xbin/bb/route
Click to expand...
Click to collapse
but the openvpn settings wont let me select any of my OVPN files..?
thanks.

forget it..
already figured it out..

Related

► BusyBox◄the easy way

What is BusyBox?
BusyBox is a software application that provides many standard Unix tools, much like the larger (but more capable) GNU Core Utilities. BusyBox is designed to be a small executable for use with the Linux kernel, which makes it ideal for use with embedded devices
Click to expand...
Click to collapse
Why do you need BusyBox?
With busybox you can have more simple shell commands live cp/mv
Click to expand...
Click to collapse
i've rooted my 2.1 and updated Titanium Backup but still its showing " busybox not found in adb shell. Why?
Titanium backup downloads its own busybox which cannot be used for shell commands
Click to expand...
Click to collapse
How can i get busybox then?
There are complicated methods of installing busybox but there is an even simpler way. You can download the busybox.apk and click install after installing the app.
Click to expand...
Click to collapse
Should i be rooted?
YES
Click to expand...
Click to collapse
After running the app for the first time , i get failed. What should i do?
This happens. You have to just exit the app and run it again. Hopefully will work
Click to expand...
Click to collapse
More questions?
Post is in this thread!
Click to expand...
Click to collapse
when using your ADB shell ( or terminal app )
it should be noted that there are many commands that the default /system/bin does not have, such as "cp" ( the copy command )
you can use busybox to do this for you..
#busybox cp /sdcard/file.foo /data/folderfoo ( for example )
or
#busybox find | busybox grep foo
the easy way is to link busybox builtin commands to normal commands
do the following from /system/bin
for "cp"
#busybox cp -s busybox cp
for "grep"
#busybox cp -s busybox grep
for a complete list of the commands builtin to busybox do..
#busybox
morning_wood said:
for "cp"
#busybox cp -s busybox cp
for "grep"
#busybox cp -s grep
for a complete list of the commands builtin to busybox do..
#busybox
Click to expand...
Click to collapse
I would do ln -s busybox cp
ln -s busybox grep
etc...
Just to save space really
EDIT doh just remebered cp -s creates symbolic-link
metamorph says no busybox
Metamorph doesn't work , its for Cyanogen Mod
Sent from my E10i using Tapatalk
It used to work on 1.6 i had used it for framework.apk once
Sent from my E10i using XDA App
great! worked like a champ
what version is yours busybox?
Thanks for the info

[Alpha Release] xWildFireMini 2.1 v0.2b

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

[Q] OPENVPN Wolfbreak CM 6.1.3 V5 problem

ok..so ive recently flash my X10i stock 2.1 eclair to Wolfbreak CM 6.1.3 v5
and im having problems regarding my Openvpn settings.
**cant check my config files
so what i did is to follow the old thread regarding the old openvpn settings for eclair and issue this following command on terminal emulator
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
busybox insmod /sdcard/openvpn/tun.ko
busybox cp /sdcard/openvpn/openvpn /system/xbin/openvpn
busybox cp /sdcard/openvpn/openvpn /system/xbin/tun.ko
chmod 700 /system/xbin/openvpn
mkdir /system/xbin/bb
busybox ln -s /system/bin/busybox /system/xbin/bb/ifconfig
busybox ln -s /system/bin/busybox /system/xbin/bb/route
busybox mount -o remount,rw /dev/block/mtdblock2 /system
busybox cp /sdcard/openvpn/chargemon /system/bin/chargemon
busybox cp /sdcard/openvpn/busybox /system/bin/busybox
reboot
Click to expand...
Click to collapse
then my X10i will reboot and will start acting up. Force close keeps on popping and the device will automatically restart.
ive used those command when i used 2.1 eclair before and everything is working fine.
if anyone could enlighten me about this will be a great help.
also if you need other info, you can pm me or reply to my post.
this is my old working settings when i used eclair.
1.rooting my phone
2.install busy box
3.install terminal emulator
4.install openvpn application
5.install openvpn settings
6. issue this command in terminal
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
busybox insmod /sdcard/openvpn/tun.ko
busybox cp /sdcard/openvpn/openvpn /system/xbin/openvpn
busybox cp /sdcard/openvpn/openvpn /system/xbin/tun.ko
chmod 700 /system/xbin/openvpn
mkdir /system/xbin/bb
busybox ln -s /system/bin/busybox /system/xbin/bb/ifconfig
busybox ln -s /system/bin/busybox /system/xbin/bb/route
busybox mount -o remount,rw /dev/block/mtdblock2 /system
busybox cp /sdcard/openvpn/chargemon /system/bin/chargemon
busybox cp /sdcard/openvpn/busybox /system/bin/busybox
reboot
Click to expand...
Click to collapse
7.open the config file and wait for it to connect.
but those above mention steps doesnt work anymore in 2.2 froyo cm 6.1.3 of wolfbreak
tried it and my phone starts acting up.
reflash again, this time openvpn settings is the only application i installed because as far as i know, wolfbreak custom rom is already been rooted and includes busy box and openvpn application but no luck..
help please.
Hi There!
I think you've followed my old thread so i've made this very same codes work on every Froyo Modded ROM... Wolfbreak already have the openvpn binary installed in /system/xbin so you'll have to do 1 extra step.
1.- Open Terminal Emulator and issue this comand
Code:
rm -r /system/xbin/openvpn
mkdir /system/xbin/bb
ln -s /system/bin/busybox /system/xbin/bb/ifconfig
ln -s /system/bin/busybox /system/xbin/bb/route
cp /sdcard/openvpn/tun.ko /system/lib/modules/tun.ko
chmod 644 /system/lib/modules/tun.ko
2.- Download OpenVPN installer from Market (Free)
3.- Click on Install and choose the following options and you'll see two screens:
3.1 - In the first one choose "/system/xbin"
3.2 - In the Second one choose "System/xbin/bb"
4.- Go to OpenVPN settings and go to Advanced>TUN module Settings>Path to tun module> This should be /system/lib/modules/tun.ko
5.- Choose your OpenVPN configuration and you'll be done.
Report back if this helps... At least i've test it in the following ROMS:
* Trip's MIUI Roms
* Wolf's CM Roms (all Variants)
* Zdizihu's Free X10
* Jerpelea's CM 7 GB Roms
thanks mate for the reply,
anyway, i somehow manage to fix the above mention problem and somehow got my config file to get connected using the above post.
but everytime it get connected, a lot of errors occur.
1.force closed.... .....
2.linux....error....... .....fork error...
i cant remember the whole error message because it only pops up for a bit.
tried to reflash twice but to no avail, same results hapen.
so i gave up and flash back to 2.1 kx10 aosp and everything is working again..

[SOLVED] OpenVPN on SGSII?

Hi,
I was wondering if OpenVPN is supported out of the box and if not, is there a possibility to make it work?
Searched the forum but couldn't find any specific info..
thanks in advance!
EDIT:
I created an update.zip which is posted in this thread
Not supported out of the box... it's baked into CM7 but obviously that's a custom rom! There's OpenVPN apps on the market but they require a rooted device. The one I've found to work the best was OpenVPN Settings (not the SGS2) but it requires the openvpn binary to be installed somehow first...
I'm using OpenVPN Settings on a CM based rom now (HTC Hero) From what I remember it needs tun.ko support in the kernel
Don't know if the default kernel has this..
Sent from my HTC Hero using Tapatalk
I had rooted my gs2 and installed openvpn binary, openvpn settings works.
but always see "FATAL: Linux ifconfig failed: could not execute external program".
Who can tell me why?
I remember I had the same issue a long time back before I was using CM based roms
Can't remember what but will try to look it up this weekend as I'm curious about the result
really need OpenVPN wheb I get my SGSII
Sent from my HTC Hero using Tapatalk
tux
Sent from my Nexus One
diesiren said:
ifconfig failed: could not execute external program
Click to expand...
Click to collapse
this seems to mean that OpenVPN is looking for ifconfig in the wrong place
you should connect your phone through usb and start adb shell
then type (change openvpn.conf to the conf file you are using)
Code:
openvpn --config /sdcard/openvpn/openvpn.conf
if you launch the command above there will some messages in the shell window
you should look for ifconfig
/system/xbin/bb/ifconfig tap0 192.168.1.40 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255
Click to expand...
Click to collapse
now you know the path where OpenVPN is looking for ifconfig and where it can't find it (/system/xbin/bb/ifconfig)
now type the command below to locate where ifconfig is on your rom
Code:
which ifconfig
this could be for example
/system/xbin/ifconfig
Click to expand...
Click to collapse
now type the commands below in adb shell (ln -s <correct path> <incorrect path>)
Code:
cd /system/xbin
ln -s /system/xbin /system/xbin/bb
this will create a correct link for ifconfig and route commands
I have not tested it myself as I flashed a CM rom shortly after
but if you replace the values with your values it should work fine and not do any harm
if you get it to work could you please let me know?
thanks!
S2 is not in my hand right now. I'll try it tomorrow and thank you very much.
Sent from my Nexus One
OpenVPN works fine now and thx Gawis!!
This is my steps
1. Flashing Firmware with Odin (guide)
2. Root My S2, and busybox installed with SuperOneClick (guide)
3. Download OpenVPN File download and extract
4. Use adb tools
Code:
adb remount
adb push openvpn-static-2.1.1 /system/xbin/openvpn
adb shell
# chmod 775 /system/xbin/openvpn
# mkdir /system/xbin/bb
# ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
# ln -s /system/xbin/busybox /system/xbin/bb/route
5. Download and install OpenVPN Settings From Android Market
6. Upload My config files to USBstorage.The path is /sdcard/openvpn/
7. Flashing StockKernel with Odin (guide)
over~
Sorry for my poor English~
Hi diesiren,
thanks for confirming and putting up the guide!
I'm really glad it works, hope to have my phone nex week or the week after and will try this one myself then!
diesiren said:
Code:
adb remount
adb push openvpn-static-2.1.1 /system/xbin/openvpn
adb shell
# chmod 775 /system/xbin/openvpn
# mkdir /system/xbin/bb
# ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
# ln -s /system/xbin/busybox /system/xbin/bb/route
Click to expand...
Click to collapse
I just got my OpenVPN working on my SGSII!
I just rooted it with CF-Root 3.7 and then pushed the openvpn binary and executed the commands you posted
thanks for the guide!
I'm having problems getting openVPN to work.
I have adb pushed openvpn-static-2.1.1 to system/xbin already.
But when i adb shell, the result is "sh:applet not found"
I am 100% I am rooted. I am running root explorer, titanium backup, have busybox installed, and superuser.
Any advice would be extremely helpful.
Thanks!
Hmmm, haven't experienced any issues like that with adb yet so can't comment on that...
I created an update.zip for the whole thing a few days ago...
Are you running a custom rom? If so which one?
Am planning to post the update.zip here later...
I tested it with Cognition and CM7...
Sent from my GT-I9100 using Tapatalk
I just uploaded the update.zip in this thread
Gawis said:
Hmmm, haven't experienced any issues like that with adb yet so can't comment on that...
I created an update.zip for the whole thing a few days ago...
Are you running a custom rom? If so which one?
Am planning to post the update.zip here later...
I tested it with Cognition and CM7...
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I'm on Exynos v3.6 ROM.
I saw your thread. Thanks for the zip, bro. Very much appreciated.
Thanks for the help! I found that I had to first remount in read/write mode the /system directory as mine was read-only.
Ran the code below to do this:
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
Hey...
I have a similar issue. My SGS2 already is connected to the openVPN but i can't connect to an other client at the vpn. So no Ping, no tracerroute or (most important) telnet connection. I think it might be something about the routing but I don't find a hint on any forum.

[Q] Link2SD and launcher stop to work?

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

Categories

Resources