[Q]Installing Debian/Ubuntu Server on OTT Tv Box M8 - General Questions and Answers

I have the ott tv box m8, which is the square variant, which I don't really use any more. Since people are converting their Raspberry Pi into a server, I thought I'd give it a go on the android box.
I managed to root the device, downloaded the Debian iso image file, but have no idea how to proceed from here.
Anyone kind enough to point me in the right direction to install it?

You won't be able to completely remove Android, but you can run Linux off of its kernel.
Is your device rooted? If so Linux Deploy can do the trick.
What would you use this server for? Chances are there's an app for it. You may want to check out Servers Ultimate Pro.

jerbear294 said:
You won't be able to completely remove Android, but you can run Linux off of its kernel.
Is your device rooted? If so Linux Deploy can do the trick.
What would you use this server for? Chances are there's an app for it. You may want to check out Servers Ultimate Pro.
Click to expand...
Click to collapse
Personal sites mostly, nothing heavy. I'd like to access them over the Internet though.
I do have root access, unfortunately the app you suggested is not free. Is there another alternative?
I'm also not very experienced when it comes to flashing on Android hardware. What's the reason for not being able to remove Android and install Debian/Ubuntu on it?

ScarfaceMT said:
Personal sites mostly, nothing heavy. I'd like to access them over the Internet though.
I do have root access, unfortunately the app you suggested is not free. Is there another alternative?
I'm also not very experienced when it comes to flashing on Android hardware. What's the reason for not being able to remove Android and install Debian/Ubuntu on it?
Click to expand...
Click to collapse
The bootloader is not made for booting Ubuntu. It boots a modified Linux kernel that launches Android.
There is a lite version of Servers Ultimate. I'm not aware of what the restrictions are.
Amazon has deals on Servers Ultimate Pro a lot. I got it when it was free a couple weeks ago.

Related

Linux applications ported to Android

Hi all of you, XDA fans!
After googling and looking in XDA forums, I was not able to find any ways to port linux apps to Android and was wondering if it was even possible.
Knowing that Android runs on 2.6.25 kernel, I thought that maybe it was possible.
I recently purchased a G1, successfully rooted it, and now am looking for ways to port linux apps to Android.
Is there a way to build apps from source code on Android, using the build tools provided with desktop distros? (I am using Ubuntu atm).
Anybody want to share some lights on this?
I'll keep you posted if I find anything intresting...
XDA ROCKS!!!
I'm looking into this myself, especially with respect to vlc, mplayer, and some console emulators...all of which have been compiled for ARM before, most successfully on the GP2X handheld.
Cross-compiling apps on an Ubuntu system is possible, but I'm not sure how well compiled apps will work with the Android framebuffer. There's also no x-windows system, so you know graphical apps that need it won't cut it at all.
Let us know what you find out.
Found this: Debian on Android
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Would be nice to be able to compile on android rather than on eclipse on ubuntu...
I've got no programming knowledge, that's why I'm looking for a solution allowing to compile directly on android...
"There's also no x-windows system, so you know graphical apps that need it won't cut it at all."
I was thinking as an experience to compile aircrack-ng, and it has no gui... The hardware might not support it but tha g1 might be able to handle it.
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
enable telnetd from terminal and see if you can telnet from your computer to it via 3G (i.e. your wireless computer ---> G1)
My G1's edge ip is 25.97.51.2XX tried to telnet in, host unreachable. Did a traceroute from both my web server and home computer, both showed that the 3rd hop and all hops after that did not respond, and as expected ICMP echo (ping) sent to the phone timed out. Therefor we can i think say that T-mobile was not dumb and put a firewall up as any network administrator would. Gonna double check the IP of my G1 and i'll get back if it figure out my ip is different or something.
EDIT: pinged my router this time, got the IP 208.54.4.61, still same story times out and my G1 died so im going to reboot it and plug it in to try again.
well i'm sure t-mobile was wiser on that end, but did you try telnetting on port 80? also if you were to get a webserver running on your g1, you could always just use a non-standard port (81?) and just use a service like dyndns to control the port redirect, since i'm assuming they're already managing the dyndns updates.
rak500 said:
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Click to expand...
Click to collapse
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
If you have JF 1.3+ you don't need to insmod ext2.ko. Just type "busybox insmod ext2".
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
Do you think I can have it working on my rooted UK RC8?
I want to try it but it seems the configuration are slightly different for RC19 and RC29 according to the tutorial, so I thought it might be different on RC8 too.
I tried the web server in the market, didn't seem to work on edge
I'm not quite sure but I believe that T-mobile's VPN add-on might provide an externally accessible IP.
does anyone know if you can compile samba for the g1 ?
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
kash04 said:
does anyone know if you can compile samba for the g1 ?
Click to expand...
Click to collapse
I am using Samba by way of Debian. So, yeah, it's possible.
DDM123 said:
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
Click to expand...
Click to collapse
It's not stupid. If it works for you and is to your liking, go for it. It is debatable, however, whether portage (as good as it is) is any better for the G1 than Debian's packaging system. Packages compiled for the ARM architecture are already optimized for ARM processors. There wouldn't be as much self-compiling gain in this architecture as there would be optimizing between i386, i686, amd-64, etc. You'd be doing a lot of work and wasting a lot of time having portage compile your apps...and you'd have very little pluses to show for it.
Oh ok, I just thought that many apps were being compiled manually and portage might make some of that easier. I figured there wouldn't be any speed gains over Debian or other binary-based distros, and the barebones installation of gentoo is absolute hell, but I hoped it might get us into full-blown X quicker somehow.
It could definitely work with Portage. Keep in mind, though, that apt-get under Debian *can* download and build the source into a package automatically as well.
Web Server on TMO
Hey guys,
I'm new on XDA, getting my galaxy S tomorrow, I was a nokia fan up untill maemo 5 and the N900...
Anyway, one thing to remember is - Cellular Operators usually manage their own IP address pools, they don't give "Real" IP addresses to cellular phone, but rather use NAT services and all sort of nasty hacks to the IP system.
Therefore, in order for port 80 (http web server) to work on your server, it's not enough to just run it and get the IP, you also need the provider/operator to forward TCP packets coming to your External IP on port 80 to be forwarded to your internal IP > to your phone.
This, will never happen. If it will, you will get charged heavily for this as it will increase traffic and allow upstream traffic to your phone, and also risk your phone to potential hackers.
Edit : And I just noticed I resurrected an almost 2 years old thread Oopsy.
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
get dyndns account there is an app on the market that will sync it.

[Q] Dual-booted TF101 optimised for work.

Greetings,
I have looked at information on the internet (including this forum) with regards to loading different a different OS onto the TF101. There is a lot of information on how to do it, but very little explaining how satisfactory the result is.
Here is my situation:
I have ordered a refurbished TF101 + Dock for under $400 delivered. This is covered by a 12-Month warranty.
My plan was to use this device primarily as a work-oriented device. I am studying law and am required to take excessive notes, apply for clerkships, and write fully referenced (NB: footnoted) essays.
I only have 2gb per month of mobile data which means I spend a lot of time at various educational institutions. I also work mobile pretty often (train ride into city, etc). Essentially I'll be using this primarily as a netbook with an awesome battery life
While the TF101 seems like an perfect device for someone with my lifestyle, the lack of any android app which allows for footnoting is unforgivable. The decision to dual-boot ubuntu is a logical solution.
Onto my questions:
1. Is there any issue setting up dualboot on a TF101 from a bootable USB drive on a windows based OS?
2. How does ubuntu run on the TF101 in terms of productivity? I have read about what functions are supported; but I'm wondering how it all works in practice. It doesn't seem like anyone has turned their TF101 into an ultrabook with a killer battery life and tablet functionality.
3. I have read that bricking is always reversible. Is this the case? I don't plan on deviating from instructions from xda. I understand that there is always a risk, I just want to know my chances.
4. Does it matter whether HC or ICS is loaded on this tablet when it arrives? Are there any steps I should take to update the OS before dual-booting
5. Are there any drawbacks to clocking to 1.4Ghz? Does this affect battery life and if so, to what extent?
6. Is there a lite version of ubuntu I could dual-boot on my TF101 to improve performance/work efficiency? If so, how would this change the instructions listed: http://forum.xda-developers.com/wik..._an_Asus_EEEPad_Transformer#Installing_Ubuntu. Would installing a lite version be necessary? Could the TF101 handle full office applications running a full version of ubuntu without increasing the clock speed? I'm just trying to get a sense of how sharp the TF101 feels running programs on ubuntu.
7. Are there any other things I should consider to optimise my TF101 to perform at the level I indicated?
Thanks for bearing with me. If it seems like I've bought the wrong device, I just find it amazing that I could have a low-spec ultrabook and a tablet with a battery life better than both for under $400. I figure I can boot android for tablet use (calendar, browsing, reading) and ubuntu when I need to get some serious office-type work done
Thanks again for reading.
Let me try to address these one at a time to help you out with your purchase, also glad to see you pick the TF It's a wonderful tablet.
"This is covered by a 12-Month warranty." - If you install Ubuntu, root or otherwise, it will almost Surely void this warranty, so be careful as it is refurbished, inspect carefully and make sure it isn't a lemon (bad tablet).
"the lack of any android app which allows for footnoting is unforgivable" - Quickoffice seems to support this, although it is $20 -- link.
1. A bootable USB stick setup on windows WILL NOT work on the tf, you must use the Android Debug Bridge to install it on the tf. Instructions in link below.
2. It works, but not like desktop ubuntu, as the ARM processor doesn't support 32-bit (x86) or 64-bit applications. So WINE WILL NOT work, AT ALL.
Read what will and will not work here.
3. This is heavily dependant on the version of your tablet, older (b60 or lower) devices have sbkv1 and therefore support NVFlash, which means you can always (unless you.. microwaved your tablet or something..) restore a brick. If you have a newer (most b70s and all b80s and up) sbkv2 tablet like mine, it will not work. If you follow instructions carefully when messing with your device though it's pretty hard to COMPLETELY brick it, although all user data can be at risk.
NOTE! If you have a tablet with sbkv2 you Can Not install Ubuntu on it with the installer. I won't say At All, as there is probably a way, but it would be very hard.
4. You would probably want to update to ICS first, Asus provides this update through ota updates pushed to the transformer or off of their website. It is a smoother experience. Or you could root and flash a custom ROM, (even smoother! ) Also see #5
5. If you want to overclock to 1.4 Ghz you Must Root and flash a custom rom and Kernel (important) that supports overclocking, and may not be able to use ubuntu at the same time as it seems to overwrite the recovery slot (correct me if I'm wrong someone). It does affect battery life by a noticeable amount, (roughly 20% would be my guess) and you really shouldn't need to OC if you're just word processing though. The tf is a pretty fast tablet xD I overclock mine to 1.2 for general use and gaming.
6. Searched, and not that I could find, sorry :/
7. Yes, flash a custom Rom and Kernel, there are many to choose from! The ones I use work great and are in my signature. ARHD Rom and TastyMehIcs kernel. It's all up too you though.
In conclusion I think you would be better off using android as the Ubuntu is pretty limited, quickoffice should be fine. Go ahead and optimize it though, and if you have a sbkv1 tablet you can try it out!
ToD
Edit: You could also look into remote desktop to computer to word process, but that would lock you to your 3g wifi speed and be non-native. -shrugs- Splashtop HD is pretty fast on a home n+ wifi network.
Thanks!
Thanks for your response - it changes everything!
"the lack of any android app which allows for footnoting is unforgivable" - Quickoffice seems to support this, although it is $20 -- link.
Click to expand...
Click to collapse
I actually spent quite a while looking around for android apps with full office functionality. Like quickoffice, I found that numerous apps supported viewing footnotes, but none which actually allowed for their creation.
The only solution I've found for footnote creation via android is google docs desktop view, but it's really barely functional at best on android.
I'd also like to use freeware when possible.
1. A bootable USB stick setup on windows WILL NOT work on the tf, you must use the Android Debug Bridge to install it on the tf. Instructions in link below.
Click to expand...
Click to collapse
Ok, I've never actually installed linux on my computer, but I'll cross that bridge when I get to it
2. It works, but not like desktop ubuntu, as the ARM processor doesn't support 32-bit (x86) or 64-bit applications. So WINE WILL NOT work, AT ALL.
Read what will and will not work here.
Click to expand...
Click to collapse
I don't think this will be a problem. For what I'll use the tablet for, it seems like I'll have plenty of office, video, and utility applications that run natively on ubuntu.
3. This is heavily dependant on the version of your tablet, older (b60 or lower) devices have sbkv1 and therefore support NVFlash, which means you can always (unless you.. microwaved your tablet or something..) restore a brick. If you have a newer (most b70s and all b80s and up) sbkv2 tablet like mine, it will not work. If you follow instructions carefully when messing with your device though it's pretty hard to COMPLETELY brick it, although all user data can be at risk.
NOTE! If you have a tablet with sbkv2 you Can Not install Ubuntu on it with the installer. I won't say At All, as there is probably a way, but it would be very hard.
Click to expand...
Click to collapse
This is a problem; I've determined the item in the mail is an sbkv2.
This link http://forum.xda-developers.com/showthread.php?t=1345049 says I can still root the sbkv2. Are there any implications that would prevent me from dual-booting ubuntu?
Otherwise, you've convinced me that clocking would be unnecessary. I really would like to dual-boot ubuntu eventually however for the flexibility (and freeware-ness) of the applications.
For instance, I might download a video clip or pdf, need to unzip it and then find it needs a weird codec to play.
I'm not really a fan of "apps" on mobile devices. I find that they are generally very limiting: they use too much processing power for what they are, they often have an unreasonable price-tag/bloatware, and they are designed for small mobile devices, so the interface lacks functionality.
For example; none of the android office apps support footnote creation. Only some support viewing. Clearly the hardware of the TF101 would allow it to footnote easily, so I feel like I should have the ability to use this hardware to achieve the functionality of a netbook
That said, I'm keen to use the whole android/mobile app interface when I've separated the tablet from the dock and recline to watch youtube or check my emails
Alright, I'll look into it more as to getting Ubuntu on a sbkv2, as I'd want to do it too, but for now, assume no as I've looked into it before and no cigar.. I believe there is a chroot method but that is slow buggy non-native etc so it's probably not what you're looking for. Using desktop view in Dolphin Browser HD is actually about the same as pc browsing, just tested on google docs. Or you could always type out your docs on the tablet then get on a pc/desktop view and add footnotes later. (roundabout, I know x.x)
Rooting the sbkv2 and romming is easy, but sadly Nvflash doesn't work at all till ASUS unlocks the bootloader or someone cracks it.
"I'm not really a fan of "apps" on mobile devices. I find that they are generally very limiting: they use too much processing power for what they are, they often have an unreasonable price-tag/bloatware, and they are designed for small mobile devices, so the interface lacks functionality. "
The way android works helps to manage processing power very well, so you shouldn't be worried about a smooth experience if you root rom and optimize. As for the design most major apps have an HD version specifically for tablets, and many are free (if you can get past ads or use a blocker ) Any other questions/concerns?
Thing O Doom said:
Any other questions/concerns?
Click to expand...
Click to collapse
At this point I'm only really trying to figure out whether there is a way to dual-boot ubuntu. I have more reading to do, but my current reading suggests that it's possible - just not sure how accessible the process is to someone like me.
Law here allows us to return an unopened product within 7 days of purchase, so I will have to weigh up whether I can reasonably expect a way to run ubuntu in the future, and whether I should just have fun with android in the meantime.
I'll be happy to keep it if I thought there'd be a way to run ubuntu (or asus releases the key) sometime in the next couple of months. Otherwise I've just spent $400 on something that my current (old, heavy, 1hr battery) laptop does better.
EDIT: Remote desktop isn't a possibility due to my lack of internet.
2ND EDIT: I've made a bit of a mistake: the model no is TF101-1B180A, but as far as I know it is skbv1 (fingers crossed) which means I can use the PRIME installer. I guess I shall find out tomorrow morning!
Thanks again for the help!
What you really need to find out is the serial number - If it's B60 or lower it is sbkv1, if it's B70 it could be either (mine is a b70 but is sbkv2, my friends is a sbkv1, we both got it in best buy on the same day ) The ubuntu help and installer thread in the dev forum can help you if you have sbkv1, I can help walk you through everything if you'd like too. Asus is 'planning' to release the bootloader, which will happen eventually as people continue to pester them, and there is a way I'm sure.
Just an F.Y.I it is possible to install Ubuntu on an SBK2 device followinf the instructions in this thread http://forum.xda-developers.com/showthread.php?t=1537566
As for the speed of it, it is not great(I did the mount-loop install on the internal storage which is at least faster than installing on an sdcard). I havn't tried overclocking yet to see if that helpls. Also a number of things do not work at all/ need some tweaking to work.
how about tethering from wifi from your phone and using something like splashtop?
I have a TF101G so the internet issue is a bit less troublesome.
That guide you linked seems a bit roundabout, but I'll try it out and if it works TYSM xD Thanks. ^^
It is layed out pretty well in the third post. I used the Dual-boot with loopmounted image option and just followed the instructions in that post. Just make sure you have rooted and installed cwm recovery.
Also I am not sure if the android kernels linked in the post are ics or hc ones, but if you upgrade to ics there are a couple kernels available in the dev section.
Theres an app called ubuntu installer, it isn't native but may work about the same, also testing now.
Sent from my Transformer TF101 using XDA
Thing O Doom said:
Theres an app called ubuntu installer, it isn't native but may work about the same, also testing now.
Sent from my Transformer TF101 using XDA
Click to expand...
Click to collapse
I wouldn't bother with that, it is far too slow to be useful in my experience.
EDIT: deleted because it sounds negative. Basically I'll need to try to return/sell this if I can't get ubuntu working because android cannot do what I need it to.
As I pointed out previously it doesn't matter if you have an sbkv2 device as far as installing Ubuntu is concerned.
Just follow the instructions here after rooting the device.
It is not perfect though, there are a few bugs and as far as I know no one has got hardware graphical acceleration working yet so you can't watch videos. I think sound isn't working yet either.
Also don't expect the same programs you would find in windows or even linux normally as many programs have yet to be ported to arm based linux.
Nairbly said:
As I pointed out previously it doesn't matter if you have an sbkv2 device as far as installing Ubuntu is concerned.
Just follow the instructions here after rooting the device.
It is not perfect though, there are a few bugs and as far as I know no one has got hardware graphical acceleration working yet so you can't watch videos. I think sound isn't working yet either.
Also don't expect the same programs you would find in windows or even linux normally as many programs have yet to be ported to arm based linux.
Click to expand...
Click to collapse
Thanks for the instructions.
I NEED this device to be able to perform full word procesing as a minimum. I also want to be able to have multiple windows open so I can actually see what I'm writing, and I would like to be able to see what I'm typing as I type it instead of a second later. I need to be able to use keyboard shortcuts and select text easily. Lastly, I need to be able to streamline the OS so it can run quickly.
If a TF101 with ubuntu dual-booted is unable to accomplih this, somebody please tell me now.
umfortunately I have:
Chip UIP: 0x42890884140b097
SBkv2
Now looking up instuctions to root SBKv2
Nairbly said:
As I pointed out previously it doesn't matter if you have an sbkv2 device as far as installing Ubuntu is concerned.
Just follow the instructions here after rooting the device.
It is not perfect though, there are a few bugs and as far as I know no one has got hardware graphical acceleration working yet so you can't watch videos. I think sound isn't working yet either.
Also don't expect the same programs you would find in windows or even linux normally as many programs have yet to be ported to arm based linux.
Click to expand...
Click to collapse
Nairby,
You didn't mention how to root an SKBv2. Would you use the Universal root toolkit 7.1 found here http://forum.xda-developers.com/showthread.php?t=1185104 ?
If its on ICS: Vipermod option 1.
If it's on HC, root with the razorclaw tool by downgrading the firmware then flash an ics rom. Very easy and no computer required.
Thing O Doom said:
If it's on HC, root with the razorclaw tool by downgrading the firmware then flash an ics rom. Very easy and no computer required.
Click to expand...
Click to collapse
I receive the message "this device lacks the needed file (bad luck)" after insalling

A question on the possibility of using desktop applications with rooted phones?

Hello guys,
So I have rooted my tablet and enjoyed the perks of rooting. I haven't rooted my phone yet because I am planning on buying another one but before I do that I want to ask something about rooting. I know that several people used LinuxDeploy and rooting to get Linux distro up and running. Just wondering if this would allow us to use desktop applications on an android device? I was thinking that since I do alot of analysis work for my engineering research projects that if I can use my phone to run some programming codes, matlab, CAD and maybe even OpenFoam? So I am wondering if rooting and using linux would allow me to fully utilize the SOC and maybe run desktop grade software when I am on the go or in a meeting showing something? Most vanilla andriod apps aren't robust enough to allow me to open and edit script files or 3d models/analysis data?
I want to attempt to try this on my nexus 7 (first generation) as a proof of concept?
Also if I use it for this purpose, can I still run my paid applications and google play services on a rooted device normally?
Thanks :laugh:
EternalSeekerX said:
Hello guys,
So I have rooted my tablet and enjoyed the perks of rooting. I haven't rooted my phone yet because I am planning on buying another one but before I do that I want to ask something about rooting. I know that several people used LinuxDeploy and rooting to get Linux distro up and running. Just wondering if this would allow us to use desktop applications on an android device? I was thinking that since I do alot of analysis work for my engineering research projects that if I can use my phone to run some programming codes, matlab, CAD and maybe even OpenFoam? So I am wondering if rooting and using linux would allow me to fully utilize the SOC and maybe run desktop grade software when I am on the go or in a meeting showing something? Most vanilla andriod apps aren't robust enough to allow me to open and edit script files or 3d models/analysis data?
I want to attempt to try this on my nexus 7 (first generation) as a proof of concept?
Also if I use it for this purpose, can I still run my paid applications and google play services on a rooted device normally?
Thanks :laugh:
Click to expand...
Click to collapse
While you can run a Linux distro on an android device and even run some desktop applications anything heavy will generally not run or run very poorly so it depends on what applications you want to run and the power of your android device.

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

Update (5/18/2019)
Since the first tool was released, HappyZ has improved many features so I think I can just refer to
* HappyZ's rooting guide: https://github.com/HappyZ/dpt-tools/wiki/The-Ultimate-Rooting-Guide
- The only thing I want to add as Windows user is (because the guide is for Mac/Linux users) it gets much easier if you use Linux terminal like cygwin, and the port name should be something like COM# where # can be found in Device Manager by comparing before/after you attach the device.
* HappyZ's upgrade guide: https://github.com/HappyZ/dpt-tools/wiki/The-Upgrade-Guide (Recommend to read this before/after you update the new firmware.)
You may donate a cup of coffee to him there Thanks to all others who contributed a lot.
--
Update (12/02/2018) -- These are outdated.
Finally we manage to root the device! Many thanks to all of your efforts.
Just refer to HappyZ's well written guide: https://github.com/HappyZ/dpt-tools
For whom have never used python like me (and probably using Windows):
(1) Install Python 3 and add it to PATH.
(2) Install MINGW64 and run scripts here instead of Powershell due to xxd issue if you are on Windows.
(2) pip httpsig pyserial on bash.
(3) Download HappyZ's dpt-tools and unzip.
(4* this issue is fixed by HappZ)
(5) Follow HappyZ's guide. You should execute dpt-tools.py in the folder you unzipped to use get-su-bin because of how the script is written.
Some suggestions after rooting (let me know if you have better ideas):
Here is my setup: install "E-ink Launcher" and "Multi action home button" using adb install.
Use adb shell am start -a android.intent.action.MAIN to change the main launcher to your launcher.
Then change the setting of Multi Action Home button (say, the height should be large to be visible in the bottom) and assign its function to be Home for click and Back for double-click.
Whenever you want to use Sony's apps (these are good for pdf markup), just push the home button to open the pop-up menu.
Otherwise, touch the Multi Action Home Button to access to other Android apps. So far I've never experience any crash.
Yet more tips:
Some complain fonts are too small after installing generic apps.
adb shell wm density 320 changes your DPI by 2 times (160 is a default value.) EDIT: I found 200 is quite enough that does not distort Sony apps too much.
My application is using "Tasker" to execute the above code when specific apps are open and execute wm density reset when the apps are closed.
The reason why we cannot change the global DPI is sadly because it makes the default apps by Sony so awkward.
Alternatively, I could successfully install Xposed to try App Settings but this app crashed.
You can also install Gboard (but it has no hide button, so prepare with virtual back button) if you need another keyboard.
Enjoy your DPT devices
--
Sony recently released a new digital paper device DPT-RP1, apparently using their own linux firmware but underlying on Android 5.1.1. Few weeks ago, some Chinese successfully hacked it to jailbreak for third-party apps (without changing the original firmware), but they don't share any information to sell those hacked devices. I'm willing to pay for it, but it is too risky to send my device to China so I'm trying to root it by myself.
I don't know much about this world, but I found some information that might be helpful. It uses Marvell A140 IoT Processor a.k.a. PXA1908. There are two Android smartphones (as the same version 5.1.1) with this chip - Samsung Xcover 3 and Samsung Galaxy Grand Prime. Fortunately, they have been both rooted in the past here.
Is this information really helpful to root my device? If so, is there any way to apply the previous methods to easily jailbreak DPT-RP1? I think the problem here is that it does not look like Android at all, so has no setting menu or developer tools. And not sure how to enter to the recovery mode since it only has two buttons - power/menu.
I'd appreciate any help or advice. Thanks!
And here you can find source codes.
oss.sony.net/Products/Linux/dp/DPT-RP1.html
sartrism said:
Sony recently released a new digital paper device DPT-RP1, apparently using their own linux firmware but underlying on Android 5.1.1. Few weeks ago, some Chinese successfully hacked it to jailbreak for third-party apps (without changing the original firmware), but they don't share any information to sell those hacked devices. I'm willing to pay for it, but it is too risky to send my device to China so I'm trying to root it by myself.
I don't know much about this world, but I found some information that might be helpful. It uses Marvell A140 IoT Processor a.k.a. PXA1908. There are two Android smartphones (as the same version 5.1.1) with this chip - Samsung Xcover 3 and Samsung Galaxy Grand Prime. Fortunately, they have been both rooted in the past here.
Is this information really helpful to root my device? If so, is there any way to apply the previous methods to easily jailbreak DPT-RP1? I think the problem here is that it does not look like Android at all, so has no setting menu or developer tools. And not sure how to enter to the recovery mode since it only has two buttons - power/menu.
I'd appreciate any help or advice. Thanks!
Click to expand...
Click to collapse
You must be an iPhone user that isn't familiar with android. Jailbreak in is an Apple thing, not an android thing.
In android it's called "rooting" and it isn't quite the same thing as jailbreaking an Apple device.
This device does not at all seem to be worth the price, especially considering the limitations it has. What a waste of hardware.
I would assume that you could port something from one of those other devices to work on yours but it really depends on how your hardware is designed compared to those devices.
Does your device have a typical bootloader like other android devices?
Is the bootloader unlocked?
If it is locked, can it be unlocked?
Does the device use fastboot or does it have a flash mode that is used with a specific PC flashtool?
If it is unlocked or if you can unlock it and it has a flash mode that can actually be used, you might be able to port a custom recovery from one of the devices you named then use that recovery to somehow root the device. If the device can't install android apps then it would probably involve using adb to root the device.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Droidriven said:
You must be an iPhone user that isn't familiar with android. Jailbreak in is an Apple thing, not an android thing.
In android it's called "rooting" and it isn't quite the same thing as jailbreaking an Apple device.
This device does not at all seem to be worth the price, especially considering the limitations it has. What a waste of hardware.
I would assume that you could port something from one of those other devices to work on yours but it really depends on how your hardware is designed compared to those devices.
Does your device have a typical bootloader like other android devices?
Is the bootloader unlocked?
If it is locked, can it be unlocked?
Does the device use fastboot or does it have a flash mode that is used with a specific PC flashtool?
If it is unlocked or if you can unlock it and it has a flash mode that can actually be used, you might be able to port a custom recovery from one of the devices you named then use that recovery to somehow root the device. If the device can't install android apps then it would probably involve using adb to root the device.
Click to expand...
Click to collapse
Thanks for suggesting a general principle! I just use the word jailbreaking not because I'm an iPhone user. What I actually want to do as the first step is not rooting an android system, but revealing it from the current customized linux system. Rooting is the next step if necessary. If the word choice is still not accurate and bothers you, I apologize.
It has apparently no typical bootloader, and neither PC nor adb recognize it as an android device. In fact, direct USB file transfer is blocked so I need to use Sony's designated software. But an android system surely coexists according to the hacker who already rooted it.
sartrism said:
Thanks for suggesting a general principle! I just use the word jailbreaking not because I'm an iPhone user. What I actually want to do as the first step is not rooting an android system, but revealing it from the current customized linux system. Rooting is the next step if necessary. If the word choice is still not accurate and bothers you, I apologize.
It has apparently no typical bootloader, and neither PC nor adb recognize it as an android device. In fact, direct USB file transfer is blocked so I need to use Sony's designated software. But an android system surely coexists according to the hacker who already rooted it.
Click to expand...
Click to collapse
Without some kind of way to flash or interface with the device there isn't much you can do.
I have a kindle fire HD that didn't come with a typical android system but does have a typical bootloader. The Amazon OS was removed and now it's full blown android but it required a "second" bootloader. You don't have a bootloader so I'm not sure what your options are with that device.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Droidriven said:
You must be an iPhone user that isn't familiar with android. Jailbreak in is an Apple thing, not an android thing.
In android it's called "rooting" and it isn't quite the same thing as jailbreaking an Apple device.
This device does not at all seem to be worth the price, especially considering the limitations it has. What a waste of hardware.
I would assume that you could port something from one of those other devices to work on yours but it really depends on how your hardware is designed compared to those devices.
Does your device have a typical bootloader like other android devices?
Is the bootloader unlocked?
If it is locked, can it be unlocked?
Does the device use fastboot or does it have a flash mode that is used with a specific PC flashtool?
If it is unlocked or if you can unlock it and it has a flash mode that can actually be used, you might be able to port a custom recovery from one of the devices you named then use that recovery to somehow root the device. If the device can't install android apps then it would probably involve using adb to root the device.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Click to expand...
Click to collapse
Jailbreaking is the process of modifying any electronic device in order to remove restrictions imposed by a manufacturer (Apple) or operator (to allow the installation of unauthorized software).
Rooting is the act of gaining access to the root account of a device (such as a smartphone or computer).
There is a huge difference between the two. You can't just say that rooting is Android's version of jailbreaking. Not accurate in the least.
https://www.androidpit.com/jailbreak-android
Sent from my SM-G928T using Tapatalk
MarkBell said:
Jailbreaking is the process of modifying any electronic device in order to remove restrictions imposed by a manufacturer (Apple) or operator (to allow the installation of unauthorized software).
Rooting is the act of gaining access to the root account of a device (such as a smartphone or computer).
There is a huge difference between the two. You can't just say that rooting is Android's version of jailbreaking. Not accurate in the least.
https://www.androidpit.com/jailbreak-android
Sent from my SM-G928T using Tapatalk
Click to expand...
Click to collapse
You're reading too much into what I said.
Basically, what I said was that jailbreaking isn't an android thing, it's an Apple thing(didn't say it was exclusively an Apple thing, just NOT an android thing). It applies to more than just Apple devices but on this website dedicated to mobile platforms, I'm only referring to its application in the mobile device world. For the mobile world it's pretty much only an Apple thing(still not exclusively but mostly so).
Then I said that in the android world it's called rooting(not exclusively an android thing, just NOT an Apple thing). And that jailbreaking and rooting aren't the same thing(this does not say that rooting is android's version of jailbreaking, that would imply that they are the same thing, I'm saying they aren't the same thing)
Basically, explaining what they "aren't", you explained what they "are".
I understand the difference, but thank you.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Droidriven said:
You're reading too much into what I said.
Basically, what I said was that jailbreaking isn't an android thing, it's an Apple thing(didn't say it was exclusively an Apple thing, just NOT an android thing). It applies to more than just Apple devices but on this website dedicated to mobile platforms, I'm only referring to its application in the mobile device world. For the mobile world it's pretty much only an Apple thing(still not exclusively but mostly so).
Then I said that in the android world it's called rooting(not exclusively an android thing, just NOT an Apple thing). And that jailbreaking and rooting aren't the same thing(this does not say that rooting is android's version of jailbreaking, that would imply that they are the same thing, I'm saying they aren't the same thing)
Basically, explaining what they "aren't", you explained what they "are".
I understand the difference, but thank you.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Click to expand...
Click to collapse
I tend to read too deeply into everything. It's the way I am. Lol.
Sent from my SM-G928T using Tapatalk
Could you please post some information about usb device? Just like PID & VID.
Do it like:
Connect DPT-RP1 to Linux, and then type this command 'lsusb'
P.S. Under Windows or MacOS system, you can find the information from system settings...
happy to help with simple things
thisvip said:
Could you please post some information about usb device? Just like PID & VID.
Do it like:
Connect DPT-RP1 to Linux, and then type this command 'lsusb'
P.S. Under Windows or MacOS system, you can find the information from system settings...
Click to expand...
Click to collapse
Bus 001 Device 008: ID 054c:0be5 Sony Corp.
It is good to see some people have been interested in this thread.
So far, I realized that the hacker used a hardware hacking method. I actually obtained the hacked system apps from one of his customer. I guess he did sometihng like directly modifying eMMC to root and put "USBDeviceSwitcher.apk" to allow an usual USB connection. Since I don't want to take such risk, I decided to wait until the first firmware to see if there could be an indirect way to penetrate the system files. But if you want to analyze the hacked system, contact me.
sartrism said:
It is good to see some people have been interested in this thread.
So far, I realized that the hacker used a hardware hacking method. I actually obtained the hacked system apps from one of his customer. I guess he did sometihng like directly modifying eMMC to root and put "USBDeviceSwitcher.apk" to allow an usual USB connection. Since I don't want to take such risk, I decided to wait until the first firmware to see if there could be an indirect way to penetrate the system files. But if you want to analyze the hacked system, contact me.
Click to expand...
Click to collapse
Does it have a web browser? Maybe you can utilize for example the Stagefright Exploit + DirtyC0W to get root.
I have found out some interesting stuff about the device with the help of the Digital Paper App.
The app is built using electron and there is a file: /Applications/Digital\ Paper\ App.app/Contents/Resources/app.asar
This file contains the electron javascript files, which handle all the communication with the device.
It can be extracted with: sudo asar extract app.asar output
(github_com/electron/asar)
This also requires node to be installed: with e.g. brew install node (changelog_com/posts/install-node-js-with-homebrew-on-os-x)
The app communicates with the device via Restlet-Framework/2.3.7 on port 8443 with tcp (no matter if it is the bluetooth, wifi or usb connection).
This is the only port that is open.
In the file: /Applications/Digital\ Paper\ App.app/Contents/Resources/output/node_modules/mw-error/lib/codeparams.js you can find all the relative paths, which are getting called during e.g. file transfer, firmware update and stuff.
Running the app and placing breakpoints reveals that before you can transfer files and stuff:
'/auth'
'/auth/nonce/'
are called in order to authenticate, which looks e.g. like url digitalpaper.local:8443/auth/nonce/1e9ee24d-6613-433a-9770-76b04333ac95
the last part of the call is the "client_id": "1e9ee24d-6613-433a-9770-76b04333ac95", which is retrieved via the url digitalpaper.local:8443/auth call.
digitalpaper.local:8443/auth/
Important:
In /Applications/Digital\ Paper\ App.app/Contents/Resources/output/lib/config.js
change the line
config.DEVBUILD = false;
to
config.DEVBUILD = true;
After you finished your modifications you have pack the output folder again:
sudo asar pack output app.asar
I did not have time to continue, but the following relative urls look promising (especially recovery_mode):
'/testmode/auth/nonce',
'/testmode/auth',
'/testmode/launch',
'/testmode/recovery_mode',
'/testmode/assets/{}',
mcplectrum said:
I have found out some interesting stuff about the device with the help of the Digital Paper App.
The app is built using electron and there is a file: /Applications/Digital\ Paper\ App.app/Contents/Resources/app.asar
This file contains the electron javascript files, which handle all the communication with the device.
It can be extracted with: sudo asar extract app.asar output
(github_com/electron/asar)
This also requires node to be installed: with e.g. brew install node (changelog_com/posts/install-node-js-with-homebrew-on-os-x)
The app communicates with the device via Restlet-Framework/2.3.7 on port 8443 with tcp (no matter if it is the bluetooth, wifi or usb connection).
This is the only port that is open.
In the file: /Applications/Digital\ Paper\ App.app/Contents/Resources/output/node_modules/mw-error/lib/codeparams.js you can find all the relative paths, which are getting called during e.g. file transfer, firmware update and stuff.
Running the app and placing breakpoints reveals that before you can transfer files and stuff:
'/auth'
'/auth/nonce/'
are called in order to authenticate, which looks e.g. like url digitalpaper.local:8443/auth/nonce/1e9ee24d-6613-433a-9770-76b04333ac95
the last part of the call is the "client_id": "1e9ee24d-6613-433a-9770-76b04333ac95", which is retrieved via the url digitalpaper.local:8443/auth call.
digitalpaper.local:8443/auth/
Important:
In /Applications/Digital\ Paper\ App.app/Contents/Resources/output/lib/config.js
change the line
config.DEVBUILD = false;
to
config.DEVBUILD = true;
After you finished your modifications you have pack the output folder again:
sudo asar pack output app.asar
I did not have time to continue, but the following relative urls look promising (especially recovery_mode):
'/testmode/auth/nonce',
'/testmode/auth',
'/testmode/launch',
'/testmode/recovery_mode',
'/testmode/assets/{}',
Click to expand...
Click to collapse
Hope you get some result from wifi side. I also realized they use the port 8443 but couldn't get further as you.
For whom trying to hack it, here is the link for the already 'hacked' system apps (including the original files) - that of the famous hacked RP1 video. Inside the subfolder S1, there are also the hacked system apps for DPT-S1 just in case.
https://www.dropbox.com/sh/dvtvokdzrgwjc83/AACXOJA-E56nUpUfiWUOzrM3a?dl=0
George Malas said:
Does it have a web browser? Maybe you can utilize for example the Stagefright Exploit + DirtyC0W to get root.
Click to expand...
Click to collapse
The stock device has no web browser, no sd-card, no usb connection, and no typical system. I think SONY was haunted by some security issues maybe because they thought the major users are lawyers or very important people? lol
Any chance to create a buffer overflow PDF to attack RP1's pdf reader?
I am unable to help, but wanted to let you know I am definitely interested in and supportive of this. If this device can be unlocked as suggested in that one youtube video then I would buy it, despite the steep price.
jess91 said:
I am unable to help, but wanted to let you know I am definitely interested in and supportive of this. If this device can be unlocked as suggested in that one youtube video then I would buy it, despite the steep price.
Click to expand...
Click to collapse
If you're interested and supportive of this then go buy one anyway and apply yourself to going forward figuring out how to get it done. Other than that, you're not supportive, you're just hopeful that someone figures it out and then you'll probably go get one.
DO NOT CONTACT ME VIA PM TO RECEIVE HELP, YOU WILL BE IGNORED. KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Hey guys,
I also recently got the RP1 and am also looking for ways to mod it. Big kudos and thanks to all of you for posting this! This alread is amazing. @sartrism: can you maybe give me a hint how to load the files on the rp1? Sorry if this might be a stupid question but I'm new to adroid and that stuff.
Paderico said:
Hey guys,
I also recently got the RP1 and am also looking for ways to mod it. Big kudos and thanks to all of you for posting this! This alread is amazing. @sartrism: can you maybe give me a hint how to load the files on the rp1? Sorry if this might be a stupid question but I'm new to adroid and that stuff.
Click to expand...
Click to collapse
Just a little update from my side. I'm currently tryng to recreate the steps @mcplectrum was using. It seems that my RP1 also uses other ports. I tried to wireshark the USB and WiFi connection. By that I saw that often GET /registration/information is called for Host: localhost:58052. Moreover the first call is GET /register/serial_number also on port 5808. This was via USB.
Trying to trigger the /auth/ call via Telnet returns nothing unfortunately. But also the 8080 port is open. Trying to call digitalpaper.local:8443/auth/ returns nothing on firefox.
@mcplectrum: how did you get the client_id and what would one need that for?
I also tried to change the config.DEVBUILD to true but that seemed to change nothing at all.
So to sum up what we know:
The device is using some kind of android structure, the source code seems to use the uboot bootloader, all communication is done by a rest restlet framework. So actually there should be some kind of way to use the restlet framework to PUT or POST the modified files.
The other option would be directly flash the eMMC right? I would take the risk and just load it on my device and see what happens. Any hints on how to do that?

Question Nethunter

Hi peeps.
Newb here.
I have kali nethunter installed as chroot. I can't get certain functionality. I.e browsing websites and openvpn connections for example
I believe this is interface related, I.e using the wrong interface. Openvpn complains the default gateway is not set.
Firstly, has anyone had similar Experiance, secondly - would rooting the tab and flashing nethunter directly onto it solve these problems? (And could you explain why?)
Did you ever get nethunter to work?
Where did you find the apk to install it?
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
M0ng0l said:
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
Click to expand...
Click to collapse
So i am using Termux and have succesfully setup storage however,
when i use <pkg install wget>
i receive error <unable to locate package wget>
I have also tried <apt update> and get severall errors
aswell as <apt upgrade> and get 0 upgrades
any suggestions?
derrickdroid said:
So i am using Termux and have succesfully setup storage however,
when i use <pkg install wget>
i receive error <unable to locate package wget>
I have also tried <apt update> and get severall errors
aswell as <apt upgrade> and get 0 upgrades
any suggestions?
Click to expand...
Click to collapse
have you tried <pkg update> ?
asdplokk said:
have you tried <pkg update> ?
Click to expand...
Click to collapse
The attached screenshot are the errors I am getting.
It seems to me something about the mirrors has changed recently based on https://github.com/termux/termux-packages/wiki/Mirrors
i think u can get rid of all of your sources other than termux-main/root/x11
So if you google your question, you'll find an answer.
Update the repositories, google how to update repos for termux
Get a raspberry pi and a cheap tablet. You still use a tab but the functionality is light years ahead of what you can achieve while using nethunter alone.
I'll be making a post soon on configuring a pi you can access via the internet with a tablet
M0ng0l said:
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
Click to expand...
Click to collapse
BRO u just blew my mind, vnc to the rasp pi

Categories

Resources