Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Add advanced power menu: Screen capture/record and Reboot options
Browse files Browse the repository at this point in the history
  • Loading branch information
wanam committed Mar 29, 2016
1 parent 6b172be commit c3d98eb
Show file tree
Hide file tree
Showing 38 changed files with 1,430 additions and 15 deletions.
8 changes: 8 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
android:label="@string/rebooting_"
android:theme="@android:style/Theme.DeviceDefault.Dialog" >
</activity>

<service
android:name="ma.wanam.xtouchwiz.services.ScreenRecordingService"
android:exported="false" >
<intent-filter>
<action android:name="xtouchwiz.intent.action.RECORDING_START" />
</intent-filter>
</service>
</application>

</manifest>
Binary file added libs/android-support-v4.jar
Binary file not shown.
Binary file added res/drawable-hdpi/ic_lock_reboot.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_lock_reboot_bootloader.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_lock_recovery.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_lock_screen_record.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_media_stop.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_screenshot.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_sysbar_camera.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_lock_reboot.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_lock_reboot_bootloader.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_lock_recovery.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_lock_screen_record.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_media_stop.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_screenshot.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_sysbar_camera.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_lock_reboot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_lock_recovery.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_lock_screen_record.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_media_stop.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_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,24 @@
<string name="semi_transparent_volume_panel">Semi-transparent volume panel</string>
<string name="reduce_volume_panel_opacity">Reduce volume panel opacity while changing sound volume</string>

<string name="reboot_confirm">Your device will reboot.</string>
<string name="reboot_confirm_recovery">Your device will reboot into recovery.</string>
<string name="reboot_confirm_bootloader">Your device will reboot into bootloader.</string>
<string name="action_screenrecord">Screen record</string>
<string name="screenshot">Screenshot</string>
<string name="screenrecord_notif_ticker">Screen is being recorded</string>
<string name="screenrecord_notif_title">Recording screen</string>
<string name="screenrecord_notif_stop">Stop</string>
<string name="screenrecord_toast_error">Unable to record screen</string>
<string name="screenrecord_toast_processing">Cannot start new recording as previous recording is still being processed</string>
<string name="screenrecord_toast_saved">Recording saved as %s</string>
<string name="screenrecord_toast_save_error">Unable to save recording to output file</string>
<string name="reboot_confirmation">Reboot confirmation</string>
<string name="reboot_requires_confirmation">Reboot requires confirmation</string>
<string name="add_screenshot_to_power_menu">Add Screenshot to power menu</string>
<string name="screen_record">Screen Record</string>
<string name="add_screen_record_to_power_menu">Add Screen Record to power menu (Make sure expanded notifications feature is enabled and Busybox installed!)</string>
<string name="enable4wayreboot">Enable advanced power menu</string>
<string name="advanced_power_menu">Power menu</string>

</resources>
26 changes: 26 additions & 0 deletions res/xml/wanam_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,32 @@
android:icon="@drawable/system"
android:key="systemKey"
android:title="@string/system" >
<PreferenceCategory
android:key="powerMenuKey"
android:title="@string/advanced_power_menu" >
<CheckBoxPreference
android:defaultValue="false"
android:key="enable4WayReboot"
android:summary="@string/enable4wayreboot"
android:title="@string/enable4wayreboot" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="enable4WayReboot"
android:key="mRebootConfirmRequired"
android:summary="@string/reboot_requires_confirmation"
android:title="@string/reboot_confirmation" />
<CheckBoxPreference
android:defaultValue="false"
android:key="mScreenshot"
android:summary="@string/add_screenshot_to_power_menu"
android:title="@string/screenshot" />
<CheckBoxPreference
android:defaultValue="false"
android:dependency="expandNotifications"
android:key="mScreenrecord"
android:summary="@string/add_screen_record_to_power_menu"
android:title="@string/screen_record" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/system" >
<CheckBoxPreference
android:defaultValue="false"
Expand Down
Loading

0 comments on commit c3d98eb

Please sign in to comment.