First I am a newbie and need help writing a script to reboot my phone. I found this link for an app that can run a script at a set time:
http://forum.xda-developers.com/showthread.php?t=558822
The site has a reboot.txt file that I suppose to place in a location on the sdcard that the program calls at a time I set and execute the script. The file contents looks like this: 'reboot.txt'
===============
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
reboot
===============
I cannot get it to work!! I can see my phone acting on the script because when the time for the script to run I see a bubble SU GRANT ACCESS is approved
I am on Froyo 2.2 and rooted and if I connect my phone and do an adb shell and run this command: /system/bin/reboot
It will reboot... I am running Virtuous 2.5 custom rom and have installed busybox if that helps...
So Vets...what script command do I need to place in the reboot.txt file to make my phone reboot when the app calls the script??
HELP...pls
So I've never actually written a shell script specifically for android but how are you calling the script?
You should either be calling it like "sh /path/to/reboot.txt" or add a shebang line to the script and rename it to reboot.sh
Also, make sure reboot.sh is chmod'd +x.
Sent from my ADR6300 using XDA App
parcou said:
First I am a newbie and need help writing a script to reboot my phone. I found this link for an app that can run a script at a set time:
http://forum.xda-developers.com/showthread.php?t=558822
The site has a reboot.txt file that I suppose to place in a location on the sdcard that the program calls at a time I set and execute the script. The file contents looks like this: 'reboot.txt'
===============
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
reboot
===============
I cannot get it to work!! I can see my phone acting on the script because when the time for the script to run I see a bubble SU GRANT ACCESS is approved
I am on Froyo 2.2 and rooted and if I connect my phone and do an adb shell and run this command: /system/bin/reboot
It will reboot... I am running Virtuous 2.5 custom rom and have installed busybox if that helps...
So Vets...what script command do I need to place in the reboot.txt file to make my phone reboot when the app calls the script??
HELP...pls
Click to expand...
Click to collapse
The reboot binary does not permit executing form a script. Install Rom Manager and then add this line to your script: /data/data/com.koushikdutta.rommanager/files/reboot
n_i_x said:
So I've never actually written a shell script specifically for android but how are you calling the script?
You should either be calling it like "sh /path/to/reboot.txt" or add a shebang line to the script and rename it to reboot.sh
Also, make sure reboot.sh is chmod'd +x.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
The app has a program called scheduler that I set the time options and it reads the reboot.txt file from what the site explains...
ihtfp69 said:
The reboot binary does not permit executing form a script. Install Rom Manager and then add this line to your script: /data/data/com.koushikdutta.rommanager/files/reboot
Click to expand...
Click to collapse
I do have rom manager installed for the custom rom...
So where can I find this script but the critical part is the be able to set the reboot to a daily time schedule...
parcou said:
I do have rom manager installed for the custom rom...
So where can I find this script but the critical part is the be able to set the reboot to a daily time schedule...
Click to expand...
Click to collapse
You already have the script, just modify the reboot line. Personally, I use a program called Locale to do things like this.
Code:
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
/data/data/com.koushikdutta.rommanager/files/reboot
ihtfp69 said:
You already have the script, just modify the reboot line. Personally, I use a program called Locale to do things like this.
Code:
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
/data/data/com.koushikdutta.rommanager/files/reboot
Click to expand...
Click to collapse
I am open to any program that was the first I found...is Locale on the market and can you schedule it to run a reboot script at a set time daily?
Make sure the first line of the script is:
!#/system/bin/sh
ihtfp69 said:
You already have the script, just modify the reboot line. Personally, I use a program called Locale to do things like this.
Code:
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
/data/data/com.koushikdutta.rommanager/files/reboot
Click to expand...
Click to collapse
ihtfp69
WOW!!! This worked the phone reboot automatically at the time schedule I set the program to run the script for...THX!!!
I am a windows man so new to these commands but is it possible to write a script line to kill an app... So in windows or DOS I can create a batch file to kill a process or a PID. So on the DINC if I wanted to kill the HTC mail app what would a command line look like to kill that task???
Also still tell me about Locale in the previous post...
Can someone point me in the right direction to learn how to write scripts on a mac?
Sent from my INCREDIBLE using XDA app
parcou said:
I am open to any program that was the first I found...is Locale on the market and can you schedule it to run a reboot script at a set time daily?
Click to expand...
Click to collapse
Yes, it can do that and its in the market.
if I wanted to kill the HTC mail app what would a command line look like to kill that task???
ihtfp69 said:
You already have the script, just modify the reboot line. Personally, I use a program called Locale to do things like this.
Code:
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
/data/data/com.koushikdutta.rommanager/files/reboot
Click to expand...
Click to collapse
ihtfp69, I am trying to do the same thing the OP is trying to do. I downloaded SL4A so tasker could see the reboot script. When I try to execute the script, I am getting an "operation not permitted" when trying to execute the last line of the script. Any thoughts?
bump....still looking for help!
wish I could help...
I am rooted so with Rom manager and using the program at the link below... I am able to have my phone reboot each day at 7:55am
http://forum.xda-developers.com/showthread.php?p=4511181
parcou said:
wish I could help...
I am rooted so with Rom manager and using the program at the link below... I am able to have my phone reboot each day at 7:55am
http://forum.xda-developers.com/showthread.php?p=4511181
Click to expand...
Click to collapse
what is the difference between this and SL4A?
WhammyDroid said:
what is the difference between this and SL4A?
Click to expand...
Click to collapse
I am a newbie so I do not know anything about that...I am sure it could work but I needed something very easy for my limited knowledge which worked for me because the reboot script was already part of it...just needed a line tweak which they helped me with here...
WhammyDroid said:
ihtfp69, I am trying to do the same thing the OP is trying to do. I downloaded SL4A so tasker could see the reboot script. When I try to execute the script, I am getting an "operation not permitted" when trying to execute the last line of the script. Any thoughts?
Click to expand...
Click to collapse
It needs to run as root. Also, read the third post.
Code:
su -c 'your command goes in here'
WhammyDroid said:
what is the difference between this and SL4A?
Click to expand...
Click to collapse
I would stick with SL4A and Locale or Tasker.
ihtfp69 said:
It needs to run as root. Also, read the third post.
Code:
su -c 'your command goes in here'
I would stick with SL4A and Locale or Tasker.
Click to expand...
Click to collapse
Thank you!
All, below is the script that needs to be used within SL4A
Code:
#Android Market
busybox rm -R /data/data/com.android.vending/cache
#Browser
busybox rm -R /data/data/com.android.browser/cache/webviewCache
#GMail
busybox rm -R /data/data/com.google.android.gm/cache/webviewCache
#Google Maps
busybox rm -R /data/data/com.google.android.apps.maps/cache/webviewCache
#Google Maps StreetView
busybox rm -R /data/data/com.google.android.street/cache
#Youtube
busybox rm -R /data/data/com.google.android.youtube/cache
#Reboot using Rom Manager binary
su -c /data/data/com.koushikdutta.rommanager/files/reboot
[/QUOTE]
WhammyDroid said:
Thank you!
All, below is the script that needs to be used within SL4A
...
Click to expand...
Click to collapse
And if you do not want to make it Rom Manager dependent, use the following line of code to reboot. This is how the hot reboot works.
Code:
su -c 'pkill -TERM -f system_server'
Related
There was an older thread started by johnnylicious and I am going to be starting a new one that has the new files to skin/theme the lockscreen, phone, htccontacts, and Rosie. for the lockscreen the credits go to goldenarmz.
He created the batch file, I just edited the apk and the png files in there to make it work on the new roms.
BEFORE GOING ANY FARTHER, YOU NEED ADB OR YOU NEED TO KNOW HOW TO DROP INTO RECOVERY CONSOLE OR RUN COMMANDS IN TERMINAL. If you do not have it, stop, go to the stickies, get it going and then come back here. do not junk this up with questions that you can search for.
"what is adb" - part of the SDK. it is a huge help, check out the stickies to get it.
"how do i get adb" - go to the stickies
"can i run this without root" - no
"can i run this on cyanogen" - no, this is for hero roms
"will you make this for non-rooted phones" - no, not possible.
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
-INSTALL INSTRUCTIONS-
Transparent Rosie.apk with wallpapers
adb remount
adb shell rm -r /system/sd/app_s/Rosie.apk
adb push directory\Rosie.apk /system/sd/app_s/
Click to expand...
Click to collapse
Ophone Dialer.apk
adb remount
adb push directory\Phone.apk /system/sd/app_s/
Click to expand...
Click to collapse
HtcContacts.apk
adb remount
adb push directory\HtcContacts.apk /system/sd/app_s/
Click to expand...
Click to collapse
ANOTHER OPTION FOR OPHONE DIALER AND HTCCONTACTS
Launcher Themed to look like Hero
adb remount
adb push directory\Launcher.apk /system/sd/app_s/
Click to expand...
Click to collapse
you can either adb shell reboot after each file is pushed or you can wait after all three are pushed to shell reboot
adb shell reboot
Click to expand...
Click to collapse
transparent lockscreen
for the lockscreen- unzip and run the .bat file, follow the instructions.
-FOR THOSE NOT USING ADB FOLLOW THESE INSTRUCTIONS-
COURTESY OF NOLIMIT78CHOOSE WHICH OPTION YOU ARE DOING, EITHER TERMINAL OR RECOVERY CONSOLE, AND THEN FOLLOW THE INSTRUCTIONS "FOR BOTH"
This is to move the Rosie.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
This is for both
Code:
rm -r /system/sd/app_s/Rosie.apk #cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
This is to move the Phone.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
This is for both
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
This is to move the HtcContact.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
This is for both.
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
This is for Hero CleanUp
This is for terminal
Code:
su
This is for console
Code:
mount /system/sd
This is for both
Code:
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
DISCLAIMER- I take no responsibility for what happens to your phone, as the screenshots show, it works for me but that does not mean it will work for you. I will be glad to help if you run into problems.
These files have been tested are on working on the newest jacxhero builds from 1.8 on up so far. they should work on most of the other roms as well since they are all using jacxski newest kernel. enjoy.
credits to go goldenarmz for the lockscreen .bat file. if you seek credits just ask, i will be glad to give credit where necessary
-Clean up Hero-
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
Since I started running hero roms, i have come to realize that most of the stuff is junk and is not needed. Thus, I have removed many widgets, and many extra .apks that i do not use such as quickoffice, pdfviewer, java, flash, photo album widget, weather widget, music widget, contacts widget, messages widget, mail widgets. I am going to post the commands you can run in ADB to remove these items and speed up hero a little bit. rather than just do a .bat file, i will post them here so the n00bs can just copy and paste into ADB.
TO COPY AND PASTE INTO ADB, HIGHLIGHT THE LINE OF THE ITEM YOU WANT TO REMOVE, PRESS CTRL+C, GO TO THE CMD WINDOW RUNNING ADB AND CLICK IN THE WINDOW AND NOW PRESS ALT+SPACE ADN NOW "E" "P" (WITHOUT THE QUOTES) AND THE LINE SHOULD PASTE OVER. NOW PRESS ENTER AND IT SHOULD RUN.
COMMANDS TO REMOVE FILES
THESE COMMANDS ARE CASE SENSITIVE
adb remount
adb shell rm -r /system/sd/app_s/BizCardReader.apk
adb shell rm -r /system/sd/app_s/com.htc.MusicWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
adb shell rm -r /system/sd/app_s/FlashPlayer.apk
adb shell rm -r /system/sd/app_s/HtcClockWidget.apk
adb shell rm -r /system/sd/app_s/htccontactwidgets.apk
adb shell rm -r /system/sd/app_s/htcmailwidgets.apk
adb shell rm -r /system/sd/app_s/htcmsgwidgets.apk
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apk
adb shell rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
adb shell rm -r /system/sd/app_s/Jbed.apk
adb shell rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
adb shell rm -r /system/sd/app_s/PDFViewer.apk
adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
When removing widgets and some applications, the screen may flash and do the loading screen, this is normal.
Hope this helps you guys running hero roms get things going a little speedier, once again any questions, just let me know, I am working on removing other things here and there to pick up speed, if I find things that can be removed I will post them here.
here is a video of my g1 running my phone as is with all these edits
Console/terminal?
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
akycia said:
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Click to expand...
Click to collapse
I'm at work right now, I will post terminal commands when I get home.
Docavelli said:
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
Click to expand...
Click to collapse
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
palosjr said:
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
Click to expand...
Click to collapse
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
thanks for butting in. im home now. about to to add rosie and lock screen. i love the transparent look.
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
palosjr said:
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
Click to expand...
Click to collapse
What a difficult question! Because cupcake wants to be hero.. but since we're on hero.. hmmmmmm
..for the lockscreen the credits go to goldenarmz.
Click to expand...
Click to collapse
well sir, thats just me not reading! lol
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
Did you get this to work on jacxheroski 2.1??
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
As far as I know it should work. The thing that was keeping these mods from working before was the kernel changes. I am going to keep up with these and when the kernels change i will edit the files accordingly. If you want to be safe, just do this
adb remount
adb pull /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
This will pull your stock lockscreen, now run the .bat file and let your phone reboot. If it reboots and you cant get past the htc screen do this
adb remount
Adb push (the com.htc.resources.apk file you pulled\com.htc.resources /system/sd/app_s/
Click to expand...
Click to collapse
This will get you back to where you were before. Hope this helps, but like i said it should work just fine.
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
palosjr said:
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
Click to expand...
Click to collapse
nope it's the MoDaCo 1.5.1 but Drizzy's 1.4
harpreet1988 said:
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
Click to expand...
Click to collapse
try this file for phone.apk ... i took the Phone.apk directly from that build and edited it. If it works i will do the HtcContacts.apk as well. follow same instructions as in the OP
1.5.1 Phone.apk
before pushing, rename the file to Phone.apk
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
palosjr said:
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
Click to expand...
Click to collapse
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
bigchi2000 said:
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Click to expand...
Click to collapse
dont zip the files to the sdcard, just zip them to the directory you downloaded them from, and then run the .bat, i think maybe when you put it on your sd it isnt finding the new files. also, if you push everything and then pull the lockscreen, there arent going to be any new images there because you pulled them off the phone.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
Click to expand...
Click to collapse
whats going on bro, yea its nice to be able to know enough to give back now
When I try to perform a whoami from:
$ su
# whoami
whoami: not found
# busybox whoami
whoami: unknown uid 0
# system/xbin/whoami
system/xbin/whoami: not found
# system/bin/whoami
system/bin/whoami: not found
This is preventing me from running titanium backup among other things.
Does anyone know how I can fix this?
jerrberr said:
When I try to perform a whoami from:
$ su
# whoami
whoami: not found
# busybox whoami
whoami: unknown uid 0
# system/xbin/whoami
system/xbin/whoami: not found
# system/bin/whoami
system/bin/whoami: not found
This is preventing me from running titanium backup among other things.
Does anyone know how I can fix this?
Click to expand...
Click to collapse
Did you run
busybox --install /system/xbin
While in recovery?
Yeah I'm having the same issue. When I did those commands in recovery it came back with a "--install: applet not found" error. For some reason the superuser (ninja icon) doesn't display anything in the white list. I do have su with the shell, but it's just not working. I also downloaded the newest busybox inside TB. I'm at a loss.
OK loss over with.....here is the fix:
Reboot your phone into recovery and mount the /system partition.
Code:
adb shell
su
cd /system/xbin
/system/bin/cat /sdcard/busybox > busybox
chmod 777 busybox
./busybox --install -s /system/xbin
This correctly installs busybox incase you messed something up to begin with. Now we need to deal with superuser permissions.
Code:
adb shell
su
/system/bin/cat /system/bin/sh > /system/bin/su
/system/bin/chmod 4777 /system/bin/su
Once at root (#) prompt in adb recovery
export PATH=$PATH:/system/bin
cd /system/app
cat /sdcard/Superuser.apk > Superuser.apk
cd /system/bin
cat /sdcard/su > su
ln -s /system/bin/su /system/xbin/su
chmod 06755 su
Did that and boom everything is working just fine now. Titanium backup is asking for superuser permissions etc. Thanks to everyone who has been posting and knows more about linux than me!
jmdearras said:
Did you run
busybox --install /system/xbin
While in recovery?
Click to expand...
Click to collapse
Nope - I used the newest (for Jun-29-2010) unrEVOked ota.zip/busybox/payload-update.zip toolchain that is supposed to do all of that for me. Maybe this needs tweaked?
The point is moot - I was trying to run titanium backup with the usb cable attached. Once I disconnected the phone from usb, titanium backup is working fine.
On the other hand, I think that I ought to be able to call whoami from the client machine adb shell or from a shell window in the phone (connectbot) with the usb cable connected, so I'll probably give this a try.
Anyone knows how to install busybox?
I've tried to follow some guides but ends up with:
Code:
215:Desktop ricardo$ adb push busybox /data/local
580 KB/s (1083568 bytes in 1.823s)
215:Desktop ricardo$ adb shell
$ su
# cd /system/xbin
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cat /data/local/busybox > busybox
cannot create busybox: not enough memory
or
$ su
# cd /data/local
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# dd if=/data/local/busybox of=/system/xbin/busybox
/system/xbin/busybox: cannot open for write: Out of memory
or
$ su
# cd /data/local
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# ./busybox cp /data/local/busybox /system/xbin
cp: can't create '/system/xbin/busybox': Cannot allocate memory
same here. cannot write to rw-mounted /system.
sucks
Try my zip file. Woked for me
The only thing that I want to change and I can't is the init.rc file. I tried to mount the / (rootfs) with rw, but every time I restart my device the file is copied, again, from the ramdisk image.
I have the same problem
ricardoft said:
Try my zip file. Woked for me
The only thing that I want to change and I can't is the init.rc file. I tried to mount the / (rootfs) with rw, but every time I restart my device the file is copied, again, from the ramdisk image.
Click to expand...
Click to collapse
What should I do with your files?
Nobody has a solution to this?
I don't think this is a memory issue though, .. added 512mb swap and still it claimed to be out of memory, ..
also I figured maybe hd space .. however when i ln /data/local/tmp/busybox to /system/xbin it had the same error.
I both tried ln from the system and ln from busybox both had same result.
It's not a memory problem! In order to install it you have to be in recovery mode.
Try:
While in recovery mode use adb to connect to our phone. Now transfer the zip file (busybox.zip) to your phone and install it via clockwork recovery -> install zip file -> select my zip file.
can anyone post the proper busybox file cause for some reason the file signature verification failed.
adb push busybox-signed.zip /sdcard/busybox-signed.zip
rebooted phone held down volume button while booting ..
choose recovery, ..
choose install zip from sdcard..
then i see a lot of no and one yes .. so i choose yes but the installation is aborted.
Just install titanium backup and click on 'problems?' at the bottom. It will install BusyBox for you.
it has error during installation at line 4 with your busybox.zip
somethinf like can not chmod
(rooted buzz with stock rom)
Elibongo said:
Just install titanium backup and click on 'problems?' at the bottom. It will install BusyBox for you.
Click to expand...
Click to collapse
Do what this guy said.
titanium install in /sdcard busybox, not in /system/bin (xbin) , so it is not usuable by other apps
i have installed it in during recovery mode in /system/xbin
how now to specify PATH for using commands from it?
kevin2516 said:
Do what this guy said.
Click to expand...
Click to collapse
you have read my mind especially since that isn't free software.
hellysmile said:
i have installed it in during recovery mode in /system/xbin
how now to specify PATH for using commands from it?
Click to expand...
Click to collapse
i think you need to create aliases however why install it in xbin anyways then, .. if you need to create aliases or links in bin.. ?
example
$ ln -s /data/local/tmp/busybox ls
$ ./ls
if it is in a path that is included in PATH executing a command will auto look for it in all directories defined in PATH env so basicly you could just create all the directories under /data/local/tmp/bin
and just then append that to PATH env echo $PATH then append :/data/local/tmp/bin to it and busybox should work as well.
Ofloo said:
you have read my mind especially since that isn't free software.
Click to expand...
Click to collapse
titanium backup is free software... look on the market, there's a free version and a donate version.
i have aliases in /system/xbin
they was created after busybox --instal -s
but in system allready exists some commands like ls => i want to use ls from busbox, not from system
and terminal emulator dont anderstand ^[ likes bindings
is there a definitive way to do this. There seems to be no clear way of doing it.
matpol said:
is there a definitive way to do this. There seems to be no clear way of doing it.
Click to expand...
Click to collapse
Maybe this helps:
fang0654 said:
To install:
1) extract and push busybox to your sdcard, reboot into recovery
2) mount /system
3) if you don't have /system/xbin (you should), create it
adb shell:
# mkdir /system/xbin (if necessary)
dd if=/sdcard/busybox of=/system/xbin/busybox
cd /system/xbin
chmod 755 busybox
./busybox --install .
4) reboot and done
OPTIONAL - before rebooting replace the busybox installed by the root process in /system/bin
1) mv /system/bin/busybox /system/bin/busybox.bak
2) cp /system/xbin/busybox /system/bin/busybox
Click to expand...
Click to collapse
from this site: http://forum.xda-developers.com/showthread.php?t=702634
The above is pretty straightforward. The only thing is you need to download the zip in the other thread and 'busybox' refers to the binary in the zip rather than the whole directory - as I understand it. Correct me if I am wrong but trying the dd command on the dir will not work.
matpol said:
The above is pretty straightforward. The only thing is you need to download the zip in the other thread and 'busybox' refers to the binary in the zip rather than the whole directory - as I understand it. Correct me if I am wrong but trying the dd command on the dir will not work.
Click to expand...
Click to collapse
You dont have to extract the binary into a folder, just extract the busybox file direct on your sdcard. Than the dd command should work, on my phone it works fine.
But if not, does the command cat in the adb shell work?
If so, try istead of the dd comand:
Code:
mount /sdcard
cat /sdcard/busybox > /system/xbin/busybox
And remember to start your wildfire in the recovery mode, that was the mistake I had done...
I've got some hastily/hackily compiled binaries for the nexus 9, since some of the other binaries I found wouldn't work on it. Thought I'd share.
Here is busybox (quite a lot of things enabled, it's the default config minus a few things that wouldn't compile); strace; and dropbearmulti (dbclient, dropbear, dropbearkey, and dropbearconvert).
Thanks! Especially for the busybox binary
I found out this info by doing a ton of googling. This is from a Google rep.
" No proprietary binaries are needed for Volantis. The proprietary vendor binaries are on a separate 'vendor' partition, which is flashed with the factory image update, should not change for AOSP development builds (only boot, recovery, and system partitions need to be updated)."
Not sure exactly what to do with that info yet though. Lol
Source:
http://www.androidpolice.com/2014/1...volantis-but-no-binaries-or-other-images-yet/
Would somebody be so kind as to post some instructions on how to install this?
oRAirwolf said:
Would somebody be so kind as to post some instructions on how to install this?
Click to expand...
Click to collapse
Well I'd say unpack, get the binaries to any easily accessible place like /sdcard .
Then, if the command mount works if you call it via adb shell or Android Terminal Emulator, do this:
Code:
mount -o remount,rw /system
cp /sdcard/busybox /system/xbin/busybox
chmod 755 /system/xbin/busybox
If the mount command does not work, enter TWRP recovery and:
go to Mount->tick system
go back, then enter the file manager under Advanced->File Manager
go to /sdcard/ , tap the busybox file
tap copy
navigate to /system/xbin
tap select
navigate again to /system/xbin
tap busybox
tap "chmod 755"
And you're done. Do the same with the rest of the binaries respectively and you're all set. I think BusyBox updater already includes a 64 arch busybox, so you could also try that.
EDIT: The manual method does NOT include symlinking the applets as individual commands, you would have to do it yourself.
Alexandroid99 said:
Well I'd say unpack, get the binaries to any easily accessible place like /sdcard .
Then, if the command mount works if you call it via adb shell or Android Terminal Emulator, do this:
Code:
mount -o remount,rw /system
cp /sdcard/busybox /system/xbin/busybox
chmod 755 /system/xbin/busybox
If the mount command does not work, enter TWRP recovery and:
go to Mount->tick system
go back, then enter the file manager under Advanced->File Manager
go to /sdcard/ , tap the busybox file
tap copy
navigate to /system/xbin
tap select
navigate again to /system/xbin
tap busybox
tap "chmod 755"
And you're done. Do the same with the rest of the binaries respectively and you're all set. I think BusyBox updater already includes a 64 arch busybox, so you could also try that.
EDIT: The manual method does NOT include symlinking the applets as individual commands, you would have to do it yourself.
Click to expand...
Click to collapse
busybox --install /system/xbin
USBhost said:
busybox --iinstall /system/xbin
Click to expand...
Click to collapse
Or that, but my way is a little more adventurous xD
(to be honest, I didn't know until now that it had that install parameter. I always did it manually. Thx bro. ^^)
Code:
sudo lolz
Alexandroid99 said:
Or that, but my way is a little more adventurous xD
(to be honest, I didn't know until now that it had that install parameter. I always did it manually. Thx bro. ^^)
Code:
sudo lolz
Click to expand...
Click to collapse
Code:
[email protected]:/ $ busybox
BusyBox v1.24.0.USBhost (2015-02-04 22:56:38 PST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR] [COLOR="green"]([/COLOR][COLOR="Red"]see here[/COLOR][COLOR="Lime"])[/COLOR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
[email protected]:/ $
You can get busybox dailys
From here https://s.basketbuild.com/devs/USBhost/busybox/arm64
how can login the dropbear's ssh sevice?
what is the name and the password?
Hi,
To Remove Hands Free Activation you should remove Spirint apps in system directory follow by commands below:
Code:
adb shell su -c mount -o rw,remount /system
adb shell
su
cd system
cd priv-app
rm -r SprintAndroidExtension2
rm -r SprintDM
rm -r SprintSetupWizard
rm -r SprintSyncMLPhoneIF
rm -r SprintSyncMLSvc
touch like button if this thread helps you.
Thank you for this!
why i am getting read only file error??
crixus190 said:
why i am getting read only file error??
Click to expand...
Click to collapse
becuase you need root permision
This worked. Thank you!