Patch Launcher Hide Media Sync Option

From WebOS Internals

Revision as of 06:37, 29 September 2009 by Jhoff80 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Access Linux

Enable the Optware Package Feed and install a backdoor.

1. SSH in.

2. Remount the file system as read/write:

mount -o remount,rw /

To HIDE the Media Sync button that appears when you plug in the usb cable:

3. Bring up the visual editor to edit the application info for the :

vi /usr/lib/luna/system/luna-systemui/app/controllers/usbdashboard-assistant.js

4. Press i to enter insert mode.

5. After the this.showMediaWarning = showMediaWarning; line, change the next line (line 8, webOS 1.2) from this:

this.disableImasq = disableImasq;

to this:

this.disableImasq = true; //disableImasq;


6. Press <ESC> to exit insert mode and go into command mode.

7. Save and quit the file that you are editing:

:wq


8. Bring up the visual editor to edit the application info for the :

vi /usr/lib/luna/system/luna-systemui/app/controllers/storagealert-assistant.js

9. Press i to enter insert mode.

10. After the this.showMediaWarning = showMediaWarning; line, change the next line (line 8 in 1.2) from this:

this.disableImasq = disableImasq;

to this:

this.disableImasq = true; //disableImasq;

11. Press <ESC> to exit insert mode and go into command mode.

12. Save and quit the file that you are editing:

:wq

13. Remount the file system as read only:

mount -o remount,ro /

14. You may need to restart LunaSysMgr (avoids full reboot):

initctl stop LunaSysMgr
initctl start LunaSysMgr


(thanks to SagaciousB, Hopspitfire and Noir for making other patch pages for me to steal the formatting and some text from)

Personal tools
Google AdSense