FORUMS
Remove All Ads from XDA

Rooting Sony's e-reader DPT-RP1 and DPT-CP1

20 posts
Thanks Meter: 11
 
By sartrism, Junior Member on 11th August 2017, 05:55 AM
Post Reply Email Thread
21st November 2018, 03:51 AM |#111  
Member
Thanks Meter: 6
 
More
Quote:
Originally Posted by Anti-paradox

I tried to ssh into the device and try some sudo commands, but it seems that I am not able to gain this su access.
This is what pops up when I type "get-su-bin"
[info] Mounting /system partition..
[error] name 'folder' is not defined
How would this be fixed?
Thanks Again!

Open python_api/libDPT.py

Find this line:
Code:
if not self.diagnosis_mkdir(folder):
Replace it with:

Code:
if not self.diagnosis_mkdir(mountpoint):
 
 
21st November 2018, 03:58 AM |#112  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by silvertriclops

Open python_api/libDPT.py

Find this line:

Code:
if not self.diagnosis_mkdir(folder):
Replace it with:

Code:
if not self.diagnosis_mkdir(mountpoint):

Emm. the bug is somehow still there:
here's what I got:
[info] Mounting /system partition..
[info] /mnt/Lucifer already exist
[info] Mounted to
[error] Nothing happened..
I checked the InteractivePy file, it should be the problem with mount point(Although I have no idea about what this will do)
Could you check this issue again? Many Thanks!
21st November 2018, 04:11 AM |#113  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by Anti-paradox

Emm. the bug is somehow still there:
here's what I got:
[info] Mounting /system partition..
[info] /mnt/Lucifer already exist
[info] Mounted to
[error] Nothing happened..
I checked the InteractivePy file, it should be the problem with mount point(Although I have no idea about what this will do)
Could you check this issue again? Many Thanks!

Update the script and try again. The folder check was flipped.
21st November 2018, 04:12 AM |#114  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by Anti-paradox

Emm. the bug is somehow still there:
here's what I got:
[info] Mounting /system partition..
[info] /mnt/Lucifer already exist
[info] Mounted to
[error] Nothing happened..
I checked the InteractivePy file, it should be the problem with mount point(Although I have no idea about what this will do)
Could you check this issue again? Many Thanks!

I think this could be the issues, in libDPT.py, line 166:
if self.diagnosis_isfolder('{}/xbin'.format(mountpoint)):
return mountpoint
and same file in line 120:
'''
check if file exists given file path
'''
cmd = "[[ -d {} ]] && echo 'YESS' || echo 'NONO'".format(folderp)
return 'YESS' in self.diagnosis_write(cmd)

where it is set to false, which is why the mount point is left empty, leading to failure.
21st November 2018, 04:17 AM |#115  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by Anti-paradox

I think this could be the issues, in libDPT.py, line 166:
if self.diagnosis_isfolder('{}/xbin'.format(mountpoint)):
return mountpoint
and same file in line 120:
'''
check if file exists given file path
'''
cmd = "[[ -d {} ]] && echo 'YESS' || echo 'NONO'".format(folderp)
return 'YESS' in self.diagnosis_write(cmd)

where it is set to false, which is why the mount point is left empty, leading to failure.

Yea I just fixed it. Thanks for trying out. I don't have a clean device now so I can't fully test it. See if with the update you get it through.
21st November 2018, 04:18 AM |#116  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by yanzi

Update the script and try again. The folder check was flipped.

many thanks!
I just tested this version, issues completely solved!
Sudo access reclaimed successfully.
The Following User Says Thank You to Anti-paradox For This Useful Post: [ View ] Gift Anti-paradox Ad-Free
21st November 2018, 04:20 AM |#117  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by Anti-paradox

many thanks!
I just tested this version, issues completely solved!
Sudo access reclaimed successfully.

Can you go to `adb shell` and then `su` to test it? Just need confirmation as I did the script after I manually did everything.
21st November 2018, 04:21 AM |#118  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by yanzi

Can you go to `adb shell` and then `su` to test it? Just need confirmation as I did the script after I manually did everything.

Yes it has been tested, rock solid.
The user appears as "root"
Also, where would be the best place to install Apks in order for them to show up on the home screen?
Thanks in advance

Here's what I found under system/apps:
ActionExecutor
ActionSenderService
AppLauncher
ApplicationGateway
BasicDreams
Bluetooth
Browser
Can we somehow evoke the built-in browser?
The Following User Says Thank You to Anti-paradox For This Useful Post: [ View ] Gift Anti-paradox Ad-Free
21st November 2018, 04:27 AM |#119  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by Anti-paradox

Yes it has been tested, rock solid.
The user appears as "root"
Also, where would be the best place to install Apks in order for them to show up on the home screen?
Thanks in advance

It won't show up on home screen unless you install a launcher. There are tons of places to download APKs.

But I want to warn you and anyone who gets su:

It will leave your system in vulnerable states. Try to avoid installing any suspicious APKs. It is now as weak as any other Android rooted devices.
The Following User Says Thank You to yanzi For This Useful Post: [ View ] Gift yanzi Ad-Free
21st November 2018, 05:06 AM |#120  
Junior Member
Thanks Meter: 0
 
More
How to enable ADB on dpt1
1. Launch the "Android setting" via a Launcher

2. Go to "System" and find "About phone"

3. Find "Build number", and click it in 7 times. The machines says you're the "Developer".

4. Back to "System", there is new Menu "Developer options" displayed.

5. Go to "Developer options", and find "USB debugging", enable it.

6. Connected the RP1 and PC via USB cable

7. On PC, run the adb devices, it will find the device.

8. With ADB, you can do anything you want

---------- Post added at 05:06 AM ---------- Previous post was at 05:02 AM ----------

Quote:
Originally Posted by yanzi

It won't show up on home screen unless you install a launcher. There are tons of places to download APKs.

But I want to warn you and anyone who gets su:

It will leave your system in vulnerable states. Try to avoid installing any suspicious APKs. It is now as weak as any other Android rooted devices.

The home button is defined from /etc/dp_extensions, you could copycat the "NoteList" into "Browser" as following
Browser_extension.xml
Browser_strings-en.xml
Browser_strings-en.xml.bak
Browser_strings-ja.xml
Browser_strings-zh_CN.xml
ic_homemenu_browser.png

The URI for Browser is component=com.android.browser/.BrowserActivity
21st November 2018, 05:16 AM |#121  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by p4s2wd

1. Launch the "Android setting" via a Launcher

2. Go to "System" and find "About phone"

3. Find "Build number", and click it in 7 times. The machines says you're the "Developer".

4. Back to "System", there is new Menu "Developer options" displayed.

5. Go to "Developer options", and find "USB debugging", enable it.

6. Connected the RP1 and PC via USB cable

7. On PC, run the adb devices, it will find the device.

8. With ADB, you can do anything you want

---------- Post added at 05:06 AM ---------- Previous post was at 05:02 AM ----------



The home button is defined from /etc/dp_extensions, you could copycat the "NoteList" into "Browser" as following
Browser_extension.xml
Browser_strings-en.xml
Browser_strings-en.xml.bak
Browser_strings-ja.xml
Browser_strings-zh_CN.xml
ic_homemenu_browser.png

The URI for Browser is component=com.android.browser/.BrowserActivity

Many thanks to this follow up, since I am also thinking about adding the default browser to my home screen.
Could you clarify on "copycat the "NoteList" into "Browser"?
Are these files you listed pre-existing files? And if so, where do I find them?
I am a bit confused about what this will actually do...
Thanks!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes