Is it possible / OK to uninstall default apps? - Hero, G2 Touch Q&A, Help & Troubleshooting

Hi folks,
I have installed the Steel web browser and like it much more that the one supplied by HTC with the phone... is it possible to uninstall it and just leave Steel?
The above is just an example, my HTC hero has lots of stuff I don't really plan to use, ever. Is there a way to get rid of them FOR GOOD?
Thanks in advance!

frandavid100 said:
Hi folks,
I have installed the Steel web browser and like it much more that the one supplied by HTC with the phone... is it possible to uninstall it and just leave Steel?
The above is just an example, my HTC hero has lots of stuff I don't really plan to use, ever. Is there a way to get rid of them FOR GOOD?
Thanks in advance!
Click to expand...
Click to collapse
I'm so with you on this one...I've added Twidroid and turned off Peep but would love to completely delete it in order to avoid any conflicts. Also the default messaging program is a bit of a dog when compared to Handcent SMS.
There used to be a way on the WinMo 6 phones to change the registry values to allow deletion of TouchFlo UI programs but I've not been able to find anything online yet. Maybe it's too early in the phone's life for anyone to have cracked this.
At the moment, the only thing I can do is to make sure that notifications from default programs that I have replaced with better ones are turned off so that they only come from the new software.
I realise this doesn't help you (or me) very much but I'd pay good money to have an add/remove program that works on the default apps (ASTRO, Appmanager and OI File Manager do not seem to be able to access the default programs for uninstallation).
Does anyone with modding experience (obviously I don't ;D) have any suggestions on how to achieve this?
DBR

i have installed QuickUninstall app and it offers all the built in apps as well as the added ones....didn't try to delete any though, they don't bother me that much to toy with it just yet

Kewl...thnx for the heads up. QuickUninstall is downloaded. I'll try to get rid of Peep and the inbuilt message program and if something goes wrong I'll be back here begging for more help
DBR

I've had some success with Root Explorer - I've successfully removed the stocks app and the stocks widget.
Big pointer before you start on removing default or stock Rom apps is to MAKE A NANDROID BACKUP!! You can do this by booting the temporary Recovery image from the rooting thread here
http://forum.xda-developers.com/showthread.php?t=543571
That way, if you do mess up, you can restore the Nandroid Backup.
Just ask Auntie Dayzee (BTW I wish I was this sensible with other stuff in my life!! LOL)

I need to partition my hard drive and install Windows in order to use Nandroid and root the phone (you need to root it in order to use root explorer right?).
As soon as I find a way for the installer to find my hard drive I'll poke you for advice, thanks dayzee

Does anyone know what's the name of the web'n'walk app? Can't find it in the app folder.

It's not an app afaik, it's just a shortcut.
all it does is open the default browser to the t-mob web and walk homepage.

Oh.. do you also happen to know where I can remove it?
Nevermind, found it in the app folder as "urlshortcut.apk"

frandavid100 said:
I need to partition my hard drive and install Windows in order to use Nandroid and root the phone
Click to expand...
Click to collapse
As far as i understand, ADB works in Mac and Linux as well, you just need to prefix the commands with ./
or have i missed something?? there's no point installing windows if you don;t have to....

how did you do it?
Dayzee said:
I've had some success with Root Explorer - I've successfully removed the stocks app and the stocks widget.
Big pointer before you start on removing default or stock Rom apps is to MAKE A NANDROID BACKUP!! You can do this by booting the temporary Recovery image from the rooting thread here
http://forum.xda-developers.com/showthread.php?t=543571
That way, if you do mess up, you can restore the Nandroid Backup.
Just ask Auntie Dayzee (BTW I wish I was this sensible with other stuff in my life!! LOL)
Click to expand...
Click to collapse
Hi Dayzee,
noob here. i just rooted my htc hero and i have root explorer running.
can you explain how you removed those apps?
I want to ditch peep, footprints and possibly pc synchronization (if this is safe).
I am a little lost in this file directory structure...
...or could you point me to a really great link on this topic?
thanks so much,
sprinkles

had success using Paul's method on Modaco...all credit to him in my case.
http://android.modaco.com/content/htc-hero-hero-modaco-com/291521/if-you-want-to-remove-htc-sync/
Used a file explorer (astro in my case) to view the folder /system/app so that i could see what needed to be removed, but am now happily without Peep, Learn More, Stocks,HTC Sync, Mail etc.
adb remount
adb shell rm /system/app/xxxxxx
replace xxxxxx with the app you want to remove
HTC Sync - PCSCII*
HTC Stocks and Widget - *Stock*
Peep - *Twit*
Learn More - Learn*
Footprints - *Foot*
Mail - HtcMail*
there's plenty of others in there as well if you have a look. Just be sure to be careful what you delete, and remember that the app names are case sensitive.
The rooted 2.73 rom from Modaco works fine with this command, and i expect the Modaco custom roms will as well.

I used a similar method to get rid of some HTC app which kept bugging me since I upgraded to the new ROM (Peep, Stock, etc), works perfectly and no problem so far.
It's pretty straightforward, even for a newb like me, but if anyone is interested in the steps I followed :
0- Before doing anything that can mess up your phone, it's recommended to do a nandroid backup.
I'll explain how to backup each removed app individually, but we're never cautious enough !
1- Load the recovery image and mount the system:
Code:
fastboot boot cm-hero-recovery.img
adb shell mount /system
2- Get the list of app installed, spot the files you want to delete
Code:
adb shell ls /system/app/
3.a - First alternative : Backup on SDcard and delete
Mount sdcard.
Create a folder saveHtcApp.
Move (copy + delete in one go ! ) files from system/app to saveHtcApp
Code:
adb shell mount /sdcard
adb shell mkdir /sdcard/saveHtcApp
adb mv /system/app/Stock.apk /sdcard/saveHtcApp
adb mv /system/app/Stock.odex /sdcard/saveHtcApp
adb mv /system/app/com.htc.StockWidget.apk /sdcard/saveHtcApp
adb mv /system/app/com.htc.StockWidget.odex /sdcard/saveHtcApp
Then check that all worked right by doing some ls (Yeah, I'm found of double-checking)
Code:
adb shell ls /sdcard/saveHtcApp
adb shell ls /system/app/
3.b - Second Alternative : (don't do it after 3.a !) Backup on Computer and delete.
(on Windows, I assume Linux's folks won't need explanations to do the same on linux.)
Create a folder saveHtcApp : in the following example, in the working directory.
(Of course, you can make it anywhere, but it make the path smaller to work on working directory... and move the save folder afterwards)
Then pull (copy) the files from the phone to the computer.
Just to make sure, a little dir to see that all files were actually copied on the computer.
Code:
mkdir saveHtcApp
adb pull /system/app/Stock.apk ./saveHtcApp
adb pull /system/app/Stock.odex ./saveHtcApp
adb pull /system/app/com.htc.StockWidget.apk ./saveHtcApp
adb pull /system/app/com.htc.StockWidget.odex ./saveHtcApp
dir
Then, delete them :
Code:
adb shell rm /system/app/Stock.odex
adb shell rm /system/app/Stock.apk
adb shell rm /system/app/com.htc.StockWidget.odex
adb shell rm /system/app/com.htc.StockWidget.apk
4 - Reboot the device !
Hope that could help someone.
Tested on Brown French Hero, 2.73.405.5 ROM offi.

Brill stuff - I'm rubbish at the coding stuff - where does this back the apps up to? and what does the dot do? and if its pulling to the PC, does the slash have to go the other way?
Dayzee

Good question, I should have explain that a little
I'll update my previous post.
For the slash-thing... I'm always switching from windows to linux to windows, so I'm always confused between which slash use.
When I have issue with /, I try with \.
BTW, in the present case, I run all those lines on Windows 7 without any issue.
Edit : post step-by-step edited. Is it clearer ?
If anyone see anything to change or explain, just say so.

removing htc hero sucka apps
Tweedeldee said:
Good question, I should have explain that a little
I'll update my previous post.
Click to expand...
Click to collapse
great and thanks. while you were sleeping, i went in and did some removals; just the apk files. what about the .odex files?
I took these apps out at the knees
-peep
-footprints
-tutorial
any other suggestions?
thanks.

Hey, I wasn't sleeping ! Just finding a way to save on sdcard instead of pc and re-redacting the post ! >.<
I didn't knew what was an odex file either, so I googled it :
http://groups.google.com/group/android-framework/browse_thread/thread/70ee61a240edc84a?pli=1
They are created for a final system image. They are not required --
if they don't exist, the system will create them in /data during
boot.
Click to expand...
Click to collapse
I backuped them too, just in case...
For the suggestion, the list to remove is pretty simple : anything you don't use at all.
As long as you keep the backups, there shouldn't be any problem to put them back if there is any issue.
Of course, any app used by other apps must stay on the phone.
I removed :
Stock
Peep
Footprints
Tutorial
HTC Sync
rhedgehog says he removed HtcMail too.

removing htc hero sucka apps
Tweedeldee said:
Hey, I wasn't sleeping ! Just finding a way to save on sdcard instead of pc and re-redacting the post ! >.<
I didn't knew what was an odex file either, so I googled it :
http://groups.google.com/group/android-framework/browse_thread/thread/70ee61a240edc84a?pli=1
I backuped them too, just in case...
For the suggestion, the list to remove is pretty simple : anything you don't use at all.
As long as you keep the backups, there shouldn't be any problem to put them back if there is any issue.
Of course, any app used by other apps must stay on the phone.
I removed :
Stock
Peep
Footprints
Tutorial
HTC Sync
rhedgehog says he removed HtcMail too.
Click to expand...
Click to collapse
thanks dog.
technically, if you wipe the device and start over all these apps are reinstalled from the get go.
this list is great. i am going to do some more cleaning and move onto the next task of partitioning my storage.
dayzee did a wonderful job for that newb root posting...i wish there was locked how to list that was easy enough for anyone to:
-1- root the htc hero (completed)
-2- remove and replace htc's crapware apps (maybe this thread is part 2)
-3- partition storage (not seeing an easy way yet but downloaded apps2sd)
-4- recommended replacement apps and next steps
i'd be glad to help put this together, make it easy to read, make it pretty, etc.
-sprinkles

Not a bad idea, you're on your way !
I want a pretty, clean, post with colors, pics, screencasts, videos, nice fonts...
Good luck with that !

sprinkles said:
thanks dog.
technically, if you wipe the device and start over all these apps are reinstalled from the get go.
this list is great. i am going to do some more cleaning and move onto the next task of partitioning my storage.
dayzee did a wonderful job for that newb root posting...i wish there was locked how to list that was easy enough for anyone to:
-1- root the htc hero (completed)
-2- remove and replace htc's crapware apps (maybe this thread is part 2)
-3- partition storage (not seeing an easy way yet but downloaded apps2sd)
-4- recommended replacement apps and next steps
i'd be glad to help put this together, make it easy to read, make it pretty, etc.
-sprinkles
Click to expand...
Click to collapse
I agree - I've added Tweedeldee's method to the Hero Wiki which is here
http://wiki.xda-developers.com/index.php?pagename=HTC_Hero
and has some other guides - Sprinkles, there is also a Dayzee Walkthrough for installing MoDaCo Roms, including some tips on Aps2SD partitioning methods.
Hugs - Dayzee xxx

Related

TuT| Removing Apps from X10Mini/Pro + 'Safe List'

Good evening! First of all thanks to Bin4ry and kabaldan for gaining (and sharing!) root access to this little, but powerful phone.
I'm sure that the first thing many users who have rooted their devices do is to remove all the bloatware they received with the X10Mini/Pro.
But.. Having said that I am raising a couple of questions which are written (but not limited to) below;
'How do I remove the stock applications I received with my X10Mini/Pro?'
'Which applications are safe to remove, and which are not?'
'Is it worth removing them at all? I never use them anyways.'
'Is it possible to restore them once I have removed them?'
Before answering any of these questions I would like to make it clear;
I know that guides to remove pre-installed apps exists, however - I am aiming to create (with the help of the community) a list of services/applications which are safe to remove, and a list of services/applications that are not for this specific device (X10Mini/Pro).
Also, before removing any pre-installed application it is a must that you have root access to your X10Mini/Pro, there are two methods of gaining root access:
Exploid method - by kabaldan
FOTA method - by bin4ry
After you have gained root access you can begin removing the pre-installed applications:
1. Open cmd (Command Prompt)
2. Navigate to the folder where you have extracted adb
3. Connect your phone in 'Charge' mode
4. Run the following commands (what they do is explained below):
This is used to enter the shell, duh.
Code:
adb shell
Getting root permissions.
Code:
su
Mounting the system 'block' to a read/write capable directory.
Code:
mount -o rw,remount /dev/block/mtdblock0 /system
Navigating to the applications directory.
Code:
cd /system/app
Listing all currently installed packages - applications/services.
Code:
ls
This is used for removing packages, where packagename is replaced by the application/service name you wish to remove (case sensitive! - write the packagename exactly as shown in the list).
Code:
rm -r packagename.apk
Important note: Removing critical/important services or applications might cause the device to freeze, application that were dependent on the removed service to crash and in worth case cause system failure.
"What's the deal with this topic.. There are many of these tutorials around..."
This is the part where this topic becomes unique - The 'Safe List' for X10Mini/Pro.
Applications/Services which are completely safe to remove:
<Under Construction>
Applications/Services which are partially safe to remove (removing these components may cause some features to not function and preventing other application from starting):
<Under Construction>
Applications/Services which are not safe to remove (removing these components may cause high freeze ratio and system failure):
<Under Construction>
These lists will be populated with the information that members of this community will share with us, I will contribute as well when I get deeper into slimming down the X10Mini/Pro.
If I have missed a topic which is identical to this one, I apologize - if there is no topic identical to this one I would like to motivate the users which have removed some pre-installed applications (from the X10Mini/Pro!) to report back here so we can populate the lists.
I have included a .zip full of pre-installed applications, note that some are already removed(games, roadsync, wisepilot), the .apks are taken directly from '/system/app' and these come from:
Model: E10i
Firmware: 1.6
Core: 2.6.29
Version: 1.1.A.0.8
Download .zip
Thank you for your time reading this topic,
Phenombox
After some app removal I've managed to strip down the list of installed applications. The phone still boots without problem and the remaining apps seems to be working without problems.
Link to list: Here
More information will be up
Phenombox said:
After some app removal I've managed to strip down the list of installed applications. The phone still boots without problem and the remaining apps seems to be working without problems.
Link to list: Here
More information will be up
Click to expand...
Click to collapse
Is it possible already to replace the built-in dialer and sms-reader apps with those from Vanilla or HTC?
Would be interested doing that, I am especially annoyed by dialler switching off screen when I want to end call!!
pulpoff said:
Is it possible already to replace the built-in dialer and sms-reader apps with those from Vanilla or HTC?
Would be interested doing that, I am especially annoyed by dialler switching off screen when I want to end call!!
Click to expand...
Click to collapse
You are not alone on this 'issue'.
If it's possible to unpack the Phone.apk and edit the /res/anim/glow.xml I think this would solve the issue.
If you are talking about replacing the default SMS Application, then I suggest you try out 3rd party SMS Application like 'Handscent SMS'.
Will upgrading to android 2.1 be an option, now as we have root?
sola88 said:
Will upgrading to android 2.1 be an option, now as we have root?
Click to expand...
Click to collapse
If someone ports it to the device, then yes..
pulpoff said:
Would be interested doing that, I am especially annoyed by dialler switching off screen when I want to end call!!
Click to expand...
Click to collapse
I have extracted and tried to edit the Phone.apk's animations, even after repacking and signing the new Phone.apk my X10Mini won't take it.. It gives me 0 signal and if I try to make a call 'acore' crashes.
Hi
I just would like to mentionned that we can uninstall app directly from the phone with titanium backup app. It's on the market and it's free. Before to uninstall, of course we can make a backup of the selected app.
ReadyToRun.apk is safe to remove
(its the registration prompt sms)
So has anyone figured out how to remove the default lockscreen and homescreen?
ivawe said:
So has anyone figured out how to remove the default lockscreen and homescreen?
Click to expand...
Click to collapse
Removed HomeScreen.apk, safe... Mod edit: ONLY if you have some other Launcher App.
Also:
Timescape (With error on boot)
Reloadsync
semec setup wizard
edge
wisepilot
dettofatto said:
Removed HomeScreen.apk, safe...
Also:
Timescape (With error on boot)
Click to expand...
Click to collapse
Removing
: Timescape
> TimescapePluginManager.apk
> Timescape.apk
> TimeScapeProvider.apk
Should fix the bootup error.
if you don't remove TimeScapeProvider.apk then there is no error on boot!. Removing timescape disables phonebook userprofile extrainfo button (that rotated eight right upper corner). but since i don't use it anyway there is no problem.
i removed neoreader.apk and replaced with better barcode scanner
Talk.apk is safe
master9997 said:
if you don't remove TimeScapeProvider.apk then there is no error on boot!. Removing timescape disables phonebook userprofile extrainfo button (that rotated eight right upper corner). but since i don't use it anyway there is no problem.
i removed neoreader.apk and replaced with better barcode scanner
Talk.apk is safe
Click to expand...
Click to collapse
¨¨
Seems like the TimeScape is phone-specific about the error on boot-up, cause removing TimeScapeProvider.apk fixed the error on my device.
Now how many of you are tired of the blue background on all the windows? Can anyone post a tutorial on how this is changed?
Yeah, i would like to know that too!
I've just deleted something i shouldn't. Is it possible t put apps back? if so, whats the command to use?
ivawe said:
Now how many of you are tired of the blue background on all the windows? Can anyone post a tutorial on how this is changed?
Click to expand...
Click to collapse
I think it's framework-res.apk -> /res/drawable/ldpi/semc_general_bg.png
My bad I forgot to check USB debugging
profetonan said:
I've just deleted something i shouldn't. Is it possible t put apps back? if so, whats the command to use?
Click to expand...
Click to collapse
adb push /path/to/where/it/was app_name.apk
Phenombox said:
I think it's framework-res.apk -> /res/drawable/ldpi/semc_general_bg.png
Click to expand...
Click to collapse
Doesnt this need re-signing of the file afterwards etc? Im scared about bricking my phone.

[lag fix] remove / do not use

Do not use the lagfix anymore voodoo will be incorporated into our new kernels very soon. Thanks
Kept the attachments so you can remove if needed!
I keep getting permission errors when I try this. I found another way to update busybox but the script doesn't work
With the current limited root I have, I could not write to /system/bin. I just woke up and I didn't feel like figuring that out, so I copied stuff to the sdcard, then I used cat to write the file to /system/bin as shown above (steps below). I would suggest before starting, download Quadrant Standard from the Market, run the full benchmark and see where your device is on the list. Mine was below the Galaxy S before starting.
This is what I did (on Mac) to get busybox in place:
Code:
./adb shell
su
mkdir /sdcard/lag_fix/
exit
exit
./adb push ~/Downloads/busybox /sdcard/lag_fix/
./adb shell
su
cat /sdcard/lag_fix/busybox > /system/bin/busybox
cd /system/bin/
chmod 755 busybox
ls -l (check the permissions)
exit
exit
Now busybox is in it's right place with the right permissions.
Now, I have to manually execute the steps in the lagfixme.bat file, because I'm not on a PC and I don't feel like re-writing the script, because I just woke up.
Before pushing the files, I edited lines 35 and 36 in the createlagfix.txt file to fit my sdcard folder path. I like to keep my SD card organized, so I put all the files from the zip into the /sdcard/lag_fix folder I created above. Here is what my line 35 and 36 look like before I push createlagfix.txt to the SD card:
busybox cp /sdcard/lag_fix/playlogos1 /system/bin/playlogos1
busybox cp /sdcard/lag_fix/userinit.sh /system/bin/userinit.sh
Now, I know the folder paths below looks ugly, but that's because I just pushed the files directly from my Downloads folder. Hopefully you guys can see what I did here. If not, let me know and I'll edit the post to read better. These are basically the lines in the batch file written out manually for Mac users:
Code:
./adb kill-server
./adb push ~/Downloads/RyanZAEXT2LagFix\ ALPHA\ 1/createlagfix.txt /sdcard/lag_fix/createlagfix.sh
./adb push ~/Downloads/RyanZAEXT2LagFix\ ALPHA\ 1/playlogos1 /sdcard/playlogos1
./adb push ~/Downloads/RyanZAEXT2LagFix\ ALPHA\ 1/userinit.sh /sdcard/userinit.sh
./adb shell su -c "/system/bin/sh /sdcard/lag_fix/createlagfix.sh"
Once the process is complete, run Quadrant Standard again and you'll see your device as the fastest one in the list.
Many thanks to Dirrk!!
Worked just fine for me.
Thanks for this and your root instructions!
Guys, is the phone actually laggy, or are you just assuming it's laggy because of complaints with the other models? I mean, you've only had them a day or two, right? Took me longer to notice lag than that on my i9000.
I'm tempted to grab a Fascinate, but all the issues I've had with the i9000 and it's a tough call.
I've seen it lag sometimes under high load, but I thought that was normal.
I've tested it with GroceryIQ, to compare against the last 30 seconds or so of this video ( http://www.youtube.com/watch?v=10ox35vMS78 ) and the Fascinate is nowhere near as bad at lagging. That video was 8/21/2010, so they may have updated their application by now, not sure.
Edit - Anyway, it works just fine. Nice work Dirrk! 2,191 !
Yep, worked like a charm! My Quadrant score jumped to 2125 after the fix. Phone is much snappier too. Thanks Dirrk!
i've been trying this but i keep getting permission denied.
can someone take me step by step on how to do this?
So, after running this, I am now getting a notification that internal storage is nearly full. Any ideas?
spotmark said:
So, after running this, I am now getting a notification that internal storage is nearly full. Any ideas?
Click to expand...
Click to collapse
If you have root, you can now remove many of the bloatware apps that you do not use (this fix uses 1gb of your internal storage - performance is expensive)
m2cool2go said:
If you have root, you can now remove many of the bloatware apps that you do not use (this fix uses 1gb of your internal storage - performance is expensive)
Click to expand...
Click to collapse
Whoa, careful there. That's a quick way to brick your phone. Try removing Verizon Backup Assistant and you're bricked.
C:\sdk\tools>adb shell
$ su
su
# cat /sdcard/busybox > /system/xbin/busybox
cat /sdcard/busybox > /system/xbin/busybox
cannot create /system/xbin/busybox: read-only file system
Any ideas why I'm getting this error? It looks like I'm screwing up something very simple...
namebrandon said:
Whoa, careful there. That's a quick way to brick your phone. Try removing Verizon Backup Assistant and you're bricked.
Click to expand...
Click to collapse
Really? I removed Backup Assistant and I'm not bricked. Am I missing something?
Removing VZW backup assistant will absolutely not brick your phone. Its one of the first things to go on all my android phones since the eris.
undo lagfix
Hello. I want to undo this for now, due to running out of space for apps. I assumed running unlagfixme would do the trick, but it hasn't given me back the 1 gb it used. Am I doing it wrong, or is it stuck like this now? Thanks for your help!
is there a list of apps someone can recommend to remove that's just bloat? thanks....and ive ran this quadrant score, im averaging 871 three times testing now with minimal apps (used task killer...) - and ive got 177mb left on my phone hehe...
Nevermind, figured it out
xirnibor said:
is there a list of apps someone can recommend to remove that's just bloat? thanks....and ive ran this quadrant score, im averaging 871 three times testing now with minimal apps (used task killer...) - and ive got 177mb left on my phone hehe...
Click to expand...
Click to collapse
You screwed up if your only getting 871 thats stock. Open up a shell on your phone and type mount and place the results in here
Whitepaint said:
Removing VZW backup assistant will absolutely not brick your phone. Its one of the first things to go on all my android phones since the eris.
Click to expand...
Click to collapse
Thanks for the info, and my bad on the post!
I heard that removing this on the Droid X was bricking phones.
If people want to share what they've been successful in removing/renaming, that would be helpful.
namebrandon said:
Thanks for the info, and my bad on the post!
I heard that removing this on the Droid X was bricking phones.
If people want to share what they've been successful in removing/renaming, that would be helpful.
Click to expand...
Click to collapse
I am waiting on rom manager so I can make a back up before I continue removing stuff

[Q] Scripting on the Archos 70

Hi!
Could anyone help steer me towards a solution please?
Or tell me if its impossible (and why).
I am trying to put together a script of some kind which I can use to do a basic rebuild of my Archos 70 after I have done a Full Reinitialization. I like to mess around installing all sorts of stuff, but when done, it's nice to reset and go
back to a clean machine.
As it's not rooted (yet?) I generally rebuild manually which takes ages.
Although a relative newbie at Android/Linux, I have worked with scripting
on mainframes and in the Windoze arena for many years.
The scripting requirement is quite simple, namely to install packages one by one from the SD card. Also to copy back Bookmarks, launcher setting etc
I am happy to work in any language which will work, but to date have just been trying with .SL (Bash?) scripts which run quite happily from within the SL4A environment or according to my theory, should work also from Android natively.
I envisage the script residing on the SD card and when invoked installing my launcher, Dolphin Browser, various other apps and games, then copying back the settings which I have saved (also by script) before the Initialisation.
Trouble is, I can find no simple samples which help. When I try, I can 'cp' stuff about and echo messages etc, but when I try to install, I don't really know where to start. I have tried just the name of the app package
'/sdcard/sdcard/packagename.apk', it replies 'permission denied' and if I try 'sudo package.apk', it says 'not found'.
I am assuming that the 'permission denied' is a good sign because it understands what I'm trying to do at least. But if I am allowed to do it myself, then surely my script should be allowed to do it?
I am quite happy messing around myself. But if anyone has any pointers
(sample scripts, which language/environment to use, etc.) I would be most grateful.
Sorry if this is covered elsewhere. I have searched but was unable to find much which helped. I am continuing the search!
Thanks in anticipation!
1. All normal installed Apps are installed in /data/app as the apk
2. Local/private data comes into /data/data/name.of.the.package
Both directories are ony accessible with root.
Hell again,
Thanks for your reply fzelle, but I'm not sure as to whether I may have explained it properly.
I am running 'Quick System Info' which is great, and it has a function to backup all the installed apps to a directory you can get at without root access. From there I have copied them onto the SD card.
I am not just trying to copy them into the working directory.
If I click on an app, it lets me install it without any problem.
I am trying to automate that part of the process, and I need the name of the software which does the installation, and how to actually give it the parameters for it to do the install. Although a Linux newbie, I don't really understand why, if I am allowed to install apps myself,
a script that I run should not be allowed to install them also?
Anyone got any ideas please?
Oops! - Sorry for that unfortunate typo at the beginning of my last post. Please read as 'Hello'!
No, i didn't understand you wrong.
You want to automate the installation of your std programs, and that normaly doesn't only include the apk but also the private Data.
And if you manually want to install this, you need root to be able to write in /data/data
If you just want to Backup/Install the apps, use appSaver from the market.
That has allready everything you need, and doesn't need root.
fzelle said:
1. All normal installed Apps are installed in /data/app as the apk
2. Local/private data comes into /data/data/name.of.the.package
Both directories are ony accessible with root.
Click to expand...
Click to collapse
Not entirely true.
I have some SSH tunnels set up on my rooted phone that use keys and a shell script to launch them, all set up with Better Terminal Emulator. The key and script files are located under /data/data/com.magicandroidapps.bettertempro/home. I wanted to use the same keys and script on my A70, so I copied the files from my phone to the same directory on my A70 using the terminal command line. Although you can't browse to the app folders under /data/data/, there is some ability to copy stuff into them. I guess the trick is knowing what and to where.
I've not used appsaver, but Astro will also let you back up and reinstall your apps all at once.

Uninstall app and icon is still there

I have uninstall an app and it is still there. Great programming.
Now I got two of the same icon even after I had uninstall the app.
This is on the SETTING - APPLICATIONS - Manage Aplications - screen, NOT the HOME screen where you just hold and REMOVE.
Anyone know how to get rid of the icon?
After you uninstall the apps reboot. Try that and see if it works
Locked & Loaded
" Shooter on Deck "
chong67 said:
I have uninstall an app and it is still there. Great programming.
Now I got two of the same icon even after I had uninstall the app.
This is on the SETTING - APPLICATIONS - Manage Aplications - screen, NOT the HOME screen where you just hold and REMOVE.
Anyone know how to get rid of the icon?
Click to expand...
Click to collapse
A more technical approach to removing an application is: adb uninstall <package name>
For example, to remove my Root Check app, the syntax would be: adb uninstall com.joeykrim.rootcheck .
I'm pretty sure this will remove both the .apk file stored in /data/app and the /data/data directory created by the application.
If you wanted to manually perform essentially the same thing you can simply remove the application's apk file in /data/app and remove the applicaton's directory in /data/data.
I usually use the adb uninstall approach but have manually removed apk files and /data/data directories. Hope that helps!
I have done shut down and reboot. That did not do it. The icon is still there.
Where do I input the syntax?
Do they leave registry behind on the phone?
chong67 said:
I have done shut down and reboot. That did not do it. The icon is still there.
Where do I input the syntax?
Do they leave registry behind on the phone?
Click to expand...
Click to collapse
Is fastboot enabled when you did the reboot or shut down??? If so try turning it off and see if that helps. Also try loading up titanium backup and go into backup and restore and see if you can find anything related to the app and if you do try uninstalling/removing it and see if that helps. As far as the syntax you have to have adb installed on your pc.
Locked & Loaded
" Shooter on Deck "
chong67 said:
I have done shut down and reboot. That did not do it. The icon is still there.
Where do I input the syntax?
Do they leave registry behind on the phone?
Click to expand...
Click to collapse
more detailed and technical route/answers/background to your questions:
the syntax can be input via an adb binary ran on the host computer which communications with the android device over adb. it is a great and powerful method. the main reason i switched to using android devices.
i wrote a guide for using adb when I had the HTC EVO, but adb is the same for almost all android devices. [TUTORIAL/HOW TO] Basics of ADB
android doesn't have a registry like windows does. an application consists of three main pieces.
1) the application .apk file, which is the actual application code package downloaded through the market and stored in /data/app/.
2) the application has its own dedicated and private directory for settings, files, information, etc created in /data/data/.
3) the android java dalvik virtual machine parses the .apk file to speed up loading time and stores this information in /data/dalvik-cache/.
in theory, barring any unusual circumstances which sometimes arise, in order for the application to appear in the application draw/tray, the apk file has to be in the /data/app folder.
hope all that information helps!
chong67 said:
I have uninstall an app and it is still there. Great programming.
Now I got two of the same icon even after I had uninstall the app.
This is on the SETTING - APPLICATIONS - Manage Aplications - screen, NOT the HOME screen where you just hold and REMOVE.
Anyone know how to get rid of the icon?
Click to expand...
Click to collapse
Just had the Same problem Minus the Double icons... What i did was I went into Data/Data and found the file left behind and Deleted it, the went into Data/DalvikCache and Also Deleted the file from there. The Rebooted to Recovery and Wiped Cache and DalvikCache and when I Rebooted I was Good! All Gone....
Oh yeah also if you have Spareparts.apk installed and have the ZipAligned setting checked, Disable it!

[Q] Noob trying to save /data space (chrome)

G'day.
I have a Desire with it's fantastically small /data partition (~147mb - and no a hboot switch won't fix anything with my current rom). Running ICS and hence also have chrome installed except it has about 36mb of junk in /data/data which is not traditionally moved to SD for performance reasons.
You'll have to excuse me here - because this is where I get stupid - but I beleive what I'm trying to do is symlink /data/data/com.android.chrome to somewhere convenient in sd-ext.
Can someone clever please point me in the direction of the exact line I need and the best way to implement it?
Cheers!
M.
Just edit the manifest, add installLocation="auto" (I think, look at my patched version, it's in there) and it will enable moving to sd, and leave bugger all on internal.
Haven't updated the patched version because they removed the device check.
Edit:
Or if you don't wanna resign the apk, just type the following in the terminal (making sure chrome is closed beforehand)
mkdir -p /sd-ext/data
mv -f /data/data/com.android.chrome /sd-ext/data
ln -s /sd-ext/data/com.android.chrome /data/data/com.android.chrome
Thanks, I'll have a look at the install location options
As you've probably guessed I'm not a coder But happy to tinker and see what happens...
M.
Should ask, what do you use to decompile/compile? (if on windows)
APK Manager decompiles, found the line you mentioned and added that just fine, however it fails on compiling...
M.
I use autoapktool, using apktool v1.4.3
ICS apks can be a pain.
Had a couple requests via pm so I'll put out an update sometime soonish with move to sd enabled (follow link in sig)
http://www.mediafire.com/?uyjta1swtp0w459 should work
Thanks.
I'm going to continue trying to get it working myself for future releases / personal education.... but this works great for right now
M.
Sent from my HTC Desire using xda premium

Categories

Resources