CL31-W (Setting up an ecosystem for an application) | Thales IoT Developer Community
December 20, 2021 - 11:10am, 3277 views
Hi
1. How to install your application in startup?
2. How to disable Android sleep?
3. How can I prohibit closing my application?
Hello,
I'm sorry for the delayed answer. I'm not familiar with applications development for this product and due to the Christmas time some of our experts are not available.
Here is the information I gathered:
In general: The Android part on CL31-W behaves like a regular Android AOSP. So the app specific settings and development is the same as for a default Android.
You can check here:https://developer.android.com/ reference/android/Manifest. permission#RECEIVE_BOOT_ COMPLETED
https://support.google.com/ android/answer/9455138?hl=en
I hope that it will be helpful.
Best regards,
Bartłomiej
1. How do I install your app in startup? In Android 10, autorun methods don't work (you can check here: https:// developer.android.com / link / android/manifest.permission). There are no attached security settings menus. As a result, the problem remained.
2. How to disable Android sleep? In addition, the method you suggested does not work.
3. How can I forbid closing my application? It works through the settings settings of the "On-Screen Application".
Hello,
I got some more information regarding your questions:
1. You can find attached an example class of a BroadcastReceiver from an app which receives the intent of boot complete. After the intent is received customer specific actions could be started. Corresponding manifest is also attached.
2. When this attribute is added to the activity layout XML file the screen stays on all the time
android:keepScreenOn="true"
Could you please describe what exactly you want to achieve or what is not working?
BR,
Bartłomiej
I am trying to use this Android module in motor transport as an on-board computer. The task of the computer is to display navigation, record video from the rear and front cameras. A lot has been done, it remains to prepare the operating system, disable sleep ****, automatic power-on when power is applied, autorun of the specified application.
I downloaded from Google Market a dozen applications that perform autorun of the application when the operating system starts, but nothing works in Android 10.
There are still 3 open questions:
1. Turning on the module when power is applied
2. Autorun the application
3. Prohibition of closing the application
Maybe I need to get root rights and configure Android? If so, is there a description of getting root?
Hello,
Was my last post any helpful regarding autostart and no closing?
Unfortunately I'm only a proxy in this discussion. I'll ask an expert?
BR,
Bartłomiej
Yes, please ask an expert. Namely: 1. How to get root rights on Android. 2. How do I get Android to boot when I turn on the power without a button?
Can you give me the developers' email? my email: yarockiisergei@mail.ru
Hello,
As for the root rights it depends on the build type of Android but assuming it is an eng or userdebug build root rights can be enabled with
$ adb root
or in a shell
$ su
The open point about power on we need to with HW.
The auto run methods are sometimes specific to the Android version, so an app from playstore may work with one Android but not with all. Which apps have you tried?
So do you develop your own app or are you using an existing one? Would it be possible to modify the app to enable auto run, like mentioned in the previous comments?
Do you have access to our Thales Android SDK to build a customer specific Android?
BR,
Bartłomiej
Hello,
Please also see this for the automatic boot on power connect:
https://www.titanwolf.org/Network/q/cb6980f4-7385-4116-afff-96b64700bd55/x
For Mediatek the kpoc_charger (in /system/bin) file may be suitable. But this is not tested by us and usage is own risk.
BR,
Bartłomiej
Pages