[Q] - General Questions and Answers

I was trying to to install and use adb shell for the first time. It didn't go out so well. I forgot to put a title so oh well lol.
This is for Windows 7.
Basically, I was trying to follow the instructions on this site: http://www.mydroidworld.com/forums/android-hacks/734-how-adb-windows-easy-way.html I have a Sprint Hero so i skipped the parts about downloading the Motorola drivers. When i got to this part,
"You should now be in the System Properties window.
Click on the Advanced tab.
Click on the Environment Variables... button
In the System variables(lower box), scroll through the list until you see Path under the Variable column.
Click on it to highlight it, click on the Edit... button.
We are going to add our path to adb, where we installed the SDK, in the Variable value: box.
Make sure your cursor is at the end of the last entry, and type this:
;C:\android\tools\"
I went to the path variable and for the variable value, I actually put "box" in for it. Then i went to the last variable on the list and put ";C:\android\tools\" as the value for it. The original value of it was the %SYSTEMROOT% stuff... I'm not sure if that was right or not. Anyway i pressed okay and exited. I noticed that ADB didn't work right, so i tried to go back into the Advanced system settings but i get this error message that keeps kicking me out. I noticed that i got it for all programs that required admin privileges. So, i don't know what to do. System restores don't work, even in safe mode. Any help would be appreciated.
Edit- I found out how to change the PATH variable back to default, but it's not saving. Can someone tell me how to make it stick? Also, if someone could check on their computer what the last variable is ( the environmental variables menu) I could probably how to change that back to default as well! Please hurry lol

Error- The file name or directory name, or volume label syntax is incorrect
This is also another error i get due to the mistake i made. Like i said, I get the first error only when trying to go into system settings, but i get this error when i try to run anything that needs admin privileges . Once again, all help and suggestions are appreciated.

Related

HTC Home Plugin + Hidelogo? YES!

After a few hours of hard resets and cursing I finally got HTC Home and HideLogo to play together in a manner that didn't produce reset loops and loud roommate annoying expletives . Check out my article on The Mobile Underground for a step by step and pic!
http://themobileunderground.com/2008/05/18/hidelogo-and-htc-home/
***UPDATE*** I've updated the version of HTC Home included in the .zip file, now not only does it not show the two battery icons, it doesn't mess with the vibrate switch, and is completely customizable with HHC :-D!
Hello! Can anybody upload the file you downloaded to another location? It seems that the download link in the page posted is not valid anymore
I really would like to test this hehe Thanks a lot!
Updated! Sorry 'bout that! Hadda update the URL for the new .zip.
Thank you very much!
The download link is not valid. Is it hosted somewhere else?
Ok, redid the link again, not sure what the problem was, still getting used to the backend on TMU...enjoy! (again heh)
keeps resetting for me and i triple checked everything. Will reset and try again. its possible total commander doesnt save how i thought it would. I just exited the program after doing the changes. Then did a soft reset.
I switched to PHM registry editor and still no luck. grrr. will keep trying.
tried it a third time and still keeps resetting.
One of the things that I found very important was to verify that Htc home plug is #4 or #5 in the "order" and there are no order duplicates...also really important. You can ignore level 0, make Dial Lookup Order 1, Active Call Order 2, Hide Logo order 3 and HTC Home order 4, make sure HTC home is type 4
Im gonna try it 1 more time before bed. After I verified 1-4 i went back and made the others 5-13. Is that correct, or should I do the others 14-22? I did it both ways but the first time was with total commander which I think sucks as a reg editor.
Only other thing i had trouble with was with hidelogo, there is no order value in there. So what I did was made a new DWORD value and put in the correct value of 3. Thought this was how you did it but im not 100% sure.
I use PHM registry editor. The order of the other plugins doesnt matter so much as long as there are no duplicates. Hidelogo should start out with an order, usually 32. Also make sure you're checking the "hide lookup field" on the menu on the homescreen.
I switched to PHM too so thats not the problem. Also I do check off hide lookup field just like your instructions say on step 4.
Just tried to do it again and its still resetting. For some reason my hidelogo does not have an entry for Order. I have to create a new value for it. I dont want to give up on it but ive spent a few hours now trying it and still nothing.
To update:
I am able to see the value Order now in hidelogo. The problem was once hidelogo was installed, it wasnt actually doing anything. I had to go to today menu and uncheck it, then recheck it. That made the logos go away. Then I am able to see Order 32 in the reg editor. However that still did not make it work for me. Im going on my 5th attempt now.
Psyber,
Thank you so much for this great guide. I did get it working. The only thing i did different was between steps 2 and 3.
After installing hidelogo.cab i made sure it was actually working. It wasnt, so i went and unchecked it in today settings, then checked it again. After that no more logos. At this point i followed the guide exactly. I think this was my only problem, and why it never worked.
Now im still stumped by the 2 battery icons on the today screen. that is still there. Psyber, can you post a link to the cab to get rid of the second battery icon? I have the Title Bar Clock enabled and its still there on the home screen, but it does get rid of it everywhere else, which is nice.
hmm...
Can't seem to download the file mate
can you please post the instructions and file somewhere? The link doesn't work anymore...
Please reupload the instructions. I keep on having the problem with reset after install Hidelogo.
Thanks
1. Install sdkcerts.cab
2. Install hidelogo.cab
3. Install HTC Home Plugin (if asked to soft reset after install, DONT!) If it doesn’t show up on the today screen yet, don’t worry, it will after soft reset.
4. On today screen, check menu, preferences, Hide Lookup Field
5. Fire up your favorite registry editor and make the following changes (or verify they match):
HKLM\Software\Microsoft\Today\Items\Active Call
Enabled 1, Options 1, Order 2, Selectability 2, Type 5
HKLM\Software\Microsoft\Today\Items\Dial Lookup
Enabled 1, Hidden 1, Options 0, Order 1, Selectability 2, Type 5
HKLM\Software\Microsoft\Today\Items\hidelogo
Enabled 1, Options 0, Order 3, Selectability 2, Type 4
HKLM\Software\Microsoft\Today\Items\HTC Home
Enabled 1, Options 0, Order 4, Selectability 2, Type 4
6. Browse all of the other entries in HKLM\Software\Microsoft\Today\Items
Verify that no other entries occupy “Order” 1-4.
If anything else occupies one of those entries, change the order, starting with 14…15…etc.
7. Soft reset
Enjoy!!
I think this is what I found from google cache ages ago.
Thanks for the instruction Zocster. It work great

Run commands on G1 without 3rd party app

Is anyone aware of this? I found it by accident during a text conversation.
Step 1:
Reboot your phone.
Step 2:
Enter some commands.
When the system has completely rebooted there are several ways to enter commands. It seems like any app that came with the phone seems to double as a terminal. Try the following examples for running the reboot command
1. Open dialer, type reboot and press enter.
2. Create a search widget on your AndroidOS desktop... type reboot into it and press enter
3. Open a text message to yourself or someone else...in the message box type reboot and press enter.
You can also start telnetd this way, etc. Use your imagination.
Some open questions...
Questions:
- After a certain point it is no longer possible to enter commands this way. To enter commands again you have to reboot...which is the reason for Step 1. I don't know if it is a simple time limit at the beginning of boot, or if some hidden process is taking place and after its completion, the entering of commands using these methods is no longer possible. Does anyone know for sure why a reboot is eventually required to enter commands this way again?
- Copying and pasting commands into the various text boxes will not work. You must actually type the entire command and press enter immediately after in order for the command to be executed, or so it seems. Likewise you cannot for example enter a command in a search widget, then come back later with the text still there and press enter again to execute the command again. Does anyone have any insight into how these commands are being passed through to the system? I have never looked at any android src or anything like that, so I am absolutely clueless in this regard...and many others :-( It should also be noted that entering for example a "telnetd" command into a dialer will ALSO perform the function of dialing a phone number (it comes out as 8356383)..if entered into a text message it WILL pass with message to the recipient. One exception would be reboot, for obvious reasons.
- Does anyone have any additional insight into how this might be able to be used to compromise the security of the system? I used the search widget to start telnetd and ultimately get root. No pTerminal running. What other implications might this have?
- If someone has the spare time to look at the source and see why this is possible it would satisfy a great deal of my curiousity. Any takers? It would be interesting to see the code and know what the rules and limitations of entering commands this way really are.
- I am using RC29. Can anyone confirm whether or not this works on other versions?
Notes:
- Executing commands this way performs both the AndroidOS App function as well as executing the command. I.e. typing telnetd in a text message to your ex would be a pretty bad idea. This will both run telnetd AND send the text message to your ex.
- I would advise against entering long commands into the dialer as well. It will be really hard to explain to a Vietnamese Wal-Mart that you were just trying to mount your sdcard.
- Any commands that are entered WILL execute, but the results may not be obvious, as there is no output screen.
Good find. Sounds like a bug to me though. I say that because if it were a hidden feature, I would think it wouldn't be sending a text message and executing a command.
Possible bug
staulkor said:
Good find. Sounds like a bug to me though. I say that because if it were a hidden feature, I would think it wouldn't be sending a text message and executing a command.
Click to expand...
Click to collapse
My thought as well. The only reason I'm not certain is the time limit after boot..If it even is a time limit. The other reason is that it does not seem to work if you enter commands into apps other than those packaged with Android. (i.e. entering "reboot" as a high score name in some game from the app market will not restart the phone)
jdhorvat said:
My thought as well. The only reason I'm not certain is the time limit after boot..If it even is a time limit. The other reason is that it does not seem to work if you enter commands into apps other than those packaged with Android. (i.e. entering "reboot" as a high score name in some game from the app market will not restart the phone)
Click to expand...
Click to collapse
That would mean there is a bug in the core.
That would mean there is a bug in the core.
Click to expand...
Click to collapse
I tracked it down -- they left a shell running on the console. See http://android.jim.sh/index.php/ConsoleShell
perfect!
jimparis said:
I tracked it down -- they left a shell running on the console. See http://android.jim.sh/index.php/ConsoleShell
Click to expand...
Click to collapse
Thanks Jim! Excellent job tracking this down, this is precisely what I was hoping to see. I found your article very informative. It has certainly shed more light on the matter for me.

default program settings

i keep being asked which app i would like to perform actions - i make a selection & all is fine until the phone is rebooted, then off it goes again.
i've trawled the general system settings looking for a toggle but failed to find anything related to default settings storage.
any help appreciated
my set-up is in my sig.
gascomm said:
i keep being asked which app i would like to perform actions - i make a selection & all is fine until the phone is rebooted, then off it goes again.
i've trawled the general system settings looking for a toggle but failed to find anything related to default settings storage.
any help appreciated
my set-up is in my sig.
Click to expand...
Click to collapse
Probably another program overriding your selections. Try try going to Menu button on your phone and select Settings option, scroll down to the Applications section and tap it. On the next screen, tap Manage Applications and then the All tab on the subsequent screen, scroll down the list of apps until you see the App in question listed and tap that entry. On the next screen look for the "Launch by default" section and hit the Clear defaults button. Reboot and select the default program you want and see if it sticks on the next reboot. Let me know if this helps.
Omnichron said:
Let me know if this helps.
Click to expand...
Click to collapse
good logical advice, which you would assume would do the trick.
unfortunately, it doesn't fix the problem
i was wondering if there's a file somewhere whch can be edited & locked?
im not 100% sure where those things are saved, maybe in settings.db file of the android settings app.
Check your phones app directory, there should be something like
com.android.providers.settings and com.android.settings
I could imagine that the filepermissions are wrong on certain files and thus your new selection are not saved.
i've searched for hours with no success for a db file. i do believe you are on the right trac but it'll take a smarter mind than my own to highlight where the setting is hiding.
there is a lockscreen toggle option on the redux2 rom, so i've asked over there.
thank you both for your thoughts

[Q] INCOMPLETE DEVELOPER OPTIONS, Please help!

Coming from a long line of Sony phones, I recently bought a locally-made (PH) phone in hopes of getting more bang for the buck.
The device's name is STARMOBILE UP. It is relatively new so I can't seem to find answers to my problem. I also do not know what OEM device this is since local brands in the Philippines rebrand phones from Micromax, Karbonn, etc.
While I successfully (and painstakingly) rooted it and installed CWM, I can't seem to find the other (and mostly more important) options under Developer Options (please see attached photo). Among the options I am looking for is the ANIMATION SCALE. I want to lower these values in order to save the phone from unnecessary eye candy.
In the many phones I have used in the past, I have always turned these options off. I don't really need them.
Is there any way, then, to make these missing developer options appear? Or if not, just totally disable these animations via terminal?
If it will be of any help, my device runs 4.4.2. Please see attached image for more info.
Thanks in advance, awesome folks!
narflynn619 said:
Coming from a long line of Sony phones, I recently bought a locally-made (PH) phone in hopes of getting more bang for the buck.
The device's name is STARMOBILE UP. It is relatively new so I can't seem to find answers to my problem. I also do not know what OEM device this is since local brands in the Philippines rebrand phones from Micromax, Karbonn, etc.
While I successfully (and painstakingly) rooted it and installed CWM, I can't seem to find the other (and mostly more important) options under Developer Options (please see attached photo). Among the options I am looking for is the ANIMATION SCALE. I want to lower these values in order to save the phone from unnecessary eye candy.
In the many phones I have used in the past, I have always turned these options off. I don't really need them.
Is there any way, then, to make these missing developer options appear? Or if not, just totally disable these animations via terminal?
If it will be of any help, my device runs 4.4.2. Please see attached image for more info.
Thanks in advance, awesome folks!
Click to expand...
Click to collapse
Open about phone and tap build number for seven times, then developer option will appear
Dickey Kid'deviel said:
Open about phone and tap build number for seven times, then developer option will appear
Click to expand...
Click to collapse
I know that tapping the Build Number seven times should make the 'hidden' Developer Options appear. But as you can see, the Developer Options is NOT HIDDEN, it's incomplete.
Aside from that, this model has no Build Number as you can see on the screenshot posted above. Instead, it has Model Number, which, if tapped seven times, doesn't do anything.
Also, another problem, Notifications in Kitkat seem to make the screen wake up every time there is a notification. I fiddled with Notification and Messaging settings and there seems to be no way to turn this feature off. Any tips?
narflynn619 said:
I know that tapping the Build Number seven times should make the 'hidden' Developer Options appear. But as you can see, the Developer Options is NOT HIDDEN, it's incomplete.
Aside from that, this model has no Build Number as you can see on the screenshot posted above. Instead, it has Model Number, which, if tapped seven times, doesn't do anything.
Also, another problem, Notifications in Kitkat seem to make the screen wake up every time there is a notification. I fiddled with Notification and Messaging settings and there seems to be no way to turn this feature off. Any tips?
Click to expand...
Click to collapse
Regarding missing options, it is probably a modification the OEM made.
About notification, I have a Nexus 5 and I've never seen something like that. Does it happen with every app?
CriGiu said:
Regarding missing options, it is probably a modification the OEM made.
About notification, I have a Nexus 5 and I've never seen something like that. Does it happen with every app?
Click to expand...
Click to collapse
On point 1, it could be the case. God, I miss the animation scale option.
As for the notifications, I have notifications set to ON for Messaging only so I don't know the case for other apps.
narflynn619 said:
On point 1, it could be the case. God, I miss the animation scale option.
As for the notifications, I have notifications set to ON for Messaging only so I don't know the case for other apps.
Click to expand...
Click to collapse
So whenever you receive a message, the screen wakes up. Have you tried changing the messaging app?
dial this *#*#7827#*#*
No animation scale in Developer Options
I have a THL T11 and the animation scales (window, transition) are also missing in the Developer Options. It seem that it is common many chinese phones have incomplete Developer Options menu.
I tried "Spare Parts" app which has options to modify animation, but it does not work.
I searched a long time for an answer on how to change the animation scale settings in this situation and finally found it!
NOTE: since every phone is different, it may not work on your phone. You also need a rooted phone (which you already have) to make the mod.
(1) install "Dev Tools" by Dipesh Rathod from Google Play store
find "Settings.Global" under "Device" menu
click "Settings.Global" - > look for (i) animator_duration_scale (ii) transition_animation_scale (iii) window_animation_scale
@@ If you DO NOT have "Settings.Global" or any of the above animation scale entries, sorry you cannot use this method to change the scale @@
If you have the above items on the list, continue ...
(2) press "back" button on your phone to return the main menu of Dev Tools -> see if you have "SQlite".
If you don't, you need to install it from Google Play store (app is called "sqlite installer")
(3) YOUR PHONE NEEDS TO BE ROOTED ALREADY. Install "Terminal Emulator" from Google Play Store
(4) open Terminal Emulator and follow this procedure:
a) type "su" (without quotation marks) and press <Enter> - to gain root access
b) type "chmod -R 777 /data" (without quotation marks) and press <Enter> - to allow read/write in /data folder and subfolders
c) type the following to change window animation scale and press <Enter>:
Code:
sqlite3 "/data/data/com.android.providers.settings/databases/settings.db" "update global set value = '0' where name = 'window_animation_scale';"
d) type the following to change transition animation scale and press <Enter>:
Code:
sqlite3 "/data/data/com.android.providers.settings/databases/settings.db" "update global set value = '0' where name = 'transition_animation_scale';"
e) type the following to change animator duration scale and press <Enter>:
Code:
sqlite3 "/data/data/com.android.providers.settings/databases/settings.db" "update global set value = '0' where name = 'animator_duration_scale';"
(this is already off on my phone, therefore I did not make this change myself)
NOTE: Use '0' to turn the animation off completely. I use '0.5' on my phone because I find that this is smoothly than turning it off completely, and faster than '1' (default on my phone).
f) you can close Terminal Emulator now (top right "X" button and choose OK)
(5) REBOOT THE PHONE to apply these changes.
-----------------------------------------------------------------------------------------------------------
Just for curiosity, I used Dev Tools to look at my Galaxy Note 2 - there is NO "Settings.Global" or "Settings.System", and I cannot find any entries for animation scale. Therefore, I made a disclaimer this method may not work on all phones.
"Settings.Global" overrides "Settings.System" therefore you don't need to use this method to change the System setting (eg. "... update system set value ..."). Making changes to "Settings.System" only affect the Android system UI transitions but not the app transitions.

Themes / Apps / Mods Quick tip on adjusting screen saturation on rooted pixel

I always found stock pixel color saturation to be a bit washed out. I prefer the look of more saturated color palette. Even choosing "adaptive" color on display options is still not good enough for me.
If you're rooted and want to increase color saturation do the following:
Open any Android terminal with root capabilities, I personally use Termux.
Type "su" and hit enter to grant root privileges. I don't know if it's a necessary step, but I change the directory to the root of the phone by typing "CD /". Then I copy and paste the below code into the terminal. I personally set my "x.x" to 1.25. hit enter and it will automatically take effect. You can change the values at anytime afterwards to go higher or lower. Values will go back to stock after a reboot using this method, so if you don't like it, just reboot to go back to stock values.
"service call SurfaceFlinger 1022 f X.X" (x.x sets saturation up to 2.0)
I HAVE NOT TESTED THIS, but in the past I have used this code to permanently set the saturation level on boot:
Setprop persist.sys.sf.color_saturation X.X
using this, the saturation level will remain to the chosen value on boot. Again, I have not tested this on the pixel 7 Pro.
That's interesting as I also find the "adaptive" setting too washed out on Pixels.
I wonder if this could be used through a root app with more control over colors and such?
works - thank you!
Ghisy said:
That's interesting as I also find the "adaptive" setting too washed out on Pixels.
I wonder if this could be used through a root app with more control over colors and such?
Click to expand...
Click to collapse
I'm sure it could but that's beyond my capabilities lol l
Gotta wonder what effect this might have on...everything? Battery life...screen life...brightness level adjustments when on auto? YMMV
But what can we use after
"service call SurfaceFlinger 1022 f X.X" to disable if needed ?
Attinderkahlon said:
But what can we use after
"service call SurfaceFlinger 1022 f X.X" to disable if needed ?
Click to expand...
Click to collapse
I believe 1.0 is the stock value. So you can either enter the line again and replace whatever previous value you used with 1.0, or you could just reboot the device and it'll go back to the stock saturation settings.
jaseman said:
Gotta wonder what effect this might have on...everything? Battery life...screen life...brightness level adjustments when on auto? YMMV
Click to expand...
Click to collapse
It could have a negative effect on battery life....but I would guess its minimal. Been using a custom saturation value for 2 days now, no known issues.
I haven't checked yet but going by previous devices, there is probably a way to access other color modes using tasker. "boosted" has been taken away from the menu, my guess is its still there and can be accessed with tasker. I'll check it if i keep the phone.
Thank you for this, legit the only thing driving me crazy was the dull colors now it looks more like I wanted. You da man.
Glad I could help!
Dope. Going to give this a shot whenever I decide to root.
Now, has this always been a thing? If so, I wish I knew about it so I didn't have to use apps the entire time to tweak it to my liking.
Curiousn00b said:
Dope. Going to give this a shot whenever I decide to root.
Now, has this always been a thing? If so, I wish I knew about it so I didn't have to use apps the entire time to tweak it to my liking.
Click to expand...
Click to collapse
I've been using this mod since the OnePlus 6T....so it's been a thing for a while at least for me.
Has anyone tried this? Getting a Parcel Null error when I enter the code. Rooted. That "CD /" comes back as inaccessible too. It's probably me, but not able to get this to work as of now.
Unable to set up after boot, i get the setprop inaccessible
System is read-only for now. There's no rw mount mod so can't really edit build prop to set it on boot. We'll just have to wait for twrp or any system rw mount mod
xgerryx said:
Has anyone tried this? Getting a Parcel Null error when I enter the code. Rooted. That "CD /" comes back as inaccessible too. It's probably me, but not able to get this to work as of now.
Click to expand...
Click to collapse
I get parcell null response as well but it still works.
Also, I just tested changing directory in not necessary so you can skip the "CD /" part.
Trust me on this, run the script with a value of 0.5 and hit enter. Go to your home screen, open apps and scroll through your phone. Then open your emulator again, run the script with a value of 3.0 and hit enter. Then look about your phone it will look completely different. From there, just keep messing around with different values until you get one you like.
Pain-N-Panic said:
I get parcell null response as well but it still works.
Also, I just tested changing directory in not necessary so you can skip the "CD /" part.
Trust me on this, run the script with a value of 0.5 and hit enter. Go to your home screen, open apps and scroll through your phone. Then open your emulator again, run the script with a value of 3.0 and hit enter. Then look about your phone it will look completely different. From there, just keep messing around with different values until you get one you like.
Click to expand...
Click to collapse
Ok yes I'm seeing it now. Thanks for following up. It does change exactly what we're looking for. I bet you someone can make this into a little app or a magisk module.
xgerryx said:
Ok yes I'm seeing it now. Thanks for following up. It does change exactly what we're looking for. I bet you someone can make this into a little app or a magisk module.
Click to expand...
Click to collapse
Glad ya got it working! Yeah I'm sure it's possible, having to run the script everytime you boot is kind of annoying
I wish we could adjust the white balance. This screen is so yellow looking

Categories

Resources