copy & paste mistake from original init.rc - Galaxy S I9000 General

mkdir /data/local/tmp 0771 shell shell
chown shell shell /data/local/tmp
chmod 0771 /data/local/tmp
mkdir /data/data 0771 system system
chown shell shell /data/local/tmp <-- should be /data/data, i think
chmod 0771 /data/local/tmp <-- this line too

Related

Root Froyo 318

I have upgraded from 309 to 318.......wanting to root it using z4root and universal androot but both apps dont work for this 318 version.....
does anyone have any clues to what i can do? please advise, thanks
Please Do Not Post the Same Question in 2 Forums i will Lock this one as i have answered the other one
Quoted from fards' thread: http://forum.xda-developers.com/showthread.php?t=844966&highlight=rageagainstthecage
Been rooting this way since day 1 -- if you aren't the type in command prompt, you can also just copy and paste the command lines exactly~
GET ECLAIR/FROYO version of Superuser.apk and su
from http://forum.xda-developers.com/showthread.php?t=682828 extract the two files to the directory you're working from..
GET rageagainstthecage from
http://stealth.openwall.net/xSports/RageAgainstTheCage.tgz
extract the rageagainstthecage-arm5.bin to the same directory you're working from
open a terminal/command line
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage
adb push Superuser.apk /data/local/tmp/Superuser.apk
adb push su /data/local/tmp/su
adb push busybox /data/local/tmp/busybox
adb shell chmod 700 /data/local/tmp/rageagainstthecage
adb shell chmod 700 /data/local/tmp/busybox
adb shell
cd /data/local/tmp
./rageagainstthecage
******this will kill adb server but manually kill it anyway and restart it ******
adb kill-server
adb start-server
* daemon not running. starting it now *
* daemon started successfully *
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
**********Follow the following steps to install Superuser.apk, busybox,su ****************
cd /data/local/tmp
./busybox cp busybox /system/bin/
chmod 4755 /system/bin/busybox
busybox cp Superuser.apk /system/app/
busybox cp su /system/bin/
chmod 4755 /system/bin/su
exit
exit
then reboot streak
************to remount filesystem as readonly,*************
adb shell
# su
su
#mount -o remount,ro -t yaffs2 /dev/block/mtdblock6 /system
# exit
exit
Click to expand...
Click to collapse

[Q] Root 2.2 318 without ADBshell

Hi,
a pin of my USB connector is broken so I cannot get a USB data connection to a PC (but charging still works ...).
How can I root the official 318 build of froyo ? More specifically, in the new build, there doesn't seem to be any mounted filesystem on which one can copy RATC to run it.
Any hint welcome.
Have you already tried superoneclick, androot, or z4root? If so, then maybe try the below.
I don't know if this will work but you can try fard's instructions to root manually and use "Terminal Emulator" from Market instead of ADB SHELL, but i don't know what will happen when you run rageinthecage~ You will need to change the instruction a bit for your case.
http://forum.xda-developers.com/showthread.php?t=844966&highlight=rageagainstthecage
Instructions:
1. Copy all the needed files (from fards thread) into the SDCARD.
2. run Terminal Emulator
3. cd /sdcard/
4. busybox cp rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage
5. busybox cp Superuser.apk /data/local/tmp/Superuser.apk
6. busybox cp su /data/local/tmp/su
7. busybox cp busybox /data/local/tmp/busybox
8. chmod 700 /data/local/tmp/rageagainstthecage
9. chmod 700 /data/local/tmp/busybox
10. cd /data/local/tmp
11. ./rageagainstthecage
12. Reset Terminal
13. Start Terminal Emulator again
14. mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
15. follow the rest of the instructions below "mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system "
In case you can't find it in the thread, here is the original post by fards:
GET ECLAIR/FROYO version of Superuser.apk and su
from http://forum.xda-developers.com/showthread.php?t=682828 extract the two files to the directory you're working from..
GET rageagainstthecage from
http://stealth.openwall.net/xSports/RageAgainstTheCage.tgz
extract the rageagainstthecage-arm5.bin to the same directory you're working from
open a terminal/command line
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage
adb push Superuser.apk /data/local/tmp/Superuser.apk
adb push su /data/local/tmp/su
adb push busybox /data/local/tmp/busybox
adb shell chmod 700 /data/local/tmp/rageagainstthecage
adb shell chmod 700 /data/local/tmp/busybox
adb shell
cd /data/local/tmp
./rageagainstthecage
******this will kill adb server but manually kill it anyway and restart it ******
adb kill-server
adb start-server
* daemon not running. starting it now *
* daemon started successfully *
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
**********Follow the following steps to install Superuser.apk, busybox,su ****************
cd /data/local/tmp
./busybox cp busybox /system/bin/
chmod 4755 /system/bin/busybox
busybox cp Superuser.apk /system/app/
busybox cp su /system/bin/
chmod 4755 /system/bin/su
exit
exit
then reboot streak
************to remount filesystem as readonly,*************
adb shell
# su
su
#mount -o remount,ro -t yaffs2 /dev/block/mtdblock6 /system
# exit
exit
Click to expand...
Click to collapse
Well...
yes, I have tried all that.
The main problem with the last option (i.e. CLI) is that the directory /data/local/tmp/ is not user writable (actually /data permissions are 751). So I was in search of a another directory (in an executable partition) where I can copy rageagainstthecage-arm5.bin.
Finally found it : "find" was my friend. /firstboot/sqlite/jackpal.androidterm/ is owned by my user (ID 10123)! It's the only one I found in all the filesystems!
Note that "find" is available through /system/bin/busybox_1P8P1. Btw /firstboot/sqlite/jackpal.androidterm/ seems to be linked to the terminal process.
Ran rageagainstthecage-arm5.bin various times to no avail ! It didn't give me root!

[Q] Question about unlocking SGS Vibrant

Hey
So Ive been trying to unlock my phone using this thread..
http://forum.xda-developers.com/showthread.php?t=913681
I get stuck here..
Copy your nv_data.bin to temporary folder on your phone:
adb shell "mkdir /sdcard/efs"
adb push nv_data.bin /sdcard/efs
adb shell
su
ls -l -a /efs
If there is an nv_data.bin.md5 file in the directory, all is well. You should continue with these commands:
mv /efs/.nv_data.bak /efs/.nv_data.bakk
mv /efs/.nv_data.bak.md5 /efs/.nv_data.bakk.md5
rm /efs/nv_data.bin
rm /efs/nv_data.bin.md5
rm /efs/.nv2.bak
rm /efs/.nv2.bak.md5
busybox cp /sdcard/efs/nv_data.bin /efs/nv_data.bin
chmod 755 /efs/nv_data.bin
chown radio.radio /efs/nv_data.bin
exit
exit
Click to expand...
Click to collapse
How do i get to this adb shell thing?
Sorry Im just new to this android stuff. Help would be appreciated!

[Q] Got root via adb, how do I make it permanent?

Code below works as far as getting root via adb
But after reboot I get following error:
Code:
? su
link_image[1717]: 2977 missing essential tablesCANNOT LINK EXECUTABLE
Do you know what's missing here?
Code:
./adblinux push psneuter /data/local/tmp
./adblinux push su-v3 /data/local/tmp
./adblinux push busybox /data/local/tmp
./adblinux shell chmod +x /data/local/tmp/psneuter
./adblinux shell chmod +x /data/local/tmp/su-v3
./adblinux shell
$ /data/local/tmp/psneuter
# exit
./adblinux shell
# cat /proc/mounts
# mount -o rw,remount -t yaffs2 /dev/stl5 /system
# busybox cp -vaf /data/local/tmp/su-v3 /system/xbin/su
# ls -l /system/xbin/su
# busybox chown 0.2000 /system/xbin/su
# busybox chmod 06755 /system/xbin/su
# ls -l /system/xbin/su
# rm /system/bin/su
# busybox ln -s /system/xbin/su /system/bin/su
# ls -l /system/bin/su
# busybox cp -f /data/local/tmp/busybox /system/xbin
# busybox chown 0.2000 /system/xbin/busybox
# busybox chmod 0755 /system/xbin/busybox
# ls -l /system/xbin/busybox
# exit
./adblinux install -r Superuser.apk
./adblinux reboot
Hi,
I am new here, but advanced linux user
I have already done this succesfully on my X10i - thanks 1st working howto on linux OS
Theres propably mistake with these steps:
./adblinux shell chmod +x /data/local/tmp/psneuter
./adblinux shell chmod +x /data/local/tmp/su-v3
In my case these commands left errors. They have to simply mark these binaries as executable. But chmod +x * doesnt work (dont ask why ) - so I marked them as executables (su,psneuter,busybox) in desktop linux os before transfer and it worked.
The next mistake is in the line:
busybox cp -vaf /data/local/tmp/su-v3 /system/xbin/su
Because busybox is not yet in the system path - so you have to type:
# /data/local/tmp/busybox cp -vaf /data/local/tmp/su-v3 /system/xbin/su
Until
# /data/local/busybox cp -f /data/local/tmp/busybox /system/xbin
You can use busybox directly.
chmod +x doesn't work on android, you have to use chmod 777 or 666 or the like to get it to work properly.
Semperverus said:
chmod +x doesn't work on android, you have to use chmod 777 or 666 or the like to get it to work properly.
Click to expand...
Click to collapse
Or do it on linux GUI and mark as executable before transfer to Android device

camera fix - unlock botloader

Anybody get an fix for camera after unlock the botloader. (Zenfone 5 A501CG - 16GB 1.6Ghz) When i unlock my zenfone the camera show the message saying that camera isn't found and that I want 2 reboot my phone.
charlieitme said:
Anybody get an fix for camera after unlock the botloader. (Zenfone 5 A501CG - 16GB 1.6Ghz) When i unlock my zenfone the camera show the message saying that camera isn't found and that I want 2 reboot my phone.
Click to expand...
Click to collapse
In this time there isnt 100% fix, some ZF just have this problems.. you can try another unlocking methods, or just relock your phone (if you arent using cus. kernel) and camera will work again.
Thnks. In another thread anybody say that copy the lib again manually restore this function. I'll try...
charlieitme said:
Thnks. In another thread anybody say that copy the lib again manually restore this function. I'll try...
Click to expand...
Click to collapse
where the thread? I also faced this problem
AhZhi said:
where the thread? I also faced this problem
Click to expand...
Click to collapse
The developer told me in response the following
Detail: He did not mention if the commands 2 run on the terminal emulator or a terminal in Linux (like Ubuntu)
enter this command on terminal with su privileges
rm /system/lib/libxditk_DIT_Manager.so
ln -s /system/lib/ditlib_a500cg/libxditk_DIT_Manager.so /system/lib/libxditk_DIT_Manager.so
rm /system/lib/libxditk_DIT_CloverTrailPlus.so
ln -s /system/lib/ditlib_a500cg/libxditk_DIT_CloverTrailPlus.so /system/lib/libxditk_DIT_CloverTrailPlus.so
rm /system/lib/hw/sensors.redhookbay.so
ln -s /system/lib/hw/a500cg.sensors.redhookbay.so /system/lib/hw/sensors.redhookbay.so
mv /system/bin/akmd09911 /system/bin/a600cg_akmd09911
ln -s /system/lib/a500cg_akmd09911 /system/bin/akmd09911
chmod 0755 /system/bin/akmd09911
chmod 0755 /system/bin/a500cg_akmd09911
chmod 0755 /system/bin/a600cg_akmd09911
chmod 0644 /system/lib/hw/a500cg.sensors.redhookbay.so
chmod 0644 /system/lib/hw/a600cg.sensors.redhookbay.so
chmod 0644 /system/lib/hw/sensors.redhookbay.so
chmod 0644 /system/lib/ditlib_a500cg/libxditk_DIT_Manager.so
chmod 0644 /system/lib/ditlib_a500cg/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/lib/ditlib_a600cg/libxditk_DIT_Manager.so
chmod 0644 /system/lib/ditlib_a600cg/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/lib/libxditk_DIT_Manager.so
chmod 0644 /system/lib/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/build.prop
if it isnt still working. Copy manually camera libs on /system/lib/ditlib_a500cg/ to /system/lib/
Detail2: I tried to extract an updated ROM files and move to the directory that was Mentioned by TWRP or root explorer, and it still fails.
The solution i found:
For everything return to work, I got access to official rom 2.21.40.30, and used the ADB 2 block botloader and install this version and then updating on until 2.22.40.54. After updating over the air up there, you need to download the version 3.23.40.52 and put the zip in memory, so you'll be back with lollipop and download updates over the air to 3.24.40.87 which is the last update for zenfone 5.
charlieitme said:
The developer told me in response the following
Detail: He did not mention if the commands 2 run on the terminal emulator or a terminal in Linux (like Ubuntu)
enter this command on terminal with su privileges
rm /system/lib/libxditk_DIT_Manager.so
ln -s /system/lib/ditlib_a500cg/libxditk_DIT_Manager.so /system/lib/libxditk_DIT_Manager.so
rm /system/lib/libxditk_DIT_CloverTrailPlus.so
ln -s /system/lib/ditlib_a500cg/libxditk_DIT_CloverTrailPlus.so /system/lib/libxditk_DIT_CloverTrailPlus.so
rm /system/lib/hw/sensors.redhookbay.so
ln -s /system/lib/hw/a500cg.sensors.redhookbay.so /system/lib/hw/sensors.redhookbay.so
mv /system/bin/akmd09911 /system/bin/a600cg_akmd09911
ln -s /system/lib/a500cg_akmd09911 /system/bin/akmd09911
chmod 0755 /system/bin/akmd09911
chmod 0755 /system/bin/a500cg_akmd09911
chmod 0755 /system/bin/a600cg_akmd09911
chmod 0644 /system/lib/hw/a500cg.sensors.redhookbay.so
chmod 0644 /system/lib/hw/a600cg.sensors.redhookbay.so
chmod 0644 /system/lib/hw/sensors.redhookbay.so
chmod 0644 /system/lib/ditlib_a500cg/libxditk_DIT_Manager.so
chmod 0644 /system/lib/ditlib_a500cg/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/lib/ditlib_a600cg/libxditk_DIT_Manager.so
chmod 0644 /system/lib/ditlib_a600cg/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/lib/libxditk_DIT_Manager.so
chmod 0644 /system/lib/libxditk_DIT_CloverTrailPlus.so
chmod 0644 /system/build.prop
if it isnt still working. Copy manually camera libs on /system/lib/ditlib_a500cg/ to /system/lib/
Detail2: I tried to extract an updated ROM files and move to the directory that was Mentioned by TWRP or root explorer, and it still fails.
The solution i found:
For everything return to work, I got access to official rom 2.21.40.30, and used the ADB 2 block botloader and install this version and then updating on until 2.22.40.54. After updating over the air up there, you need to download the version 3.23.40.52 and put the zip in memory, so you'll be back with lollipop and download updates over the air to 3.24.40.87 which is the last update for zenfone 5.
Click to expand...
Click to collapse
if i want to use cm13.1 , it work? because this method is only for stock rom

Categories

Resources