Related
I used to use "Root Explorer" on my hero to delete system apps before..doesn't seem to work anymore..
solution??
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
did you mount /system in rw mode? (it's ro by default)
U dont have write access to system partition in normal use if i read the tutorial right. U have to do it with an update.zip (editing the update script) or with adb both u have to do in recovery menu from modaco i think. Tell me if i am wrong.
Sry for my bad english
@cezarL yes I did
@xtcislove I wish u were wrong..seems like pain.. anyway to do it without a pc?
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Click to expand...
Click to collapse
ye..I'm sure it has something to do with the root limitations Paul mentioned in his rooting guide. hope it'll be fixed soon.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Try this: Boot in recovery menu and try the following commands:
adb remount
adb shell rm /system/app/APP.apk
adb shell rm /data/app/APP.apk
where APP.apk is the filename of the apk with the .apk extention, remember case-sensitive!
for example:
adb remount
adb shell rm /system/app/FriendStream.apk
adb shell rm /system/app/FriendStream.odex
take a look before if your app has a odex or try this: (here u need only one command)
adb remount
adb shell rm /system/app/*FriendStream*
Good luck and have fun =)
Edit: Just find a topic =)
hxxp://android.modaco.com/content/htc-hero-hero-modaco-com/297207/removal-of-apps-via-adb/#entry1124362
(replace hxxp with http)
I'm trying to do these things in windows at the moment. No issues getting in the recovery with the windows scripts. But when I try to open a ADB Shell after I've gone to recovery I can't really do anything with it and the recovery hangs (not controllable with the track pad).
Anyone can tell me what I'm doing wrong?
You're not doing anything wrong, from what I've seen opening a new adb instance on Windows will kill the server created by the .bat file used for recovery... which means the connection to the device is lost. I haven't looked into it further, but it might be fixeable somehow.
Ah I see, so basicly you undo the patched recovery by opening a new session. It does work properly under Linux then? I run ubuntu on my netbook so It's not a big issue anyway. Thanks for the tip, gonna try under linux now!
I'm having the same problems as:
http://android.modaco.com/content/h...co-com/307401/removing-sys-apps/#entry1256015
I removed a load of HTC widgets but I get strange entries on the widget menu. Anyone know how to get rid of these?
Also, I removed Stocks (.apk and .odex), now I get a force close on 'Accounts & sync'. Anyone know how to remove Stocks properly?
Cheers.
After running the bat file to get into recovery, start a new cmd prompt in windows and use again adb-nilezon for shell commands instead of ordinary adb, and it wont be killed.
This has worked for me atleast
blackadder1000 said:
Anyone know how to remove Stocks properly?
Click to expand...
Click to collapse
The best, foolproof, failsafe way is to remove them from the rom before installing it... and remember that some services are still required, weather you use them or not.
But, if a system app is already installed you need to remove:
the apk from /system/app
the data from /data/data/appname
the cache from /cache/dalvik-cache
Do not remove Accounts & Sync...
Thanks for the answer.
I guess now is a good time to bake my own ROM!
blackadder1000 said:
Thanks for the answer.
I guess now is a good time to bake my own ROM!
Click to expand...
Click to collapse
Yep, that's what I do... see my sig...
Hi All
Apologies if this is in the wrong place or if it has been answered elsewhere, I have been searching all weekend, so hopefully not!
I have recently installed gingervillain v1.0 on my Desire, and wanted to remove some .APKs for programs I do not use, such as DSPManager.
In an effort to do this I have purchased the paid versions of Root Explorer and Titanium Backup. Using Root Explorer I have tried deleting the .APKs from system/app, but to no avail.
In Titanium Backup I have tried using the uninstall feature, but the apps in question, persisted.
So I began running searches in Google and found a few articles which claimed you could for example delete the .APKs in the ZIP archive close and resign, but I tried this several times and could not get it to work.
I have now downloaded the Android SDK and USB driver for ADB. But when attempting to utiilise ADB to delete the .APKs CMD returns "'adb' is not recognized as an internal or external command, operable program or batch file"
After searching the XDA forums i came across a post which stated I needed to amend the path under Environment Variables to the location of the ADB, which I have done (and rebooted my PC).
I am still receiving the ADB is not a ... statement, in CMD.
I am running windows 7 and have tried the above with and without HTC Sync installed.
Thanks in advance
I think you need to be S-Off to delete system apps whilst booted in Android. You can delete the apps from the zip file before you flash it.
GoogleJelly said:
I think you need to be S-Off to delete system apps whilst booted in Android. You can delete the apps from the zip file before you flash it.
Click to expand...
Click to collapse
Thanks Googlejelly, none of the articles i followed mentioned S-Off but I will look into it. Regarding the deletion of aps from the zip, is this something you have done yourself? Everytime I try too I get Error 0x80004005. I did unzip which allowed me to delete without the error, but after flashing the rom, I got stuck in a bootloop.
Sent from my HTC Desire using XDA App
for deleting anything on the system file itself, u def need s-off. i was on a sgs fascinate rooted which came witrh s-off included in its root. so when i came to a htc desire, i figured it would b the same. but it wasnt. u need to s-off to delete sysrem apks like google talk, file manager, etc
if you want to delete apps while android is running you need to be S-OFF.
you can also edit .zip before flashing.
since you get a bootloop you either delete something you should not OR you have to edit updater script (but since you wrote about GingerVillain i doubt it, so probably you just delete some important stuff)
dzumagos said:
if you want to delete apps while android is running you need to be S-OFF.
you can also edit .zip before flashing.
since you get a bootloop you either delete something you should not OR you have to edit updater script (but since you wrote about GingerVillain i doubt it, so probably you just delete some important stuff)
Click to expand...
Click to collapse
Thanks dzumagos. Do you know if I need to resign the zip, after editing? Also do you know why I might be getting the error which is stopping me from deleting the files in the zip?
Sent from my HTC Desire using XDA App
You shouldn't need to unzip the file to take out the apks, just use winzip to access the the zipped file, delete which apks you don't want then exit out of winzip and flash it, if you delete something important it'll probably loop.
I've done this with leedroid 2.3d and took out footprints,teeter,stocks and a couple of other apks, it flashed fine with no problems.
Actually, you don't need to be S-OFF to remove files from system. Can be done via ADB.
You must have the phone connected via recovery (better, since nothing is in use) with USB debugging on.
Run CMD as administrator, then change to the directory where you have the adb.exe (In my case c:\android-sdk-windows\tools\)
Then type in the command adb shell after you should get an information something like starting daemon.
Then type in mount /system
Now, you can remove files with the rm /system/app/(APPFILENAME).apk command.
When finished type umount /system then exit
If you need the list of files, then type ls in the command prompt.
Worked for me, S-ON.
Sent from my customized HTC Desire using TTP
nagypapi said:
Actually, you don't need to be S-OFF to remove files from system. Can be done via ADB.
You must have the phone connected via recovery (better, since nothing is in use) with USB debugging on.
Run CMD as administrator, then change to the directory where you have the adb.exe (In my case c:\android-sdk-windows\tools\)
Then type in the command adb shell after you should get an information something like starting daemon.
Then type in mount /system
Now, you can remove files with the rm /system/app/(APPFILENAME).apk command.
When finished type umount /system then exit
If you need the list of files, then type ls in the command prompt.
Worked for me, S-ON.
Sent from my customized HTC Desire using TTP
Click to expand...
Click to collapse
Would do this but for the aforementioned error.
Sent from my HTC Desire using XDA App
Tried it or not?
Because from what I read you are writing wrong commands.
Dont write adb if you are already in the shell, because that's not a valid command.
All I do is when I download a rom is open it using WinRar and delete the files straight from the archive. I don't extract the files from the archive, just edit it. I add my own font, notification sound, delete the boot animation and I delete some system apps that I don't use. This beats having to S-Off (I have it anyway) but it is a nice work around.
GoogleJelly said:
All I do is when I download a rom is open it using WinRar and delete the files straight from the archive. I don't extract the files from the archive, just edit it. I add my own font, notification sound, delete the boot animation and I delete some system apps that I don't use. This beats having to S-Off (I have it anyway) but it is a nice work around.
Click to expand...
Click to collapse
GoogleJelly - I did the following, uninstalled 7zip, installed winzip, right clicked the archive with the rom, selected "open with winzip", navigated to the system\app\ folder, right clicked DSPManager.apk, selected delete and got this... (see attached). It just freezes everytime and i get the (not responding) postfix
Perfectly willing to accept I am an idiot who has done something wrong. But I really do fail to see what.
Help, this is so frustrating!!!
nagypapi said:
Tried it or not?
Because from what I read you are writing wrong commands.
Dont write adb if you are already in the shell, because that's not a valid command.
Click to expand...
Click to collapse
Sorry nagypapi, you have lost this Noob! I will try to follow your suggestion again, and report back.
Thanks
I don't use Winzip, I use Winrar.
Solved - cannot delete apks
GoogleJelly said:
I don't use Winzip, I use Winrar.
Click to expand...
Click to collapse
That got it *feel like a tool* Thank you Googlejelly!! No More boot loops either.
madffrogs said:
You shouldn't need to unzip the file to take out the apks, just use winzip to access the the zipped file, delete which apks you don't want then exit out of winzip and flash it, if you delete something important it'll probably loop.
I've done this with leedroid 2.3d and took out footprints,teeter,stocks and a couple of other apks, it flashed fine with no problems.
Click to expand...
Click to collapse
Thanks, madffrogs, it work. In this case, I am just removing some 'excessive' files from a CyanogenMod files, and used 7zip.
Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
re: install apks
TheArtiszan said:
Was just wondering if there is a way to replace the framework with just using root without a custom recovery for the stock Rom?
On my s3 I couldn't do it with just root don't know if that would work on this or if I might have missed something.
Sent using xda premium.
Click to expand...
Click to collapse
All you need is to be rooted, it does not matter if you have custom recovery or not.
You can install any apk's since you do not need to go into recovery to install apks.
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
re: install apk
TheArtiszan said:
When I tried with root only before on a different phone I used root explorer to replace.
But when I went to paste it in the folder the phone locked up and rebooted.
Was that not the right way to do it?
Maybe using adb terminal would be better and not cause it to lock and reboot when I paste over the existing framework-res.apk.
Being in the system directory causes some issue with being that is also a constant used file.
Sent using xda premium.
Click to expand...
Click to collapse
The framework-res.apk should be installed like any other app
unless the OP of wherever you got it from gives instructions
to "copy" it to the /system/app folder.
Why not do it the default normal way? just double click on it
when you are in root explorer and it should install like any
other app. If it gives an error, then you can copy it.
If you "copy" it you have to fix permissions and you have to
change the attributes of the /system/app folder so it's "read and write".
NOTE: if there is an existing framework-res-apk in /system/app
delete it with root explorer before doing any of the above.
Framework-Res.apk must reside in system directory. /system/framework to be exact.
Easiest way to do it without locking up is with adb.
You were right OP that it locks up because it's consistently being used. When I make my mods and such to the framework, this is how I quickly get it to the device.
adb remount (if the kernel supports it in other words, anything but stock)
Turn phone screen on
Adb shell stop (your phone should now have a black screen. This command stops all running threads except the one for adb)
Adb push framework-Res.apk /system/framework
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
You should now see the boot animation then the prompt "android is upgrading"
If you do not have adb remount option (it returns with permission denied)
Copy new framework Res apk to root of internal sd card.
Adb shell stop
Adb shell mount -o remount,rw /system
Adb shell cp /sdcard/framework-Res.apk /system/framework/framework-Res.apk
Adb shell chmod 644 /system/framework/framework-Res.apk
Adb shell start
Just a pointer, disregard my capitalization. Only capitalize when needed.
This method should get everything copied successfully. Any issues just post back!
Sent from my SGH-M919 using Tapatalk 2
Oh thank you very much.
I will give that a try and sounds exactly like what I was looking for.
Sent using xda premium.
Not sure if this is really relevant but...
When I had the samsung vibrant, I used root explorer to make a copy of my framework-res.apk. I extracted the entire thing, found my battery icon files, replaced them with different images given the same name, then repacked the file. Then I copied it back to the original folder to replace the original apk and my phone immediately shut off and rebooted. When it came back I had my new battery icon working just as I had hoped. I was rooted running stock.
Wait... Are you saying that I can simply copy the framework-res.apk from SlimKat and use it on a Google Play Edition ROM?
I'm going to try it!
About the only reason I root my phone is to install AdAway. I'd prefer to not modify the system partition to help make OTA's easier to get and to allow Android Pay to work. AdAway has a flashable .zip file that preps the hosts file to use the systemless root structure that comes along with SuperSU. Unfortunately, that script depends on being able to access the /data partition inside of TWRP which isn't going to happen any time soon on the HTC 10. Fortunately, it is easy for us to manually replicate what the flashable .zip is trying to do.
This isn't a detailed how-to, but more of a set of guidelines. Don't blame me if your phone explodes.
Root the phone with the latest SuperSU.
Download the AdAway_systemless_hosts_v2.zip file from the Unofficial AdAway thread.
Extract the files from inside the zip. We are only interested in two files in the support folder.
Connect the phone to your PC and turn on file transfer mode.
Copy "hosts" and "0000adaway.script" that you just extracted to the internal storage of your phone.
Use a program file Root Explorer to move "hosts" into /su/etc and move "0000adaway.script" into /su/su.d (this probably could have been done with ADB push, but I got permission errors when I tried it that way and I'm impatient and lazy).
Chmod 0755 /su/su.d/0000adaway.script (I used a root shell on the phone via ADB)
Install AdAway (I used the link in the Unofficial AdAway thread.)
Reboot the phone.
Run AdAway like normal. By default it should use /system/etc/hosts which is what you want.
If something doesn't work, figure out why and fix it. I'm happy to answer questions to the best of my ability.
AdAway works without problems here, with simple press activate button.
starbase64 said:
AdAway works without problems here, with simple press activate button.
Click to expand...
Click to collapse
Yup
Sent from my HTC 10 using Tapatalk
starbase64 said:
AdAway works without problems here, with simple press activate button.
Click to expand...
Click to collapse
Yes, but it modifies the /system partition unless you do the trick in OP. If I'm correct, you will have problems with OTA updates and Google Pay if you let AdAway directly modify the hosts file on /system.
Now that TWRP can access /data, can we just flash the zip?
goodtimes50 said:
Now that TWRP can access /data, can we just flash the zip?
Click to expand...
Click to collapse
Yes, you can. I downloaded that zip and apk from the Unofficial AdAway thread linked above. Booted into TWRP, flashed the newest betaSuperSU2.74-2-forceencrypt (not related to this, just so I'd be on the latest version), then the AdAway_systemless_hosts_v2.zip, rebooted and installed the apk and let it run. Rebooted. Showing hosts location as /system32/etc/hosts as the OP says is a good thing, and both files mentioned are in their correct places per Root Browser. [emoji106]
Sent from my HTC 10 using XDA-Developers mobile app
Sorry that it doesn't completely match the thread here but I think my question could fit in here anyway.
Do I suggest correctly that with systemless root, systemless AdAway and the stock recovery OTAs should be fully usable? Since there's no other modification to /system then.
bmwbasti said:
Sorry that it doesn't completely match the thread here but I think my question could fit in here anyway.
Do I suggest correctly that with systemless root, systemless AdAway and the stock recovery OTAs should be fully usable? Since there's no other modification to /system then.
Click to expand...
Click to collapse
I believe that is correct. There hasn't been a new OTA for my phone yet so I can't verify. However, when I do the check for new software it tells me no new updates (as opposed to the message about the files system being corrupt). I believe Android Pay should also work. I have it installed and added a new card, but I haven't tested making a purchase yet.
Thanks for the guide.
My device is rooted, but I didn't found su folder in anywhere when I use Root Explorer with root access, does anyone tell me how to get su folder and make AdAway work?
Fix for AdAway.
matif525 said:
Thanks for the guide.
My device is rooted, but I didn't found su folder in anywhere when I use Root Explorer with root access, does anyone tell me how to get su folder and make AdAway work?
Click to expand...
Click to collapse
Your device may use su, & still not have an su folder (at all) that is used for hosts file (ie systemless root). Just do this..
Download... Terminal emulator.
https://play.google.com/store/apps/details?id=jackpal.androidterm
Open terminal
Then enter these commands.. "Quote"
su
mount -orw,remount /system
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
mount -orw,remount /system
Now open AdAway go to preferences and select option to " Target hosts file"
Select /data/data/hosts
Enjoy..
If you still have ads in apps do this!!!
githyanki said:
Open the 3 dot menu in adaway, chose log DNS request. Enable TCP dump.
Open the app with ads, when ad loads, go back to adaway, and open log.
Long press any entries and chose black list.
Profit
Click to expand...
Click to collapse
All credit where credit is due. I just shared what I read else where.
Read here for more details..
https://github.com/AdAway/AdAway/issues/770
&
http://forum.xda-developers.com/showthread.php?t=2190753&page=143#post68988079
There is a known issue in HTC devices involves S-off. If the above doesn't solve this for you message here I'll follow. Or pm me. I work wierd hours be patient.
Rom Maximus 3.0.0 ( Android 7 ).Any instruction don't works,adaway no blocked ads.
regarding su folder to move files to
FreydNot said:
About the only reason I root my phone is to install AdAway. I'd prefer to not modify the system partition to help make OTA's easier to get and to allow Android Pay to work. AdAway has a flashable .zip file that preps the hosts file to use the systemless root structure that comes along with SuperSU. Unfortunately, that script depends on being able to access the /data partition inside of TWRP which isn't going to happen any time soon on the HTC 10. Fortunately, it is easy for us to manually replicate what the flashable .zip is trying to do.
This isn't a detailed how-to, but more of a set of guidelines. Don't blame me if your phone explodes.
Root the phone with the latest SuperSU.
Download the AdAway_systemless_hosts_v2.zip file from the Unofficial AdAway thread.
Extract the files from inside the zip. We are only interested in two files in the support folder.
Connect the phone to your PC and turn on file transfer mode.
Copy "hosts" and "0000adaway.script" that you just extracted to the internal storage of your phone.
Use a program file Root Explorer to move "hosts" into /su/etc and move "0000adaway.script" into /su/su.d (this probably could have been done with ADB push, but I got permission errors when I tried it that way and I'm impatient and lazy).
Chmod 0755 /su/su.d/0000adaway.script (I used a root shell on the phone via ADB)
Install AdAway (I used the link in the Unofficial AdAway thread.)
Reboot the phone.
Run AdAway like normal. By default it should use /system/etc/hosts which is what you want.
If something doesn't work, figure out why and fix it. I'm happy to answer questions to the best of my ability.
Click to expand...
Click to collapse
Hi there, ive got a mate 8, not sure if this adblocker will work on it but i want to try it out anyway. Ive unzipped the file but which folder in su do i move the files to? screenshot of the folders i have in su
Hey all, I'm using the Dirty Cow script to try and finally root my AT&T Note 4. I've got the terminal up and running in Linux and the script executes. I understand how the script works and know I'll essentially be able to give one execution root access. I'm attempting to give that to the TWRP Manager app so I can simply write a new recovery and then flash a different ROM, essentially rooting the device.
Where I run into trouble is finding the apk in the terminal window. Beyond the actual root directory the LS command doesn't work to list the file structure, so I have to go blind. Anyone have any advice on how I can find the apk file to point it to?
It's currently running 6.0 if that matters.
Thanks!