yashsingh1/xdaforums huggingface dataset:
[Motorola Photon 4G] John Kotches:
Weird problem on my rooted phone, using adb, the su command fails (permission denied).

No big deal, I fired off sshdroid and ran the commands via my favorite SSH client without a problem.

Very odd though that the adb shell isn't allowed to execute su.

And, for whatever reason, this solved my webtop startup issue. Once I plugged in the HDMI cable webtop was once again an option.

There is not an error in my xorg.conf -- which is what I feared yesterday. This is very weird but a happy result.
[Motorola Photon 4G] sandtiger:
the first time you SU through adb shell make sure the phone is unlocked and acecpt the root permission request.
[Motorola Photon 4G] exoticheadme:
mv /system/app/DockService.apk /system/app/DockService.apk.bak

says, no file or directory :(
[Motorola Photon 4G] pksublime:
Awesome works great! I used it a home with a 15ft hdmi cable and it exceeds my expectations on a 55" TV, and at work I'm using a hdmi to dvi converter which works well too.
[Motorola Photon 4G] ultraret:
These instructions are not very clear. Could you please do screen shots, video or just tell us an example. For example when you say navigate to the "correct directory". What is the correct directory? Are you talking about where the SDK is or where the unzipped file or whatever. Also just a quickie samples on starting "Terminal" app. The android SDK also starts another Terminal? Give us a full path example of how it is in your system so we can relate to that on each step. Not everyone is a programmer ya know. Using a Mac BTW. Thanks for the help.

Update: The thing is, it was missing a few steps, reading thru all post replies, other resources posts and just getting familiarized with ADB really helped, Im now getting my DOCK ON. or should I say off. Lol thanks everyone
[Motorola Photon 4G] John Kotches:
Best thing to do is unzip the two files into the platform-tools directory where adb is.

Once you do that the instructions work fine.

If you aren't comfortable with running stuff from command lines, this might not be the best stuff for you to be doing ;-)
[Motorola Photon 4G] John Kotches:
To OP (I think it is _unknown):

You don't need discrete commands for the chown and chmod at the end...

So assuming we are in /data/app, it can look like this:

# chown 0:0 DockService.apk PortalApp.apk
# chmod 644 DockService.apk PortalApp.apk
# ls -l DockService.apk PortalApp.apk
-rw-r--r-- 1 root root 112257 Aug 21 09:49 DockService.apk
-rw-r--r-- 1 root root 932034 Aug 21 09:50 PortalApp.apk
#
[Motorola Photon 4G] ultraret:
Exactly I figured that out by chance as the only logical thing to do, but was very unsure. This is very advanced but not difficult at all just a little more explanation or links would have helped, but better than nothing I suppose.

Also was on Terminal for Mac which I never used before so had to learn those commands again which a bit different than Windows Prompt. Then at su command you need to accept the su request on the phone screen.

Then you get a problem and/or failed command with random phone app forceclosing loop when you do the rm command. I kept going and thank god everything just worked out.

Thanks to everyone on here and their replies. What a rip off that dock is.

MY TERMINAL WINDOW IMAGE=> bit [Dot] ly/pUYMmZ
[Motorola Photon 4G] ultraret:
Apple Wireless Mouse and Keyboard Compatibility

Yes they work perfectly, thru pairing the keyboard can be tricky if you dont know how. You have to enter "1111" on the phone and then repeat again typing it on the keyboard and then pressing "return". There is no prompt telling you to type on keyboard. Also I suggest you adjust the mouse sensitivity to the lowest settings as it blows in default settings and its hard to control. Dont know if its the apple mouse or just webtop in general.
[Motorola Photon 4G] John Kotches:
This is very basic command line interaction in *nix / command prompt land.

Terminal is essentially an xterm on the underlying unix. You were "off script" at this point so it helps to understand what the procedure is doing. It is easy to forget that the users following the procedure might not be as versed in the subject as the author is.

that might be missing, I was running from an ssh login which probably behaves a little differently.

Glad you worked through it.
[Motorola Photon 4G] kgbcapthowdy:
i know this sounds dumb, but is there way to verify this is done without the dock or the cable. not getting mine til tomorrow and curious if i did it right. thanks
[Motorola Photon 4G] kgbcapthowdy:
mv /system/app/DockService.odex /system/app/DockService.odex.bak

failed on '/system/app/DockService.odex' - No such file or directory

and ideas?
[Motorola Photon 4G] lcpl:
I have this error

"rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*" it tells me their is nothing to "rm"

and now I have no hdmi out.
[Motorola Photon 4G] jamesdwalters:
Ok I am rooted and have superuser installed from market and am able to run root required apps, so I am AFAIK rooted without a doubt. When I follow the instructions I get to part that say "su" then it hangs for a few seconds then say "permision denied" after that the next command fails as well. I have even DLed and reinstalled android SDK just in case and no joy.
[Motorola Photon 4G] kgbcapthowdy:
turn the screen on your phone and approve the request.
[Motorola Photon 4G] jamesdwalters:
LOL ok I am SOFA KING WE TARDED. Thanks for some reason it never occured to me that doing stuff in shell would make phone prompt me for permission.
[Motorola Photon 4G] kgbcapthowdy:
Let me know if it works....lol....i'm still having errors
[Motorola Photon 4G] jamesdwalters:
Worked like a champ. Had to retype a line here and there due to fat fingers and using wifes netbook (to lazy to walk to desk) but simple enough once I gave the su permission on phone. Still kind of bends my noodle to have to give computer permission on phone but I am getting kind of tired of just sitting around and using what other people work to do for us (donations not withstanding) but I plan to learn. I have some programing experience, might as well learn to be useful.
[Motorola Photon 4G] kgbcapthowdy:
well, even though i get the error on that line, i kept going and i think it worked. cant check til tomorrw
[Motorola Photon 4G] jamesdwalters:
You got error on the su line? If so what about line after etc?
[Motorola Photon 4G] John Kotches:
When you type in "adb shell" you are running with a shell from the phone.

at that point your computer is a dumb terminal.
[Motorola Photon 4G] John Kotches:
Is anyone else using a Bluetooth keyboard and mouse having issues with device disconnect and reconnect happening frequently?

The mouse is especially prone to this issue and I've used two of them.
[Motorola Photon 4G] kgbcapthowdy:
no i didnt get an error on the su line. a page back i put in where i was getting an error but i will see later if it worked lol
[Motorola Photon 4G] jamesdwalters:
I noticed last night that if you don't have a keyboard and mouse connected your phone itself acts as the keyboard and mouse. I thought the way they set it up was pretty good. The only down side I saw (minor) was that swype didn't seem to work. Now I think this is great and I will probably still buy a dock when prices become reasonable, so I can connect my portable usb hard drives with movies to it. The one thing I want to know is why do we even have webtop? When I tried mirroring it seemed to work just fine for internet and for netflix. I didn't really see why webtop was better or that it even is.
[Motorola Photon 4G] jbuggydroid:
Is anybody here with this mod installed able to get the ota to install? Mine keeps.failing and I am wondering if this is causing It. All I have done to my photon is root and apply this mod.
[Motorola Photon 4G] kgbcapthowdy:
it is causing it, another member removed the mod and it went right through.

my question is how do i remove the mod? Do i have to do a factory reset or just copy a few of the stock files back over? thanks

can someone please host the original dockservice apk and portal apk. thanks
[Motorola Photon 4G] jbuggydroid:
I second that!!!! :)
[Motorola Photon 4G] pksublime:
done and done

http://xdaforums.com/showthread.php?t=1233245
[Motorola Photon 4G] John Kotches:
Weird, I can't launch the webtop anymore...

Might back it out, reboot and put it back.

Cheers,
[Motorola Photon 4G] jamesdwalters:
The wsy I did it was to just use a file explorer to unzip the files and overwrite the ones in /sys/app. It caused force crashes until I did a battery pull but it rebooted fine. Then the OTA finally installed correctly. In order to get root back all I had to type was:

/tmp/photon-torpedo.sh

/tmp/install-sh.su

All of the files I needed (su&terminal emulator)were both still there making it easy.
[Motorola Photon 4G] darktranquility18:
Works good. though one problem. When in webtop mode, everytime i click on something, the screen goes black for a couple of seconds and theres this blue fuzziness everywhere. Any ideas?
[Motorola Photon 4G] jamesdwalters:
Are you running a custom rom?
[Motorola Photon 4G] techniq35:
Update

Is anyone able to use this hack after the OTA update?

I removed the hack so I could perform the update, and just now got around to reapplying it, but now Webtop doesn't show up as an option when I plugin in my hdmi. I'll try to reapply again (was in a bit of a rush trying to please a 3 year old) and post my success or failure, but just wanted to see if the OTA broke the current hack.
[Motorola Photon 4G] techniq35:
Update: i re-applied the hack again and now I have webtop again. Must of made a mistake the first time (after removing the hack and updating)
[Motorola Photon 4G] omegakai:
if your already rooted can you just install the two apps in the zip to achieve this or do i still need to also do the termainal thing?
[Motorola Photon 4G] M@XLOL:
The instructions are there for a reason. You need to do what is outlined in the OP.
[Motorola Photon 4G] my2cents:
Has anyone tried this after the .7 update? I just applied it, but I can't test it until I get phone.
[Motorola Photon 4G] jamesdwalters:
I just redid mine and it worked like a charm.....one digestion though, don't do it with terminal emulator while using phone mirroring. You will get force crashes when you do it and will have to do a battery pull. It won't break anything and you can pick up where you left off once you type in: su and the line under it.
[Motorola Photon 4G] mr_wrong_0:
entertainment center?

I have seen a number of videos online showing the entertainment center webtop app for the atrix. I have read both the photon and atrix forums and it seems that when you plug in the hdmi cable to the atrix (after the webtip hack of course) you have an option to open the entertainment center instead of webtop or mirroring or gallery or music. I was wondering if anyone has heard if the photon has this feature at all even with the dock. And if so how to enable it without the HD dock like atrix.
[Motorola Photon 4G] xblack5dahliax:
New to the photon stuff but but not androids. But is this able to install off the phone only no computer at all
[Motorola Photon 4G] deedscreen:
Not to my current knowledge.
[Motorola Photon 4G] John Kotches:
As long as you can get the replacement apk files onto the phone then you can use terminal emulator or ssh droid to get a login session on the phone. Once you have that you're all set.

Swyped on my Nook color using Tapatalk Pro
[Motorola Photon 4G] omegakai:
what is exploit?
[Motorola Photon 4G] androidrookie:
Is there an answer for the "failed on '/system/app/...- No such file or directory

I had to copy the DockService.apk and the PortalApp.apk files and paste them in the directory /system/app location in order to get past the 6th and 7th lines on the instructions. However, I'm running into the same problems on the next line but I cannot fix it myself since those files didn't come with the zip download. Has anyone solved the "No such file or directory" problem yet? If those missing files can be downloaded and copied to the /system/app path, will this work? I have tried searching the internet but I am unable to find these files.

This is a list of missing files causing the "failed on" problem:

DockService.odex (DockService.odex.bak is there but not the first one)

PortalApp.odex (.odex.bak is there same as above)

*DockService*

I will try some of the solutions offered to the Atrix on the other thread. Until then, any help will be appreciated.
[Motorola Photon 4G] deedscreen:
Woohoo!!! Tonight will be great for me.

Delayed Installation for me.
[Motorola Photon 4G] omegakai:
im wondering if anyone is will to make a video on how to do the webtop hdmi hack to use webtop with out the dock, cause my cmd and adb shell skills need work ...... Please
[Motorola Photon 4G] deedscreen:
I would appreciate a video on how to do it also.
[Motorola Photon 4G] jokersax11:
ok to make it easier for some of you to do this, use root explorer and terminal from the market.

unzip the files and copy them to the sdcard. (plug phone into computer and mount usb, or use androzip then copy to the root of sdcard)

open root explorer and go to system

click mount rw in the top of the program.

go to app folder

find DockService.apk/odex and delete

find portalapp.apk/odex and delete

navigate to /data/davilk-cache/ find and delete files for dockservice and portalapp

navigate to the sdcard and find the unzipped dockservice.apk/portalapp.apk copy

then navigate back to system/app

paste

click the home button and open terminal.

type su

hit enter

type cd /system/app

hit enter

type chown 0:0 ./DockService.apk

hit enter

type chown 0:0 ./PortalApp.apk

hit enter

type chmod 644 ./DockService.apk

hit enter

type chmod 644 ./PortalApp.apk

hit enter

type reboot

hit enter.

success

btw this can all be done on the phone with androzip and terminal. i put in instructions for root explorer but you can just type in what the op put down right in terminal and skip the adb part if you like, adb shell= terminal(adb shell is easier to type on because its from your computer)
[Motorola Photon 4G] omegakai:
in this one part here( navigate to /data/davilk-cache/ find and delete files for dockservice and portalapp) those files are not in there to delete what does this mean? and when i do these commands it say operation not permitted

---------- Post added at 03:17 AM ---------- Previous post was at 02:21 AM ----------

never mind i figured it out lol but i think i may have the easiet way to do it cause i didnt type anything to get it working!!! or maybe im just lucky hahaha or something but at the moment dont care how just glad i did
[Motorola Photon 4G] John Kotches:
While jokersax' instructions will work, they will break your ability to receive OTA upgrades. You need to move rather than delete the existing .apk and .odex. You move those back into place when you want to get an upgrade. Basically you toggle between the hacked versions and the existing versions.

Also, everyone seems to make the same mistake -- you don't need seperate chmod / chown commands for each file. After the move, you can run:

chown 0:0 DockService.apk PortalApp.apk

chmod 644 DockService.apk PortalApp.apk
[Motorola Photon 4G] jokersax11:
I didn't even think of that, thanks for that
[Motorola Photon 4G] Al936:
I have tried it after .7 update. I am on 4.5.1A-1_SUN-154_6 build right now.

Webtop starts - I can see it at TV but I am not able to control it. There is big L and R pluse keyboard button on the Photon screen, but they do not work at all :(
[Motorola Photon 4G] jokersax11:
they work but it sucks. i suggest upgrading to 198_6 then do the hack the controls are alot better.
[Motorola Photon 4G] jokersax11:
ok i just tried it and you can do everything right from the root explorer app. delete copy and set permissions
[Motorola Photon 4G] John Kotches:
We're back to the fact that delete breaks update capability no matter which way you do it. When you delete the files, you break OTA updates. Not the end of the world and not ideal either.

rename / copy / set perms / set owner

One problem with using a GUI interface is that if an app goes into a force close loop (I've seen that happen with this) you can't complete the operations in the GUI until you've pulled the battery and rebooted.
[Motorola Photon 4G] jokersax11:
True but I load stock before updating, and you have to stop the program to avoid the force close loop. Plus I do a backup of all system files with titanium. So I just restore and bam
[Motorola Photon 4G] John Kotches:
Yes, but don't assume that everyone has Titanium Backup to do the work behind the scenes. You'll get feedback that "so and so" didn't warn me about X.

Sorry if it seems like I'm picking on you, I'm not trying to do so.
[Motorola Photon 4G] JonandRoid:
in order to send files to sdcard make sure when you plug in your phone its set to charge only because it is being mounted and used by the computer, also you will probably get some permission errors.
[Motorola Photon 4G] jokersax11:
I know some will, and but even if I spelled it out they would still do the same. I've been a part of xda since winmo 5
[Motorola Photon 4G] Al936:
Hm... I have flashed 198_6 (SBF via RSD Lite) and did the hack. But situation is the same.

Webtop starts - I can see it at TV but I am not able to control it. There are big L and R plus keyboard button on the Photon screen, but they do not work at all. Initially the buttons (L, R and keyb) on the photon's screen looks bright, but in one second became gray. I am trying to push them but they do not act. May be it is because my phone it not activated with Sprint. Any ideas?

Finally solved :)

In first post command "rm /data/dalvik-cache/*DockService* /data/dalvik-cache/*PortalApp*" is incorrect.

I did the following to clearing Dalvik Cache:

adb shell

su

rm /data/dalvik-cache/system@app*.dex

rm /data/dalvik-cache/system@framework*.dex

After phone rebooting webtop works
[Motorola Photon 4G] legend_jo:
You mentioned this breaks the OTA upgrades. Pardon my ignorance/nobbishness, but how would someone toggle between hacked and existing versions?

I tried to run the latest OTA and get an error. I've only run the original post's instructions to obtain webtop over HDMI. I'm assuming i just need to do as you suggested and toggle back to the existing version, but have no clue how :(...
[Motorola Photon 4G] samcrac:
I second this. Anybody have the orignal files? Would that work? My update no longer works and this is the only other mod I have besides OCR. Thanks!
[Motorola Photon 4G] John Kotches:
That's exactly what you do is replace the hacked files with the original files from the phone.

That's also why instructions are to save the original files as .bak versions.
[Motorola Photon 4G] John Kotches:
Save the hacked versions as .hack
[Motorola Photon 4G] iLLa:
some bt mice and keyboards are only like 50 bucks on amazon . . even a combo. plus small and portable.
[Motorola Photon 4G] legend_jo:
Yeah...that's the part I do not know how to do. I'm assuming I have to use ADB, through a command prompt?

Again..sorry if my question is noobish, but i really do have little experience with this type of modding.

Thanks for any help
[Motorola Photon 4G] John Kotches:
If you've rooted your phone, I'll assume so, in which case:

$ su

# mount -o remount,rw /system

# cd /system/app

# mv PortalApp.apk PortalApp.apk.hack

# mv DockService.apk DockService.apk. hack

# cd

# mount-o remount,ro /system

# exit

$ exit

Check the apk names as I'm typing this on my phone.
[Motorola Photon 4G] legend_jo:
OK, so i got as far as "mv PortalApp.apk PortalApp.apk.hack", but i get a "failed on 'PortalApp.apk' - Read-only file system." I only have the original files I installed for ADB and the files from the WebTop hack. I have not changed the file names I downloaded for the hack, they are still named: PortalApp.apk & DockService.apk

Is there something i'm missing?
[Motorola Photon 4G] John Kotches:
Then either you didn't run the first mount command, or you haven't rooted your phone.

When the prompt changes from $ to # that means you are running as root.
[Motorola Photon 4G] John Kotches:
legend_jo:

I should point out that I'm expecting you to run this through terminal emulator not through adb shell.

It should still work with adb shell, since you end up in the same spot (an open shell prompt) but I haven't personally tested it.
[Motorola Photon 4G] legend_jo:
I tried terminal emulator and got the same thing "failed on 'PortalApp.apk' - Read-only file system."

Alright..maybe I'm doing something wrong on the first part. When I get to "mount -o remount,rw /system" I get this: Usage: mount [-r] [-w] [-o options] [-type] device directory.

Am I supposed to select/type one of these items and then proceed to the next line?

Again..sorry for the noobish questions...

Thanks
[Motorola Photon 4G] John Kotches:
legend:

try this, noting that this is one continuous line

mount -o rw,remount /dev/block/mmc0p12 /system

i
[Motorola Photon 4G] legend_jo:
I'm guessing I got a bit further now.

I got through without the same errors, but this time after this line: # mv PortalApp.apk PortalApp.apk.hack. I got "Sorry! The application com.andriod.portal(process com.andriod.portal) has stopped unexpectedly. Please try again."

I got this message non-stop, and had to reboot my phone via battery pull. There was nothing I could do to make that message stop popping up.

UPDATE: After reboot. Now when I try the commands, I get to "mv PortalApp.apk PortalApk.apk.hack" and get this again: "failed on 'PortalApp.apk' - No such file or directory.
[Motorola Photon 4G] NOMIOMI:
will the Simple USB work or some special thing is needed for this hack to use webtop app without dock
[Motorola Photon 4G] John Kotches:
legend_jo...

Move in the regular versions now, you'll be fine.

You got the error because PortalApp runs in the background so it gets an error when its gone.
[Motorola Photon 4G] kc_sheets:
this is a cool find...
[Motorola Photon 4G] legend_jo:
Awesome...so..um...how do i do that? Sheesh..i know, i'm clueless.

Is it the "mount-o remount,ro /system" part?
[Motorola Photon 4G] John Kotches:
No, you need to move the original versions you were supposed to save way back when :)

If you didn't save them I'll see what I can do about getting you a copy of the originals.
[Motorola Photon 4G] legend_jo:
Yeah...don't think saved them :|

EDIT: If i just flash "2.3.4-4.5.1A-1_SUN-198_6-CM" sbf will that reset everything back?
[Motorola Photon 4G] mr_wrong_0:
I'm having the same trouble as you I have no movement to the curser but the phone is responding. Can you point me to the commands to replace the files like you did?

EDIT* I got it worked out. I was having trouble with the ADB commands that had to do with moving the apk files, so I did that with root explorer and used ADB to change permissions.
[Motorola Photon 4G] GUARDIANBD:
Hi!

will it work with the new 198_7 update with r00t?

can some1 upload an Video Tutorial?

many thanks!
[Motorola Photon 4G] dschoms:
A video tutorial on the webtop hack would be a wonderful thing. Being new to Android, I'm struggling with terminology and implemrntation.
[Motorola Photon 4G] htcSlide:
Will this work with CM7?
[Motorola Photon 4G] YzRacer:
Great mod! I am an ADB rookie and the first try I forgot to approve the Superuser request on the phone, but once I remembered that everything worked fine.
[Motorola Photon 4G] drewbuchman:
Got one for ya

First off let me start by thanking you for this it is amazing... now for the issue... This works great on my 40in Toshiba tv. But it will not work for my acer x213h 21.5 in lcd and i know why it is because of the power saving feature kicks in 3 seconds after not detecting the input. now the question is can anyone figure out how to get this to work the phone takes about 6 seconds to recognize its connected by that time the screen has already gone into power save. any ideas?

Update: ok after spending hours on this i have finally figured it out and it holds true to all 4 monitors i have.

1. Turn off monitor

2. Unplug all input cables except power and hdmi

3. Plug cable into phone

4. Turn on monitor

5. Select Webtop

6. Enjoy