Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8e24312
Move Pwnix provisioning process into the setup wizard
dallaswinger Sep 2, 2016
ec8cb8a
actually include files in commit
dallaswinger Sep 2, 2016
d674483
remove start provision broadcast from setupwizard finish
dallaswinger Sep 2, 2016
89fd61f
remove old stubbed out code
dallaswinger Sep 2, 2016
fb780d8
wakeful broadcast receiver to avoid missing stage advancing broadcast…
dallaswinger Sep 2, 2016
e8957bc
undo last commit + slight revision
dallaswinger Sep 2, 2016
e2d8665
about that life (cycle)
dallaswinger Sep 3, 2016
b7d8ac7
update reference to fragment when registering
dallaswinger Sep 7, 2016
bbe31ec
place Pwnix install page directly after network pages
dallaswinger Sep 7, 2016
79953b4
change connection error alert message if network is missing
dallaswinger Sep 7, 2016
e09d13f
Persist installed state + redundant UI checks/updates cleanup
dallaswinger Sep 7, 2016
c7526f5
require networking not wifi specifically - needs testing to verify
dallaswinger Sep 8, 2016
e298608
Change 'button' and icon to start
dallaswinger Sep 8, 2016
4f0e48d
refactor broadcasts
dallaswinger Sep 20, 2016
5733a7d
cleanup & add wifi alert
dallaswinger Sep 22, 2016
5e179aa
android padding: where java =/= xml & your ocd doesn't matter
dallaswinger Sep 22, 2016
339a9fa
rewrote reciever to match pwnixinstaller and generally suck less. als…
dallaswinger Sep 22, 2016
11440d8
add in alert for wifi error
dallaswinger Sep 22, 2016
8c32fc9
probably literally a space
dallaswinger Sep 22, 2016
b2ca9b4
change launch button & done message
dallaswinger Oct 24, 2016
f01fc02
give that done message some padding
dallaswinger Oct 24, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added res/drawable-hdpi/ic_check_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_system_update_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_check_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_system_update_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_check_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_system_update_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_check_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_system_update_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxxhdpi/ic_check_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxxhdpi/ic_system_update_black_24dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions res/drawable/button_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape>
<corners android:radius="4dp" />
<solid android:color="#c7c7c7" />
</shape>
</item>

<item android:bottom="1dp"
android:right="1dp"
android:left="1dp">
<shape>
<gradient android:angle="270"
android:endColor="#41555f" android:startColor="#7b97a5" />
<corners android:radius="4dp" />
<padding android:bottom="8dp" android:left="8dp"
android:right="8dp" android:top="8dp" />
</shape>
</item>
</layer-list>
</item>
<!--#7b97a5-
#d5d6d6
-->
</selector>
Binary file added res/drawable/ic_phone_install_pwnix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
439 changes: 439 additions & 0 deletions res/layout/setup_pwnix_services.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
<color name="header_condensed_bg">@color/primary_dark</color>
<color name="button_bar_background">#e4e7e8</color>
<color name="fingerprint_setup_text_color">#356bc4</color>
<color name="done">#bebebe</color>
</resources>
33 changes: 33 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,39 @@

<string name="emergency_call">Emergency call</string>

<string name="step1future">Download Pwnix environment</string>
<string name="step1present">Downloading environment&#8230;</string>
<string name="step1past">Downloaded Pwnix environment</string>

<string name="step2future">Verify bundle</string>
<string name="step2present">Verifying bundle&#8230;</string>
<string name="step2error">Bundle verification failed. Re-downloading</string>
<string name="step2past">Environment bundle valid</string>

<string name="step3future">Install Pwnix</string>
<string name="step3present">Installing Pwnix&#8230;</string>
<string name="step3past">Pwnix environment installed</string>

<string name="step5future">Register for automatic updates</string>
<string name="step5present">Registering for updates&#8230;</string>
<string name="step5past">Automatic updates registered</string>

<string name="step4future">Enable Pwnix apps</string>
<string name="step4present">Enabling Pwnix apps&#8230;</string>
<string name="step4past">Pwnix Apps enabled</string>

<string name="step6future">Set up Homescreen</string>
<string name="step6present">Setting up Homescreen&#8230;</string>
<string name="step6past">Homescreen configured</string>
<string name="wikibutton">INSTALL</string>
<string name="complete">Pwnix installation complete</string>
<string name="overallprogresslabel">Installation progress:</string>
<string name="completemessage">Pwnix Installation Complete</string>
<string name="installmessage">Install Pwnix</string>

<string name="pwnix_environment_setup">Pwnix environment setup</string>
<string name="pwnix_environment_blurb">The next step in getting your device ready to pwn is setting up the Pwnix Environment. The download and installation process is fully automated. Please connect the device to a power source. This is a complex process, thank you for your patience.</string>

<string name="setup_services">Cyanogen features</string>
<string name="services_explanation" product="tablet">These services work for you to extend the capabilities of your tablet. Data will be used in accordance with Cyanogen\'s <xliff:g id="name" example="Privacy Policy">%s</xliff:g>.</string>
<string name="services_explanation" product="default">These services work for you to extend the capabilities of your phone. Data will be used in accordance with Cyanogen\'s <xliff:g id="name" example="Privacy Policy">%s</xliff:g>.</string>
Expand Down
2 changes: 2 additions & 0 deletions src/com/cyanogenmod/setupwizard/SetupWizardApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class SetupWizardApp extends Application {

public static final String EXTRA_FIRST_RUN = "firstRun";
public static final String EXTRA_ALLOW_SKIP = "allowSkip";
public static final String EXTRA_IS_WIFI_REQUIRED = "is_wifi_required";
public static final String EXTRA_IS_NETWORK_REQUIRED = "is_network_required";
public static final String EXTRA_AUTO_FINISH = "wifi_auto_finish_on_connect";
public static final String EXTRA_SHOW_BUTTON_BAR = "extra_prefs_show_button_bar";
public static final String EXTRA_USE_IMMERSIVE = "useImmersiveMode";
Expand Down
3 changes: 3 additions & 0 deletions src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ protected PageList onNewPageList() {
if (SetupWizardUtils.hasGMS(mContext)) {
pages.add(new GmsAccountPage(mContext, this).setHidden(true));
}

pages.add(new PwnixSettingsPage(mContext, this));

if (!SetupWizardUtils.hasLeanback(mContext) &&
SetupWizardUtils.isPackageInstalled(mContext,
mContext.getString(R.string.cm_account_package_name))) {
Expand Down
Loading