[General Questions and Answers] zyper95:
Panasonic Eluga Power rooting instructions...

As promised here are the steps: (This seems to look like a temporary root, as you will loose it once the device rebooted) But still it's a good primary step. For the source code it can be downloaded from here. Panasonic Eluga Power Source Code

goroh_kun

2012/10/18

root privileges acquisition & tomoyo released experimental version in

the p-07d

things to do

Run:

1. >adb restore p-07d.ab

I press OK authentication

After the restore is finished

2. Open another command prompt and type the following:

>adb shell

$cd /data/data/com.android.settings/a/

$ls -l -d

drwxrwxrwx system system a

- check directory called A exists, it is world readable, writable as

show above

3. $ ls -l

⇒ file00 〜 file99 check if files exists

Delete all file from file00 ~ file99

run the command below

4. >adb shell

$cd /data/data/com.android.settings/

$rm -r a/*

change permissions to 777 /persist

This is the tricky part as you need to to do this using two command prompt, one running the adb restore p-07d.ab while the other on the shell command running ln -s /persist a/file99 command.

5. First run: >adb restore p-07d.ab while it is restoring on the other command prompt run in shell $ ln-s / persist a/file99

6. Now lets check the permission to folder /persist by typing on the command prompt that is already in shell.

$ ls -l -d /persist

drwxrwxrwx system system persist <--(you should see this)

Now move on your other command prompt window and run the following commands. (you can download the needed file at this link

Then run the command below to push the files needed for rooting:

>adb push init.cne.rc /data/local/tmp

>adb push p07dgetroot /data/local/tmp

>adb push xsh /data/local/tmp/

>adb push libQ.so /persist

>adb shell rm /persist/init.cne.rc

>adb shell ln -s /data/local/tmp/init.cne.rc /persist/init.cne.rc

>adb reboot

The next step is kinda hard to understand and I qoute: "/persist at Startup directory of the recovery process because it will not be restored and persist the only symbolic links should be a basic /data/local/tmp to keep the change."

After re-move environment variable is changed to check (LD_PRELOAD= /presist/libQ.so and be sure it is).

7. > adb shell

$echo $LD_PRELOAD

/persist/libQ.so <--(you should see this)

8. To Unlock Tomoyo, follow this steps:

> adb shell

$ cat /data/local/tmp/p07dgetroot > /tmp/xsh

$ ls -l /tmp/xsh

-rw-rw-rw- shell shell xsh <--(you should see this)

Make sure that wirelss LAN is ON before doing the command below:

9. WLAN ON / TURN OFF WLAN / TURN ON WLAN (wait to be connected before typing the below command or you will have to do it again)

$ ls -l /tmp/xsh

-rwsr-sr-x root root xsh <--(you should see this)

$ /tmp/xsh

/tmp/xsh

/tmp/.mem fd=3

read ret = 256

write ret = 256

At this stage, Tomoyo is now unlocked

10.

$rm /tmp/xsh

$cat /data/local/tmp/xsh > /tmp/xsh

11. WLAN ON / TURN OFF WLAN / TURN ON WLAN (wait to be connected before typing the below command or you will have to do it again)

$ls -l /tmp/xsh

-rwsr-sr-x root root xsh <--(you should see this)

12. $/tmp/xsh

$(precmd)$USER@$HOSTNAME:${PWD:-?} $ <--(you should see

this)

Here is a shell with root privileges, so stand up and be able to work a variety. You can also install the su

13. $(precmd)$USER@$HOSTNAME:${PWD:-?} $

$ mount -o remount,rw /system /system

$ chmod 777 /system/app/

$ chmod 777 /system/bin/

$ chmod 777 /system/xbin/

Open another command prompt:

adb push Superuser.apk /system/app/

adb push su /system/bin/

adb push busybox /system/xbin/

Go back to ($(precmd)$USER@$HOSTNAME:${PWD:-?} $) window:

chown root.root /system/bin/su

chmod 6755 /system/bin/su

chmod 644 /system/app/Superuser.apk

chown root.shell /system/xbin/busybox

chmod 755 /system/xbin/busybox

chmod 755 /system/app/

chmod 755 /system/bin/

chmod 755 /system/xbin/

Verify root access by installing "Root Checker".

Note: each time you reboot your device you will need to run Tomoyo Unlock script to regain root access (Step 8 - 12) which I re-wrote below:

8. Tomoyo Unlock

> adb shell

$ cat /data/local/tmp/p07dgetroot > /tmp/xsh

$ ls -l /tmp/xsh

-rw-rw-rw- shell shell xsh <--(you should see this)

WLAN ON / OFF / ON

$ ls -l /tmp/xsh

-rwsr-sr-x root root xsh <--(you should see this)

$ /tmp/xsh

/tmp/xsh

/tmp/.mem fd=3

read ret = 256

write ret = 256

At this stage, tomoyo is released

$rm /tmp/xsh

$cat /data/local/tmp/xsh > /tmp/xsh

WLAN ON / OFF / ON

$ls -l /tmp/xsh

-rwsr-sr-x root root xsh <--(you should see this)

$/tmp/xsh

$(precmd)$USER@$HOSTNAME:${PWD:-?} $ <---(you should end up here to regain root access, if not redo it again)

Proof: