Active Topics

 


Reply
Thread Tools
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#1
This fix is for the bug that some people have when installing applications from the store in an Open Mode device.
After the install process completes all open applications are forcefully closed.

NOTE! This fix is only for Open Mode devices, do not try to do this on a Closed Mode device or you will end up in MALF state!

How the fix works: After an install applauncher reloads it's state from /var/run/applauncherd/saved-state file. If the system is in Open Mode and aegis keys have a conflict with Closed Mode keys then /var/run/ is not mounted as aegisfs. Applauncher notices this and forces a shutdown on all applications it handles. (Thanks for Eztran for figuring this out)

The fix is to compile libapplauncherd.so with debug flags so that it only notes the need to relaunch apps without actually doing so.
  • Download the replacement libapplauncherd.so
  • verify the md5sum of the downloaded file (should be 238b47681749eb2bf78a819ac6bb42f7)
  • rename your existing lib to backup
  • copy the new library on it's place
  • reboot and you're done


~ $
~ $ devel-su
Password:

BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ #
~ # wget http://www.swagman.org/juice/libapplauncherd.so
--08:33:55-- http://www.swagman.org/juice/libapplauncherd.so
=> `libapplauncherd.so'
Resolving www.swagman.org... 77.86.213.15
Connecting to www.swagman.org|77.86.213.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 788,345 (770K) [application/octet-stream]

100%[================================================== =================>] 788,345 1.79M/s

08:33:55 (1.79 MB/s) - `libapplauncherd.so' saved [788345/788345]

~ #
~ #
~ # md5sum libapplauncherd.so
238b47681749eb2bf78a819ac6bb42f7 libapplauncherd.so
~ #
~ #
~ # cp /usr/lib/applauncherd/libapplauncherd.so /usr/lib/applauncherd/libapplauncherd.so.backup
~ # cp libapplauncherd.so /usr/lib/applauncherd/libapplauncherd.so
~ #
 

The Following 32 Users Say Thank You to juiceme For This Useful Post:
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#2
Fixed, thanks!
__________________
The Glorious Lady T.Mavica
Twitter https://twitter.com/TMavica
 

The Following User Says Thank You to TMavica For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
BIG hint from my side:
do not rename the file as original.so.something, but change the part before the '.so' ending.
Not sure if Harmattan acts the same way, but I had big troubles under Fremantle having two versions of a lib with name 'original.so' and 'original.so.bkp' or 'original.so_bkp'. After naming it to 'original_so.bkp' everything was okay.
Again: maybe above is okay, but I will not forget this anymore (happened twice to me ).
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#4
Wow, nice work, now OpenMode is ideal.
 

The Following User Says Thank You to Ancelad For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#5
@Ancelad no. last problem is devicelock
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#6
Originally Posted by coderus View Post
@Ancelad no. last problem is devicelock
True. What I'd say is ideal if it was possible to sign our kernels correctly or if there was a relatively easy way to bypass the signature verification in NOLO.

Now there's a worthy project to start hacking on
 

The Following 2 Users Say Thank You to juiceme For This Useful Post:
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#7
Originally Posted by coderus View Post
@Ancelad no. last problem is devicelock
It isn't problem for me I didn't use it even with stock-kernel.
 

The Following User Says Thank You to Ancelad For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#8
well, Jonni suggesting remake devicelock to use other memory region, not CAL
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#9
Originally Posted by coderus View Post
well, Jonni suggesting remake devicelock to use other memory region, not CAL
Be my guest :P
http://harmattan-dev.nokia.com/docs/...celock_8h.html
 

The Following User Says Thank You to For This Useful Post:
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#10
Originally Posted by juiceme View Post
True. What I'd say is ideal if it was possible to sign our kernels correctly or if there was a relatively easy way to bypass the signature verification in NOLO.

Now there's a worthy project to start hacking on
Now that's a paper moon :P

I was thinking more on the lines of inserting self-verifying routines into the Ubiboot kernel and userland - after building, portions of the binary are hashed and the hashes stored statically in the kernel (/proc/config.gz or early_param style?)

The entire mmcblk0 could be encrypted with dm-crypt, storing a signed ramdisk (the new /sbin/preinit) that asks for password with sillykbd - a 4-8 digit code can be salted and used as a key

The OMAP AES hardware should help with the speed impact this would entail. It also wouldn't provide device lock security, but a userland daemon with kernel helper could ask for a password every, 24h (user-configurable) or so, and shut down the device if the proper key isn't entered.

This would have the benefit of remaining mostly-transparent to Harmattan, actually even Nemo and other OSes.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:53.