<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Android value</title>
    <description>The latest articles on DEV Community by Android value (@valueandroid).</description>
    <link>https://dev.to/valueandroid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F397384%2F944768be-5a43-4808-9a9d-510cd23bc345.png</url>
      <title>DEV Community: Android value</title>
      <link>https://dev.to/valueandroid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/valueandroid"/>
    <language>en</language>
    <item>
      <title>Build Push Notification Service </title>
      <dc:creator>Android value</dc:creator>
      <pubDate>Mon, 01 Jun 2020 05:05:43 +0000</pubDate>
      <link>https://dev.to/valueandroid/build-push-notification-service-124h</link>
      <guid>https://dev.to/valueandroid/build-push-notification-service-124h</guid>
      <description>&lt;p&gt;If you are going to use this for your own application, then I recommend building your own API interface with the APNS server. The component would be as follows.&lt;/p&gt;

&lt;p&gt;1.Your phone.&lt;br&gt;
2.Your server.&lt;br&gt;
3.Apple Push Notification Service (APNS)&lt;/p&gt;

&lt;p&gt;First you need the iOS application to register for receiving push notifications. Then as per the documentations, create the .p12 file and then convert it into the PEM file. After that part has been complete, you have to build your own interface with the APNS server. &lt;/p&gt;

&lt;p&gt;Apple have now released their enhanced notification system, which you can use to now track individual notifications that is being sent out from your server. The forensic breakdown of the APNS interface in PHP would be like follows.&lt;/p&gt;

&lt;p&gt;First you need to build the payload with the following anatomy.&lt;/p&gt;

&lt;p&gt;$payload='{&lt;/p&gt;

&lt;p&gt;"aps": {&lt;/p&gt;

&lt;p&gt;"alert":{&lt;/p&gt;

&lt;p&gt;"title": "'.$notif_desc.'",&lt;/p&gt;

&lt;p&gt;"body":"'.$notif_title.'" },&lt;/p&gt;

&lt;p&gt;"badge":"'.$badge.'",&lt;/p&gt;

&lt;p&gt;"priority":"'.$priority.'",&lt;/p&gt;

&lt;p&gt;"sound": "default"&lt;/p&gt;

&lt;p&gt;},&lt;/p&gt;

&lt;p&gt;"type": "notification",&lt;/p&gt;

&lt;p&gt;"id":"'.$lastid.'",&lt;/p&gt;

&lt;p&gt;"date":"'.$date1.'"&lt;/p&gt;

&lt;p&gt;}';&lt;/p&gt;

&lt;p&gt;//The aps tagname in JSON is mandatory.&lt;/p&gt;

&lt;p&gt;//set connection parameters.&lt;/p&gt;

&lt;p&gt;$ctx = stream_context_create();&lt;/p&gt;

&lt;p&gt;stream_context_set_option($ctx, 'ssl', 'local_cert', 'pushcert.pem');&lt;/p&gt;

&lt;p&gt;stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);&lt;/p&gt;

&lt;p&gt;// Open a connection to the APNS server&lt;/p&gt;

&lt;p&gt;$fp = stream_socket_client(&lt;/p&gt;

&lt;p&gt;'', $err,&lt;/p&gt;

&lt;p&gt;$errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);&lt;/p&gt;

&lt;p&gt;stream_set_blocking ($fp, 0);&lt;/p&gt;

&lt;p&gt;if (!$fp)&lt;/p&gt;

&lt;p&gt;{&lt;/p&gt;

&lt;p&gt;exit("Failed to connect: $err $errstr" . PHP_EOL); }&lt;/p&gt;

&lt;p&gt;else{&lt;/p&gt;

&lt;p&gt;//echo $fp;&lt;/p&gt;

&lt;p&gt;echo 'Connected to APNS' . PHP_EOL;&lt;/p&gt;

&lt;p&gt;$apple_expiry = time() + (90 * 24 * 60 * 60);&lt;/p&gt;

&lt;p&gt;Now call the APNS server inside a loop, which iterates through all the values in the device token array.&lt;/p&gt;

&lt;p&gt;// Loop start&lt;/p&gt;

&lt;p&gt;$msg = pack("C", 1) . pack("N", $apple_identifier) . pack("N", $apple_expiry) . pack("n", 32) . pack('H*', str_replace(' ', '', $deviceToken)) . pack("n", strlen($payload)) . $payload;&lt;/p&gt;

&lt;p&gt;// SEND PUSH&lt;/p&gt;

&lt;p&gt;$writestat=fwrite($fp, $msg);&lt;/p&gt;

&lt;p&gt;//Loop Ends&lt;/p&gt;

&lt;p&gt;This is a simple PHP server side code which I have used in my application to push to APNS server.You can use it as a reference.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Root Any Android Device Via Magisk?</title>
      <dc:creator>Android value</dc:creator>
      <pubDate>Sun, 31 May 2020 19:23:23 +0000</pubDate>
      <link>https://dev.to/valueandroid/how-to-root-any-android-device-via-magisk-50nh</link>
      <guid>https://dev.to/valueandroid/how-to-root-any-android-device-via-magisk-50nh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Magisk!&lt;/strong&gt;  It is the most trusted name in &lt;span&gt;&lt;a href="https://safeboxguide.com/root-android/"&gt;&lt;strong&gt;Root&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt; industry. Every root user know about Magisk. This application contain some unbelievable features which we discuss below.&lt;/p&gt;

&lt;h3&gt;&lt;strong&gt;Why Only Magisk&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;I'm guiding you with an example. As a root user you know that you can't use any banking application once you root your Samsung device. But what!  If you want to send money from anyone. So here's the Magisk come with proper solution. By using magisk you can use banking application without facing any security problem.&lt;/p&gt;

&lt;p&gt;Magisk allow this feature to hide your system root from your banking app. As a result all banking application run easily.&lt;/p&gt;

&lt;h4&gt;&lt;strong&gt;Steps To Root Any Android Device &lt;/strong&gt;&lt;/h4&gt;

&lt;ul&gt;
    &lt;li&gt;Download the &lt;span&gt;&lt;a href="https://magiskmanager.com/"&gt;&lt;strong&gt;Magisk.zip file&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt; on Your Android Device &lt;/li&gt;
    &lt;li&gt;Now Boot your Device on recovery mode by pressing &lt;strong&gt;Volume Down + Power Button&lt;/strong&gt;
&lt;/li&gt;
    &lt;li&gt;Next, Tap On &lt;strong&gt;install&lt;/strong&gt; and select the downloaded &lt;strong&gt;Magisk.zip file&lt;/strong&gt;
&lt;/li&gt;
    &lt;li&gt;Tap on to &lt;strong&gt;confirm Flash&lt;/strong&gt;
&lt;/li&gt;
    &lt;li&gt;The flashing process is done within a couple of seconds&lt;/li&gt;
    &lt;li&gt;Now &lt;strong&gt;Reboot your device&lt;/strong&gt;
&lt;/li&gt;
    &lt;li&gt;Congratulations! Now you have successfully Root your Android device using magisk zip file. Believe me there is no better alternate app present on the web. Magisk is leading now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading this post. Let me know if you have doubt regarding Root or using magisk.&lt;br&gt;
Source - Safeboxguide.com&lt;/p&gt;

</description>
      <category>root</category>
    </item>
    <item>
      <title>About Android Security</title>
      <dc:creator>Android value</dc:creator>
      <pubDate>Thu, 28 May 2020 18:30:27 +0000</pubDate>
      <link>https://dev.to/valueandroid/about-android-security-2n3p</link>
      <guid>https://dev.to/valueandroid/about-android-security-2n3p</guid>
      <description>&lt;p&gt;Secure an Android Device &lt;/p&gt;

&lt;p&gt;Android consolidates industry-driving security highlights and works with engineers and gadget implementers to protect the Android stage and biological system. A strong security model is basic to empower a fiery biological system of applications and gadgets based close by the Android stage and upheld by cloud administrations. Thus, through its whole improvement lifecycle, Android has been dependent upon a thorough security program. &lt;/p&gt;

&lt;p&gt;Android is intended to be open. Android applications utilize propelled equipment and programming, just as nearby and served information, uncovered through the stage to carry development and incentive to shoppers. To understand that esteem, the stage offers an application domain that ensures the secrecy, respectability, and accessibility of clients, information, applications, the gadget, and the system. &lt;/p&gt;

&lt;p&gt;Making sure about an open stage requires a solid security design and thorough security programs. Android was planned with multilayered security that is adaptable enough to help an open stage while as yet ensuring all clients of the stage. For data about detailing security issues and the update procedure, see Security Updates and Resources. &lt;/p&gt;

&lt;p&gt;Android is intended for engineers. Security controls were intended to lessen the weight on designers. Security-sagacious engineers can without much of a stretch work with and depend on adaptable security controls. Designers less acquainted with security are ensured by safe defaults. &lt;/p&gt;

&lt;p&gt;Notwithstanding giving a steady stage to expand upon, Android gives extra help to designers in various manners. The Android security group searches for potential vulnerabilities in applications and proposes approaches to fix those issues. For gadgets with Google Play, Play Services conveys security refreshes for basic programming libraries, for example, OpenSSL, which is utilized to make sure about application correspondences. Android security discharged a device for testing SSL (nogotofail) that assists designers with discovering potential security issues on.&lt;/p&gt;

</description>
      <category>android</category>
    </item>
  </channel>
</rss>
