Android permissions issue - General Questions and Answers

Sorry if this is off topic, just didn’t know where else to go for suggestions.
im trying to load an apk but always get this error. I don’t get asked any permissions when loading. (Android 10 )
ive tried manually approving all permissions but the attached permissions request is not listed.
could anyone point me in the direction to fix this!
Access to android.permission.REQUEST_INSTALL_PACKAGES is Critical
Please enable access to
android.permission.REQUEST_INSTALL_PACKAGES in App Settings
i can’t locate this anywhere to enable it.
thanks in advance!

Related

Workaround for Fixing 'Unsupported Sources'

http://forum.xda-developers.com/archive/index.php/t-644769.html << I got my idea from there.
If you update the
Code:
/data/data/com.android.providers.settings/databases/settings.db
file so that "install_non_market_apps" = 1 instead of 0, you will be able to install non-market apps off of your sdcard or wherever.
This works for me at least, but you'll have to root first.
I ended up editing the file with the SQLite Manager firefox add-on.
But, since that took me a really long time, I'll just upload the edited settings.db for you. (don't forget to make the extention .db instead of .db.txt)
Now, as far as I know, this won't mess anything up... BUT, I'd feel a lot better if someone who knows more about Android would provide some feedback before anyone else tries this. [It works for me, but I'm not sure if any other user-specific settings are kept in that file that I don't know about!]
But, at least for me, I no longer need to use adb to install apks that aren't from the Android Market.
I hope this is useful to someone...
EDIT::
You will lose your settings if you use the attached settings.db.txt file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.
Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.
So--- if you want to side-load apps, change the variable in the database like I explained above.
Sorry, completely new to android but where would you put this file so it would allow side-loading?
You'd have to replace
Code:
/data/data/com.android.providers.settings/databases/settings.db
with it. You'll have to have your phone rooted first though. Then you'll have to transfer the file to your phone with adb, and you'll then copy it over the existing settings.db file.
Honestly, it might not even be worth the trouble now that attn1 is just doing the whole ROMs.
But make sure you take off the .txt.
This works. Thanks.
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
justince said:
For some reason, i'm getting a permissons error regardless that i successfuly rooted my phone...o_o
Click to expand...
Click to collapse
did you boot the phone and do adb remount with debugging enabled?
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
justince said:
USB debugging? Yeah.
What i did was i used the other method to sideload root explorer, took the settings.db.txt, deleted the .txt part and replaced it via root explorer, and now i can sideload whenever...however, when i try to delete any of the att bloatware, its read only o_o fawking att
Can anyone confirm any other way to remove bloatware without flashing the rom?
Click to expand...
Click to collapse
That's why made the ROM without all that -er- stuff.
attn1 said:
That's why made the ROM without all that -er- stuff.
Click to expand...
Click to collapse
Attn's Rom is ****ing great. many thanks btw
a little help please
a bit confused..
how do i type in this code "/data/data/com.android.providers.settings/databases/settings.db"?
adb /data/data/com.android.providers.settings/databases/settings.db
or something else because that doesnt work.
fluffyarmada said:
I'm not sure if any other user-specific settings are kept in that file that I don't know about!
Click to expand...
Click to collapse
The only issue I see (as an Android newcomer, but with a development background) is that the settings.db contains an android_id that is supposed to be unique (it gets generated when you boot the phone the first time after a reset). So anyone installing your settings.db is going to have the same ID.
I'm sure it won't be an issue for most people but I wonder if there'd be a collision in any apps that are designed to communicate between Android devices? For this reason I'll be tweaking my own settings.db once the phone arrives later today.
Big thanks for posting this though!
Thanks for that, I honestly had no idea. I'm very new to Android. And this was a kludge.
fluffyarmada said:
http://forum.xda-developers.com/archive/index.php/t-644769.html << I got my idea from there.
If you update the
Code:
/data/data/com.android.providers.settings/databases/settings.db
file so that "install_non_market_apps" = 1 instead of 0, you will be able to install non-market apps off of your sdcard or wherever.
This works for me at least, but you'll have to root first.
I ended up editing the file with the SQLite Manager firefox add-on.
But, since that took me a really long time, I'll just upload the edited settings.db for you. (don't forget to make the extention .db instead of .db.txt)
Now, as far as I know, this won't mess anything up... BUT, I'd feel a lot better if someone who knows more about Android would provide some feedback before anyone else tries this. [It works for me, but I'm not sure if any other user-specific settings are kept in that file that I don't know about!]
But, at least for me, I no longer need to use adb to install apks that aren't from the Android Market.
I hope this is useful to someone...
EDIT::
You will lose your settings if you use the attached settings.db.txt file. Your best bet is to pull the file off your phone, edit it with something that understands sqlite3's database format, and then push it back. It's just better that way.
Further EDIT:: As someone pointed out later in this thread, this file unbeknownst to me when I shared it, actually has a unique ID by which phones can be identified on the android market, etc. While this isn't a huge deal, it can lead to some rather strange behavior... my phone for example has started attempting to download apps from the android market all by itself.
So--- if you want to side-load apps, change the variable in the database like I explained above.
Click to expand...
Click to collapse
NOTE: You MUST have root access in order for this to work
sqlite3 is included in the Android SDK tools, so this would be the best way:
COMMON
Enable USB debugging (settings > applications > development > USB Debugging)
adb remount
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
Linux/OS X
echo "update secure set value = 1 where name = 'install_non_market_apps';"|./sqlite3 settings.db
WINDOWS
echo update secure set value = 1 where name = 'install_non_market_apps';|sqlite3 settings.db
COMMON
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
Reboot phone and sideloading works. (thanks fluffyarmada)
I wonder if this might be why google voice fails to install properly for some...
Sent from my HTC Liberty using XDA App
Cobus said:
I wonder if this might be why google voice fails to install properly for some...
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
It is possible. The Google apps all use the android_id, afaik.
Although, I do remember I was never able to get the settings menu to setup the voicemail forwarding... I always had to use the weird GSM code. (The weird number with a bunch of * and # that you have to type in if you follow google's directions.)
judicious said:
a bit confused..
how do i type in this code "/data/data/com.android.providers.settings/databases/settings.db"?
adb /data/data/com.android.providers.settings/databases/settings.db
or something else because that doesnt work.
Click to expand...
Click to collapse
After you've rooted your phone, download the new settings.db into the same folder as where your adb program is. Then type:
adb push /data/data/com.android.providers.settings/databases/settings.db
in that folder while your phone is connect via usb.
I'm not sure if you have to restart your phone into recovery or not. Can someone check on this?
tiga2001 said:
After you've rooted your phone, download the new settings.db into the same folder as where your adb program is. Then type:
adb push /data/data/com.android.providers.settings/databases/settings.db
in that folder while your phone is connect via usb.
I'm not sure if you have to restart your phone into recovery or not. Can someone check on this?
Click to expand...
Click to collapse
Well, it's
Code:
$ adb push /path/to/file/on/computer/settings.db /path/to/file/on/phone/settings.db
So, if your settings.db is in your tools folder, then you can do
Code:
$ adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
what happen to the file download? i cant find it..
judicious said:
what happen to the file download? i cant find it..
Click to expand...
Click to collapse
Please follow the instructions posted by attn1 on reply number 13 to this thread.
I removed the settings.db, because it actually has a bunch of extra settings I didn't know about like a handset specific android_id variable... that caused me a bit of trouble...
But, follow the instructions on reply #13 on this thread, and you'll be able to fix it yourself.
Sorry for the inconvenience.
so if we already used the file, is there anyway to revert it back to default and then change the settings via the method outlined above? or.. if we failed to make a copy of our original settings.db file.. basically am i SOL?
EDIT: nevermind, just rebooted into Clockwork and wiped the phone.

Galaxy S Editing root files

Greetings fellow "Androiders"
I have a Galaxy S running Froyo 2.2 JP6 rooted, and Voodoo lagfix installed.
Recently I saw the GTGTouchwiz UI mod and decided that I really needed the landscape home screen.
So I followed the instructions along until the point where I was supposed to rename the TouchWiz30Launcher APK and ODEX files to .BAK files.
I used a "downloaded" version of Root Explorer (please, I do not own a credit card and am not legally capable of obtaining one by myself either so don't judge..) and went on to try and rename the files.
The first time I tried, it gave me a "no permission" type message saying I had no permission to tamper with any files. I gave the phone a reboot, retried and still, no permission. So I went around on the forums looking for answers and I read that I was supposed to change permission from "R/O" to "R/W" at the top of the screen, but there were no such options for me as in the app it only said "Mounted as R/O". I spent plenty of time looking for ANY options that allowed me to change permission and there were none.
Then I went on to download another version of RE and this time, I was allowed to rename files, the permission was set to "R/W" once within the system folder and I did not have to change any options. But when I refreshed, both files turned back to their original names (the rename was basically ignored). I also tried using Android Mate to no avail (same effects as RE) and now, I'm also trying with Super Manager.
But here I encountered another problem, when I tried to enable the "ROOT function" from settings, it gave me the message "The ROOT function in this program is not support you device or system image", btw that is not my grammatical error, that is exactly the message I get from Super Manager.
Now I have absolutely no idea what this "system image" of mine is, I'm still a complete noob to Android and all the concepts. So if I'm being oblivious to some simple error I made, please don't flame me or anything
Any help with this would be greatly appreciated, thanks for your time.
Bumpidy bump bump
Anyone help?

Apk porting (specifically motoblur)

I want to play around with Android and see if I can port apks.
I was always curious about motoblur and I want to try it (I have the droidx motoblur). I tried installing BlurHome.apk on an Evo using adb and logcat and it says I am missing the "xyz library" so I look in the framework and found the xyz.jar fill and pushed it to my phone. Then I did a dalvik wipe and a reboot. When I watch the reboot on logcat I see it says it is loading the "xyz.jar" file but when I try and install the apk again, it tells me it can't find "xyz library"
I used apktool to decrypt it and look at the manifest and found a library use tag telling me the xyz.jar is needed. I also see a bunch of permissions pulled from apks I do no hqve installed. Do I need to worry about those too. I know the program with crash when trying to access them, but right now I just want to get it installed to see if it will work.
Sorry I called the library xyz, I'm trying this on my phone.
Any help pointing mie to an article, guide or tutorial about porting or frameworks would be appreciated. I'll end up putting something nice together if I ever figure it out to make it easier for others to figure this out too, or at least understand what is going on when they install a ported apk.
I think I'm on the right path here. I just opened the com.motorola.blur.library.utilities.jar file from the framework (the one that it said didn't exist), copied all the code to the BlurHome.apk and rebuilt it. It installed, but didnt appear in the phone or the app drawer. Then I pushed it to the system/app folder and it force closes on start up! (yay in the right direction)
I wish I could just use the framework.jar's but not sure how to get those to work. There are a few things referenced in the com.motorola.blur.library.utilities.jar that are in other com.motorola.blur.*.jar's so i need to go digging and try to inject those aswell.
Did you have any luck?
Sounds promising how is it going?
trimeijer said:
I think I'm on the right path here. I just opened the com.motorola.blur.library.utilities.jar file from the framework (the one that it said didn't exist), copied all the code to the BlurHome.apk and rebuilt it. It installed, but didnt appear in the phone or the app drawer. Then I pushed it to the system/app folder and it force closes on start up! (yay in the right direction)
I wish I could just use the framework.jar's but not sure how to get those to work. There are a few things referenced in the com.motorola.blur.library.utilities.jar that are in other com.motorola.blur.*.jar's so i need to go digging and try to inject those aswell.
Click to expand...
Click to collapse
Hi, how have you and others been getting on? I'm on that trail myself...either some apps won't appear after installing, or force close.
Gee. I've never seen someone seek out MotoBlur before. If you get this working, I'd like to try it myself, just to see what all the fuss is about.

error message

Hi all, I updated with the Asus download, and rooted with debugfs. For some reason, now, whenever I unlock or wake tablet up, I get an error message at bottom of screen. Says "ERROR. No root access or incompatible devise." (Yes, is spelled with an s)
Is there some way to find out what is causing error message and fixing? I AM rooted, and everything seems to be working, it's just HIGHLY annoying.
Thanks.
My suggestion is to unroot, restart, then re root.
That didn't work, BUT, it allowed me to find out it was touchscreen tune app causing error. Anyone else have a problem with it?
I read somewhere about a way to read error logs, but can remember. It will save some hair pulling next time something misbehave's. Can anyone point me to the link?
why don't you just uninstall the app and reinstall it? Or clear the data,cache from the app? I'm sure that would resolve your error messages.
I did both of those when I found out which app was doing it. No luck. Not overly concerned about it, but next time an app miss behaves, would be helpful to be able to find out which one.
did you go in superuser and try wiping everything in there so everything will ask for root access again? After wiping it, I'd reboot first, but that's another troubleshooting tip. Not sure about the log option.... most times you won't see these types of errors, or shouldn't anyways.
redheadplantguy said:
I read somewhere about a way to read error logs, but can remember. It will save some hair pulling next time something misbehave's. Can anyone point me to the link?
Click to expand...
Click to collapse
logcat is good tool to use. you can run it through a terminal emulator or through the adb interface from your computer. just search for adb and logcat and you'll find what you need.
I have disabled these root notifications -- so I never get thm -- but you might want to go into SU (or the recommended SuperSU) and find out if the permission is correctly set there. From there, you should be able to reset the permission (so it asks next time), or just put the correct permission in there (which would be accept for root access)...
On another note: does the Touchscreen Tune app even work on the TF700?
Sent from my ASUS Transformer Pad TF700T

[INFO] [QMV7B] [ELLIPSIS 7] questions

[INFO] [QMV7B] [ELLIPSIS 7]
1. My apologies if this thread is in the wrong forum.
2.Not sure if my thread title is OK.
3. Am I allowed to post my link?
4.This site looks different and I can not seem find my answer.
Hi everyone, long time viewer first time poster in need of help. I recently deleted my system apk due to bad judgment,please don't judge. I can no longer access my system settings and with that the package installer no longer works. My tablet has been rooted, for a bit. I used the (kingo root) successfully.I do not have back up, I did find and download the apk sys files from a upper mod and now I need to enable via command to change the setting to allow installation of unknown sources .I do not know how to do that,. I am guessing that maybe that will FIX IT (crossing fingers). Any of the more experienced users know how to assist? I would love to have the stock rom, can't find it. Maybe there is a different method to do a complete restore that has all the files. My apologies if this is redundant request.
oh, I have already tried the hard factory reset and the system setting is still missing. I can't return, No warranty
Thanks in advance, and I can now stop the ugly crying.
I have the QMV7B ELLIPSIS7 4..2.2 rooted via KingoRoot.
thanks to (?) can't find your name.f for the link for system files I have.
I have a qr code on my photo albuma and my profile pic for the qmv7b system APK.

Categories

Resources