Is there any program the power offs phone when activated - G1 Apps and Games

Like title says, are there any programs out there that when put on main screen all you have to do is press it like the rest and it powers off the phone? And one that resets it?
Thanks

You would need root access for that to work. But I'm sure it's possible.

Yeah, you could use gscript and just make a simple bash script to do this.

breaultm said:
Yeah, you could use gscript and just make a simple bash script to do this.
Click to expand...
Click to collapse
Ok 1st really on here who isn't rooted?
Ok to what you said... Huh? You lost me at use... Sorry i know cars not programing

imbonez9 said:
Ok 1st really on here who isn't rooted?
Ok to what you said... Huh? You lost me at use... Sorry i know cars not programing
Click to expand...
Click to collapse
if you have root you just need a script that runs
reboot -p
make sure you give it su permissions

tubaking182 said:
if you have root you just need a script that runs
reboot -p
make sure you give it su permissions
Click to expand...
Click to collapse
And that will make it so i could have an icon on "home screen" that when pressed would reboot or power off?

http://forum.xda-developers.com/showthread.php?t=488928
http://forum.xda-developers.com/showthread.php?t=486486
Here is the thread for G-Script. I haven't used it yet, but I have seen people use icons on their homescreen that will auto reboot their phone.

You'll have to long press on homescreen and add s shortcut then gscript then the script, but yes it will allow that

Along with the gscript method there is a program called Root Booter. With it you can reboot normally, into recovery or into the bootloader. Not sure about just powering off though. Everything I know reboots the phone, although I am sure a script could be written for that.

here you go, i have included a file, just change .zip to .apk and it should install. i will throw it on the market in a few
this took 10 seconds to write(it took longer to load eclipse than it did to actually write this app)

tubaking182 said:
here you go, i have included a file, just change .zip to .apk and it should install. i will throw it on the market in a few
this took 10 seconds to write(it took longer to load eclipse than it did to actually write this app)
Click to expand...
Click to collapse
Hey thanks. Do you mind emailing me what script was said? This way i can learn.
I already have two books being sent to me on programing with Android so i can stop asking all these questions. Once again thank you

imbonez9 said:
Hey thanks. Do you mind emailing me what script was said? This way i can learn.
I already have two books being sent to me on programing with Android so i can stop asking all these questions. Once again thank you
Click to expand...
Click to collapse
all i did was open up eclipse and start a new android project, under the onCreate portion(the only thing there outside of the imports) i just threw in
Code:
try {
Runtime.getRuntime().exec("su");
Runtime.getRuntime().exec("reboot -p");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
everything from the "try" down is what i added. it's a really simple app, but it works. and since it is such a small script it doesn't ask permission from superuser so there's no chance of it breaking due to that stupid app(the new superuser broke my last app) glad i could help

Related

Root access with Astro?

Is there anyway to start Astro as root so you can use it to edit system directories?
I had wished for the same thing.. but i didnt tell nobody.. soo maybe this will be more effective. prevents having to type in the terminal all the time.. not that its bad.. ive learned so much allready since ive had this phone...
I totally agree! That would be perfect! Maybe there a way of editing the code or smth...
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
lbcoder said:
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
Click to expand...
Click to collapse
Pretty much this. It seems like most of the people having problems on this website just want root because it's "kewl" but really have no idea what it is or even have a clue on how Linux works.
I actually Emailed the Dev of Astro about this same question and here was his reply.
Here is the email copied and pasted from gmail.
My question
Are you able to make a version that requests root access to delete chmod rename move etc for the 100,000+ users from xda and other boards with root access?
His Reply
On Jan 21, 2009 10:57 AM, "Kevin Payne" <metago.inc[at]gmail> wrote:
This is a bit outside ASTRO's scope at the moment. Technically, ASTRO should work fine on files owned by root if it were run as a root process, but running applications as root is not advised in general. Someone really needs to create a sudo type command to let an individual application run as root.
lbcoder said:
If you can't work *MORE EFFICIENTLY* directly from the terminal, then you definitely should NOT have root access via GUI.
Click to expand...
Click to collapse
d00m said:
Pretty much this. It seems like most of the people having problems on this website just want root because it's "kewl" but really have no idea what it is or even have a clue on how Linux works.
Click to expand...
Click to collapse
Considering the fact that I'm a Systems Administrator as my profession and work with hundreds of Linux/Unix/Windows servers a day, the whole reason why I bought the G1 was for development and tinkering, the fact that my home PC is running Vista x64 (i haven't gotten around to creating a VM or messing with the drivers), and that I do wipes frequently to test different configurations, I'm pretty sure I'll be ok with root access. I'm just tired of manually doing something on that tiny keyboard that can easily be done with a nice pretty GUI. I stare at consoles all day and thousands of lines of black and white text, when I come home I don't exactly want to be anywhere near a terminal.
Also, why bother doing anything on a phone, other than using it as a phone (or for email, texting, etc.), if you don't do it because it's "kewl". I mess with my phone because it's cool to have a mini-*nix based computer with several fun radios on it. If I do something stupid like type "rm -Rf /*" after logging in as root (never going to happen) then that's my own fault.
I don't care if you're a Unix purist and you write up your office reports, spreadsheets, and diagrams in vi. Good for you, you're wasting time that can be better spent on other things because of your stubborn prejudice against GUI's. I asked a question, because I have a reason for that question. If you don't have any answers to that question, then please don't bother replying.
diabolical28 said:
I actually Emailed the Dev of Astro about this same question and here was his reply.
Here is the email copied and pasted from gmail.
My question
Are you able to make a version that requests root access to delete chmod rename move etc for the 100,000+ users from xda and other boards with root access?
His Reply
On Jan 21, 2009 10:57 AM, "Kevin Payne" <metago.inc[at]gmail> wrote:
This is a bit outside ASTRO's scope at the moment. Technically, ASTRO should work fine on files owned by root if it were run as a root process, but running applications as root is not advised in general. Someone really needs to create a sudo type command to let an individual application run as root.
Click to expand...
Click to collapse
I looked into the commands to launch an application from the CLI and found that Astro can be started using the following command:
am start -n com.metago.astro/.FileManagerActivity
However, this doesn't do us any good, since the dalvik VM will take that command and create a process as a sandbox user regardless of what user executes that command. There looks like there's a way to tell the VM to fork the process as a specific uid and gid, but that requires editing the AndroidManifest.xml.
I'm not too good with Java, and I don't know how strict Android's API is, so I don't know if running an apk application as root is even possible.
However, I do know that running commands from inside an application, like su, is possible.
~TM
"Wise men speak because they have something to say; Fools because they have to say something." ~Plato
Solved--Astro with root...(workaround)
kinda late, but in case anyone wants to know this is what I did.
This way technically doesnt allow astro to run with root, but its just as good.
I originally did this a few months back for my G1, and just mod it a little to work on my nexus
- created a script to mount system as rw
- created a script that gives r/w permission to all app directories (/data, /data/app, /data/app-private, /system, /system/app, /system/sd, ...) and all apps inside those directories
-then merged the 2 scripts and named it astro_root_perm
-installed GScript from the market
-created another script that
-first changes all permissions on apps back to what they started as(644, 640...)​-then changes permissions of directories back to what they were​-and finally remounts system back to ro, and named this script to astro_basic_perm​
-used Gscript to create shortcuts of the 2 scripts to my home screen.
-then with bettercut, I changed the scripts' icons to the astro icon. I just colored the astro stock icons "A" green for one script and red for the other
So anytime I want to use astro as root, I just click the shortcut I made with gscript off my home screen, open astro,
Then when Im done with astro, I just run the other script
I know its not the same as running astro AS root, but it works for me.
Im not really a linux guy......I'd really appreciate if someone could help me with this next step
++++++++++++++++++++++++++++++++++++
Does anyone know what I need to include in a script to have it call/open a program automatic?
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Estrongs has limited root file browsing on some ROMs and SU File Manager or Root File Manager will let you browse as root for a small price.
+1 recommendation on Estrongs File Explorer's root option if you want it for free, includes Windows shares browsing over lan.
Otherwise try SUFBS, also has built-in terminal.
Sent from my HTC Hero using Tapatalk
louieG1 said:
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Click to expand...
Click to collapse
I'm not sure exactly how gscript handles things, but with a normal bash (shell) script, the lines are run sequentially. That is, the next line isn't run until the previous line is done. It would seem that you could put all that in one script, and the still-running script wouldn't change the permissions back until astro has ended. But then again, java adds complexity to it and I'm not sure if it works the same.
louieG1 said:
kinda late, but in case anyone wants to know this is what I did.
++++++++++++++++++++++++++++++++++++
Does anyone know what I need to include in a script to have it call/open a program automatic?
My ultimate goal is to create one script that will
Mount system rw
Change needed permissions to rw
Automatically open up Astro
Then change all permissions back when astro is terminated
Possibly create a keyboard shortcut for the G1
What do ya think?? is it possible??
Click to expand...
Click to collapse
Love this idea! Unfortunatly I'm no coder but would love to see something like this created.
I created a "GodMode" script that does exactly this, email me if you want it, I can edit it to work for the G1.
Totally forgot I started this thread, then happened to find it on Google when looking for the same thing, again.
Went back to Windows Mobile for a little bit, missed Android, and now have a Samsung Vibrant.
Still want a way to use ASTRO with root priviledges, especially since I don't have a tactile keyboard anymore.
phaelox said:
+1 recommendation on Estrongs File Explorer's root option if you want it for free, includes Windows shares browsing over lan.
Otherwise try SUFBS, also has built-in terminal.
Sent from my HTC Hero using Tapatalk
Click to expand...
Click to collapse
Thank you.
Estrongs File Explorer enabled me to flash Tamil font in my Rooted T-Mobile G2X mobile phone.
I know i am not answering the question directly. But, i use Linda Manager it gets the job done.
---------- Post added at 08:17 PM ---------- Previous post was at 08:14 PM ----------
raddy said:
Thank you.
Estrongs File Explorer enabled me to flash Tamil font in my Rooted T-Mobile G2X mobile phone.
Click to expand...
Click to collapse
Hi raddy,
I'm also from TN as well, i would love to get the Tamil fonts. Can you please guide me?
Not having tamil fonts on the browser is simply annoying
Hi
If your mobile is rooted, then follow this link.
http://forum.xda-developers.com/showthread.php?t=798380
Sent from my LG-P999 using XDA App
raddy said:
Hi
If your mobile is rooted, then follow this link.
http://forum.xda-developers.com/showthread.php?t=798380
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Cool, i got the tamil fonts on my G1, thanks for the help.

(THEME) Stock Music app not so boring anymore...

Ok so I have been tinkering around for the past few trying to get the Fender Music app on my dream. Well I did it but the app sucks cause it's not FOR my device. And being that I don't know how to make it work right, I decided to go back with the stock app.
Enough rambling, you want the goods...
Backup before doing this cause I take no responsibility.
remove the .zip from the name.
Wouldn't hurt to resign it either...
Put the file in your theme's .zip. In the app folder within the .zip of course.
I don't know how to take screen shots but I will tell you to try it and you will like it. This works on my dream flawlessly. I hope the same for you...
This wasn't really that hard to do. Mostly because I don't know how to modify/make .9's nor these .xml's for that matter. But most of the visuals are what I have modified anyway so I don't see the need...
The one thing I have a problem with is the lack of album art. As soon as I figure that out, things will be nice!
This will be on my theme as soon as I get it out. I have grown to understand how long this takes for you themeer's out there. I thank you all for everything you do. But I would like to thank Binary for helping me understand the basics of things around here!!!
Which brings to my attention, this is based on CM 4.2.13......
screenshot.apk from market...
Thanks much. I was waiting for that actually though.
But that's what I will use when I have everything finished.
Knowing this environment though, I'll never finish...
philosophics said:
Thanks much. I was waiting for that actually though.
But that's what I will use when I have everything finished.
Knowing this environment though, I'll never finish...
Click to expand...
Click to collapse
You can take screenshots even easier with ddms.bat
In revision 4 just go to Device and Screen Capture (or whatever).
Simple.
Ok. Thank you. But I'm still going to wait until I finish my theme before I take screen shots. Until then, you'll just have to dl it to find out what it looks like...
Nice to see you getting so into this. If you want help with .9.pngs, Jairomeo taught me a nice trick that makes it very easy (assuming eclipse is set up).
Eclipse is set up I just don't know how to use it other than to start up a virtual android...
Gonna try it out now. I want to know what it looks like
/edit: here is the signed .apk (Or was it already signed?)
(push to system/app)
ok noob question lol... i downloaded the file but when i try to copy it to system/app folder it says file is read only.. something i missed?
rel500 said:
ok noob question lol... i downloaded the file but when i try to copy it to system/app folder it says file is read only.. something i missed?
Click to expand...
Click to collapse
You need to root your device...
done that.. phones rooted with Dwang 1.7.1 rom. sd parted etc etc... im just confused, do i have to delete the current music apk and replace with the new one?
rel500 said:
done that.. phones rooted with Dwang 1.7.1 rom. sd parted etc etc... im just confused, do i have to delete the current music apk and replace with the new one?
Click to expand...
Click to collapse
adb remount
ffff00 said:
adb remount
Click to expand...
Click to collapse
yea. what he said.
This is outdated. I haven't had the time to work on it lately and I apologize for that. My theme hasn't seen any love for a few days either.
But it works and looks better than stock.
Here's how I install it.
Put music.apk in root sdcard folder. Use a file manager like Astro or And Explorer to navigate to it. Click it and install with package installer.
Enjoy!

Finally rooted my Vibant - How to remove stock apps?

I've searched around a bit (maybe not as long as I should've), but I don't see how to remove the stock bloatware apps that come with this phone.
Can someone point me to a guide, or give me a quick run down?
Flapjack said:
I've searched around a bit (maybe not as long as I should've), but I don't see how to remove the stock bloatware apps that come with this phone.
Can someone point me to a guide, or give me a quick run down?
Click to expand...
Click to collapse
Its a pain lol. Theres so many i just gave up lol (fyi they don't take up much space)
This is the code :
Code:
adb shell
su
rm /system/app/<apk name>
pm uninstall <package name>
Just download Titanium Backup form Android Market and you can delete apks easily. HTH.
Daneshm90 said:
Its a pain lol. Theres so many i just gave up lol (fyi they don't take up much space)
This is the code :
Code:
adb shell
su
rm /system/app/<apk name>
pm uninstall <package name>
Click to expand...
Click to collapse
Yeah, it does seem like a PITA.
antz88c said:
Just download Titanium Backup form Android Market and you can delete apks easily. HTH.
Click to expand...
Click to collapse
Maybe I'll try that. Do you have to actually do a backup/restore process before you can remove them? Or can you just remove them from the app itself?
antz88c said:
Just download Titanium Backup form Android Market and you can delete apks easily. HTH.
Click to expand...
Click to collapse
You could do that but then ur left with a /data/data folder for ur app and its name under packages.xml.
The other thing that kills me is that a lot of these apps keep popping up for now reason. I run "Advanced Task Killer" on a frequent basis, but I'll find apps like "Slacker" sitting there, taking up memory.
I know a lot of these apps are set to run on startup.... but why are they just starting up at random times?
I feel like I have so little control over this phone... it actually scares me. I knew everything my WinMo phone was doing at all times.
Daneshm90 said:
You could do that but then ur left with a /data/data folder for ur app and its name under packages.xml.
Click to expand...
Click to collapse
Can these items just be deleted?
I went to Samsung Firmwares and got the UGJG8 firmware and flashed that using Odin and 512.pit. You will get a 100% bone stock i9000m with no bloatware.
Just remember to write down your current APN settings as you will have to readd them.
antz88c said:
Just download Titanium Backup form Android Market and you can delete apks easily. HTH.
Click to expand...
Click to collapse
Call me an idiot, but I can't figure out who to remove apps with this app.
Flapjack said:
Can these items just be deleted?
Click to expand...
Click to collapse
They could but that would be longer, since ud have to go through packages.xml to look for ur app. In simple terms :
Its like uninstall a windows software. Your deleting its c:\program files directory whereas im going to "uninstall software" and following procedure.
BobbyTee said:
I went to Samsung Firmwares and got the UGJG8 firmware and flashed that using Odin and 512.pit. You will get a 100% bone stock i9000m with no bloatware.
Just remember to write down your current APN settings as you will have to readd them.
Click to expand...
Click to collapse
How in the heck do you find that? I've been all over the Samsung site and I can only find are Windows drivers.
**EDIT**
Nevermind, I found it on another site. I think this is what you meant, right?:
http://samsung-firmwares.com/i9000.htm
Also, what is the difference between the I9000DTJG4 and the I9000UGJG8 firmware?
Daneshm90 said:
They could but that would be longer, since ud have to go through packages.xml to look for ur app. In simple terms :
Its like uninstall a windows software. Your deleting its c:\program files directory whereas im going to "uninstall software" and following procedure.
Click to expand...
Click to collapse
Got it.
Now, is that a script I need to write for each app? I haven't even gone so far as to explore the file system, let alone write scripts. Is there a good (recommended) app for putting scripts together? ...or are you just using a notepad type editor in Windows, then copying them over via SD card?
Flapjack said:
Got it.
Now, is that a script I need to write for each app? I haven't even gone so far as to explore the file system, let alone write scripts. Is there a good (recommended) app for putting scripts together? ...or are you just using a notepad type editor in Windows, then copying them over via SD card?
Click to expand...
Click to collapse
Sure u can write a quick .bat script that does this or manually enter them in command-prompt up 2 u. Btw, what exactly is ur issue with the bloat-software ? is it the space its taking up ? or being shown in app drawer ? Cuz if ur using launcher-pro u can hide those apps from the drawer. Honestly they don't take up tht much space.
Daneshm90 said:
Sure u can write a quick .bat script that does this or manually enter them in command-prompt up 2 u. Btw, what exactly is ur issue with the bloat-software ? is it the space its taking up ? or being shown in app drawer ? Cuz if ur using launcher-pro u can hide those apps from the drawer. Honestly they don't take up tht much space.
Click to expand...
Click to collapse
Well, the biggest thing is that they're actually running without me opening them (eg: Slacker). That is really starting to piss me off. Secondly, they are very clutter-some. I don't have Launcher Pro, though I've heard good things about it. Is this something I get from the Marketplace? It runs instead of the Samsung interface, right?
**EDIT**
Just found "LauncherPro" on the Market. Looks good, but many are complaining the latest version is laggy/buggy and has obnoxious ad placement.
Does anyone have the next most recent version?
Flapjack said:
Well, the biggest thing is that they're actually running without me opening them (eg: Slacker). That is really starting to piss me off. Secondly, they are very clutter-some. I don't have Launcher Pro, though I've heard good things about it. Is this something I get from the Marketplace? It runs instead of the Samsung interface, right?
Click to expand...
Click to collapse
Nope its independent of proprietary frameworks, i.e it runs on stock.
Daneshm90 said:
Nope its independent of proprietary frameworks, i.e it runs on stock.
Click to expand...
Click to collapse
So would this be ok to install right now, or wait until I possibly flash the bone-stock firmware (which ironically would eliminate the included apps)?
Flapjack said:
So would this be ok to install right now, or wait until I possibly flash the bone-stock firmware (which ironically would eliminate the included apps)?
Click to expand...
Click to collapse
Nope it'll run on ANY proprietary/nonproprietary android firmware which is 2.0+
I just use root explorer and delete apk+odex from system/app
fua said:
I just use root explorer and delete apk+odex from system/app
Click to expand...
Click to collapse
Can you go into a little more detail? What is odex?
Its fairly easy, actually.. No apps or code needed. Go to:
Settings -> Applications -> Manage Applications
Press the menu button, and press Filter. Then change the selection to "All"

Never mind. I'm going to do it the hard way. :) Mods please close. Thank you.

I need help from you genius developers. I'm 99% done porting a rom over to release it here. I'm having issues with changing Phone.apk. I did the following:
1) Decompiled Phone.apk with apktool
2) Modified the manifest to add the permission I needed to add
3) Compiled it with apktool
4) Used 7zip to put my new manifest into the original apk
5) Used 7zip to put my new apk into the rom's zip
6) Flashed it and immediately after boot, got FC's on com.android.phone because it says the signature doesn't match the previously installed version and it will be ignored.
I found that if I place my modified Phone.apk on the sdcard, install the cpts binary (copies and retains the destination timestamp) in /system/xbin and set perms, I can do this:
Code:
adb remount
adb shell
# cpts /sdcard/Phone.apk /system/app/Phone.apk
I'll get this output and it'll work fine:
Code:
cpts /sdcard/Phone.apk /system/app/Phone.apk
Original ts:1290546488
Allocated 8388608 bytes.
But if I try to pull it from the phone, stick it back in the rom zip, it won't work when flashed clean.
I've beaten my head against the wall with this and any help will be appreciated.
TIA!
I think this needs to go in Q/A, since it's a question.
J/k. Have you tried Apk Manager 4.9? I've used it to mess with system apk's and data apk's, and it has options for both, which it handles differently.
PonsAsinorem said:
I think this needs to go in Q/A, since it's a question.
J/k. Have you tried Apk Manager 4.9? I've used it to mess with system apk's and data apk's, and it has options for both, which it handles differently.
Click to expand...
Click to collapse
LOL! I tried Apk Manager first and it wouldn't even decompile it without giving me errors.
I'll add some screenshots of what I've got so far. Maybe it will motivate someone to help!
Signatures aren't matching with what was previously installed.
Basically what you're doing is this:
Stock-Phone.apk has signature=1. (for example)
Your-Phone.apk has signature=2.
When you "hot-swap" them, it goes something like this:
Android: Hey, Stock-Phone.apk, what's your signature?
Stock-Phone.apk: It's numba 1, like me!
Android: Cool cool, *writes down. Go ahead and run!
*hot-swap here
Android: Hey, Your-Phone.apk! *looks at paper, ah, I have it written down! Your signature is 1, go ahead.
Your-Phone.apk: Hee hee!​
Your-Phone.apk will use the cached signature to pretend like its signature=1.
However, putting it in a zip and flashing clean will not allow Android to cache any signatures. So Your-Phone.apk will read signature=2, and fail.
It'll go something like this:
Android: Hey, Your-Phone.apk, what's your signature?
Your-Phone.apk: 2!
Android: Sorry man, we only allow 1s in here, no execution for you!
Your-Phone.apk: FC FC FC FC FC!​
I could never solve this problem without a two-zip flash and a full boot in-between, but some other devs might've managed to solve it.
PS I hope you enjoyed that analogy! xD
gmichaelow said:
Signatures aren't matching with what was previously installed.
Basically what you're doing is this:
Stock-Phone.apk has signature=1. (for example)
Your-Phone.apk has signature=2.
When you "hot-swap" them, it goes something like this:
Android: Hey, Stock-Phone.apk, what's your signature?
Stock-Phone.apk: It's numba 1, like me!
Android: Cool cool, *writes down. Go ahead and run!
*hot-swap here
Android: Hey, Your-Phone.apk! *looks at paper, ah, I have it written down! Your signature is 1, go ahead.
Your-Phone.apk: Hee hee!​
Your-Phone.apk will use the cached signature to pretend like its signature=1.
However, putting it in a zip and flashing clean will not allow Android to cache any signatures. So Your-Phone.apk will read signature=2, and fail.
It'll go something like this:
Android: Hey, Your-Phone.apk, what's your signature?
Your-Phone.apk: 2!
Android: Sorry man, we only allow 1s in here, no execution for you!
Your-Phone.apk: FC FC FC FC FC!​
I could never solve this problem without a two-zip flash and a full boot in-between, but some other devs might've managed to solve it.
PS I hope you enjoyed that analogy! xD
Click to expand...
Click to collapse
I DID enjoy the analogy! Thanks G! That makes perfect sense. I tried signing it myself with testsign.jar and it still didn't match the original. I may have to try the two-zip flash method.
have you tried playing with the one that inc does ported over?
the only thing that didnt work was wifi. if i remember correctly.
wes342 said:
have you tried playing with the one that inc does ported over?
the only thing that didnt work was wifi. if i remember correctly.
Click to expand...
Click to collapse
Thanks for the reply Wes. Yes, I tried using his Phone.apk file and it was missing the same permission. His port had more issues, like not being able to hang the phone up. So far, this is the last thing not working in my port.
Without this permission, when u get an incoming call, while the screen is off, the phone can't unlock the screen.
EDIT: And reading internal memory isn't working, but I'm not worried about that yet. It's 5:50am and time to go to work for me. I think I just needed some sleep as I spent too many hours on this last night. Today's a NEW day!
That's a pretty nice looking rom. Yea I gave you a bump because I like the lock screen.
Sent from my Incredible using XDA App
Gahh Its Lee said:
That's a pretty nice looking rom. Yea I gave you a bump because I like the lock screen.
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
Thanks Gahh! It's real fluid at unlocking too.
No need to bump this anymore. I'm going to bite the bullet and set up a proper kitchen and see if it'll make this easier.
Thanks for all of the responses..

[Script] Safe bloat removal script (50+ apps) [UPDATED 9/1/2011]

There's been a lot of speculation on what can and can't be removed as well as how to remove them without causing force-closes, boot loops, and other headaches. So I wrote this script that will let you disable all of the bloat with none of the hassle.
After a few prompts to find out if there's anything you want to keep that can't be replaced in the market, it will do its magic -- renaming files to a .bak extension so they are no longer recognized by Android. This will cause some system services to fail and force-close loop until you reboot (and the script reboots for you). Also included is a script that will undo all of this.
If you select every option, including the default launcher and text messaging apps (which are confirmed safe to remove without losing SMS or MMS ability or push notifications), then here's the list of apps removed:
AdService.apk, android-syncservice-app.apk, ArcVideoEditorLite.apk, BackupAssistanceClient.apk, Blockbuster.apk, BlurHome2.apk, BlurSNMessagingEngine.apk, BlurTasks.apk, BlurUpdater_VZW.apk, BooksPhone.apk, CitrixReceiver.apk, CityID.apk, Conversations.apk, DLNA.apk, DlnaSystemService.apk, FriendFeed.apk, gotomeeting-stub-1.0.74.apk, GuidedTours.apk, HelpCenter.apk, IMPresence.apk, IndexingService.apk, Kindle.apk, MessagesWidget.apk, Messaging.apk, MOTOPRINT.apk, MSExchangeService.apk, MyVerizon.apk, NewBayVault_4.2.99.36.Market.apk, NFLMobile.apk, OnlineAlbum.apk, PhotoEditor.apk, PortalStandAlone.apk, Preloaded.apk, RichLocationVzW.apk, SkypeBourbon.apk, Slackerradio.apk, SocialMessaging.apk, SocialShare.apk, StatusWidget.apk, SuggestionsProvider.apk, SuggestionsRuleCheckerCore.apk, SuggestionsServiceScheduler.apk, Swype.apk, ToggleWidgets.apk, UniversalInbox.apk, Upgrader.apk, VCAST_TONES_4_5_7.apk, VCASTMusic.apk, VCASTVideo.apk, VSuiteApp.apk, vzw_vnav_DROID3_rel_PROD_signed.apk, VZWIM.apk, VZWInstaller.apk, WeatherWidget.apk, ZumoCast_1.0.17.apk
Make sure you run these scripts using Script Manager or a comparable app and be sure to enable it to run as root or it won't have permission to make changes to /system/app.
This is version 1 of the scripts -- if any of the apps removed wind up causing problems or more are found, I'll add it to the list. I've tested the scripts back and forth myself and have tested it as much as I can without finding any issues. Also, some apps are removed without asking, such as ZumoCast or VCAST or NFL Mobile. You can find these apps in the market, so there's no point keeping them locked down in system.
Enjoy! Comments are welcome.
UPDATE 9/1/2011: fixed a typo in one of the variables (thanks everyone who reported this), added more options to keep (Swype and Car Dock Voice Commands), split into two versions -- one for the stock 5.5.959 build and 5.6.890 update (late August OTA), added a warning about removing the home screen without a launcher and that it removes the Calendar widget.
Great, but maybe it would be nice to make a y/n option for each .apk where it asks you if you want to delete that apk
script
instructions for use?
thanks
DoubleYouPee said:
Great, but maybe it would be nice to make a y/n option for each .apk where it asks you if you want to delete that apk
Click to expand...
Click to collapse
You shouldn't delete them -- we don't have an SPF yet. Someone posted the complete /system/app contents and you could restore, technically, manually, but it's a bad idea. Renaming to a .bak is completely effective.
lodisax said:
instructions for use?
Click to expand...
Click to collapse
Read the post.
You'll want to use Script Manager -- unzip the two scripts to your SD card (internal or external), launch Script Manager (free version is fine), find the script and click it, then tick on 'root' and then run the script. Follow the prompts from there.
script
thanks for the answer
psouza4 said:
You shouldn't delete them -- we don't have an SPF yet. Someone posted the complete /system/app contents and you could restore, technically, manually, but it's a bad idea. Renaming to a .bak is completely effective.
Click to expand...
Click to collapse
Yeh sorry that's what I meant.. Option to y/n rename the apk.
I'd like to use the script once I get my droid 3 but would like to 'keep' some of the apks.
DoubleYouPee said:
Yeh sorry that's what I meant.. Option to y/n rename the apk.
I'd like to use the script once I get my droid 3 but would like to 'keep' some of the apks.
Click to expand...
Click to collapse
There's Y/N for anything you'd want to keep. About 6-7 questions in total. Anything that you can't find in the market that isn't definitely bloat has a prompt.
script
script manager that you use?
I use script manager and asked me if I want to remove each apk or not.
There is a script manager that does everything automatically?
thanks for the answer
lodisax said:
script manager that you use?
I use script manager and asked me if I want to remove each apk or not.
There is a script manager that does everything automatically?
thanks for the answer
Click to expand...
Click to collapse
Please read the thread thoroughly -- I'm going to ignore obvious questions like these.
psouza4 said:
There's Y/N for anything you'd want to keep. About 6-7 questions in total. Anything that you can't find in the market that isn't definitely bloat has a prompt.
Click to expand...
Click to collapse
So what if I wanna keep DLNA, photoeditor and socialmessaging?
DoubleYouPee said:
So what if I wanna keep DLNA, photoeditor and socialmessaging?
Click to expand...
Click to collapse
Then answer 'Y' to the prompts asking if you want to keep 'DLNA' or 'social messaging'. There are plenty of photo editors in the market, so there's no prompt on that (although if you were so inclined, you could just rename the .BAK's back to their original files). I feel you haven't actually looked at the script or read my post.
psouza4 said:
I've tested the scripts back and forth myself and have tested it as much as I can without finding any issues. Also, some apps are removed without asking, such as ZumoCast or VCAST or NFL Mobile.
Click to expand...
Click to collapse
I think the ultimate test is to do factory reset and see how device will go through initialization stage. It can be surprises which are not noticeable during normal use. Without this it is kind of premature to say what is safe to delete and what is not.
serg675 said:
I think the ultimate test is to do factory reset and see how device will go through initialization stage. It can be surprises which are not noticeable during normal use. Without this it is kind of premature to say what is safe to delete and what is not.
Click to expand...
Click to collapse
Ehh I agree with you to a point, because i made the very noobish mistake of uninstalling bloat that i knew would not effect daily use; however, I did a factory reset to test a theory for krazy and learned that something I uninstalled makes the setup process FC and wont let you get to the blur launcher, luckily other launchers work and I was able to batch install via adb.
Thing is though is if the phone reboots when this stuff is renamed then it will survive a factory reset, though it may do the same thing mine has done. If it does its no big deal to load up adb and rename the files back so that you can complete the setup.
You forgot the World Clock widget in your removal script; the only clock that thinks it needs a permanently-resident service, regardless of whether it's running or not.
Xenoproctologist said:
You forgot the World Clock widget in your removal script; the only clock that thinks it needs a permanently-resident service, regardless of whether it's running or not.
Click to expand...
Click to collapse
That messes with the dock though, so I don't consider it bloat.
I know its a lot to ask... but can someone either create a comprehensive list of what each one actually does... or point us in a direction to where there already is one?
Sent from my DROID3 using Tapatalk
Seirÿu said:
I know its a lot to ask... but can someone either create a comprehensive list of what each one actually does... or point us in a direction to where there already is one?
Click to expand...
Click to collapse
Open the script in a text editor and read my comments -- it gives each one a title.
@psouza4 - nice work, it's about time someone took a more organised approach to figuring out what apks are safe to remove.
I tried to get a similar effort going here :-
http://forum.xda-developers.com/showpost.php?p=17004394&postcount=11
but the way people behave on this forum, it's like trying to herd cats.
thingonaspring said:
@psouza4 - nice work, it's about time someone took a more organised approach to figuring out what apks are safe to remove.
I tried to get a similar effort going here :-
http://forum.xda-developers.com/showpost.php?p=17004394&postcount=11
but the way people behave on this forum, it's like trying to herd cats.
Click to expand...
Click to collapse
Thanks!
Couple of notes, too:
It was asked in IRC why I'm removing 'android-syncservice-app.apk'. This service is the extra backup stuff that Verizon added on (as evidenced inside the package in /assets/system.properties you'll find several references to verizon servers for sync, like sm_connection_url=http://syncba.myvzw.com/syncml). This service doesn't do anything beneficial for you unless you really have a hard-on for Verizon's sync stuff. I've had it disabled since we achieved root and it has no affect on account sync services (contacts, gmail, calendar, reader, etc.) nor SMS/MMS push notifications, etc.
Also, a fellow PM'd me saying he got errors that variable names were invalid -- turns out he had edited the script in Windows, saved it, and that broke the UNIX-style line endings. If you're going to modify the script, use Notepad++, UltraEdit, or something that will maintain the correct line endings. Or just use an editor on the phone, such as in Root Explorer.
Thanks a bunch man, works great. About to run a benchmark to see the results!

Categories

Resources