5,605,904 Members 47,515 Now Online
XDA Developers Android and Mobile Development Forum

Continuously frustrated with attempting to DEV anything on my OSX

Tip us?
 
Silentbtdeadly
Old
(Last edited by Silentbtdeadly; 28th April 2012 at 07:58 PM.)
#1  
Silentbtdeadly's Avatar
Recognized Contributor - OP
Thanks Meter 792
Posts: 1,560
Join Date: Sep 2010
Location: Jacksonville

 
DONATE TO ME
Default Continuously frustrated with attempting to DEV anything on my OSX

I have spent over an hour trying to get an update someone else already created that removes sense(to work on a recent ICS leak for the amaze 4g)- all I should need to do is modify the updater-script. I opened and edited with gedit, I've checked everything about it and can't find a reason why I get installation aborted- critical error. The recovery log doesn't give me any detail(I am using 4ext), and I'm sure there is something minor I am missing that is keeping me from such a SIMPLE thing..

*Some of this is a rant to explain that I have done PLENTY of searching, if you can take a look at the file and see if you know what I'm doing wrong it is appreciated.
Before I asked this I have searched everything I could find on doing this- I made sure any hidden osx files in the directory were deleted before compressing, made changes with gedit that should maintain the file type, I signed the file with dxixda's kitchen(I do get an error: ls: illegal option -- X - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...] but everything I've found makes me think this shouldn't be a problem- and if it is I don't even know what is wrong with the kitchen or my file).
As I said, this is a last resort, I've also had problems deodexing and it seems like everything else I've tried to do on my mac lately.. GOING CRAZY. If I don't figure out what keeps screwing things up I'm gonna do a complete new install of OSX- I'm thinking maybe there is something wrong..
/Rant*

Thanks in advance if anyone can point out what I'm doing wrong, I am beyond frustrated! In the end I am trying to develop a zip to remove sense and htc apps that can be replaced by aosp ics apps, and maybe a tiny bit of theming if I integrate all of this into a rom- so I'm dying that i can't even get the first part of this accomplished(as I have in the past!)
Attached Files
File Type: zip signed_Amaze_Remove_Sense.zip - [Click for QR Code] (158.0 KB, 4 views)

Issues with the AMAZE 4g? Come stalk the always up to date, always maintained, Ultimate Guide to Everything Amaze-ing!(Amaze 4g BIBLE!)!
Current Device: International Galaxy S3 i9300
Other Devices: Nexus 7
 
lithid-cm
Old
#2  
lithid-cm's Avatar
Recognized Developer
Thanks Meter 2955
Posts: 3,177
Join Date: Jul 2010
Location: Cleveland
Script.sh
Code:
#!/sbin/sh

RDD="/data/app"
RDATA="com.twitter.android-1.apk
com.htc.FMRadioWidget.apk
com.htc.FriendStreamWidget.apk
com.htc.MusicWidget.apk
com.htc.NewsReaderWidget.apk
com.htc.StockWidget.apk
com.htc.TwitterWidget.apk
com.htc.WeatherWidget.apk
HtcAddProgramWidget.apk
htcbookmarkwidget.apk
HtcCalculatorWidget.apk
htccalendarwidgets.apk
HtcClockWidget.apk
htccontactwidgets.apk
HtcCopyright.apk
HtcFootprintsWidget.apk
htcmailwidgets.apk
htcmsgwidgets.apk
HtcPhotoWidget.apk
HtcProfilesWidget.apk
HtcRingtoneWidget.apk
htcsettingwidgets.apk
HtcSyncwidget.apk
HtcWeatherWallpaper.apk
PluginManager.apk
Rosie.apk
WidgetDownloadManager.apk"

RSS="/system/app"
RSYS="com.twitter.android-1.apk
com.htc.FMRadioWidget.apk
com.htc.FriendStream3DWidget.apk
com.htc.MusicWidget.apk
com.htc.Twitter3DWidget.apk
com.htc.Weather3DWidget.apk
htcbookmarkwidget3d.apk
HtcCalculatorWidget.apk
htccalendarwidgets3d.apk
HtcClock3DWidget.apk
htccontactwidgets3D.apk
htcmailwidgets3d.apk
HtcPhotoWidget.apk
HtcProfileWidget.apk
HtcRingtoneWidget.apk
htcsettingwidgets.apk
Sync3Dwidget.apk
HtcWeatherWallpaper.apk
PluginManager.apk
Rosie.apk"

for x in $RDATA; do
	rm -f $RDD/$x
done

for x in $RSYS do
	rm -f $RSS/$x
done

exit 0
updater script
Code:
format("MTD", "cache");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");

show_progress(1, 15);

package_extract_file("script.sh", "/tmp/script.sh");
set_perm(0, 0, 0777, "/tmp/script.sh");
run_program("/tmp/script.sh", "");

delete_recursive("/data/dalvik-cache");
unmount("/userdata");
unmount("/system");

Quote:
Choosy moms choose JIF, the others JFIO
Twitter | Google Plus | Scripts | Github | AOSCompiler

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes