[Q] Regarding apk files - General Questions and Answers

Is an apk file able to install itself without a prompt? I clicked a link by accident that downloaded an apk of questionable content. Obviously I deleted it, but I'm wondering if it's possible something could have been installed without my knowledge.
Thanks guys

stuntman_dan said:
Is an apk file able to install itself without a prompt? I clicked a link by accident that downloaded an apk of questionable content. Obviously I deleted it, but I'm wondering if it's possible something could have been installed without my knowledge.
Thanks guys
Click to expand...
Click to collapse
Nope not possible.
But on apps like blackmart, if you give it superuser rights, it can install apps right away!
And also TB can do this.! While restoring (pro version).
So basically, I think for it to happen superuser permission might be needed!
LIFE! Live it to the best!

Related

[Tut] (Root) Update to Latest Superuser

Once you have achieved root (see other thread), to update the Superuser.apk to the latest version, run these commands:
Code:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
rm /system/app/Superuser.apk
pm uninstall com.noshufou.android.su
Then search on the market for Superuser and download the one by ChainsDD. Confirmed working on latest Droid2 2.2 ota.
EDIT: To be safe, go to Settings>Applications>Manage Applications and find Superuser. Then clear the data. This should prevent any of the Superuser issues discussed.
sorry..new to the whole android scene. are there any advantages to updating the superuser app the the latest version and can this command be input on the droid itself through the terminal app?
metman87 said:
sorry..new to the whole android scene. are there any advantages to updating the superuser app the the latest version and can this command be input on the droid itself through the terminal app?
Click to expand...
Click to collapse
i like the interface much more and its got a new autoaccept after 10 seconds if you arent paying attention when the popup shows. it's up to you. i'm sure future root tools will just include it.
alright thanks. is it as simple as installing the new version and uninstalling the old? or does one need to enter the command prompts listed above?
metman87 said:
alright thanks. is it as simple as installing the new version and uninstalling the old? or does one need to enter the command prompts listed above?
Click to expand...
Click to collapse
that is what the commands do. unfortuantely, the old version is on the system partiton. this means that we must first mount the system and read/write and then manually delete the old version ourself. then the new version can be easily downloaded through the market. anyways, adb shell means it's done via your computer so its very easy to copy and paste like 3 commands.
Instructions work perfectly... thanks!
I need Mac instructions
Sent from my DROID2 using XDA App
greg25 said:
I need Mac instructions
Click to expand...
Click to collapse
These instructions are not specific to the OS on your computer, they work with anything.
Perfect!
Worked great! Thank you!
Instructions worked fine (I just made them up for Linux), but the newest SuperUser is giving me weird results. Every program that requests root access will ask me numerous times, like it never remembers that I gave the app access. Like removing one app with titanium will it will ask me 4 seperate times to accept or deny permission. Other apps do this also. Anyone have a copy of the old apk I could reinstall? Anyone have any ideas or suggestions?
Thanks
n0yd said:
Instructions worked fine (I just made them up for Linux), but the newest SuperUser is giving me weird results. Every program that requests root access will ask me numerous times, like it never remembers that I gave the app access. Like removing one app with titanium will it will ask me 4 seperate times to accept or deny permission. Other apps do this also. Anyone have a copy of the old apk I could reinstall? Anyone have any ideas or suggestions?
Thanks
Click to expand...
Click to collapse
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
facelessuser said:
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
Click to expand...
Click to collapse
Nice, thanks!
I had that issue too. I ironically un-installed superuser and re-installed it and it worked fine too
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
jmonte345 said:
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
Click to expand...
Click to collapse
that works too though without having the superuser apk and rebooting, that could be a little dangerous for others hence my adb tutorial. no need for a restart either. could easily just use root explorer, delete the old, download new from market.
Worked great
I just renamed Superuser.apk to .bak then tried to install. Don't forget the last step. I had to adb (I was using terminal emulator) to do the last step then installed fine and removed Superuser.bak.
Thanks I like the New look.
yeah i can't get superuser from the market to install, keeps telling me unsuccessful
jerseyh22accord said:
yeah i can't get superuser from the market to install, keeps telling me unsuccessful
Click to expand...
Click to collapse
I had the same problem. I rebooted my phone and then it installed fine. Not sure if it's risky to reboot once you remove the apk or not. However, it didn't cause any problems for me.
jmonte345 said:
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
Click to expand...
Click to collapse
I basically did the same thing except I renamed instead of deleting it. Well, once I installed SU from the market, I can't find the .apk file even though it's running and launching correctly. I assumed it would be called superuser.apk in the system/app folder but only my old renamed superuser.bak is there. I'm just worried if there is an update in the future, I won't be able to rename since I can't find the .apk file. Anyone know where the .apk file is for this new version of superuser?
facelessuser said:
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
Click to expand...
Click to collapse
Tried this, and it didn't work for me. With Titanium Backup in particular, it will literally ask upwards of twenty times for permission. It's insanely annoying. Any other tips?
Sent from my DROID2 using XDA App

Have the latest OTA can we use alt keyboards?

Hi, I installed the latest firmware upgrade. The unit runs fine... excellent. Can we run alternate keyboards while still running a stock G tablet?
drandroid said:
Hi, I installed the latest firmware upgrade. The unit runs fine... excellent. Can we run alternate keyboards while still running a stock G tablet?
Click to expand...
Click to collapse
You can but have to manually..
Look here:
http://forum.xda-developers.com/showthread.php?t=856476&highlight=keyboards
Do I have to root the tablet to do this?
I saw that post. The user is running TNT Lite on a rooted GTablet. First, do I need to root the unit? Does that wipe out the latest update? I'd like to keep this as stock as possible since I'm happy with the latest update... but I want my swype etc... Thanks for your input.
drandroid said:
I saw that post. The user is running TNT Lite on a rooted GTablet. First, do I need to root the unit? Does that wipe out the latest update? I'd like to keep this as stock as possible since I'm happy with the latest update... but I want my swype etc... Thanks for your input.
Click to expand...
Click to collapse
I don't think you would need root to push the keyboard file. Only issue would be if the folder permissions needed to be changed. Then you might need root. Root would not do anything to your tablet as far as updates, etc. Just lets you have access you normally would not. Kind of like being the administrator on a windows machine...
Which root prog would you recommend?
That's what I was hoping to hear. Rooting has no effect on the rom other than allowing me to get under the hood... great. I tried to copy the apk to the system/app and I didn't have permission. What you recommend to root the tablet? Thanks.
drandroid said:
That's what I was hoping to hear. Rooting has no effect on the rom other than allowing me to get under the hood... great. I tried to copy the apk to the system/app and I didn't have permission. What you recommend to root the tablet? Thanks.
Click to expand...
Click to collapse
Z4root is what most use. I don't recall if it is in the market or not. It is an apk that you install and then run. You can use Root Explorer to change the permissions after that.
I don't run stock so I have to go by memory so sorry if I sound kind of vague...
No luck with OTA and swype
Tried to load swype (after rooting) on a Viewsonic ota rom. No go, many force close issues. I dropped the apk in the system/app directory, changed to permissions to match the others, rebooted and nothing. Anyone have any ideas?
Thanks.
Hiya!
I was wondering about this too.
However, my problem is that I can't find the apk for my preferred keyboard (SwiftKey Pro). I searched for it using Astro File Manager and it doesn't come up anywhere (the data files for it sure do, though. Just not the apk!).
In addition, I am not sure how to get a root file manager on to my GTablet so that I can copy it over (in Astro I found the system/app files, but I can't do anything there since I can't get root access in there with Astro).
I've looked for a root file manger in AppBrain and found one, but the Market does not see it (cannot be found) so I am stuck on how to get root access in the system/app place.

[Q] Getting Android Market on *stock* ROM?

For my own weirdo reasons, I currently prefer to run the stock ROM on my g-Tablet. However, I absolutely need to run some applications that are only officially available from the Android Market. There are some .apk's for one of them online, but they're not the current version and don't update correctly.
I'm willing to do some hacking, but I don't actually want to flash a new ROM and want to make the fewest changes to the stock setup.
Is this even possible?
I'm with you on this...all I'm looking for is root and market on my stock.
Yes, it's possible.
You're going to need:
- some way to get at least temp root (suggest z4root)
- the GoogleServicesFramework.apk and Vending.apk
- some way to mount /system/app as R/W (suggest root explorer)
1) install z4root
2) install root explorer
3) use z4root to get temp root
4) use root explorer to make /system/app R/W
5) use root explorer to copy the apk files to /system/app and set permissions to rw-r--r--
Do market fix.
Jim
P.s. easy way to get the apks is to download one of the enhancement packs that has the individual files and unarchive and get the files.
Thanks Jim. I will have it give it a try tomorrow when I get my gtablet.
mstevens said:
For my own weirdo reasons, I currently prefer to run the stock ROM on my g-Tablet. However, I absolutely need to run some applications that are only officially available from the Android Market. There are some .apk's for one of them online, but they're not the current version and don't update correctly.
I'm willing to do some hacking, but I don't actually want to flash a new ROM and want to make the fewest changes to the stock setup.
Is this even possible?
Click to expand...
Click to collapse
I felt the same way after trying some of the other ROMs I wanted to keep the stock ROM to receive updates from VS ota but still have access to google gmail, market, etc. This file will help you do that. I had posted a post with detailed instructions on how to do it.
You will need clockworkmod 8 but don't need to root your device, perhaps the site moderators will help you find the post with the details. Angry Bird was the only issue, but once you run the market it will recognize you need the update and you can install if from the market app. Sometimes when an app I want to try needs root permissions I use z4root and perform a temporary and when I reboot it goes back to normal.
http://www.mediafire.com/?my4ohg6afnl12p3
Good luck and enjoy your G-Tab!
If you dont feel like doing much modding, the amazon android market has some decent apps to download. plus they are doing a free android app a day thing . just go to amazon.com -> android market and you can send a link to your email to download the amazon android market app
jimcpl said:
Yes, it's possible.
You're going to need:
- some way to get at least temp root (suggest z4root)
- the GoogleServicesFramework.apk and Vending.apk
- some way to mount /system/app as R/W (suggest root explorer)
1) install z4root
2) install root explorer
3) use z4root to get temp root
4) use root explorer to make /system/app R/W
5) use root explorer to copy the apk files to /system/app and set permissions to rw-r--r--
Do market fix.
Jim
Click to expand...
Click to collapse
too much work. Much too much work. Can someone make a handy dandy update.zip that we could install with clockworkmod?
jimcpl said:
Yes, it's possible.
You're going to need:
- some way to get at least temp root (suggest z4root)
- the GoogleServicesFramework.apk and Vending.apk
- some way to mount /system/app as R/W (suggest root explorer)
1) install z4root
2) install root explorer
3) use z4root to get temp root
4) use root explorer to make /system/app R/W
5) use root explorer to copy the apk files to /system/app and set permissions to rw-r--r--
Do market fix.
Click to expand...
Click to collapse
Thanks. I'll give that a shot tonight.
tposey said:
If you dont feel like doing much modding, the amazon android market has some decent apps to download. plus they are doing a free android app a day thing . just go to amazon.com -> android market and you can send a link to your email to download the amazon android market app
Click to expand...
Click to collapse
Unfortunately, the most important apps to me are only distributed via the Android Market.
Way back in November I intalled Market, and it still works. Follow the links in this thread:
http://forum.xda-developers.com/showpost.php?p=9536611&postcount=2
wasserkapf said:
Way back in November I intalled Market, and it still works. Follow the links in this thread:
http://forum.xda-developers.com/showpost.php?p=9536611&postcount=2
Click to expand...
Click to collapse
I did steps 1-3 of that this morning on a stock OTA 3588 gTab (from woot) and it "just worked".
Some differences, tho - mostly that I used adb and DDMS for a lot of the file manipulation because I'm familiar with the SDK tools from doing regular ol' Android app development.
Also, I only ever "temp rooted" using Z4root, so what I'm left with is an otherwise stock, non-rooted gTab with what appears to me to be a full Android Market.
I know this is short on detail, let me know if you need specifics. I'll be away this weekend, but can post when I get back.
-jim (one of them dang wooters...)
nevermind
I just got a second g-tablet, from Woot, it arrived late yesterday. They need to be completely charged before the first boot, and that took all night. I booted and updated this morning before work.
I will go through the same process that I used to enhance my first g-tablet. Some of the things no-longer need to be done, like the OpenGL fix and the Flash installation. The other things that I may try are the enhancement pack and a different kernel.
I purchased a second g-tablet specifically to mod it. I really want to install Linux on it, but I don't believe a Linux install is fully functional (yet). So I may dabble in a few of the customized firmwares. I saved the update file before installing it, so I can always flash back to stock.
I will update the original thread on customizing a stock g-tablet, if needed.
I ran into trouble downloading some of the needed apps to do the market install. I am uploading them in the hope that you can then download them from the g-tablet.
z4root:
z4root
AndRootFile:
AndRootFile.3.0.beta
I didn't use AndRootFile because I already have the Root Explorer app that I purchased when I owned a different tablet. Let me know if there are problems with this app.
Edit: It appears that the stock browser will not allow direct download of these apps. You will then have to download the apps on another PC and transfer them to the g-tablet. A micsoSD card or a USB pen drive will work.
Market fix with Stock rom
If you do a market fix with the stock rom do gmail and calendar work properly
Thanks for this thread. It was very helpful. I was able to temp root my tablet and apply the market fix to my otherwise stock gTab. Everything seems to be working fine. I haven't yet applied the patch for the Tegra 2 apps. Still waiting to see if it makes that much of a difference.
I was very pleased with my ability to figure this all out as this is my first android device, so working with the tools is all very new to me.
On another note... is there a plugin, or browser that will allow websites that use java to work properly? There are several educational websites that I use with my students that I would like to be able to run on my tablet.
miggyg said:
If you do a market fix with the stock rom do gmail and calendar work properly
Click to expand...
Click to collapse
Gmail is part of the Market install, and works fine. I don't think that Calendar is included, though.
LisaBham said:
On another note... is there a plugin, or browser that will allow websites that use java to work properly? There are several educational websites that I use with my students that I would like to be able to run on my tablet.
Click to expand...
Click to collapse
Maybe you just need to change the browser settings. Open the browser, then select the two gears icon in the upper right corner. Make sure that the "Enable JavaScript option is checked. also, change the "Page Display Settings" from Tablet to Desktop.
You may then need to restart the browser, or even reboot. If that doesn't help, try a different browser, like Dolphin. In Dolphin you also need to change it to Desktop. It is called the user-agent in Dolphin.

[Q] No connection play store / deleting system files

So I've been having the famous No connection error on Play Store for a few months now and really want to fix it. I've read all threads on this topic and watched all tutorials. The one thing everyone seems to be saying works is deleting the hosts file from the etc folder which is the one thing I can't seem to do.
My phone is N5 and it's rooted through CF. I use Total Commander as my file manager but it won't let me delete the file even though Total Commander has root privileges. The permissions of the hosts file are set to r/w under user but read only for group and world. Again it won't let me set it to read write for the other two. I've also tried doing this through ES explorer but it's the same thing. Can anyone please recommend a way to delete the file successfully?
xismo1 said:
So I've been having the famous No connection error on Play Store for a few months now and really want to fix it. I've read all threads on this topic and watched all tutorials. The one thing everyone seems to be saying works is deleting the hosts file from the etc folder which is the one thing I can't seem to do.
My phone is N5 and it's rooted through CF. I use Total Commander as my file manager but it won't let me delete the file even though Total Commander has root privileges. The permissions of the hosts file are set to r/w under user but read only for group and world. Again it won't let me set it to read write for the other two. I've also tried doing this through ES explorer but it's the same thing. Can anyone please recommend a way to delete the file successfully?
Click to expand...
Click to collapse
I personally use FX File explorer with root add-on, works perfectly out read write. Try that. Also, do you have newest play store installed, the 4.6.17 version?
I just updated to 4.6.16 today but it made no difference. The no connection error still persists.
Regarding the permissions though it seems to be a problem on a higher level as I've tried three different file managers (ES Explorer, Total Commander and Root Explorer) and none of them let me delete the hosts file. Any idea where else the problem could be?
Have you installed an app called Freedom?
No, should I?
No. It's one of the reasons why most people can't get connection on play store.
Have you tried removing the file through ADB? This guide should help you
I haven't, guess I could give it a shot but do you think there would be any difference? I'd be effectively doing the same thing manually that the file managers are trying to do. And they're failing at it.
When I try to remount the system folder in total commander it gives me a remount error so I'm wondering if it could be successful through shell.
xismo1 said:
I haven't, guess I could give it a shot but do you think there would be any difference? I'd be effectively doing the same thing manually that the file managers are trying to do. And they're failing at it.
When I try to remount the system folder in total commander it gives me a remount error so I'm wondering if it could be successful through shell.
Click to expand...
Click to collapse
I'm not sure what's wrong here, but there is a posibility you lost your root (dirty flashed and update or something) so you could try that. You can also try flashing supersu and see if that helps. That normally solves my root problems.
I was actually thinking that I may have lost root as well, but then I have a volume mod flashed and that still works fine, though not sure if that would be effected when already flashed. I haven't done any updates though so not really sure how that could happen. Is there any way to test whether I still have root for sure?
Oh and I already have SuperSU Pro, flashed that a few months ago.
Just tried checking whether I still have root via root checker and it says I do. Really not sure what's going on. Does anyone have an advice on how to grant rw permissions to the hosts file?
get rid of total commander, its garbage. get root explorer. also, youll probably have to flash the latest supersu, since you flash a few months ago. i know they updated their su binaries a few times in the last few months. you have to keep stuff like that current.
Fair enough. I actually just got the latest root explorer and was finally able to delete the hosts file only to find out that it doesn't actually solve the play store problem. What options do I have left? Factory recovery?
xismo1 said:
Fair enough. I actually just got the latest root explorer and was finally able to delete the hosts file only to find out that it doesn't actually solve the play store problem. What options do I have left? Factory recovery?
Click to expand...
Click to collapse
factory reset is an option, as well as flashing the factory img.
Finally got it sorted. Thanks everyone for your help.

Delete permanent Bloatware like Spotify

Hello I´m on the latest firmware 45.0.A.7.90
is there a way to delete spotify without unlocking the bootloader ?
I tried many ADB commands but all ending with "Read-Only Error"...
When I´m using the "v1.6_Xperia_X_Debloat_By_Serajr_Combined" my phone restarts but the app is still there.
I want this because I can´t install a little bit different version of spotify
I got always "a package with the same asset folder name already exists"
Can anybody help me
Best wishes.
You need root to fully uninstall apps.
You can only disable/hide without root.
vaioperia said:
Hello I´m on the latest firmware 45.0.A.7.90
is there a way to delete spotify without unlocking the bootloader ?
I tried many ADB commands but all ending with "Read-Only Error"...
When I´m using the "v1.6_Xperia_X_Debloat_By_Serajr_Combined" my phone restarts but the app is still there.
I want this because I can´t install a little bit different version of spotify
I got always "a package with the same asset folder name already exists"
Can anybody help me
Best wishes.
Click to expand...
Click to collapse
My debloat zip requires unlocked bl. With locked bl and stock fw you can try disabling unwanted packages with this guide.
serajr said:
My debloat zip requires unlocked bl. With locked bl and stock fw you can try disabling unwanted packages with this guide.
Click to expand...
Click to collapse
Thanks for the answer.
I will try it
vaioperia said:
Thanks for the answer.
I will try it
Click to expand...
Click to collapse
So I got it. The full truth about the post is that I wanted to delete Spotify because I can't install the Spotify premium mod because the same package name is already installed. After hours with Android studio a found a very very easy way:
Just download the app " app cloner" from playstore and clone the mod apk. The app will change the package automatically and you can easily install the mod
vaioperia said:
So I got it. The full truth about the post is that I wanted to delete Spotify because I can't install the Spotify premium mod because the same package name is already installed. After hours with Android studio a found a very very easy way:
Just download the app " app cloner" from playstore and clone the mod apk. The app will change the package automatically and you can easily install the mod
Click to expand...
Click to collapse
Thanks you a lot, your tips was awesome
I'm interested in this. Would this: https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/ work?
I mean if you disabled it using the above method, could you install another app that uses the same package name in its place?
Thanks for the handy tip of the App Cloner.
If you want to update the Spotify Premium APK package, do you just overwrite it or is there a way to first remove the modded package and than use the app cloner again for the new version?
Thanks in advance!
overloadboi said:
Thanks for the handy tip of the App Cloner.
If you want to update the Spotify Premium APK package, do you just overwrite it or is there a way to first remove the modded package and than use the app cloner again for the new version?
Thanks in advance!
Click to expand...
Click to collapse
Delete the old one then clone again.
Sent from my D6603 using XDA-Developers Legacy app
Mangtas_666 said:
Delete the old one then clone again.
]XDA-Developers Legacy app[/URL]
Click to expand...
Click to collapse
Alright, thank you!
So far so good!
vaioperia said:
So I got it. The full truth about the post is that I wanted to delete Spotify because I can't install the Spotify premium mod because the same package name is already installed. After hours with Android studio a found a very very easy way:
Just download the app " app cloner" from playstore and clone the mod apk. The app will change the package automatically and you can easily install the mod
Click to expand...
Click to collapse
thanks for this, i also have a problem on installing spotify apk mod, cheers mate very helpful :highfive:
vaioperia said:
Hello I´m on the latest firmware 45.0.A.7.90
is there a way to delete spotify without unlocking the bootloader ?
I tried many ADB commands but all ending with "Read-Only Error"...
When I´m using the "v1.6_Xperia_X_Debloat_By_Serajr_Combined" my phone restarts but the app is still there.
I want this because I can´t install a little bit different version of spotify
I got always "a package with the same asset folder name already exists"
Can anybody help me
Best wishes.
Click to expand...
Click to collapse
You should root you device to uninsttal system apps, use xperifix of @sToRm// and you can do it with titanium backup or root uninstaller
vaioperia said:
So I got it. The full truth about the post is that I wanted to delete Spotify because I can't install the Spotify premium mod because the same package name is already installed. After hours with Android studio a found a very very easy way:
Just download the app " app cloner" from playstore and clone the mod apk. The app will change the package automatically and you can easily install the mod
Click to expand...
Click to collapse
Hi, I have the same problem. I don't want to root my xzp but I would like to install the modded apk of spotify.
I tried with adb shell to uninstall spotify package. I did it successfully but I still can't install the modded apk.
Gave a try with app cloner but I did not find the way to clone the apk with the free app... Could someone give me some help on this?
TX in advance
for those people who try to delete the bloatware via root and Titanium backup or etc: Be careful as it could happen that your phone could stuck in a bootloop. Some other folks had this experience (including me) and the workaround that someone found is to use ES File explorer to uninstall the apps.
Nereoz said:
Hi, I have the same problem. I don't want to root my xzp but I would like to install the modded apk of spotify.
I tried with adb shell to uninstall spotify package. I did it successfully but I still can't install the modded apk.
Gave a try with app cloner but I did not find the way to clone the apk with the free app... Could someone give me some help on this?
TX in advance
Click to expand...
Click to collapse
No one can help me?
Nereoz said:
No one can help me?
Click to expand...
Click to collapse
You said you'd deleted Spotify that was onboard with the phone and you're trying to install another Spotify?
There might well be other files that go with the original onboard Spotify and you need to delete them as well, before you can get your new one to work.
Start with
pm list packages -d
Firstly look for anything Spotify.
Then work your way through the safe to remove list
The only solution for you Is to be used application Deezer
someone can change the package name of spotifymod.apk ? I don't know how do it
Btw, why do they use the commands like "pm uninstall -k --user 0" with the -k key ?
Why keep the "garbage" remaining from the removed package?

Categories

Resources