not enough memory error - EVO 4G General

I am trying to get tun.ko installed per (url removed cause I'm new) = code.Google.com/p/get-a-robot-vpnc. I have root and mounted system rw but when I try to copy it whether by adb or terminal I get "cannot create /system/lib/modules/tun.ko: not enough memory. Anyone have some clues for me please? Thanks.

Never mind. Was finally able in recovery mode.

Related

Re-write damaged build.prop?

I've managed to make a typo somewhere when updating the build.prop and it hasn't written it, now my tab has a /System/build.prop.old file, but no /System/build.prop file. I've got a backup of the file, has anyone either got a valid UPDATE.ZIP file for a JK5 EU firmware version of the build.prop that I can write (will it work from the "external" SD card?) - or some other way of gaining root access via the recovery ADB shell so that i can rewrite this file, or am I going to need to reflash via Odin? I've tried creating my own update.zip file but it tells me that it can't find it, so I'm guessing it has to be on the internal SD card, which is not a lot of use as I can't mount it.
Not a big deal if I have to, I'd just rather know an alternative in case I stuff it up again
EDIT: Nevermind, I worked out how to gain root access whilst in recovery, pretty simple really - the same as the regular manual-root process but just using a different work folder. The /tmp folder is writeable in recovery mode so I just copied the rageagainstthecage binary into there via "adb push", set it to executable, ran it, killed the adb server and restarted it, reconnected and I had root access, moved the build.prop back and all is well again.
Based on this, it'd be a piece of cake to write an UPDATE.ZIP that did a full permanent shell-root and also installed busybox and superuser.apk. Any point or are people happy enough with the existing methods?

[Q] Cannot Update to ICS Read only file system

Hello All,
I am in a real bind here with my Thinkpad tablet. Lets just say i should have left well enough alone. Anyway, i have the
183925U tablet with A310_02_0039_0089_US that i originally rooted. I used titanium backup to remove some apps. When i
tried to update to ICS, it failed. At the time i read some forums and they said remove root with OTA and then update and
then use OTA to get root back. Tried that and it failed. I got a brilliant idea to remove root and do a factory restore
to hopefully get ICS to load. Now i have no root, cant downlaod anything cause i cant update, cant sideload and cant get
root back.
The update fails with assert check and goes on to say Music.apk cannot be found. I looked into how to reload or even copy
that file to the system but no matter what i try i get "Read Only File System" and i cant get past this. adb push does
nothing. i can push to /data/local but cant do anything with it from there
i can do the following:
adb shell
$su
#
and from there i have tried the mount -o rw remount /system and it seems to accept the command but the system wont let me
move or copy with mv or cat to the /system directory. Is there any way i can get past this? I really just want ICS stock
no root. Please help if you can. I am new so please be gentle and if you wouldnt mind spelling out any commands for me.
Thanks to anyone who can help me. Have a nice day

[Q] any senior/pro devs:How to gain privilege to pull /data with Debug Bridge?

hi, developers!
it's so urgent if anyone knows how to do this please instruct me, infinitive thanks here in the first place!
i need to pull the directory of /data out to my PC,i'm rooted and able to use adb for this only,
first i use the command line
---------------------------------
adb pull /data(enter)
---------------------------------
The result is
---------------------------------
0 files pulled ,0 files skipped..
---------------------------------
then i tried the following command line
---------------------------------
adb shell(enter)
su(enter)
cd data(enter)
cd data(enter)
ll(enter)
---------------------------------
ok,it's not empty! everything I need is here,and ACCESSIBLE...for sure!
then i exited the adb shell mode and pulled again, but pulled nothing...
alright i went back to adb shell mode with su and tried
---------------------------------
chmod 777 /data(enter *no sign to show if this worked)
---------------------------------
then do the same pulling thing but again, didn't make any sense.
i also tried "cp" the files in /data i need, but only to find they're copied to local storage rather than my PC.
NOW COMES THE QUESTION:
is there any way i can directly gain privilege to pull files from /data,
or is there another way to backup /data to PC?
THE SITUATION IS
i've got a boot up problem, just can't pass through the bootanimation, before I reflash the pad, i'll need to retrieve crucial agenda notes and memo lest they're wiped.
but the recovery backup function failed to back up userdata...(/data)
Just a hunch, but can you (using adb shell and SU) cp /data to /mnt/external_sd, then pull it from there or use a card reader?
stuck
p_025 said:
Just a hunch, but can you (using adb shell and SU) cp /data to /mnt/external_sd, then pull it from there or use a card reader?
Click to expand...
Click to collapse
thank you pal! i've tried such thing as you remind me of but totally, /data is omitted! while i use "cp", for another thing, while i was trying to "cp" another folder to extern sd, it read read-only file system. so it goes all the way back to the PERMISSION thing, or i need to gain privilege to modify the property of /data so that i can pull what i need out of this nightmare...and should modify /external sd also if using "cp".
kept waiting, please help:crying:..any constructive instructions shall be greatly appreciated!!
yours truly cordially!!
can u actually use adb without access to the os??
what rom and BL were u on?
seems strange u need permissions for /data - have u tried mounting it?
from memory data resides at mmcblk0p8 u might be able to dd that 2 ur ext SD or Google to search dev forum
I'm know dev just throwing stuff o.to.tje
mix...
Sent from my GT-I9300 using Tapatalk 2

[Q] how to gain su access while in recovery

using terminal in ubuntu with adb. can access root with phone booted fine. Need to access su with phone in recovery as im attempting to mount internal storage to perform emergency data recovery. Im using the guide from MohammedAG's blog. (which seems to have been taken down as of yesterday....)
Is this possible? phone is rooted with safestrap 3.72 installed.
Im able to get the drive to mount temporarily (with phone booted), with this command:
echo /dev/block/platform/msm_sdcc.1/by-name/userdata > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun0/file
it shows the files and directories for between 2-10 minutes then the phone will reboot. Want to create a drive image using GNU ddrescue.
Any help/thoughts/insight would be greatly appreciated.
Success!!!!
Ok so i figured out another way. I was unable to access root from recovery...I would get error "CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "/sbin/sh"; caused by library "libc.so" not found"
But I DID have access with phone booted. I was working in unbuntu terminal as MohammedAG suggested as Windows cannot read ext3 partitions. This would work temporarily as I mentioned above but would then crash and reboot the phone. Due to the system being double mounted?? i think...
So i tried it in windows, the command worked I saw the drive! It asked me to format so i could use the drive...Cancel. The drive was now still visible(but not usable by windows) as a logical drive.
So using iRecover (diydatarecovery.nl) which supports ext3/4 drives I was able to perform recovery on the device and create an image file just to be safe.
Recovered a ton of files! Awesome!

Cant modify file?

I'm trying to replace one of the files in /system/usr/keylayout but i'm getting an error telling me the system is read only.
So i've gone back to the /system folder in Root Explorer and tried to remount it as rw but nothing happens.
So i've gone in and tried to use ADB. I turned on USB Debugging and connected with ADB, used "adb shell" to get in, then every variation of deleting the file and remounting the file system i can. Every method to delete the file tells me its read only, and every method to remount it tells me that the folder isnt in /proc/mounts. If i dont specify a folder and just use /, then it runs and shows a ton of folders, but i still cant delete the file. My goal is to replace it with another.
Any ideas why? I'm rooted with magisk, newest version of platform tools on the laptop, im running OOS 11.0.4.4 IN11AA, stock rom and kernel.

Categories

Resources