so has anybody figured out a way to change the carrier name on the lockscreen and pull down menu using terminal emulator?
Related
Hi guys,
I'm building a widget that will be extensions to HTC Sense and will require root access so it can access files from another application.
If I go into the shell using ADP, I can "chmod 664" the file (it's 660 by default) and my widget can then read the file. However, after a period of time, the phone resets the permissions to 660 and then my widget fails.
Is it possible to run the widget as root (on a rooted phone of course), or somehow increase permissions to give permanent access to this file?
Thanks.
For anyone interested, I found a semi solution that lets me run "su" and then my chmod command:
http://code.google.com/p/market-enabler/wiki/ShellCommands
If there is a better way, let me know.
hi
need some little help
in this tread http://forum.xda-developers.com/showthread.php?t=769026 it stands that you shall type in these lines "then upon first boot go to terminal and enter these (without the quotes) and press enter after every line.
su
rm /data/system/batterystats.bin"
but how do i use terminal emulator? and what is it? and were and when do i type the lines in?
Download "Terminal Emulator" from market. Then open the app which brings up a screen where you can type.
Type in what it says you should type and press enter when it says to.
Sent from my Nexus One using XDA App
dont bother is a goood answer....coz i got that build and have never done that terminal stuff, and not had one freeze or anything...awesome build.
matt
Hi Guys,
i want to change my Android ID in /data/data/android.provider.settings/databases/settings.db
Normaly there is only this file in that folder, so i can use "SQlite Database Browser" to change the id.
Now, in some roms there is also a setting.db-wal file in which this id is, but i cant open it with this tool. It seems to be compressed or somethink like this.
If i use "Android ID Changer" the ROM doesnt boot...
So, how i can change the Android ID in these ROMs?
thanks
no input for me?
Hi,
In my Eclair tablet it is in 3 places:
/data/data/com.android.providers.settings/databases/settings.db
table [secure] android_id as a 16 character hex
table [gservices] android_id as a decimal of the hex
/data/data/com.google.android.googleapps/databases/gls.db
table [meta] androidId as a decimal of the hex
I understand that it may be in:
/data/data/com.google.android.gfs/databases/gservices.db
as well but I don't have that database on my tablet.
All the best ...
Nigel.
Make sure and backup your /data/data/com.android.providers.settings/databases/settings.db file
Then in ADB type the following:
su
cd /data/data/com.android.providers.settings/databases
sqlite3 settings.db
sqlite> insert into secure (’name’, ‘value’ ) values (’android_id’,'DEVICE_ID_GOES_HERE’);
sqlite> .exit
Reboot
thanks guys,
thats what i normaly do, i change the value in the database.db, but in some ROMs there are not this information, insteat in database-wal.db, but this db i cant open with the sqlite tool.
e.g. in the actual Cyagenmod ROM there is this database-wal.db file, which i cant change.
paid app tested in that scenario
https://play.google.com/store/apps/details?id=com.vcastroi.changeid
manually
if you copy all 3 files using adb and then open it on your pc using a sqlite utility and then push all 3 file back and fix the files permissions
Hi, I'm looking for a way to execute a couple of line of code through a terminal emulator.
Let me clarify,
I have an app that I want to execute the code by calling the terminal emulator and having it run that.
Obviously, I know that normally
Code:
getRuntime.exec()
would normally work, but for me that's not the case.
Any help would be greatly appreciated.
Are you capturing the command's response? stdio and stderr?
Sent from my SM-G925I using Tapatalk
Hide The Status Bar Or Nav Bar With ADB
To permanently hide Nav Bar for root users only see post 2
Note this only hides the Nav bar - swipe up gesture will show Nav bar and not all apps will honour the hidden status
Requirements
ADB setup on pc - see Here if you need to set it up
Moto USB phone driver installed
How To
Connect phone to laptop/pc via usb cable and make sure usb debugging is enabled
Open a command prompt or terminal window at your adb location (If you have adb in your environmental values then you can run this from anywhere)
The commands you’ll need are:
To only hide the status bar:
Code:
adb shell settings put global policy_control immersive.status=*
To only hide the navigation bar:
Code:
adb shell settings put global policy_control immersive.navigation=*
To hide both status and nav bar:
Code:
adb shell settings put global policy_control immersive.full=*
Return things to normal:
Code:
adb shell settings put global policy_control null*
Root Only - Permanently Disable Nav Bar
Requirements
Root
Root browser
Note - not all roms will support this change
First check to see if the rom supports expanded desktop which will do the job for you either globally or on a per app basis
Instructions
Set up all your gestures before continuing
Copy build.prop from /system to sd card and rename build.prop-backup using a root browser
Copy build.prop to any folder on internal stoeage
Open build.prop file you have placed in internal storage
Add the following line at the end of build.prop
Code:
qemu.hw.mainkeys = 1
Copy modified build.prop back to /system using a root browser
Make sure permissions are still set to 644
Restart phone
I wanted to contribute with my findings... This command: "adb shell settings put global policy_control immersive.status=*" hides the status bar in all apps, but some of them get bugged, for example in Instagram you can't see the text field when replying on a story, or Twitter doesn't display the bottom part where you can insert pictures to your post while typing.
I discovered that if you type "adb shell settings put global policy_control immersive.status=apps," then Instagram works fine without the status bar, and of course you could add twitter after that to exclude twitter.
But this is a bit random, I don't know exactly why Instagram gets fixed by this and I wonder if there is a way to fix other apps...
once nav bar is removed can u turn on and off in settings
mikedolo said:
once nav bar is removed can u turn on and off in settings
Click to expand...
Click to collapse
No - not unless you create your own mod and add it to the settings apk
Use the adb command to return things to normal
I tried it hides but whenever you swipe up it displays and you have to swipe up a second time to complete an action ! How to disable the drag ?
mchtt said:
I tried it hides but whenever you swipe up it displays and you have to swipe up a second time to complete an action ! How to disable the drag ?
Click to expand...
Click to collapse
It displaying when you swipe up is normal - that's just how it works and subsequently will effect the swipe up gesture
If you want to completely remove it see if your rom supports expanded desktop - will be in your phones settings somewhere if it does. Revert the adb changes and use that instead
Yes it does but on certain apps a bottom bar remains
Lineage OS
I just tried XDA navigation gesture, it hides the bar properly for the moment ?
mchtt said:
Yes it does but on certain apps a bottom bar remains
Click to expand...
Click to collapse
Again nothing I can do about that - it's how android works and how the app was built
If you want to remove it properly use a rom that supports expanded desktop and enable it in your phones settings
Like I said I did and I said it to the ROM developer, thanks for your replies anyway ?