PPP connection with android - General Questions and Answers

I am trying to set up a PPP connection from a Zte MF820b 4G LTE USB modem/router to a WiFi only Android tablet with a 4.2.2 os that has a custom ROM installed which technically shouldnt of been jailbroken. The tablet is running a Linux version 2.4.3 and KERNEL:3.0.36. The problem here is me. I am a complete newbie, but do know a little about command prompts and how this should work in theory. The tablet is fully rooted and has all the necessary applets installed via busy box(chat, nc, pppd, ect) and terminal emulator, or at least I think that's what's necessary. I installed PPPwidget 2 and 3 but as apk's and since they are not from the Play Store will not function. I have Google play store installed but its all but useless since I can not log into my account, for reasons I suspect as being that the system is too old and says something about the connection not being secure or private and as such...can not actually get the app with license verification from Google play store. I tried to lucky patch the apk and remove license verification but that did nothing as well. However the apk will read the modem and ask permission to allow pppwidget to be used but shortly fail after for the aforementioned lack of correct license. There must be a way to manually call the modem and connect via terminal emulator using adb ppp or nc? Without any understanding on how to actually write a script I'm hoping someone can help me get this functioning. Situation beyond current controll will not allow me to work with anything other than what's at hand, and I'm willing to pay for someones time if I can actually get this working. I also have a tablet with a different os (8.1 Oreo) should that be easier. With the 4.2.2 the device pops up as "storage" in my file manager. With the 8.1 it pops up as a device Id number when I type in lsusb in my terminal emulator. The 8.1 has Termux installed should that open up a different venue. The carrier I'm using is T-Mobile and the nameserver and ISP info is NS1-AUTH.SPRINTLINK.NET; IP 206.228.179.10. The device is functional as when the opportunity arose I was able to plug up to a computer and try it out. That's no longer viable. Again, I'm willing to pay for the help as I'm sure I'll need to correspond back and forth a few times and will probably need help writing the correct script if needed. Please email me @ [email protected]. Thank you.

Related

Yes! Wifi App for connecting in university Wifi

Hey guys,
I just got my Xperia X10 to work in our university wifi. WPA-EAP PEAP with MSCHAPV2. I used the app Wifi-Config Editor Pro from the market. You don't even need to root your phone. I hope this works on everyone else also. I was so thankful with the developer. This app saved my phone.
is this wifi-config?
Cant find the exact name you mention anywhere.
links please?
I did a search in the android market "wifi config". After that first two results would be wifi config and wifi config editor pro. The free version doesn't have the enterprise configuration. The pro does.
I would love to try this out, but the app is obviously not yet certified for the latest firmware release...
Even with this link (hxxp://bubiloop.com/android-tools-wifi-config-editor-pro), there are no results in the market.
If, like me (X10 mini pro, UK unlocked latest firmware) wifi config pro isn't showing for you in the market you can do the following:
1) Root the phone following the instructions here:
http://android.doshaska.net/x10miniroot
(this works for me on my X10 mini pro)
With the phone connected and usb debugging on/wifi toggled off, from the androidSDK on a PC (Windows,Linux,Mac) get a shell
2) adb shell
3) su
4) cd /data/misc/wifi
5) busybox vi wpa_supplicant.conf
(to edit the wpa configuration file)
6) add this at the end
network={
ssid="eduroam"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="MYIDENTITY"
password="SECRET"
phase1="peapver=0"
phase2="auth=MSCHAPV2"
priority=7
}
or similar, where MYIDENTITY is your eduroam login ID and SECRET is your password. This is taken verbatim from another phone (HTC Desire, Android 2.2) which does work OK
7) save
8) log out
Then connect and surf...
Cosmodia - I don't know why you can't see it in the market. You have Android 1.6 right? At first I cannot see it also since the app was only for Android 2.0 but the developer made it to work with Android 1.6 so now I can see it and got it to work. You can contact the developer and ask questions.
Professordes - I think this should help people who didn't want or don't know how to root their phone
Android 2.x Enterprise settings coming soon
Android WiFi Internal API's changed between version 1.5/1.6/2.x Android 1.6 added a lot of the requirements to enable an enterprise WiFi network, however the published API and UI's don't make it easy to connect to them. They then changed them in 2.0 making virtually all Enterprise configurations valid. Unfortunately the UI still lacks in the ability to configure them. I needed my android device on the WiFi network at work so I wrote an app do to just that.
As of about a week ago I had everything all versions without the enterprise settings working. This is the "WiFi Config Editor" you can find on the market now. I was in the process of enabling the editing of the enterprise settings for Android 2.0+ when I was contacted about getting an X10 on a WPA-EAP network with PEAP authorization. Being the X10 is a 1.6 device I made the changes necessary and released the 1.6 version of "WiFi Config Editor Pro". This version will only work with Android 1.6 as the Enterprise API's are different.
Currently I'm testing the "WiFi Config Editor Pro" for Android 2.0+ and should have it released in the next few days. As I hinted at earlier, the enterprise settings are hidden in Internal API's. This makes developing against them difficult. Google actually places a number of roadblocks in the way to make this harder. But being that Android is open source, it just takes a little bit of persistence to make it all work. Best part of all. NO ROOT REQUIRED!
To my knowledge this is the only app that exists that will allow you to edit WiFi settings at this level without requiring root access. I'm open to suggestions to help make it better. Let me know if anyone has any issues with the app or connecting to specific configurations.
Thanks,
--OddRain
Hello OddRain,
this sounds very promising and I am looking forward to trying it out as soon as the latest firmware release for the X10 gets full Market access again.
Hi Oddrain,
I can't find any other way to contact you.
I am desperately looking to connect to my companies WPA2 enterprise network, with Peap. It also uses a certificate.
I cannot however purchase pro as I am in South Africa and we can only get free apps on the market.
Can you please advise when the android 2.1+ version is available, if it will work for what i need and how I can pay.
Florbid
I still can't seem to find the Wifi Config Editor (neither the free nor the pro version) in the Market, everything else appears to be there.
Is the application limited to some region, firmware or branding?
I'm trying to access the Market from Germany, my X10 is on R2BA026, unbranded phone.
I'm not sure why the app doesnt show up in the market sometimes. The free version supports Android 1.5 and up. There are 2 pro versions, one for Android 1.6 and one for Android 2.0+. All versions should be in the market right now. There are no limits within the application other than the Android Versions supported.
The most reliable way I know of searching the app store is not by the application name, but by the developer name. pub:OddRain would be the Android Market search string, it is Case Sensitive.
--OddRain
Thank you very much for the reply. Unfortunately, I don't get any result with that search term as well.
Could somebody else with the same firmware version please search for this to see if it maybe depends on that?
can wifi config editor (free version) solve the issue of the campus wifi (WPA/WPA2-EAP PEAP with MSCHAPV2) ?
Thanks!
can you just extract the .apk and post it here please and make it easier for all?

Connect to adhoc Wifi network

Hi,
I need the captivate to be able to connect to a adhoc wifi network created using my laptop. However, android doesn't seem to be supporting it, just access point networks. Has anyone tried this, any success?
Searching revealed one thread where a guy modified some code on an htc phone, and got it to work, but seemed a little dated. Not sure if that would work with the android 2.1 and the Samsung phone.
Help appreciated.
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
agentdr8 said:
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
Click to expand...
Click to collapse
agentdr8,
Thanks for the reply.
Care to share details on the commands you ran? Or are you saying it's not worth it because it's so buggy?
thanks
To avoid a hard lockup, start with the wifi turned off. I tested it numerous times with it already on, and it resulted in a battery pull.
You'll need busybox 1.7x (maybe 1.8x will work too?). You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)
With an adb shell, try something like this:
$ su
# /system/xbin/ifconfig eth0 up
# /system/xbin/iwconfig eth0 mode ad-hoc
# /system/xbin/iwconfig eth0 essid YourEssidHere
# /system/xbin/iwconfig eth0 key WEPkeyhere
Now with wifi turned off, these commands will all error since the interface is down/off (eth0 is the wifi, at least on my Cap). Turn your wifi on and rerun the same commands, followed by:
# netcfg eth0 dhcp
This may or may not error out, but ultimately, you should see a dhcp address for eth0 as handed out by your dhcp server/mywi device.
You may need to also manually add the ad-hoc network in the GUI with its key. I can't remember if I needed that or not, but with it I can see the connection status and when it's grabbing the IP. Even shows connected and signal strength once it does connect (assuming it doesn't lockup).
agent can you help me pls. Im a newbie still.
Do i run all those commands in windows when my phone is connected or do i run it through something like terminal emulator an app on the phone??
You can either use adb shell on your Windows machine (part of the Android SDK), or you can use a terminal on the device itself (ConnectBot is my preferred). Your phone needs to be rooted if it isn't already.
Okay, I'll try out the connectbot. Can you tell me how to do this part then if it's needed??
"You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)"
how do you do this symlinked part?? I don't really understand it.
I tried ur commands without doing the symlinked part....everything just returned a "not found" message.
Maybe you could give me a dumbed down step by step way of doing this hahahaha??? Im rooted and i have busybox 1.7x, just missing the working iwconfig because im not really sure what it is.
If you're not too familiar with linux commands, it would be best to wait for someone to build a widget/GUI app around this, as poking around in a root shell on your phone is never a good idea if you're not aware of the potential consequences of blindly running commands.
It's possible that with the Froyo update adhoc connections may just work as intended, not that I've read anything that suggests that.
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
boborone said:
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
Click to expand...
Click to collapse
Okay, i'll go look for it though a link would help.
Maybe i'll just wait until something like Cyanogens ROM comes, i hear it usually comes with ad-hoc connectivity.
Try this: http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
Sent from my HTC Dream using XDA App
only problem is it's compiled for froyo and i think geared towards the Desire according to the replies.
I feel like it might mess up my captivate
Well if you're computer is windows7 you can use a program called conectify.
It makes win7's adhoc networks work as real hotspots
Sent from my HTC Dream using XDA App
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
pewpewbangbang said:
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Click to expand...
Click to collapse
Why would you do that? Do you prefer safari over android browser or something?
Sent from my Nexus One using XDA App
cowballz69 said:
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
Click to expand...
Click to collapse
Then You need to jailbreak your iphone and get a tethering app
boborone said:
Then You need to jailbreak your iphone and get a tethering app
Click to expand...
Click to collapse
Issue isn't on iPhone-end, nor wpa-supplicant end (as the wpa-supplicant binary included in the android wireless tether app has this ability).
The problem is the GUI end of things (i.e., settings.apk) ALSO filters the results.
So it goes beyond simpy modifying the wpa-applicant (yes; this is sufficient for the basic-functionality), but is very crude & diffcult to do on the go from the tiny terminal emulator, etc.
What I've personally been looking for, is an update that modifies the neceasary files, and enables this extewmely useful function.
Something similar to the update package posted for the froyo-build, but instead for the ECLAIR-2.1 build of the captivate.
If anyone knows of anything availible like I'm describing (a GUI-centered mod that will remove ALL the STUPID damn (pardon language lol) IBSS filtration form the settings.apk, wpa-supplicant, wireless configuration files, etc for the ECLAIR-2.1 build of the Captivate so that it JUST WORKS lol -- this way we can SEE and CONNECT via our native GUI .
I've gotten this to work through running command line / configuration file hacks, but it's very messy/annoying AND to make things MORE annoying, once you've put it into Ad-hoc mode and have it all setup very nicely, guess what? The settings.apk application (which is needed to load the device into kernel), will actually COMPLETELY UNDO all the tedious command line efforts you've just made, and takes the wifi chip out of Ad-hoc mode every x amount of minutes! ARGH!! LOL!
Anyway, I've gone through the source code and patch diff's myself and it really doesn't seem very involved. I actually was planning on compiling the necessary modded binary (making a nice update.zip for all the frustrated captivate owners like myself lol), but I simply haven't had the time to setup the build environment for it at the moment (have several other build environments I'm juggling as it is with work).
Anyway, I apologize for the rant lol -- I just wanted to clarify exactly what is needed and point out it really wouldn't be much work (and would be VERY much appreciated!!!!) if someone with the skill, time, and a build environment for the galaxy s (captivate, speifically lol , could post an eclair mod for us -- you would receive AN ENORMOUS amount of praise & thanks lol .
OR -- if someone who has a little time, could simply modify the android wireless-tether-app to have one extra feature, 'connect to ad-hoc network' lol . This would also be ideal, as it already fully supports the initialization & loading of the captivate wireless driver properly, and can fully manage the interface & connections while running in the background (independent of settings.apk). PLUS -- it even already has full ad-hoc support built into it's own pre-packaged wpa-supplicant. Basically, all the hard work has already been done with the wireless-tether-app, just need a few extra functions to handle scanning for networks and connecting to them (relatively simple, considering they've already done ALL the hard work..lol)..
Okay, my rant is officially done! Lol! I just hope this helps those who have the capability to help, give a clear picture of all that's required. It's late, so some of this stuff may have already been mentioned and I missed it! Shoot, maybe someone just finished doing exactly what I just went on & on about? Lol.
In any case, if anyone is willing to help out -- or already knows of a solution already out there I've missed -- PLEASE let me' know! This functionality would truly help a great deal in my day to day work with my captivate! Thanks in advance!!!
holy need a bump batman!
i would really like this too!
I found this post last night, but I couldn't get it to work: http://forum.xda-developers.com/showpost.php?p=16632147&postcount=7758

[Q]

Whew. Ok, well, I am new to rooting and such and also new to smartphones in general. First, I must explain what I am attempting to achieve by modding and rooting my droid x.
I am trying to use my droid as a modem for an xbox 360. I have already rooted my phone with z4root. I am using barnacle wifi tether in order to connect the 360 slim to a wireless WAN. I am able to connect online; however, I would like to get a better speed, so after spending all day going though threads online, I have found a possible solution. Due to the fact that I am new to this I am at a loss with all the jargon and apps. It appears that by setting up a new ROM I will be able to get into the system root files to modify the throttle lock on the phone. This is all in theory, of course, from what I have located. All the tutorials I have looked into do not give enough info to fully understand and use their methods. Currently on my phone, I have an installed PDAnet which i am using for wired internet on my PC. (I do not have internet at my residence currently.) It also seems I am having issues downloading some files online, maybe due to timeout or something, but I cannot be sure. As you can guess, this is getting pretty frustrating. I am also running ROM manager. I am at the point where I cannot go any further in what I am attempting to do unless I get assistance. Also, Youtube seems fairly useless in this particular issue and variations of this issue.
So in short, I ask that someone please assist me with this and be as detailed as you can to clear up any miscommunication. Please use and/or explain any jargon that you use.
Thank you for any posts that you make in response. I will be looking into this thread for posts.
Also. I am currently running The default android and did a Factory Data Reset.It is Android Version 2.2.1.
DROIDX
UPDATE
I also installed adb and SDK, wifi tether, droidx bootstrapper, no frills CPU controller, Terminal Emulator, and root explorer.
http://forum.xda-developers.com/showthread.php?t=863923 I followed this post and im caught in a snag. when i run "java -jar baksmali.jar -o classout/ classes.dex" in CMD im getting this error "unable to access jar file baksmali.jar"
Also can someone please post a link to a nandroid backup tut for a droidx

Sixaxis controller is here!

This thread should be used to provide feedback and troubleshooting for the Sixaxis Controller and Compatibility Checker apps.
If you have a device that you would like to see supported, and you're happy to step few a bit of debugging to help me determine the issue then please let me know, and preferably provide a screenshot of any error messages.
I'm doing my best to add support for new devices (especially HTC and Samsung), but it seems that it might not always be possible to add compatibility. In this case, the only option for running the app on said device is with an AOSP based rom such as CyanogenMod.
Also, throughout the thread I will occasionally be posting beta versions of the app that include new experimental features. I would be most appreciative of any feedback from those willing to test these new features.
For those looking for help with touch profiles, mythek88 has put together a master list here with a growing list of games. Hopefully at some stage I will add the ability to share profiles directly through the app.
Regards,
Earl
Both Nexus phones. I'd volunteer for testing, but I don't own a sixaxis.
Out of curiosity, why does this need root access whereas Wii doesn't? Is there a difference between the way the controllers pair or something?
Sent from my Nexus S 4G using XDA App
Out of curiosity, why does this need root access whereas Wii doesn't? Is there a difference between the way the controllers pair or something?
Click to expand...
Click to collapse
Yes unfortunately, although the Sixaxis basically communicates via the HID protocol, there are a couple of minor differences that would require a kernel patch to make the controller start talking over HID. The only solution I have found for this so far is to bypass HID and communicate directly over L2CAP (both of which require root access).
I'd love to volunteer for testing! I have access to several androids and 8 dualshock and sixaxis controllers
If you wish to test on an Galaxy S II then I am available to help out if required. I too have both DualShock and SixAxis controllers.
I can join to you guys too! I have Desire HD with sense or without it and dualshock3/sixaxis controller.
I have three phones that I'm willing to beta test.
I have dualshock 3 controllers.
LG Optimus S
HTC Hero (rooted w/o Sense)
HTC Evo 3D (soon to be rooted)
I definitely think you should release a free version that lets people test basic compatibility. 15 minute return window doesn't seem like enough to test an app like this.
Very excited to see this app!
Ok, what I'll do initially is release a standalone compatibility test app on here in the next couple of days that basically allows me to get some initial feedback and if required have anyone who is willing with an incompatible phone to run a few tests that might enable me to get them working.
Again, this application will only work on rooted devices, sorry!
Stay tuned.
I'd suggest you to put an free version for like 2 weeks for the time its a beta stage then when everything is finalised make it 1$ which i think is reasonably fair ! And i own an sony ericsson xperia x10 it has to work ! Since sony > sony ericsson is the same company i think ? Lol
Sent from my X10i using XDA Premium App
shahkam said:
i own an sony ericsson xperia x10 it has to work ! Since sony > sony ericsson is the same company i think ? Lol
Click to expand...
Click to collapse
I don't think that's how this sort of thing works.
Sent from my Nexus S 4G using XDA App
do want so much
G2x I'm in
Sent from my LG-P999 using XDA App
Here is the (very basic) windows utility I created today for pairing the controllers to a specific MAC address. Once installed, you should be able to plug a controller in to your PC via Mini-USB and the 'Current Master' should change from 'Searching...' to the last MAC address the controller was paired with (probably your PS3). You can then change the master by entering a new MAC address in the format of xx:xx:xx:xx:xx:xx. This address will ultimately be the bluetooth address of the phone you wish to use the controller with. The Android app will give you the correct address when run on your phone.
Make sense?
If anyone wants to try it out and let me know if it works on your PC's, that would be lovely. Just enter any old MAC address 00:00:00:00:00:00 will do.
Linux users (and apple mac?) should be able to use the utility called 'sixpair' that is floating around the net.
Just an update that I'm hoping to get a bit of feedback on...
This app allows you to test whether your device will be compatible with the app. Once I have enough feedback about which devices / OS versions it will run on (and potentially improve compatibility with some assistance from testers on the forum), then I will make a release on the market that enables IME.
If you would like to help out, you will need to download the attached apk, as well as the SixaxisPairTool in my previous post. You will then need to extract and install the apk on your phone using adb or something like 'app installer' from the market. Run the app and follow the instructions (you will need to use SixaxisPairTool to pair the controller with the phone (using the bluetooth address displayed at the bottom of the app after tapping 'start').
Please could anyone who tries the app report back here any devices and OS's they have tried, and the success they have. Feel free to ask for help if anything is unclear.
Cheers,
Earl
I ran Sixaxis Compatability Checker on my Asus Transformer running Prime 1.6 (Android 3.1). When I clicked "Start" the program said "Connection Initiated..." and then "Connection Failed." At this point I have not paired my controller because the Checker program does not give me the MAC address. When I click "Stop" my Transformer locks up and nothing works, and while I can turn it off with the power button it does not turn back on until I hard reset it.
oKay i run the Server on Android.. they show me the MAC.. ..
i type the mac address in the Windows App .. the show me the same address in the Server and Controller .. but if i press start at the controller hey only blinking.. -.-
Connection Initiated...
Connection Established..
Samsung Galaxy S Miui Galnet v6
@presslab - Can you try running the command 'hciconfig' on the phone in a terminal emulator as root user and tell me the result.
@Witalka 15 - When you paired the controller using 'SixaxisPairTool', did the 'Current Master' show the same address as the one you typed in after clicking 'Update', or was it still showing 'Searching...'?
I have a Droid X running Liberty Gingerbread ROM 0.9. First off I'd just like to say that I constantly have problems with it, including with Bluetooth, so this may not apply to all Droid X users, but I do receive the "Connection Failed" message, and was just wondering what I can do about it since I've been dying to use my Dualshock with my phone for the longest time. Thanks
Anyone getting a 'Connection Failed' message can help me out by trying the following commands in a terminal window and reporting the results:
su
echo 1 > /sys/class/rfkill/rfkill0/state
start hciattach
hciconfig -a hci0 up
hciconfig -a hci0 pscan
hciconfig
If you get a 'not found' error when calling hciconfig, you could try copying the executable (from say here) to your /system/xbin folder and making it executable with 'chmod 744 /system/xbin/hciconfig'. Then try running the above commands again.
sir_earl said:
@presslab - Can you try running the command 'hciconfig' on the phone in a terminal emulator as root user and tell me the result.
@Witalka 15 - When you paired the controller using 'SixaxisPairTool', did the 'Current Master' show the same address as the one you typed in after clicking 'Update', or was it still showing 'Searching...'?
Click to expand...
Click to collapse
Yes i see the same address... In sixaxispairtool and the server..

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?

Categories

Resources