[Q] How to enable developer mode and mock locations in source - Android Q&A, Help & Troubleshooting

Hi, I am trying to build a custom rom that has developer mode -> Mock locations=true, Auto-rotate screen=false by default. Here is what I have tried:
Pulled the settings database from `data/data/com.android.providers.settings/databases`
Edited the database so that the mock locations flag was set to 1
Wrote a script to add to the makefile that would move the new database to `/data/data/com.android.providers.settings/databases` on build.
and
Adb push the new database file to proper location
Reboot
Neither of these options seemed to work out properly. I need an option to set some of the settings, including the hidden Developer option "enable mock locations" so that I can build an image with these settings enabled by default. If anyone can help, would be much appreciated.
Thanks!

methodeguy said:
Hi, I am trying to build a custom rom that has developer mode -> Mock locations=true, Auto-rotate screen=false by default. Here is what I have tried:
Pulled the settings database from `data/data/com.android.providers.settings/databases`
Edited the database so that the mock locations flag was set to 1
Wrote a script to add to the makefile that would move the new database to `/data/data/com.android.providers.settings/databases` on build.
and
Adb push the new database file to proper location
Reboot
Neither of these options seemed to work out properly. I need an option to set some of the settings, including the hidden Developer option "enable mock locations" so that I can build an image with these settings enabled by default. If anyone can help, would be much appreciated.
Thanks!
Click to expand...
Click to collapse
I am also looking for this. Being able to access adb on a fresh install on a device that has trouble getting into recovery would be very beneficial.
I had to flash back to factory stock this morning because the kernel I was using prevented me from accessing the bootloader and the ROM I was developing was missing a key apk. Had this had been built into the ROM, I could have been able to reboot to recovery.
Sent from my MyTouch 4G Slide

Related

[Q] How can we set USB debugging as default?

AFAIK we must using the sideloading .apk to popup the hidden settings @ NT and then choose the USB debugging options there, but we must redo it every reboot if need ADB access.
How can we set USB debugging as deafult? change settings.sql database?
and it'll be very good if we can access the whole hidden settings option as well . Pls share your experience!
Many Thanks
The easiest way to toggle usb debugging is to use either the tgps app to run and access the menu or use a custom shortcut button directly to the settings menu to toggle it every time. To actually change things in the nook code to fit our every need requires a ton of annoying trial and error hacking. Most people are just patiently waiting for the boot signature bypass so we can just push over a custom rom that has all this done already.
suicideclown said:
The easiest way to toggle usb debugging is to use either the tgps app to run and access the menu or use a custom shortcut button directly to the settings menu to toggle it every time. To actually change things in the nook code to fit our every need requires a ton of annoying trial and error hacking. Most people are just patiently waiting for the boot signature bypass so we can just push over a custom rom that has all this done already.
Click to expand...
Click to collapse
Pls share the a custom shortcut button directly to the settings menu, MY LORD!!!
The app anycut is a great one that will create a customized shortcut to any place in your settings.
Check it out here:
(Android Market)
https://market.android.com/details?id=com.appdroid.anycut
i think widgetzoid has an option to create an usb debug on/off widget.
rjin9673 said:
The app anycut is a great one that will create a customized shortcut to any place in your settings.
Check it out here:
(Android Market)
https://market.android.com/details?id=com.appdroid.anycut
Click to expand...
Click to collapse
Pls help more detail how to add the customize shortcut that let us reach hiden settings options using any cut
xdahgary said:
i think widgetzoid has an option to create an usb debug on/off widget.
Click to expand...
Click to collapse
I'll try and feedback when done testing
Thanks all,

Significance of apns-xml.conf file - Enabling NEXUS6 for VOLTE

I have recently been trying to flash and root my NEXUS 6 device to try and get VoLTE to work on it ; The instructions I received (at a high level) involved flashing the device with a custom ROM (I have tried LMY47D, LMY47M and LYZ28K) , rooting It, updating the qcril.db (to include my MCC/MNC) , updating the apns-conf.xml (to add my IMS APN) and finally modifying the framework-res.apk to enable the 'config_carrier_volte_available' flag for my MCC/MNC.
After doing all the above, I can confirm that I am now seeing the extra option in SETTINGS->MORE->MOBILE NETWORKS called 'Enhanced 4G LTE Mode' which I have enable along with the extra config that can be done from the *#*#4636#*#* menu.......Unfortunately , my device does not try to REGISTER with the IMS network nor do I see any extra settings on the phone (like IMS calling) to configure IMS specific settings. I have checked the android logs and can see the UE is successfully loading the IMPI,IMPU,DOMAIN and P-CSCF from the ISIM Module however nothing seems to happen.
My one observation is that my added APN (in the apns-xml file) does not show up in APN settings and I have to manually add the IMS APN., so my suspicion is that perhaps I am either not setting this properly or perhaps there is more to all this....Therefore I would like to present this challenge to the clever brains in this forum and would appreciate any guidance that I can get,

Add Guest mode and Multiple Users. (Easy)

For those of you who's carriers have disabled the Guest mode and Multiple Users mode you can easily turn it back on provided your phone IS rooted and you're capable of editing the build.prop file in the /system folder.. This feature comes in handy when your family or friends want to use your phone and you don't want them to be snooping through your stuff! Add this to your build.prop file
#
# Multi-Users
#
fw.max_users=3
fw.show_multiuserui=1
And then reboot the phone and upon turning back on swipe down from the top quick settings and you'll see a new option (circle picture) next to the system icon gear.. Tap that and check it out..
As always, make sure you make a backup first since you never know if anything could possibly go wrong!
I have the unlocked Note. Is guest mode disabled on the unlocked version? Or do I need to root to enable it? Thanks!
m20120 said:
I have the unlocked Note. Is guest mode disabled on the unlocked version? Or do I need to root to enable it? Thanks!
Click to expand...
Click to collapse
You should be able to see a picture right next to the system icon gear in the quick settings menu. If you can't tap on it then you don't have it and the only way I know of to get it is with root access to change the build.prop file.
No Icon visible
Hello. My Note8 is rooted. After changing Build.prob, I can add users, but not switch. The Icon in Task bar is missing. I checked the Build.prob. entrys. They are correct. Any help?
Greetz, Thorsten
Thor64 said:
Hello. My Note8 is rooted. After changing Build.prob, I can add users, but not switch. The Icon in Task bar is missing. I checked the Build.prob. entrys. They are correct. Any help?
Greetz, Thorsten
Click to expand...
Click to collapse
I'm not sure since I don't use that anymore. Sorry.

Android x86 "Developer Options are not available for this user"

How do I fix this? I get "Developer Options are not available for this user" upon entering Developer Options. I can't access pull down menu and recents view.
I have access via debugging and root but don't want to reflash entire system. I suspect it's a bad configured profile, maybe I could create another Owner profile and delete the corrupted one??
I forgot to mention I can't install any apks either.
I believe it is something having to do with android startup wizard but it doesn't seem to exist on my ROM.
While I can't help with your issue having no experience in that department myself, I can clean the thread for you, OP.
Sorry I can't do more.

XIAOMI 4k laser projector doesnt show up an android setting

recently i got a xiaomi 4k projector (not wemax one)
according to some thread, i tried to root this device but fail cuz of enabling "developer options"
the device doesnt really show up an android setting but xiaomi setting only....
is there any way to get into android setting to enable developer option (by clicking kernal info)
thanks for your information!!
#mi laser projector
Hi!
I have the same problem!!!
Did you fix it?
same here...
Go to settings - About - Click on device name several times - You've become a developer
Go to settings - Account & security - Enable ADB
I was able to install apps from phone using ES File Explorer =)

Categories

Resources