View Single Post
Old 05-12-2019, 07:49 PM   #4
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
OP has a PW3 on 5.10.3 and is doing a serial jailbreak (last factory fw available thus far is 5.9.6.1). From his post, it seems like he already has shell access but further instructions from the serial jailbreak thread are geared towards older devices/firmware.

;installHtml just runs /usr/local/bin/InstallHtmlViewer.sh and this is pretty much what that script contains.

Code:
#!/bin/sh
#
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All rights reserved.
# PROPRIETARY/CONFIDENTIAL
# Use is subject to license terms.
#
# Populate the files for html viewer

# root path after main-htmlviewer.tar.gz is extracted
FILE_PATH=/mnt/us/transferfiles

# copy files from tar to folders on device
mntroot rw
cd /mnt/us
tar xvf /mnt/us/main-htmlviewer.tar.gz
cd $FILE_PATH
cp wafapp /usr/bin/
if [ -f  /var/local/waf/htmlviewer ]
	then rm -rf /var/local/waf/htmlviewer
fi
if [ -f  /opt/var/local/waf/htmlviewer ]
	then rm -rf /opt/var/local/waf/htmlviewer
fi
cp -r htmlviewer /opt/var/local/waf/
if [ -f  /mnt/us/html_demos ]
	then rm -rf /mnt/us/html_demos
fi
cp -r html_demos /mnt/us/
cp htmlviewer.install /mnt/us/

# register application, cleanup and restart
register htmlviewer.install
cd ..
rm -rf $FILE_PATH
usbnetwork stop
restart appmgrd
restart x
restart framework
ilovejedd is offline   Reply With Quote