Customizing Pre-setup of GTVS fails to overwrite original Pre-setup UI after Android P

504 views
Skip to first unread message

Rex Wang

unread,
Nov 28, 2018, 10:15:32 AM11/28/18
to android-porting
Hi there,

I tried to replace the Pre-setup UI as shown in the attached image, which is used for pairing bluetooth remote control, with our apk. Our apk does appear before the original Pre-setup UI, but after our apk finish it task, the original Pre-setup UI still appears. This is not what we want. How can we prevent the original Pre-setup UI appearing?

We have followed the following 2 Google's rule:

(1) Defining "<action android:name="com.android.setupwizard.action.HOOK_BEGIN" />" in MainActivity.java in our apk
(2) Ending our program with "setResult(Activity.RESULT_OK)".

Best regards,
Rex
M3.jpg

Sooraj Sizon

unread,
Nov 29, 2018, 5:19:23 PM11/29/18
to android-porting
There is an finishsetup() function in AOSP Setup wizard you may run this function on onCreate of SetupWizqrd , this would help you finish / skip the setup process and set default luncher as Luncher3

Rex Wang

unread,
Nov 30, 2018, 11:00:15 AM11/30/18
to android-porting
Just adding a line of finishsetup() at the end of the onCreate fails the compiling.

Could you elaborate how I use the finishsetup()? Do I have to include anything?

Sooraj Sizon於 2018年11月30日星期五 UTC+8上午6時19分23秒寫道:

Sooraj Sizon

unread,
Dec 17, 2018, 11:58:51 AM12/17/18
to android-porting
Reply all
Reply to author
Forward
0 new messages