| Prev |   8     9   10 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Nokia & AEGIS open-mode (https://talk.maemo.org/showthread.php?t=81579)

myname24 2012-11-08 23:14

Re: Nokia & AEGIS open-mode
 
aegis installing app is normal under open/non open mode .

Dragoss91 2012-11-08 23:19

Re: Nokia & AEGIS open-mode
 
I don't know how to test this . I tried to install opptimizer and it fails .

RM696-21-3_PR_001:/home/user/MyDocs# dpkg -i opptimizer_1.5.4_armel.deb
Selecting previously deselected package opptimizer.
(Reading database ... 47192 files and directories currently installed.)
Unpacking opptimizer (from opptimizer_1.5.4_armel.deb) ...
aegis-installing opptimizer (from '')
Package opptimizer: denied 'tcb' -- origin '' does not allow it
Package opptimizer: denied 'tcb' for '/opt/opptimizer/bin/oppldr' -- origin '' does not allow it
Package opptimizer: denied 'CAP::sys_module' for 'opptimizer::opptimizer' -- origin '' does not allow it
Setting up opptimizer (1.5.4) ...
RM696-21-3_PR_001:/home/user/MyDocs#

Akkumaru 2012-11-08 23:19

Re: Nokia & AEGIS open-mode
 
To check if you are in open mode or not, type in "accli -I" in terminal.

Akkumaru 2012-11-08 23:21

Re: Nokia & AEGIS open-mode
 
You were suppose to do this when installing opptimizer:
/usr/sbin/incept opptimizer_1.5.4_armel.deb
/usr/sbin/incept opptimizer-ui_1.2.7_armel.deb

And this is after you install inception.

If you want to install it without inception and in open mode, do this:
devel-su
rootme
cd /home/user/MyDocs

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i opptimizer_1.5.4_armel.deb

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i opptimizer-ui_1.2.7_armel.deb

Dragoss91 2012-11-08 23:27

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by Akkumaru (Post 1292106)
You were suppose to do this when installing opptimizer:
/usr/sbin/incept opptimizer_1.5.4_armel.deb
/usr/sbin/incept opptimizer-ui_1.2.7_armel.deb

And this is after you install inception.

If you want to install it without inception and in open mode, do this:
devel-su
rootme
cd /home/user/MyDocs

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i opptimizer_1.5.4_armel.deb

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i opptimizer-ui_1.2.7_armel.deb

accli -l shows me few credentials but AEGIS_FIXED_ORIGIN works well and faster . :)

Credentials:
UID::root
GID::root
CAP::chown
CAP::fsetid
CAP::setgid
CAP::setuid
CAP::net_bind_service
CAP::sys_chroot
CAP::sys_resource
CAP::sys_tty_config
GRP::root
GRP::adm
GRP::dialout
GRP::pulse-access

unphysicalix 2012-11-09 00:55

Re: One report and one update request:
 
Quote:

Originally Posted by jalyst (Post 1289956)
What specifically is not clear or outdated, if anyone can outline all that, I'll gladly add it to the OP, TY.

Hi, I meant, that the links provided by wolke are the links for the PR1.1 version.
Since we are at PR1.3 (and downgrade is not viable/wishable/possible afaik) it would be good to include the current link to the patched kernel (see my last post).

There is actually no "unpatched" kernel anymore under maemo.cloud-7.de. You get it anyway by resetting to normal mode.

And the BigScaryWarning works as you added, but you could remove it from the list of 'won't work' ... to avoid confusion.

Yes, that's all. I just found it confusing when going to open mode and using your thread as a focal point of information.
Thank you.

jalyst 2012-11-09 11:03

Re: One report and one update request:
 
Quote:

Originally Posted by unphysicalix (Post 1292125)
Hi, I meant, that the links provided by wolke are the links for the PR1.1 version.
Since we are at PR1.3 (and downgrade is not viable/wishable/possible afaik) it would be good to include the current link to the patched kernel (see my last post).

There is actually no "unpatched" kernel anymore under maemo.cloud-7.de. You get it anyway by resetting to normal mode.

And the BigScaryWarning works as you added, but you could remove it from the list of 'won't work' ... to avoid confusion.

Yes, that's all. I just found it confusing when going to open mode and using your thread as a focal point of information.
Thank you.

Feel free to copy everything in that post, edit it, & then post back into this thread.
I will then add it to the OP (with references to you for providing the update)...

Cheers.

byteninja2 2013-03-02 07:45

Accounts signed out when I turn on n9
 
When I turn on my n9, all my accounts are signed out, and it asks me for my passwords. It only happens when I turn on my phone after turning it on. I recently installed nitdroid if that helps. Or maybe I just clicked a security feature on on accident?

thedead1440 2013-03-02 07:50

Re: Nokia & AEGIS open-mode
 
byteninja2,

You are now in open mode so you have to delete your accounts by deleting 3 directories via typing the following in terminal:

Code:

rm -rf /home/user/.aegis
rm -rf /home/user/.accounts
rm -rf /home/user/.activesync

Reboot and then set-up your accounts again; it won't ask for passwords after the first reboot...

byteninja2 2013-03-02 17:54

Accounts signed out when i start my n9
 
When i turn on my n9, my accounts are all signed out, and it asks me for my passwords. I am on PR 1.3 and recently installed nitdrdroid.

mrsellout 2013-03-02 18:16

Re: Accounts signed out when i start my n9
 
Did you try what thedead1440 told you here?

thedead1440 2013-03-04 13:25

Re: Nokia & AEGIS open-mode
 
jalyst,

Please add to your OP the instructions on what to do after flashing open mode kernel:

Openmode - Removing Aegis mounts:
Code:

$ rm -fr /home/user/.aegis
$ rm -rf /home/user/.accounts
$ rm -rf /home/user/.activesync
# mkdir /root/certs.bak
# cp /etc/ssl/certs /root/certs.bak
# rm /etc/aegisfs.d/*.* && /sbin/reboot
# mv /root/certs.bak/*.* /etc/ssl/certs


jalyst 2013-03-04 19:19

Re: Nokia & AEGIS open-mode
 
Done
http://talk.maemo.org/showthread.php...76#post1150176

javispedro 2013-03-04 19:35

Re: Nokia & AEGIS open-mode
 
No, don't do that. Every method to “clear the aegisfs mounts” that I've read has been more stupid than the previous one. Remove the aegia mounts and you will get weird bugs ranging from slow GPS locks to higher battery usage (because of processes crashing repeteadly in the background). My N950 has been aegis-less for a while (removed from the kernel and userspace libs) and there are plenty of randomly placed calls to Aegis that will fail if you do the above.

Just reflash, dammit. Its not that hard and you do not have to do anything afterwards.

If you really want to avoid reflashing, at least use apscli. But then, please, don't.

jalyst 2013-03-04 19:44

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by javispedro (Post 1326875)
Remove the aegia mounts and you will get weird bugs ranging from slow GPS locks to higher battery usage (because of processes crashing repeteadly in the background).

Ah now that you mention it I vaguely do recall all that...

Quote:

My N950 has been aegis-less for a while (removed from the kernel and userspace libs) & there are plenty of randomly placed calls to Aegis that will fail if you do the above.
Care to review the OP & confirm that the entire process is in-line with your entire approach?

Quote:

Just reflash, dammit. Its not that hard and you do not have to do anything afterwards.
If you really want to avoid reflashing, at least use apscli. But then, please, don't.
I'll update the OP accordingly soon... Thanks.

rainisto 2013-03-04 19:47

Re: Nokia & AEGIS open-mode
 
There is no need to remove clear aegis mounts, you can have fully working aegis also in open mode (as long as you don't follow bad instructions).

wolke 2013-03-04 20:34

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by javispedro (Post 1326875)
No, don't do that. Every method to “clear the aegisfs mounts” that I've read has been more stupid than the previous one. Remove the aegia mounts and you will get weird bugs ranging from slow GPS locks to higher battery usage (because of processes crashing repeteadly in the background). My N950 has been aegis-less for a while (removed from the kernel and userspace libs) and there are plenty of randomly placed calls to Aegis that will fail if you do the above.

Just reflash, dammit. Its not that hard and you do not have to do anything afterwards.

If you really want to avoid reflashing, at least use apscli. But then, please, don't.

does anyone have a reasonable way to backup and restore accounts for email?

the database is simple and the structure is straightforward. backing it up {either by copying the db or dumping the relevant tables to csv/etc}, reflashing firmware+emmc+kernel, restoring the db, removing the aegis mount points, and restoring it actually works sometimes.

the other half, it either prompts for the passwords at each reboot, or it does this weird thing where it prompts for the username and email constantly, and then no matter what you enter, it doesnt work. both problems do not go away unless you remove the aegis mount points and account dir, and manually re-enter the accounts.


this is literally the only manual restore task i have to do when i reflash.

i understand that this may sound over-the-top whiny, but its important to me, as part of my system for managing my computers.

wolke 2013-03-04 20:38

Re: Nokia & AEGIS open-mode
 
to illustrate how the no-accounts-restore is a needle in my eye, i wrote you a novel:

this is my restore process:
1) reflash, enable dev mode, devel-su -c passwd user
2) restore.sh from my laptop
3) type in my 6 stupid email accounts by hand

i manage my phone config and data from my laptop. when i install a package, i add it to my package-installer script or my folder of debs, and then run package-installer. next time i reflash, that package is installed automatically.
i backup my SMS and phone call log nightly, in plaintext, using smsbackuprestore. when i reflash, i automatically pop the last 30 days of texts and calls on, keeping everything on my laptop.
i also sync my DCIM, contacts, music library, swype dictionary, qtodos, and pidgin logs nightly with my laptop.

restore.sh handles restoring that stuff, and everything else {vkb, desktop launcher arrangement, drive settings/cities, gconfs, meecast, lpsmagic....} and i STILL have to avoid reflashing because of the goddamn email accounts.

i do the same exact thing with my laptop, my n900, my ddwrt router, and my raspberry pi, knowing if i lost one of them tragically, im less than an hour from full recovery after replacement, without having to store giant backups of file systems.

rainisto 2013-03-04 21:17

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by wolke (Post 1326894)
does anyone have a reasonable way to backup and restore accounts for email?

the other half, it either prompts for the passwords at each reboot, or it does this weird thing where it prompts for the username and email constantly, and then no matter what you enter, it doesnt work. both problems do not go away unless you remove the aegis mount points and account dir, and manually re-enter the accounts.

If you re-create accounts aegis stores by using openmode keys. it remembers the passwords accross reboots.

What goes to backup and restore, if you use backup&restore framework with opensh capabilities from shellscript you can also restore email accounts without any problems.

I always have aegis fully running when beeing in open mode, and I have everything working without problems. Stock kernel with AEGIS_FIXED_ORIGIN export does miracles :)

wolke 2013-03-04 21:30

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by rainisto (Post 1326910)
If you re-create accounts aegis stores by using openmode keys. it remembers the passwords accross reboots.

What goes to backup and restore, if you use backup&restore framework with opensh capabilities from shellscript you can also restore email accounts without any problems.

I always have aegis fully running when beeing in open mode, and I have everything working without problems. Stock kernel with AEGIS_FIXED_ORIGIN export does miracles :)

thanks for your response! sorry, its not quite what im talking about.

1) everyone has aegis working correctly in openmode, unless they flashed the kernel without flashing emmc+fw, or removed certain aegis mountpoints. {and i already alias dpkg and apt-get with afo=nokia.}

2) ovi backup&restore framework is manual, and its thick.
it dumps an inscrutable binary and does not permit incremental adjustments.
however, i didnt know that there was a CLI api for it {i thought you had to use a gui tool.}
im going to investigate whether it can be configured to backup/restore ONLY accounts, and leave packages and sms to me. if it can, this is still a step up from manually entering it.

wolke 2013-03-04 21:45

Re: Nokia & AEGIS open-mode
 
accounts-backup is a binary which seems to just copy ~/.accounts/accounts.db to accounts.db.bak.

accounts-restore is a shell script which removes the accounts db and replaces it with accounts.db.bak; if this doesnt exist, accounts-restore simply removes your accounts db.

so, this is literally the same as what i already do. copying the db to my laptop, reflashing, and replacing the db. it does not work.

valdur55 2013-03-05 14:52

Re: Nokia & AEGIS open-mode
 
For removing aegisfs from process list just comment start aegisfs line in /etc/init/group-mce.conf and then reboot your device.

TonyUkuk 2013-10-31 14:34

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by rainisto (Post 1326881)
There is no need to remove clear aegis mounts, you can have fully working aegis also in open mode (as long as you don't follow bad instructions).

ok,if not with the way removing this dirs so then how to fix password issue,which is happening after openmode?

coderus 2013-10-31 14:39

Re: Nokia & AEGIS open-mode
 
just remove .accounts folder and create accounts again

mfrasca 2018-03-05 01:58

Re: Nokia & AEGIS open-mode
 
a bit late to ask, 5 years later, but is there a wiki page corresponding to the most up-to-date info from this conversation?

peterleinchen 2018-03-05 15:26

Re: Nokia & AEGIS open-mode
 
not really but roughly compressed:
http://wiki.maemo.org/N950/Aegis-notes


| Prev |   8     9   10 |
All times are GMT. The time now is 22:21.

vBulletin® Version 3.8.8