Re: Disable lock screen and start application just after booting Android

5,642 views
Skip to first unread message
Message has been deleted

Sukhwinder Pal

unread,
Aug 12, 2013, 11:10:16 PM8/12/13
to android...@googlegroups.com
Dear Alex,

Do I need to simply replace "user shell" with "root shell" in init.rc .............. or is there something more to be added / deleted from the script........ pl. confirm / inform ASAP.

rgds,
sp

On Wednesday, March 6, 2013 10:00:26 PM UTC+5:30, Alex wrote:
I've found a solution.
I've changed the init.rc where service console /system/bin/sh i've modified user and group to root !

Le mercredi 6 mars 2013 09:50:45 UTC+1, Alex a écrit :
Thank you very much, it works great !!! :)

But I have another problem, when i'm connecting to my board, i'm not ROOT on the android shell, there is a way to have root rights ?


Le mardi 26 février 2013 20:01:11 UTC+1, Zoltan Kuscsik a écrit :
Hi,

you can set your application category to HOME and replace the default Launcher.
 To disable the lock screen you will need to toggle the Settings.System.LOCKSCREEN_DISABLED value in the settings database.
You can achieve this by:

1. hacking the DatabaseHelper.java in framework/base/...
2. edit the settings.db on the device in data/data/com.android.providers.settings/databases
3. Create a java app at the launches with a system permission at the first start and changes the
default settings for the lock screen.

1.-2. can be a quick dirty-hack but number 3 is strongly advised ;)

Z

On Friday, February 22, 2013 12:09:25 PM UTC+1, Alexandre Pari wrote:
Hi,

I'm working on porting Android on a board and I want to modifiy the "booting sequence".
In facts I want to disable/remove the lock screen when Android is finished to boot and I want to start an application automatically.

I don't find in frameworks/base/services/... where I have to modify the code to starting on application directly without the lock screen ?

More if I want that the screen never locked, I read that I have to modify the timeout but in which file, IPowerManager.cpp ?

Thank you !

Pratik Rathod

unread,
Aug 22, 2013, 12:51:29 PM8/22/13
to android...@googlegroups.com
You need to replace "user shell" with "user root". take a look on Android's init language.

-Pratik

Pratik Rathod

unread,
Aug 22, 2013, 12:57:54 PM8/22/13
to android...@googlegroups.com
Hi Alex,

Hacking the database or starting application with permissions is not a good way.
You can boot with unlocked screen by changing in AOSP in file.
You can take reference of this link for required changes http://www.omappedia.com/wiki/Android_How-tos#Booting_with_Unlocked_Screen

Moreover, To start your application You can remove the default Launcher application from APK and put you application to HOME application. So system will start your application directly.

-Pratik

Sukhwinder Pal

unread,
Aug 22, 2013, 10:48:56 PM8/22/13
to rathod....@gmail.com, android...@googlegroups.com
Thanks to all for the useful information & inputs. Thanks a lot!!
rgds,
Sukhwinder


--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to a topic in the Google Groups "android-porting" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-porting/3vm49rZ-1U4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Daniel Lukashevich

unread,
Jan 3, 2014, 2:12:00 PM1/3/14
to android...@googlegroups.com

I think it is enough to update the following value in SettingsProvider: 

<bool name="def_lockscreen_disabled">false</bool>

in frameworks/base/packages/SettingsProvider/res/values/defaults.xml

Regards,
Dan

пятница, 22 февраля 2013 г., 14:09:25 UTC+3 пользователь Alex написал:
Reply all
Reply to author
Forward
0 new messages