Phone Security - G1 General

I am having a problem with the security apps on the market like "MobileDefense", "SIM Checker" and so on. They are all great apps but can be easily uninstalled through the market with a little looking around. So what I need is to know how to install the .apk in /system. So basicly I figure that I need to move the .apk to "/system/app" so it is running in the system and cannot be uninstalled via market. So what I need would be the terminal commands to do this if anyone knows. Further more I was wondering if it would also be possible to go in and rename the .apk in "/system" to something like "systemapp.apk" to confuse the person trying to uninstall the app if they happen to stumble upon the manage applications section. Any help would be appreciated!

You can uninstall system apps too.

Yes but not as easy as going into the market and uninstalling. Is there any way to do what I am talking about in the first post? Btw I love your Rom.

Just go to Settings/applications there are the systemapps too...

maxisma said:
Just go to Settings/applications there are the systemapps too...
Click to expand...
Click to collapse
Systemapps was just an example It could also be named something else How would I go about moving "MobileDefense" to /system/app using terminal commands?

maxisma said:
Just go to Settings/applications there are the systemapps too...
Click to expand...
Click to collapse
Actually the Settings application manager cannot uninstall applications in /system. /system is supposed to be read-only on stock Android builds.
Installing something into /system/app is easy. Just install the app normally from the Market, then open your adb or Terminal emulator, remount system, and cp the file from /data/app into /system/app. After, rm the original copy. The downside is you won't be able to update the app from the market.

jashsu said:
Actually the Settings application manager cannot uninstall applications in /system. /system is supposed to be read-only on stock Android builds.
Installing something into /system/app is easy. Just install the app normally from the Market, then open your adb or Terminal emulator, remount system, and cp the file from /data/app into /system/app. After, rm the original copy. The downside is you won't be able to update the app from the market.
Click to expand...
Click to collapse
IIRC, this won't work anyways since they application will be reinstalled but your settings will not? Am I wrong? A wipe will still kill the application's usefulness even if it were built into the ROM.
Is there a way to setup a program default (your settings) so that short of installing an entirely new ROM, you keep your settings???

momentarylapseofreason said:
IIRC, this won't work anyways since they application will be reinstalled but your settings will not? Am I wrong? A wipe will still kill the application's usefulness even if it were built into the ROM.
Is there a way to setup a program default (your settings) so that short of installing an entirely new ROM, you keep your settings???
Click to expand...
Click to collapse
This is a good point; I hadn't thought about the matter of the settings. I have not installed any tracking/retrieval software before so I don't know how they specifically work, but it is theoretically possible for them to work without configuring any settings. It depends on whether the software needs to log into a remote server, but from what I gather some simply act on a sms message. If the action to take is already set by default then there should be no problems. However like I said I have no experience with any actual apps of this sort.

jashsu said:
This is a good point; I hadn't thought about the matter of the settings. I have not installed any tracking/retrieval software before so I don't know how they specifically work, but it is theoretically possible for them to work without configuring any settings. It depends on whether the software needs to log into a remote server, but from what I gather some simply act on a sms message. If the action to take is already set by default then there should be no problems. However like I said I have no experience with any actual apps of this sort.
Click to expand...
Click to collapse
Even with a text message, it would need to be "set" for a default number. Mobile Defense however does use a central server to log into.
Hmm... Is there a way to pull the IMEI from the phone and use THAT as a login??? Then if it were to be incorporated with the phone's ROM, it would be pretty difficult to remove it and not have it send data to the proper people.
Just randomly throwing out ideas here, so pardon my ignorance

Related

[Solved] Deleted System Apps Still Showing Under Manage Applications

Im using the Root Explorer v2.10.2(which is the latest) to delete some unwanted system apks in system/apk folder, and im pretty sure i have already deleted those apks, but when i go into Settings->applications->manage applications, i still can find those deleted apks. Altho they are like 0 bite in memory, but still looks very annoying to me. Is there any way to get rid of those things in 'manage applications'? I have tried to search keywords in RootExplorer, and deleted the apk folders under data/data, and reboot my phone, and they are still there..
Also, if i click on any of those apks, "settings" will FC.
tzf123 said:
Im using the Root Explorer v2.10.2(which is the latest) to delete some unwanted system apks in system/apk folder, and im pretty sure i have already deleted those apks, but when i go into Settings->applications->manage applications, i still can find those deleted apks. Altho they are like 0 bite in memory, but still looks very annoying to me. Is there any way to get rid of those things in 'manage applications'? I have tried to search keywords in RootExplorer, and deleted the apk folders under data/data, and reboot my phone, and they are still there..
Also, if i click on any of those apks, "settings" will FC.
Click to expand...
Click to collapse
Did you try running fix_permissions?
Binary100100 said:
Did you try running fix_permissions?
Click to expand...
Click to collapse
hmm.. what is fix_permissions?
i searched on google and it says:
From a running ROM
To execute the fix_permissions script on your phone:
Open the "Terminal" app from the application drawer.
Type
su
fix_permissions
when i type fix_permissions in terminal, it indicates fix_permissions not found, i also tried fix_permissions.sh, still not found
tzf123 said:
hmm.. what is fix_permissions?
i searched on google and it says:
From a running ROM
To execute the fix_permissions script on your phone:
Open the "Terminal" app from the application drawer.
Type
su
fix_permissions
when i type fix_permissions in terminal, it indicates fix_permissions not found, i also tried fix_permissions.sh, still not found
Click to expand...
Click to collapse
what rom and recovery are you using?
Binary100100 said:
what rom and recovery are you using?
Click to expand...
Click to collapse
SMOKI 0.6.3, RA-hero-v1.6.2
it seems like the fix_permissions command can be used in CM ROMS..
tzf123 said:
SMOKI 0.6.3, RA-hero-v1.6.2
it seems like the fix_permissions command can be used in CM ROMS..
Click to expand...
Click to collapse
Try running fix_permissions from recovery.
its not working... those apks still stay in 'manage applications'.. altho recovery said its successful
Binary100100 said:
Try running fix_permissions from recovery.
Click to expand...
Click to collapse
LOL, problem solved, by editing the packages.xml under data/system, somehow the apk details are recorded in that file, so i just delete the corresponding codes and reboot my phone, walllllaaaaaaaaaa
AND, thanks a lot for your guide, LOL
tzf123 said:
LOL, problem solved, by editing the packages.xml under data/system, somehow the apk details are recorded in that file, so i just delete the corresponding codes and reboot my phone, walllllaaaaaaaaaa
AND, thanks a lot for your guide, LOL
Click to expand...
Click to collapse
Glad that you got it solved.
Also I hope that you don't mind by I edited your title because your problem wasn't specifically related to the Root Explorer app. This problem would occur if you had used any other means of removing the system app. By editing the title it'll make it easier for those that need assistance with a similar issue post their problems and find solutions. Adding [Solved] is effective to let them know that a resolution is available within the thread.
And it's not my guide, it's a reference for others that can't find the answer with the apparently evasive search feature.

Please help me, i Lost my "Accounts &sync"

I was using Titanium Backup to uninstall some of the apps that came with my Vibrant. I made sure to hit the back up button in Titanium Backup before I un-installed "Accounts & Sync" (I wanted to uninstall it because the icon in the app draw was annoying to me). So i deleted it and now I cant access my account and Titanium Backup wont let me restore. I was wondering if someone could please help me. Thank you..
The app was only a shortcut to Accounts & Sync.. just go into settings -> Accounts & Sync.
Thats my problem, It isnt there in the setting app..
Thats weird because I uninstalled it and it was still there even after i rebooted the phone.
You could always use ADB and push the .apk back into /system/app
How do I do that? And where can I find the .apk ?
MichaelB91 said:
How do I do that? And where can I find the .apk ?
Click to expand...
Click to collapse
Mhmmm thought you backed it up? do you have a ADB environment set up properly? It'll take a little bit of time to fully set that up.
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
MichaelB91 said:
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
Click to expand...
Click to collapse
Download: http://de.codeplex.com/releases/view/48865
Driver: http://forum.xda-developers.com/showthread.php?t=728929
-- Download corresponding to your OS (whether its running on x64 or x86)
Once that's done and the SDK environment is fully setup by Droid Explorer. Make sure it downloads SDK files and such.
1. Settings -> Applications -> Developement.. make sure that USB debugging is enabled
2. Connect phone via USB
aaaaaaaand follow this guide http://forum.xda-developers.com/showthread.php?t=532719 starting at
Check if your phone is detected by ADB once you fully installed Droid Explorer + Drivers
except for the first part where it says:cd C:\android-sdk-windows\tools === Press Enter
do
cd C:\Program Files\Droid Explorer\SDK\tools
Click to expand...
Click to collapse
instead
It'll take some time to set this all up and when you finally do just put AccountAndSync.apk and AccountAndSync.odex to /system/app and it everything should be good again.
Update: Backed up my apps before i started deleting them and uploaded you a backup of AccountAndSync http://www.mediafire.com/?d95wccd37kfgaic
I will give it a try, Thank you very much. Ill let you know how it goes.
for ADB:
* adb remount
* adb shell cp /sdcard/AccountAndSync.apk /system/app
* adb shell cp /sdcard/AccountAndSync.odex /system/app
Click to expand...
Click to collapse
^^ for this to work place the two files in the .zip that i made into the root of /sdcard/ (14GB not the 2GB)
After looking around.. you could possibly get a app called Root Explorer (paid app) and have the same result.
* In Root Explorer, copy the apk file you want to put in /system/app
* Navigate to the /system/app directory
* Tap the Mount R/W button on the top right
* Tap Paste
* Scroll down to the pasted apk, long press on it and select Permissions (you'll see 9 check boxes when you do this)
* Check the Read and Write buttons for User, and only the Read boxes next to Group and Others, then tap OK (once you're done, the read/write permissions under the app name should be the same as all the other apps listed (rw-r--r--))
* Reboot.
Click to expand...
Click to collapse
I'm off to bed though. I'll check in tomorrow.
I tired using Droid Explorer but that didnt work, so then I went and bought "root explorer" and did everything as you said but it didnt work.. I dont know if this makes a difference but when I went into the properties for accountsandsync it said Owner: System
Group is sdcard_rw
While everything else in the /system/app folder says
Owner: Root
Group: Root.
made a new thread, did not want to hijack someone else help thread.
MichaelB91 said:
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
Click to expand...
Click to collapse
I am in the exact same place. I used Titanium Backup to remove Account & Sync and now it is missing completely. I did do a backup from within Titanium Backup, but when I went to use the Restore feature, it wasn't available. I found a support page for Titanium Backup (http://matrixrewriter.com/android) and FAQ #10 states:
#10: Why is the "Restore" button disabled for some system apps ?
◦System apps are part of your ROM, so Titanium Backup will only backup their data (not the apps themselves). For this reason, if you backup a system app, and then switch to a ROM where that app is missing, Titanium Backup obviously cannot restore the data for it.
I just wish it would have made this more clear when I was doing the backup in the app.
zephiK said:
The app was only a shortcut to Accounts & Sync.. just go into settings -> Accounts & Sync.
Click to expand...
Click to collapse
At first, after removing Accounts & Sync using Titanium Backup, the option was still available from Settings -> Accounts & Sync. However, when I actually tried to go into it, it failed to start and it was somehow removed completely from the menu.
I have followed your steps for setting up Droid Explorer. I can get it to communicate with the phone, although it does show a '$' instead of a '#' when typing "adb shell" into the Command Prompt. I have copied the .apk and .odex files from the Zip you provided into the root of the device.
When I attempted to use the adb commands you listed, I get errors for all of them. For "adb remount" it says "remount failed: No such file or directory." For both "adb shell cp /sdcard/AccountAndSync.apk /system/app" and "adb shell cp /sdcard/AccountAndSync.odex /system/app" it says "cp: not found."
I then moved on to trying the Root Explorer app directly from the phone. I found the .apk and .odex files in the root of the /sdcard folder. I tried to copy and paste them into the the /system/app folder, but they never appear to paste correctly. It does not give me an error, but it never shows up in the correct spot, either. One thing is that you said I must press Mount R/W, however the system/app folder already says it's opened in R/W. The only option on the top right is Mount R/O, but pressing it doesn't appear to do anything.
I'm not sure what to do from here. Any help would be appreciated.
Thanks,
Yogi
Okay, I figured out what happened. Titanium Backup shows two "Accounts and Sync" apps... one is the actual app and the other is the icon that links to the app. I had removed both accidentally. I downloaded the AccountAndSync.apk someone posted in another thread and installed it with ADB. It brought the icon back, but not the actual application. Could someone please upload the .apk for the actual Accounts and Sync app?
Yogi76 said:
Okay, I figured out what happened. Titanium Backup shows two "Accounts and Sync" apps... one is the actual app and the other is the icon that links to the app. I had removed both accidentally. I downloaded the AccountAndSync.apk someone posted in another thread and installed it with ADB. It brought the icon back, but not the actual application. Could someone please upload the .apk for the actual Accounts and Sync app?
Click to expand...
Click to collapse
http://www.mediafire.com/?r1mrbtsep2k84kb uploaded.. i was tired that day :X
includes BOTH settings and actual app.
Thank you soooo much! it worked!
Worked for me, too. Thanks!
Just to help everyone else in the case you deleted some other pre-installed app and you do not have a backup -
http://samsungvibranthacks.com/samsung-vibrant-hacks/samsung-vibrant-system-dump-default-apps/
Awesome, thanks. that will probably come in handy
MichaelB91 said:
Thank you soooo much! it worked!
Click to expand...
Click to collapse
Thank yogi for reminding that there are two apps for accounts and settings. Been busy and didn't look now in depth and the other night I was pretty tired. Only the settings need to be installed. But I included both for the hell of it.
Sent from my SGH-T959 using XDA App

[Q] Removing apps that came with CM6

I'm not sure if this is the right place to post this. Feel free to move it.
I am wondering how to remove some things that came with CM6 when I installed it. When I go to applications > manage applications I cannot delete anything other than the things I've installed. Here is a list of things that I want to delete.
Amazon mp3
The stock browser
Stock Camera
stock messaging
stock music player
Google Talk
Google Voice
All the wallpapers
Home screen tips
I don't have a use for any of these and would rather free up the space and keep down the clutter from things I don't use.
http://forum.xda-developers.com/showthread.php?t=735255
*************** NOTE ***************
Removing some of these may cause instability/FC issues with your phone. Just fair warning.
***
After reading that thread; the files you need to delete are... (located in System/App)
com.amazon.mp3.apk
Browser.apk
Camera.apk
(Not sure about messaging - might be mms.apk)
music.apk
talk.apk
I'm not totally sure about the others.
deleting mms.apk will remove your ability to receive texts. i know cause i tried to replace it with handcent at one point. removing music and amazon should be fine.
Thanks for the replies. I'm gonna try to remove the Amazon mp3 and Music now. What do you think would happen if I move the apps to my SD card and then access and delete them from my computer? Does this run the same risk of instability issues? In theory, I should be able to back them up on my computer and restore them if things go wrong, agree?
Anthony1s said:
Thanks for the replies. I'm gonna try to remove the Amazon mp3 and Music now. What do you think would happen if I move the apps to my SD card and then access and delete them from my computer? Does this run the same risk of instability issues? In theory, I should be able to back them up on my computer and restore them if things go wrong, agree?
Click to expand...
Click to collapse
Ya. You can back them up to your SD card or PC, whichever is easier.
Sent from my Liberty using XDA App
Here's what I did along with some instructions from attn1. (he's the best!) Maybe this information will be helpful to someone. I am running CM6 A012 on my phone.
I booted up the Ubuntu LiveCD that I used to root my phone.
Rebooted my phone into Clockwork Recovery... power & volume down > wait for system check > Recovery
Once in ClockWork Recovery I linked my phone via USB to my computer and clicked 'partitions menu' then 'mount /system'
I accessed the terminal in Ubuntu and I couldn't get permissions to access the phone's files
In terminal, attn1 had me type the following commands before I could access the app list.
1) echo $PATH
2) sudo su
3) cd /opt/android-sdk-linux_86/tools
4) ./adb kill-server
5) ./adb remount
After that, to list the apps type: ./adb shell ls -l /system/app
To remove apps type: ./adb shell rm /system/app/filename.apk
To check if they're removed type: ./adb shell ls /system/app/filename.apk
I removed Music.apk, com.amazon.mp3.apk, and Browser.apk. When trying to remove Gmail.apk, Ubuntu wouldn't let me do anything else. I am assuming that the LiveCD has a time limit on it for the trial version. I then unmounted my phone on ClockWork and the rebooted it. The apps that I removed are gone from my phone and everything related to them still works fine.
Here is a link I used to find out which .apk files were safe for removal. http://forum.sdx-developers.com/android-2-1/(list)-apk's-and-odex's-safenot-safe-to-delete/
I will do some more research and try to remove other .apk files in a couple hours. I didn't try the 'move to SD' method that I mentioned above and would still like someone's opinion on it.
I forgot to mention. It's probably best to do a nandroid back up before doing all this. I didn't do one that time and will do it next time. I will also leave a list of everything I removed for future reference. If anyone else has a list, I would appreciate seeing that. This is my first time doing all this so I am constantly bugging attn1 for knowledge.
It didn't seem right to complain about AT&T bloatware, but still have to deal with the apps cyanogen installed.
Correct me if I am wrong. I did it this way and so far haven't found any issue YET. BTW, I didn't delete mms.apk though. Use Winrar (or other programs, not tested) to open cm6-liberty-A0xx-signed.zip. Navigate to system/app and then remove the apk files from there. Close winrar and install the modified cm6-liberty-Axxx-signed.zip like normal. It saves me a lot of time dealing with adb.
penpower said:
Correct me if I am wrong. I did it this way and so far haven't found any issue YET. BTW, I didn't delete mms.apk though. Use Winrar (or other programs, not tested) to open cm6-liberty-A0xx-signed.zip. Navigate to system/app and then remove the apk files from there. Close winrar and install the modified cm6-liberty-Axxx-signed.zip like normal. It saves me a lot of time dealing with adb.
Click to expand...
Click to collapse
You know, that's a much easier idea. Even testing by taking one .apk out at a time would be faster, I think. And my Winrar is expired and it still let's remove files! I would just have to remember to save a backup on the .zip before and after removing each .apk.
Anthony1s said:
1) echo $PATH
Not required. Only had you do that because I knew shad0wf0x put the tools in the path, but didn't know exactly where. Just made it easier for moving there once you did the next step.
2) sudo su
3) cd /opt/android-sdk-linux_86/tools
Required.
4) ./adb kill-server
Not required - only had you do it because the server was initially started from the regular user account and wasn't connecting properly.
5) ./adb remount
After that, to list the apps type: ./adb shell ls -l /system/app
To remove apps type: ./adb shell rm /system/app/filename.apk
To check if they're removed type: ./adb shell ls /system/app/filename.apk
This is fine....
I removed Music.apk, com.amazon.mp3.apk, and Browser.apk. When trying to remove Gmail.apk, Ubuntu wouldn't let me do anything else. I am assuming that the LiveCD has a time limit on it for the trial version. I then unmounted my phone on ClockWork and the rebooted it. The apps that I removed are gone from my phone and everything related to them still works fine.
Here is a link I used to find out which .apk files were safe for removal. http://forum.sdx-developers.com/android-2-1/(list)-apk's-and-odex's-safenot-safe-to-delete/
I will do some more research and try to remove other .apk files in a couple hours. I didn't try the 'move to SD' method that I mentioned above and would still like someone's opinion on it.
Click to expand...
Click to collapse
FYI there is no expiration on the Ubuntu LiveCD. If it stopped working for you, it was for some other reason.
Thanks for correcting that attn1. I haven't tried to do anything further yet, but will after a nap. Does anyone know if you edit the ROM in Winrar, do you have to sign it or w/e?
Anthony1s said:
Thanks for correcting that attn1. I haven't tried to do anything further yet, but will after a nap. Does anyone know if you edit the ROM in Winrar, do you have to sign it or w/e?
Click to expand...
Click to collapse
When I modified both of N1 and Aria CM rom, I don't have to sign it again.
Ok here is the basics of what I did. I didn't modify the CM .zip from my computer because I thought it would take more time to nandroid backup and reflash the ROM. If I install a new ROM, I am more likely to do that. I loaded the Ubuntu LiveCD and proceeded with what I was doing before. I still had to put in every command that attn1 taught me.
Here is a list of everything I removed.
- Music.apk Successful. No problems.
- com.amazon.mp3.apk Successful. No problems.
- Browser.apk Successful. No problems.
- Gmail.apk Successful. No problems.
- CMWallpapers.apk Successful. No problems.
- LiveWallpapers.apk Successful. No problems.
- MagicSmokeWallpapers.apk successful except the 'Many' live wallpaper option doesn't load without this. I didn't care cause I was getting rid of all of them.
- LiveWallpapersPicker.apk Deleting this changes some things. When you go to menu >wallpaper it takes me directly to Astro File Manager instead of the wallpaper menu. I can still access and change my wallpaper though the Gallery app
I didn't remove Camera.apk because I read somewhere that it will mess up your camera even if you have another app install. I also didn't remove any Google apps yet. I might try those any other day. They aren't bothering me right now.
I was thinking about moving my nandroid backup to my computer to save space, but I didn't. I realized that if my SD is full, I won't have space on it to move it back when I needed it.
Thanks for all the tips.
what are the apps you upgraded to after deleting these?
i dont want to delete the stock once i've been using if there alternatives arent any better.
dh4645 said:
what are the apps you upgraded to after deleting these?
i dont want to delete the stock once i've been using if there alternatives arent any better.
Click to expand...
Click to collapse
For Music, I'm using Mixzing. For Browser, I'm using Dolphin HD. For E-mail, I'm using K9. For Messaging, I'm using Handcent. For Camera, I have a bunch of different apps.
I heard that your camera and messaging won't work without the 'Camera' and 'Messaging' that are currently on the phone. I'm assuming that your email won't work without the 'Email'. I deleted Gmail without any problems though. All the rest that I removed were just Wallpapers that came on the phone. I can pull up the wallpapers that I want from gallery still.
I don't think I freed up much memory space. My main concern was to get all those 'Music' widgets off my widget list and make everything else less cluttered.
So you can still get and send email from your email account after removing gmail or do you have to buy/download another email client. I am trying to figure out the differences between the gmail and email apps at the moment. The email app seems to have changed in Froyo to something less than it was. Are you using the standard "email" app after you delete gmail app?
anika200 said:
So you can still get and send email from your email account after removing gmail or do you have to buy/download another email client. I am trying to figure out the differences between the gmail and email apps at the moment. The email app seems to have changed in Froyo to something less than it was. Are you using the standard "email" app after you delete gmail app?
Click to expand...
Click to collapse
I use k9 mail. Everything worked after i removed gmail.apk
Sent from my Liberty using XDA App
What I did before I installed the addon apps is opened the zip file and just deleted the apk files I didnt want.
I forgot to delete Twitter tho. Doh.
Hey, tried running Skyfire browser after uninstalling the default browser?? Cause all I am getting is a black screen when trying to run Skyfire.Other browsers work fine, but no Skyfire.
Know of any way to reinstall the defautl browser???
mharrissmith said:
Hey, tried running Skyfire browser after uninstalling the default browser?? Cause all I am getting is a black screen when trying to run Skyfire.Other browsers work fine, but no Skyfire.
Know of any way to reinstall the defautl browser???
Click to expand...
Click to collapse
I think I read somewhere that Skyfire is meant to run on top of the default browser, kind of like an add-on.
For the stock browser, download cm6 and unzip it. Then go into the unzipped file >system>app>browser.apk. Just push Browser.apk to /system/app on your phone via adb and you're good to go.
EDIT: just realized you might not be running cm6. Not sure if theres a difference between the browser in cm6 and the one from the stock rom. If there is a difference you just follow the same procedure from whichever rom you're running.

( Q) easier way to run a batch of applications back on the n1

hello n1 users, had a question i was hoping someone can help me with. im constantly putting new roms into my nexus one and with the almost daily updates, im getting tired of wiping and running a batch of applications on titanium backup back onto the phone. Right now i just check the boxes next to the app i want installed back onto the phone from a list of backed up apps but it requires me to press "install" and "done" after every single app installs. is there a method you guys use where you can push a button and it loads up all the apps at once that you backed up and wont require me to push "install" and "done" after each app ?
In Titanium, select menu, then batch, then restore all...
Sent from my Nexus One using XDA App
thats what i do already but as it puts each backed up app it asks me "install" and then "done".....pretty much i'd like it to be able to walk away from my phone as it restores instead of confirming each app restore.
I think the paid version overcomes this issue. The free version has you confirming after every install.
Sent from my Nexus One
oh ok, got it, thank you imperial. that alone is worth the 6 bucks and a tedious task. i shall make the purchase. thanks again guys
If you want to restore app data as well as your apps, Titanium Backup is your best option. If you want to install the apps only, use a file manager like Astro to back up all apks, save them to your computer, and when you're ready to install them, navigate to the folder in which all the apps are saved and run the command
Code:
adb install *.apk
crawler9 said:
If you want to restore app data as well as your apps, Titanium Backup is your best option. If you want to install the apps only, use a file manager like Astro to back up all apks, save them to your computer, and when you're ready to install them, navigate to the folder in which all the apps are saved and run the command
Code:
adb install *.apk
Click to expand...
Click to collapse
I'm not sure (?) if adb supports wildcards in this case.
If not, something like this will do:
for $f in (*.apk) do abd install $f
djmcnz said:
I'm not sure (?) if adb supports wildcards in this case.
If not, something like this will do:
for $f in (*.apk) do adb install $f
Click to expand...
Click to collapse
+1
I used to do this too, but ever since I've used apps2sdext I haven't had the need. i.e those apps survive between ROMs, updates etc. (all 200+ )

[SCRIPT] Debloat HTC 10

Although HTC 10 comes with less bloat than most other phones, it still has apps preinstalled that some of us probably will never use.
Some of those apps may even run at boot and consume RAM and CPU. For this purpose I made a small script that will remove those apps instead of doing it manually via ADB Shell.
This script is for Mac/OS X/macOS. I think it can also run on Linux but I'm not sure because I don't use Linux much.
For Windows, it can easily be ported to command line. If someone is willing to do it, PM me the script and I will add it to the repo.
Apps that the script removes:
Boost+
Google+ Sense Add-on
Instagram (placeholder app)
LinkedIn Sense Add-on
HTC Mail
Facebook (placeholder app)
Messenger (placeholder app)
News Republic
TouchPal Keyboard (SEE NOTE!)
Twitter Sense Add-on
Voice Recorder
Zoe
HTC Help
IceView Case support
HTC Speak
Transfer my stuff
Google Hangouts
Google Play Music
Basically what the script does:
Mount /system as RW
Delete above apps .apk and containing folder
Reboot after done.
DISCLAIMER: Although I don't see what could possibly go wrong by flashing this script, be sure to back up your ROM before flashing as I don't take any responsibility caused by this script. I have tested it on my HTC 10 and I didn't have any issues.
IMPORTANT NOTE: If you plan to remove TouchPal keyboard, make sure that you have an alternative already installed before or you won't be able to type any text. In case you're reading this after you already screwed up, download your prefered keyboards .apk file and install it via ADB. The script will stop before removing the keyboard and ask if you are sure you want to remove it.
How to:
Enable USB debugging
Connect your phone
Execute "adb shell" and then "su" and grant superuser access to adb shell
(OS X) make script executable (chmod a+x)
Run script
I am open for suggestions and merge requests, happy debloating
The script can be found HERE.
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Sent from my HTC 10 using XDA-Developers mobile app
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Just double checking, but I take it that root is required?
Milano_II said:
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
Ive tried some apps for removal of system apps but it didn't work. And since I play around with ROMs reinstalling and uninstalling app by app takes just to much time.
Milamber said:
Just double checking, but I take it that root is required?
Click to expand...
Click to collapse
Yes, you need root because you need to remove apps from the read-only /system partition.
Got it. Thanks for the reply. I haven't had an htc phone since gingerbread and I mostly had Samsungs on Verizon so I never bothered rooting. I didn't get my 10 yet but I hope to root right away and get rid of things I think are bloat. Probably gonna need this script I guess we'll see. Thanks again!
Sent from my SM-G900V using Tapatalk
very nice, quick and easy one step to uninstall the stuff that is safe to, thank you!
razrlover said:
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Click to expand...
Click to collapse
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
ibrokemypie said:
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
Click to expand...
Click to collapse
will you make it for windows please?
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
I usually make changes after a firmware update if I notice any new bloat, but there shouldnt be much changes.
Also, this list is by personal preference, because some apps that I choose to leave others may want to remove or vice versa, so everyone should take the script as a base and edit to their likeing.
ibrokemypie said:
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
Click to expand...
Click to collapse
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
typhoonikan said:
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
Click to expand...
Click to collapse
which update are you running? still marshmallow or have you gone to nougat? custom rom? and have you tried restarting and perhaps clearing cache/dalvik?
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Dare I ask... why not make a shell script you run from the phone? I'll give it a shot. I wrote one that creates directories so I can use FolderSync to restore settings from the cloud.
Sent from my HTC6545LVW using XDA Labs
SovPanda said:
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Click to expand...
Click to collapse
Hi, did you use the Windows version? Thanks
spacecowboy618 said:
Hi, did you use the Windows version? Thanks
Click to expand...
Click to collapse
windows 10 <--
used the one he has listed to download in the original OP and works

Categories

Resources