Change Root Password - Hero, G2 Touch General

I've tried searching, but cant find a way to change my root password. Is it possible? If so, how? Thanks!

RalyDSM said:
I've tried searching, but cant find a way to change my root password. Is it possible? If so, how? Thanks!
Click to expand...
Click to collapse
I would assume since it's *nix based that it's just the *nix command. That being "passwd" hope that helps.
I.E)
Code:
C:\android-sdk\tools\>adb shell
$ su -
# passwd
Type current password:
Type new password:
Confirm new password:
Password changed
Hope that helps. I also hope it actually works.
In theory, it should.

Related

No root?

I just got my G1 two days ago. It had RC29 on it I followed the step by step instructions to get the modified RC30 on it. Everything went fine, I was able to get root and update to the modded RC30 (I think). Now when I try to go into telnet to verify, I get an error in telnet:
"error while connecting to server: localhost 127.0.0.1:23 - connection refused"
followed by:
"error while receiving from server: null"
My build # now is kila-user 1.0 Tc4-RC30 116143 ota-rel-keys,release-keys
Is anything messed up?
WiFi is turned on.
You shouldn't need wifi at all. Just use Telnet.apk to connect to G1 itself.
The fingerprint of Mod RC30 v1.2 is identical to that of OTA RC30 because the fingerprint is reported to Google servers on update checks. If you want to check whether you have Mod RC30 installed, open Terminal Emulator and type cd /system/modules If it changes the directory you are on Mod RC30 v1.2. If it failed to change directory then you are on OTA RC30.
When I type in "cd /system/modules" in terminal emulator it simply goes to another line. It does not say whether or not it changed the directory. Is that what it's supposed to do?
eweo911 said:
When I type in "cd /system/modules" in terminal emulator it simply goes to another line. It does not say whether or not it changed the directory. Is that what it's supposed to do?
Click to expand...
Click to collapse
That means it has changed directory (and thus you are on Mod RC30 1.2). You can confirm by typing pwd.
cool, thanks! I guess I did it correctly.
... so what then? i've got the same problem with telnet. i apparently have root, however, telnet does not work after reset.

How to fix some of problems in 2.1 from based on eris/may fix other roms???

just a refresher to help those trying to read the dozens of new pages credit goes to david279, Gregalous and others
MMS FIX - WORKS
cd C:\android-sdk-windows\tools
adb shell
cd /data/data/com*telephony/databases
sqlite3 telephony.db
update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=YOUR11DIGITNUMBER' where name='Production'; *input your phone number example 13303214294 dont forget the'*
adb reboot
QUICKBOOT FIX - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb push reboot /system/bin
adb shell
cd /system/bin/
ls **optional...I did this just so I could make sure the reboot file was there**
chmod 755 reboot
chmod 755 /system/bin/reboot
adb reboot
3D GALLERY INSTALL - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb push Gallery3D.apk /system/app
adb reboot
REOCCURRING SIGN-IN FAILURE - DOESN'T WORK
install google voice 0.2
MARKET NOT SHOWING INSTALLED APPS - WORKS FOR MANY (may fix failing sign-in error at boot)
cd C:\android-sdk-windows\tools
adb pull /system/build.prop .
used wordpad (don't use MS notepad) to edit build.prop with the following:
ro.build.fingerprint=google/passion/passion/mahimahi:2.1/ERD79/22607:user/release-keys
ro.cdma.home.operator.numeric = 310120 (note 310120, not 310012)
ro.cdma.home.operator.alpha = Sprint
ro.com.google.clientidbase=android-sprint
adb remount
adb push build.prop /system/
clear market cache
adb reboot
REPLACE LOCKSCREEN - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
reboot phone
I did not mean for the original title to be dirogitory i simply ment to make it as clear as posible it fixes many problems that we have had in that rom i dont want somone applying it to another 2.1 rom that it doesnt work for and coming back and saying ruler why wernt you more clear...
this was all posted (in one post) by rank78 i reposted so i could make a wiki page out of it (the fix finds were descovered by multilple people if you want your name up here pm me and il put it up)
these problems are more-so in all 2.X roms, the way your title is is like your bashing, but thanks anyway
lv2bll said:
these problems are more-so in all 2.X roms, the way your title is is like your bashing, but thanks anyway
Click to expand...
Click to collapse
x2 but thanks for the effort.
Great info, but can you edit the title of the post? It seems a bit harsh to flipz. All these guys deserve the utmost respect for doing these ROMs and not asking for much from us.
Just my 2 cents, thanks again.
wow people are sensitive. he's not bashing flipz...
rank78 also posted the links to the files needed for these fixes, i think it would be a good idea to post them on the first post of this topic
Great
Thanks Rolermon,
Quick question, would the MMS fix work for the 2.1 Darchdroid? Also, when you said step 5. update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=YOUR11DIGITNUMBER' where name='Production'; -----------are we to changing the MDN=************ for something on our end, or do we leave it as it is?
Edit---------Another question on the QUICKBOOT FIX - WORKS--------
Where do I find the reboot file that I need to push to /system/bin?
Kykiskly said:
Thanks Rolermon,
Quick question, would the MMS fix work for the 2.1 Darchdroid? Also, when you said step 5. update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=YOUR11DIGITNUMBER' where name='Production'; -----------are we to changing the MDN=************ for something on our end, or do we leave it as it is?
Edit---------Another question on the QUICKBOOT FIX - WORKS--------
Where do I find the reboot file that I need to push to /system/bin?
Click to expand...
Click to collapse
Tried the MMS fix on Darch's 2.1 ROM... no luck.
link to the post with files needed to fix. i pm'ed flip to add these to the first post.
http://forum.xda-developers.com/showpost.php?p=5799963&postcount=1908
rank78 said:
link to the post with files needed to fix. i pm'ed flip to add these to the first post.
http://forum.xda-developers.com/showpost.php?p=5799963&postcount=1908
Click to expand...
Click to collapse
Thanks Rank- How do I get the 11 MDN number from my phone?
Kykiskly said:
Thanks Rank- How do I get the 11 MDN number from my phone?
Click to expand...
Click to collapse
its just 1, area code, phone number = 11
Kykiskly said:
Thanks Rank- How do I get the 11 MDN number from my phone?
Click to expand...
Click to collapse
I believe it is your phone number 1-234-567-8901 that is 11
Kykiskly said:
Thanks Rolermon,
Quick question, would the MMS fix work for the 2.1 Darchdroid? Also, when you said step 5. update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=YOUR11DIGITNUMBER' where name='Production'; -----------are we to changing the MDN=************ for something on our end, or do we leave it as it is?
Edit---------Another question on the QUICKBOOT FIX - WORKS--------
Where do I find the reboot file that I need to push to /system/bin?
Click to expand...
Click to collapse
fyi the quickboot fix is for the program quickboot that wasn't functioning after flashing the rom.
the reboot file is zipped in my post
rank78 said:
fyi the quickboot fix is for the program quickboot that wasn't functioning after flashing the rom.
the reboot file is zipped in my post
Click to expand...
Click to collapse
Many thanks, but I was able to push the file to the destination. About the MMS, i did as instructed, still didn't help at all. I am not able to mms pics out either.
I am on Darchdroid V1 2.1
You guys probably know a lot more about this than I do, but shouldn't the MMS link be:
http://mms.sprintpcs.com/servlets/MMS?X-SPRINT-MDN="Your MSID Number" ?
on my hero, i just put in:
http: //mms.sprintpcs.com/servlets/MMS
and it worked.
rulermon said:
just a refresher to help those trying to read the dozens of new pages credit goes to david279, Gregalous and others
MMS FIX - WORKS
cd C:\android-sdk-windows\tools
adb shell
cd /data/data/com*telephony/databases
sqlite3 telephony.db
update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=YOUR11DIGITNUMBER' where name='Production'; *input your phone number example 13303214294 dont forget the'*
adb reboot
QUICKBOOT FIX - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb push reboot /system/bin
adb shell
cd /system/bin/
ls **optional...I did this just so I could make sure the reboot file was there**
chmod 755 reboot
chmod 755 /system/bin/reboot
adb reboot
3D GALLERY INSTALL - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb push Gallery3D.apk /system/app
adb reboot
REOCCURRING SIGN-IN FAILURE - DOESN'T WORK
install google voice 0.2
MARKET NOT SHOWING INSTALLED APPS - WORKS FOR MANY (may fix failing sign-in error at boot)
cd C:\android-sdk-windows\tools
adb pull /system/build.prop .
used wordpad (don't use MS notepad) to edit build.prop with the following:
ro.build.fingerprint=google/passion/passion/mahimahi:2.1/ERD79/22607:user/release-keys
ro.cdma.home.operator.numeric = 310120 (note 310120, not 310012)
ro.cdma.home.operator.alpha = Sprint
ro.com.google.clientidbase=android-sprint
adb remount
adb push build.prop /system/
clear market cache
adb reboot
REPLACE LOCKSCREEN - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
reboot phone
I did not mean for the original title to be dirogitory i simply ment to make it as clear as posible it fixes many problems that we have had in that rom i dont want somone applying it to another 2.1 rom that it doesnt work for and coming back and saying ruler why wernt you more clear...
this was all posted (in one post) by rank78 i reposted so i could make a wiki page out of it (the fix finds were descovered by multilple people if you want your name up here pm me and il put it up)
Click to expand...
Click to collapse
There still needs to be appropriate quit and .quit statements added in to get out of sqlite3 and shell.
ripleys said:
You guys probably know a lot more about this than I do, but shouldn't the MMS link be:
http://mms.sprintpcs.com/servlets/MMS?X-SPRINT-MDN="Your MSID Number" ?
on my hero, i just put in:
http: //mms.sprintpcs.com/servlets/MMS
and it worked.
Click to expand...
Click to collapse
What do you mean by "http: //mms.sprintpcs.com/servlets/MMS"? Didn't you complete the sentence with the MDN=-----------------?
Kykiskly said:
What do you mean by "http: //mms.sprintpcs.com/servlets/MMS"? Didn't you complete the sentence with the MDN=-----------------?
Click to expand...
Click to collapse
No, supposedly both work. The MDN version works all the time and the MMS version works some of the time.
Mistamike17 said:
No, supposedly both work. The MDN version works all the time and the MMS version works some of the time.
Click to expand...
Click to collapse
Ok but after that statement, what goes after, cuz since we are in the sqlite3 telephony.db, we cant adb reboot from there. What is the command to close/save the statement. I tried .quit, exit, adb reboot and no success.
how do we know that by doing the above statements the change took effect?
1) update carriers set mmsc='http://mms.sprintpcs.com?X-MDN=1+area code + cell #' where name='Production'; *1+area code + cell '*
2)http: //mms.sprintpcs.com/servlets/MMS
This also worked on Souffle!!! Thanks guys!
Code:
QUICKBOOT FIX - WORKS
cd C:\android-sdk-windows\tools
adb remount
adb push reboot /system/bin
adb shell
cd /system/bin/
ls **optional...I did this just so I could make sure the reboot file was there**
chmod 755 reboot
chmod 755 /system/bin/reboot
adb reboot

How to use root access on Android app

Hi,
I want to use root access on my android app, but I don't know how to get root access and how to use it. I've searched Internet and found someone said that I should call
Runtime.getRuntime().exec("su");
But when I did that the system asked me to give root access to my app, I choose yes, but app still cannot perform any root operations like listening on TCP port 80
please help me
Thank you in advanced!!
Alex
I'm sure there's some reason why it would fail because it seems too obvious, but my first guess would be to get a shell, su to root, then
chmod u+s whatever.apk

Titanium Backup Restore Fingerprint issues

So on my old phone i had a fingerprint lock set. I got my replacement phone back to today and restored it.
After I restored the new phone phone it asks for a pin number. I unlock with the pin from the old phone but when I go to re enable the fingerprint it flashing the fingerprint/pin screen then returns to settings.
Anyone else have this happen?
Festaman said:
So on my old phone i had a fingerprint lock set. I got my replacement phone back to today and restored it.
After I restored the new phone phone it asks for a pin number. I unlock with the pin from the old phone but when I go to re enable the fingerprint it flashing the fingerprint/pin screen then returns to settings.
Anyone else have this happen?
Click to expand...
Click to collapse
Try wiping all prints then redoing it.
Has anyone found a solution to this problem?
This is something I have just ran into after swapping what I think was a bit of a lemon Atrix for a new one; I did a quick Titanium Backup prior to the swap, went about restoring everything, and now I cannot enter the "Change Screen Lock" section of Settings, nor can I "Clear stored fingerprints" as that option isn't allowed.
My thanks for any advice or help that anyone can offer. I'd prefer not to resort to a Factory Reset; after all, I just got things up and running again, and I have no idea if that would even help anything.
Thank you,
-Newbie
JustAnotherNewbie said:
Has anyone found a solution to this problem?
This is something I have just ran into after swapping what I think was a bit of a lemon Atrix for a new one; I did a quick Titanium Backup prior to the swap, went about restoring everything, and now I cannot enter the "Change Screen Lock" section of Settings, nor can I "Clear stored fingerprints" as that option isn't allowed.
My thanks for any advice or help that anyone can offer. I'd prefer not to resort to a Factory Reset; after all, I just got things up and running again, and I have no idea if that would even help anything.
Thank you,
-Newbie
Click to expand...
Click to collapse
You probably will have to and then not restore your settings. For future before you swap out your device due to a glitch remove the security. Also I would recommend submitting a bug report to the developer.
I also have the exact same problem. Has anyone found a solution to this issue?
I had this same problem. To fix I had to flash SBF. Don't think there is a way to fix it once you've restored it. Make sure when you make a new back-up before you flash that you remove security or not back it up. In this instance, since you can't disable it, you'll have to remove it from back-up.
Yeah I had the same issue. when TiBu backed up my stuff it backed up even sys files and settings messing a lot of things up, forcing me to flash 4.1.26 and start over. So what I had to do is manually pick what TiBu backs up and leave sys settings and files out.
Sent from my MB860 using XDA Premium App
fix for titanium backup restore of fingerprint capability.
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
wrldsuksgo2mars said:
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
Click to expand...
Click to collapse
After any command at the sqlite prompts I get "SQL error: not an error" and of course the fingerprint issues continues. I'm using Android terminal Emulator. Please advice. Thanks!
digicypher said:
After any command at the sqlite prompts I get "SQL error: not an error" and of course the fingerprint issues continues. I'm using Android terminal Emulator. Please advice. Thanks!
Click to expand...
Click to collapse
in windows cmd: adb.exe shell
at prompt: su
then try the above.
camoto said:
in windows cmd: adb.exe shell
at prompt: su
then try the above.
Click to expand...
Click to collapse
wish i would've had this a couple days ago. Had to sbf flash back to get mine working again. I will say, if you have to use TiBu, setup your security first, then restore. Worked for me the last time this happened.
THANK YOU
wrldsuksgo2mars said:
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
Click to expand...
Click to collapse
I had this problem after going through hell flashing my phone and then updating to retain root when i had this problem. Your commands worked like a charm, thank you so much.
wrldsuksgo2mars said:
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
Click to expand...
Click to collapse
Worked like a charm! Thanks a lot!
camoto said:
in windows cmd: adb.exe shell
at prompt: su
then try the above.
Click to expand...
Click to collapse
Perfect! Thank you very much!
adb.exe
camoto said:
in windows cmd: Adb.exe shell
at prompt: Su
then try the above.
Click to expand...
Click to collapse
It worked !!!!!!!!!!!!!!!!!!!!!
many thanks!!!!!
wrldsuksgo2mars said:
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
Click to expand...
Click to collapse
Great solution! Others have been going back to SBF and rebuilding!
I'm posting this elsewhere because this problem can impact anyone with fingerprint security doing customization and restoring settings.
God bless you, wrldsuksgo2mars. You saved me an hour or two.
i have the same problem but i dont know where to start , and it seems like others are having luck fixing it ? HELP.
wrldsuksgo2mars said:
from a root shell after restoring and being in the bad state run this command
Code:
sqlite3 /data/data/com.motorola.android.providers.settings/databases/settings.db
at the sqlite> prompts enter these commands
Code:
delete from settings where name='lock_type';
delete from settings where name='lock_fingerprint';
delete from settings where name='lock_timer';
Click to expand...
Click to collapse
THANK YOU!!!!!!!
I was just about to flash my phone when I came across this.
UPDATE FOR THE FIX using only the handset
1. Get the program SQlite editor on your atrix
2. Root Explorer to directory /data/data/com.motorola.android.providers.settings/databases/settings.db
3. select settings
4. scroll down to lock_type lock_fingerprint lock_timer
5. Long press on each and delete.(confirm delete on each)
then you dun
reboot and your back in bidness
hope this helped somebody....

[Q] Can anyone explain me the name of kernels?

I just made up a kernel from source and its name is:
2.6.35.7
[email protected]
What is "adminuser"?
Whats this thing "se-virtualboximagescom-"?
How to change them?
I dont know abt this but want to know the answer....
admin user is ur username of os...
and
se-vbox****** is ur hostname
_______________________________________________
How To Change Hostname
Type Command in Terminal. (Ctrl+Alt+T)
sudo gedit /etc/hostname
Click to expand...
Click to collapse
The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
Click Save.
Close all open windows and restart your system.After your system has restarted, it will have the new computer name.
_________________________________________________
How To Change Ur Username
Method 1 make/create new 1 and remove old one
Method 2
1 .Open Terminal
2.Unlock account root and enable login as root using below command
sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
Click to expand...
Click to collapse
3.Reboot your computer and login as root
4.Open a terminal and Use blow command to change your username
usermod -l newname oldname
Click to expand...
Click to collapse
5.(Optional)Now you already changed your username,but your home folder name still are “/home/oldname”,if you also want to change /home/oldname to /home/newname just run below command
usermod -m -d /home/newname newname
Click to expand...
Click to collapse
Notef course you can combine step 4 and step 5 using below command
usermod -m -d /home/newname -l newname oldname
Click to expand...
Click to collapse
6.All done,use below command to lock your root again,then you can reboot and login as your new username(in my way i always use root.. for time of build kernel user other user name iduos)
passwd -l root
Click to expand...
Click to collapse
i Hope Its Help U :laugh::laugh::laugh::good::good::good:
wow...using vbox consume a lot of rams and tend to be (a lot) slower compared when we use a real installed linux. you have a good computer out there mate.
manoranjan2050 said:
admin user is ur username of os...
and
se-vbox****** is ur hostname
_______________________________________________
How To Change Hostname
Type Command in Terminal. (Ctrl+Alt+T)
The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
Click Save.
Close all open windows and restart your system.After your system has restarted, it will have the new computer name.
_________________________________________________
How To Change Ur Username
Method 1 make/create new 1 and remove old one
Method 2
1 .Open Terminal
2.Unlock account root and enable login as root using below command
3.Reboot your computer and login as root
4.Open a terminal and Use blow command to change your username
5.(Optional)Now you already changed your username,but your home folder name still are “/home/oldname”,if you also want to change /home/oldname to /home/newname just run below command
Notef course you can combine step 4 and step 5 using below command
6.All done,use below command to lock your root again,then you can reboot and login as your new username(in my way i always use root.. for time of build kernel user other user name iduos)
i Hope Its Help U :laugh::laugh::laugh::good::good::good:
Click to expand...
Click to collapse
Tried to change that se-virtual**** to 'hell_lock' and then compiled it. Not working
after change hostname restart ......then check its changed or not
type hostname to chack ur host
and save ur .config file and make clean then compile
Sent from my GT-S6102 using Tapatalk 2
manoranjan2050 said:
after change hostname restart ......then check its changed or not
type hostname to chack ur host
and save ur .config file and make clean then compile
Sent from my GT-S6102 using Tapatalk 2
Click to expand...
Click to collapse
The name has changed inn terminal but no name change in kernel..
Sent from my GT-S5360 using XDA
make clean and re compile it :thumbup:
Sent from my GT-S6102 using Tapatalk 2
manoranjan2050 said:
make clean and re compile it :thumbup:
Sent from my GT-S6102 using Tapatalk 2
Click to expand...
Click to collapse
Cleaned the common folder and recompiled.. NO CHANGES!! seems like I gotta live with it
hell_lock said:
Cleaned the common folder and recompiled.. NO CHANGES!! seems like I gotta live with it
Click to expand...
Click to collapse
also check This file
sudo gedit /etc/hosts
Click to expand...
Click to collapse
127.0.0.1 old hostname (change it to ur new name)
127.0.1.1 old hostname (change it to ur new name)

Categories

Resources