[HTC Aria Android Development] madhartigan:
Could someone possibly look at my post in the LiberatedAria thread and offer assistance?

http://xdaforums.com/showpost.php?p=7142572&postcount=144

SOLVED:

root problem solved thanks to assistance from irc.freenode.net/#liberatedAria

ultimately used wesgarner's generic root script found here

Not saying that was the solution, it could have been my incompetence during prior installs, but through tips I learned in the irc chat and other information procured from just poking around all of these "How to root" threads, I was able to achieve root.

More to come regarding the sideloading issue.

Thanks

SIDELOADING ISSUE:

Well, I don't know if this is the case for most people, but it appears that the instructions provided assume you're running your adb commands on a linux box as root. (I don't use root except for extreme cases)

Apparently if you do not run your linux terminal as root, and you pull the settings.db file there are permissions issues.

here's my solution and I GUARANTEE it's far from proper, but it achieved what I needed

I simply used "sudo ./" (without quotes of course) in front of every command (except the echo one) in the instructions for enabling sideloading at the end of the first post. I also chmod'ed the settings.db file to 777 (overkill, I know) so it could be properly modified because when it was pulled from the phone, it had readonly permissions.

darryl@darryl-lapuntu:~/sdk/tools$ sudo ./adb remount
remount succeeded
darryl@darryl-lapuntu:~/sdk/tools$ sudo ./adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
715 KB/s (44032 bytes in 0.060s)
darryl@darryl-lapuntu:~/sdk/tools$ sudo echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 settings.db
Error: near line 1: attempt to write a readonly database
darryl@darryl-lapuntu:~/sdk/tools$ echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 settings.db
Error: near line 1: attempt to write a readonly database
darryl@darryl-lapuntu:~/sdk/tools$ sudo echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 settings.db
Error: near line 1: attempt to write a readonly database
darryl@darryl-lapuntu:~/sdk/tools$ chmod 777 settings.db
chmod: changing permissions of `settings.db': Operation not permitted
darryl@darryl-lapuntu:~/sdk/tools$ sudo chmod 777 settings.db
darryl@darryl-lapuntu:~/sdk/tools$ sudo echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 settings.db
darryl@darryl-lapuntu:~/sdk/tools$ sudo ./adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
661 KB/s (44032 bytes in 0.064s)
darryl@darryl-lapuntu:~/sdk/tools$ adb reboot

If someone can tell me how to set the permissions for settings.db on my phone back to the way they were, I'd love it. I just went with the sledgehammer 777 chmod so I could get through what I needed. I'm pretty confident that a more proper way would be to return the permissions back to their proper limitations.

Thanks again to Killsudo__home and lighti3ulb on the irc chatroom #liberatedAria at irc.freenode.net for all of their help.

SOLVED2:

After further thought, I'm wondering if my whole presumption of a "no root" problem on the phone was bogus and I simply needed to be doing all of my commands as root from my linux box.

unrevoked's reflash wouldn't find my phone for so long and it worked after flashing with wesgarner's simple root script, but the first time I ran reflash after using wesgarner's simple root script, I ALSO used "sudo ./reflash" (instead of simply "reflash") for the first time as well. Therefore I have two variables in play and can't assume one or the other wasn't the solution.

my brain hurts.