<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by KEERTHIVASAN S on Medium]]></title>
        <description><![CDATA[Stories by KEERTHIVASAN S on Medium]]></description>
        <link>https://medium.com/@keerthii?source=rss-df9842ea19e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XZycCQDWKJjd_DHgzAWWXQ.jpeg</url>
            <title>Stories by KEERTHIVASAN S on Medium</title>
            <link>https://medium.com/@keerthii?source=rss-df9842ea19e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:21:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keerthii/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Missed the Original Keystore in a Sea of Files? Recover Like a Pro ]]></title>
            <link>https://medium.com/@keerthii/missed-the-original-keystore-in-a-sea-of-files-recover-like-a-pro-b4da9d8928d4?source=rss-df9842ea19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4da9d8928d4</guid>
            <category><![CDATA[android-keystore]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[KEERTHIVASAN S]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 12:16:02 GMT</pubDate>
            <atom:updated>2026-03-16T12:16:02.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgsjDTJcjjwx4bOkRBi2RA.png" /></figure><h3>🚨 The Dreaded Error</h3><p>Imagine this: an Android app update is ready to ship. The APK builds fine, but when uploading to Google Play, an error appears:</p><blockquote><strong><em>Package appears to be invalid</em></strong></blockquote><p>This usually means the app is <strong>not signed with the original keystore</strong>. Since Google Play enforces the same signing key for all future updates, a missing keystore can block the entire release pipeline.</p><h3>✅ Checklist Before Recovery</h3><p>Before attempting recovery, make sure the following three things are available.<br> Without any one of them, recovery will not be possible:</p><ol><li><strong>Previous release APK (or AAB)</strong> → to extract the original fingerprints.</li><li><strong>Access to an old, uncleared development machine</strong> → the keystore file may still be there.</li><li><strong>Correct keystore password</strong> → even if the file is found, it’s useless without the right password.</li></ol><p>If any of these are missing, progress will be stuck.</p><h3>🧩 Why Keystores Matter</h3><ul><li>Every Android release build is signed with a <strong>private key</strong> inside a keystore (.jks, .keystore, .p12, etc.).</li><li>Google Play checks the app’s <strong>SHA-1 and SHA-256 fingerprint</strong> from this key.</li><li>If a new build doesn’t match → update rejected.</li></ul><p>In short: <strong>lose the keystore = lose update rights.</strong></p><h3>🔍 Step 1: Extract the Old Fingerprint</h3><p>If the previously released APK is available, fingerprints can be extracted using apksigner:</p><pre>apksigner verify --print-certs your-app.apk</pre><p>This command prints details like:</p><ul><li><strong>SHA-1 fingerprint</strong></li><li><strong>SHA-256 fingerprint</strong></li></ul><p>These values become the reference for finding the original keystore.</p><h3>🕵️ Step 2: Searching Through Keystores</h3><p>Old development machines often contain multiple keystores:</p><ul><li>From older projects</li><li>Test builds</li><li>Different apps</li></ul><p>Manually opening each file with keytool is time-consuming. Automating this process is faster and less error-prone.</p><h3>💻 Step 3: Automate with a Python Script</h3><p>Here’s a Python tool that scans directories, identifies keystores, extracts their fingerprints, and compares them with the target SHA-1 and SHA-256 values:</p><pre>#!/usr/bin/env python3<br>&quot;&quot;&quot;<br>Keystore SHA Scanner<br>Scans filesystem for keystore files and compares their SHA fingerprints<br>&quot;&quot;&quot;<br><br>import os, subprocess, argparse<br>from pathlib import Path<br><br>class KeystoreScanner:<br>    def __init__(self, target_sha1=None, target_sha256=None, password=&quot;android&quot;):<br>        self.target_sha1 = target_sha1.lower() if target_sha1 else None<br>        self.target_sha256 = target_sha256.lower() if target_sha256 else None<br>        self.password = password<br>        self.keystore_extensions = {&#39;.jks&#39;, &#39;.keystore&#39;, &#39;.p12&#39;, &#39;.pfx&#39;, &#39;.bks&#39;}<br><br>    def is_keystore_file(self, filepath):<br>        return Path(filepath).suffix.lower() in self.keystore_extensions<br><br>    def list_aliases(self, keystore_path):<br>        try:<br>            cmd = [&quot;keytool&quot;, &quot;-list&quot;, &quot;-keystore&quot;, str(keystore_path),<br>                   &quot;-storepass&quot;, self.password]<br>            out = subprocess.run(cmd, capture_output=True, text=True, timeout=5)<br>            return [l.split(&quot;,&quot;)[0].strip() for l in out.stdout.splitlines()<br>                    if &quot;, &quot; in l]<br>        except: return []<br><br>    def parse_output(self, output):<br>        sha1, sha256 = None, None<br>        for line in output.splitlines():<br>            if &quot;SHA1:&quot; in line: sha1 = line.split(&quot;SHA1:&quot;)[1].replace(&quot;:&quot;,&quot;&quot;).strip().lower()<br>            if &quot;SHA256:&quot; in line: sha256 = line.split(&quot;SHA256:&quot;)[1].replace(&quot;:&quot;,&quot;&quot;).strip().lower()<br>        return {&quot;sha1&quot;: sha1, &quot;sha256&quot;: sha256}<br><br>    def get_sha(self, keystore_path, alias):<br>        cmd = [&quot;keytool&quot;,&quot;-list&quot;,&quot;-v&quot;,&quot;-keystore&quot;,str(keystore_path),<br>               &quot;-alias&quot;,alias,&quot;-storepass&quot;,self.password,&quot;-keypass&quot;,self.password]<br>        out = subprocess.run(cmd, capture_output=True, text=True, timeout=10)<br>        return self.parse_output(out.stdout) if out.returncode == 0 else None<br><br>    def check_match(self, keystore_path):<br>        for alias in self.list_aliases(keystore_path):<br>            sha = self.get_sha(keystore_path, alias)<br>            if not sha: continue<br>            if (self.target_sha1 and sha[&quot;sha1&quot;] == self.target_sha1) or \<br>               (self.target_sha256 and sha[&quot;sha256&quot;] == self.target_sha256):<br>                print(f&quot;\n🎯 MATCH FOUND!\nFile: {keystore_path}\nAlias: {alias}\n&quot;<br>                      f&quot;SHA1: {sha[&#39;sha1&#39;]}\nSHA256: {sha[&#39;sha256&#39;]}&quot;)<br>                return True<br>        return False<br><br>    def scan(self, directory):<br>        for root, dirs, files in os.walk(directory):<br>            # Ignore noisy/system dirs<br>            dirs[:] = [d for d in dirs if d not in {<br>                &quot;System&quot;,&quot;Library&quot;,&quot;Applications&quot;,&quot;node_modules&quot;,<br>                &quot;__pycache__&quot;,&quot;.git&quot;,&quot;.svn&quot;,&quot;ios&quot;,&quot;macos&quot;<br>            }]<br>            for file in files:<br>                path = os.path.join(root, file)<br>                if self.is_keystore_file(path):<br>                    print(f&quot;Checking: {path}&quot;)<br>                    self.check_match(path)<br><br>if __name__ == &quot;__main__&quot;:<br>    parser = argparse.ArgumentParser()<br>    parser.add_argument(&quot;--sha1&quot;, help=&quot;Target SHA1 fingerprint&quot;)<br>    parser.add_argument(&quot;--sha256&quot;, help=&quot;Target SHA256 fingerprint&quot;)<br>    parser.add_argument(&quot;--password&quot;, default=&quot;android&quot;, help=&quot;Keystore password&quot;)<br>    parser.add_argument(&quot;--paths&quot;, nargs=&quot;+&quot;, help=&quot;Directories to search&quot;)<br>    args = parser.parse_args()<br><br>    scanner = KeystoreScanner(args.sha1, args.sha256, args.password)<br>    for p in (args.paths or [&quot;~&quot;]):<br>        scanner.scan(os.path.expanduser(p))</pre><p>Running this script across old project folders can quickly identify the correct keystore.</p><h3>🎯 Step 4: Match Found</h3><p>Once a match appears, the correct keystore is located. With the right password, the app can be signed again and updates can proceed normally.</p><h3>📌 Key Takeaways</h3><ol><li><strong>Back up keystores</strong> in a secure password manager or vault.</li><li><strong>Document keystore usage</strong> (alias, purpose, location) — but never commit keystores to version control.</li><li><strong>Automate discovery</strong> — scripts save hours when searching multiple machines.</li><li><strong>Losing a keystore is critical</strong> — without it, updating the app is impossible.</li></ol><h3>✅ Conclusion</h3><p>Losing a keystore doesn’t always mean the end of the road. With the old APK, access to legacy machines, and the correct password, it’s possible to recover the exact keystore — even from a sea of .jks files.</p><p>So next time you’re faced with “Package appears to be invalid”, don’t panic. Recover like a pro. 🔥</p><h3>🔮 Coming Up Next</h3><p>So far, we solved the problem of <strong>“finding the right keystore”</strong> when it was lost in a sea of files.<br> But what if you <strong>have the keystore</strong> … and still can’t use it because the <strong>password is missing</strong> (e.g., forgotten key.properties entry)?</p><p>That’s a whole new challenge. In the next article, we’ll dive into:</p><ul><li>How to detect if you have the right keystore but wrong/missing password</li><li>Common mistakes developers make with key.properties</li><li>Practical strategies and tools to recover or reset access</li><li>How to prevent password loss in future keystore management</li></ul><p>👉 Stay tuned for <strong>“Keystore Locked: Recovering When You’ve Forgotten the Password”</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4da9d8928d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Injecting JavaScript in Flutter WebView — A Complete Guide ]]></title>
            <link>https://medium.com/nammaflutter/injecting-javascript-in-flutter-webview-a-complete-guide-b7a4b4286705?source=rss-df9842ea19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7a4b4286705</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[KEERTHIVASAN S]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 16:26:07 GMT</pubDate>
            <atom:updated>2025-10-01T05:55:26.917Z</atom:updated>
            <content:encoded><![CDATA[<h3>💉Injecting JavaScript in Flutter WebView — A Complete Guide 📖</h3><figure><img alt="Illustration of JS Injection in Flutter" src="https://cdn-images-1.medium.com/max/1024/1*NIgxt4O5oZ6SeeUAeQvwIw.png" /></figure><p>Flutter’s webview_flutter is powerful for embedding web content, but sometimes you need more than just loading a page.</p><p>👉 What if you want to:</p><ul><li>Capture form input values (like username or email)?</li><li>Modify DOM elements dynamically?</li><li>Add custom click listeners?</li><li>Communicate between the web page and Flutter?</li></ul><p>This is where <strong>JavaScript injection</strong> comes in.</p><p>In this guide, we’ll learn how to inject JavaScript into a WebView, capture values, and send them back to Flutter.</p><h3>📦 Adding webview_flutter</h3><p>To get started, add the package to your pubspec.yaml:</p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  webview_flutter: ^4.8.0</pre><blockquote>(Always check pub.dev for the latest version.)</blockquote><p><a href="https://pub.dev/packages/webview_flutter">webview_flutter | Flutter package</a></p><h3><strong>⚙️ Setting Up WebView</strong></h3><p>First, let’s set up a WebView with unrestricted JavaScript enabled:</p><pre>final WebViewController controller =<br>    WebViewController.fromPlatformCreationParams(params)<br>      ..setJavaScriptMode(JavaScriptMode.unrestricted)<br>      ..addJavaScriptChannel(<br>        &#39;FormChannel&#39;,<br>        onMessageReceived: (JavaScriptMessage message) {<br>          debugPrint(&quot;Captured from WebView: ${message.message}&quot;);<br>        },<br>      )<br>      ..loadRequest(Uri.parse(&quot;https://example.com/login&quot;));</pre><blockquote>Here, we’ve created a <strong>JavaScript channel</strong> (FormChannel) that acts like a “bridge” between JavaScript and Flutter.</blockquote><h3><strong>🧑‍💻 Injecting JavaScript</strong></h3><p>Now, let’s inject some JavaScript when the page finishes loading:</p><pre>Future&lt;void&gt; _injectCustomHook() async {<br>  await _controller.runJavaScript(&#39;&#39;&#39;<br>    (function() {<br>      const loginButton = document.querySelector(&#39;button[type=&quot;submit&quot;]&#39;);<br>      if (loginButton) {<br>        loginButton.addEventListener(&#39;click&#39;, function() {<br>          const input = document.getElementById(&#39;username&#39;)?.value || &#39;&#39;;<br>          FormChannel.postMessage(input);<br>        });<br>      }<br>    })();<br>  &#39;&#39;&#39;);<br>}</pre><p><strong>🔍 What this code does</strong></p><ul><li>Finds the <strong>login button</strong> inside the WebView.</li><li>Listens for the <strong>click event</strong>.</li><li>Reads the input field with ID username.</li><li>Sends it back to Flutter using the <strong>FormChannel</strong>.</li></ul><h3><strong>📥 Receiving the Data in Flutter</strong></h3><p>The data flows back into Flutter via the JavaScript channel:</p><pre>..addJavaScriptChannel(<br>  &#39;FormChannel&#39;,<br>  onMessageReceived: (JavaScriptMessage message) {<br>    debugPrint(&quot;User typed: ${message.message}&quot;);<br>    // Use the value in your app<br>  },<br>)</pre><blockquote>If the user types <strong>hello@example.com</strong> in the web form, Flutter will print the following in the console :</blockquote><pre>User typed: hello@example.com</pre><h3><strong>🚀 Why JavaScript Injection Is Powerful</strong></h3><p>With JS injection, you can:</p><ul><li>Capture input values before they are submitted.</li><li>Automatically fill forms.</li><li>Hide or restyle unwanted elements.</li><li>Add extra functionality to existing web pages.</li></ul><p><strong>Example: Hide a banner inside the WebView</strong></p><pre>await _controller.runJavaScript(&#39;&#39;&#39;<br>  document.querySelector(&#39;.ads-banner&#39;)?.style.display = &#39;none&#39;;<br>&#39;&#39;&#39;);</pre><h3>🧩 Final Reference Code</h3><p>Here’s a complete reference combining <strong>WebView setup, JavaScript injection, and data capture</strong>:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:webview_flutter/webview_flutter.dart&#39;;<br><br>class WebViewExample extends StatefulWidget {<br>  const WebViewExample({super.key});<br><br>  @override<br>  State&lt;WebViewExample&gt; createState() =&gt; _WebViewExampleState();<br>}<br><br>class _WebViewExampleState extends State&lt;WebViewExample&gt; {<br>  late final WebViewController _controller;<br><br>  @override<br>  void initState() {<br>    super.initState();<br><br>    final params = const PlatformWebViewControllerCreationParams();<br>    final controller = WebViewController.fromPlatformCreationParams(params)<br>      ..setJavaScriptMode(JavaScriptMode.unrestricted)<br>      ..setNavigationDelegate(<br>        NavigationDelegate(<br>          onPageFinished: (url) {<br>            _injectCustomHook();<br>          },<br>        ),<br>      )<br>      ..addJavaScriptChannel(<br>        &#39;FormChannel&#39;,<br>        onMessageReceived: (JavaScriptMessage message) {<br>          debugPrint(&quot;Captured from WebView: ${message.message}&quot;);<br>          ScaffoldMessenger.of(context).showSnackBar(<br>            SnackBar(content: Text(&quot;User typed: ${message.message}&quot;)),<br>          );<br>        },<br>      )<br>      ..loadRequest(Uri.parse(&quot;https://example.com/login&quot;));<br><br>    _controller = controller;<br>  }<br><br>  Future&lt;void&gt; _injectCustomHook() async {<br>    await _controller.runJavaScript(&#39;&#39;&#39;<br>      (function() {<br>        const loginButton = document.querySelector(&#39;button[type=&quot;submit&quot;]&#39;);<br>        if (loginButton) {<br>          loginButton.addEventListener(&#39;click&#39;, function() {<br>            const input = document.getElementById(&#39;username&#39;)?.value || &#39;&#39;;<br>            FormChannel.postMessage(input);<br>          });<br>        }<br>      })();<br>    &#39;&#39;&#39;);<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(title: const Text(&quot;WebView JS Injection&quot;)),<br>      body: WebViewWidget(controller: _controller),<br>    );<br>  }<br>}</pre><h3><strong>🔄 Alternatives</strong></h3><p>While <strong>webview_flutter </strong>supports basic JS injection, other packages offer more:</p><ol><li><strong>flutter_inappwebview</strong></li></ol><p><a href="https://pub.dev/packages/flutter_inappwebview">flutter_inappwebview | Flutter package</a></p><p>Advanced JS injection, network request interception, cookie management and Best choice if you need deep control of the page.</p><p>2. <strong>flutter_web_auth_2</strong></p><p><a href="https://pub.dev/packages/flutter_web_auth_2">flutter_web_auth_2 | Flutter package</a></p><p>Opens the system browser instead of injecting JS and Great for OAuth flows.</p><h3><strong>✅ Best Practices</strong></h3><ul><li>Always <strong>sanitize and validate</strong> data captured from injected JavaScript.</li><li>Test on <strong>multiple platforms</strong> (Android &amp; iOS behave slightly differently).</li><li>Avoid <strong>overusing JS injection</strong> — use it only when Flutter’s native APIs or backend APIs can’t achieve the same.</li></ul><h3>🔥<strong>Conclusion</strong></h3><p>JavaScript injection is like giving your Flutter WebView <strong>superpowers</strong>💪. Next time you embed a web page in Flutter, don’t just display it — <strong>inject your own logic </strong>and make it smarter!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7a4b4286705" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nammaflutter/injecting-javascript-in-flutter-webview-a-complete-guide-b7a4b4286705">💉Injecting JavaScript in Flutter WebView — A Complete Guide 📖</a> was originally published in <a href="https://medium.com/nammaflutter">NammaFlutter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Developer at LetsGrowMore]]></title>
            <link>https://medium.com/@keerthii/android-developer-at-letsgrowmore-e4158c041d96?source=rss-df9842ea19e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4158c041d96</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[internship-experience]]></category>
            <category><![CDATA[app-developer]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[letsgrowmore]]></category>
            <dc:creator><![CDATA[KEERTHIVASAN S]]></dc:creator>
            <pubDate>Sat, 24 Jun 2023 07:39:57 GMT</pubDate>
            <atom:updated>2023-06-24T07:39:57.315Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>In today’s digital world age, Android Development skills are in high demand due to the evolution of mobile phones. To gain a competitive edge and embark on a successful career in Android Development, I had an opportunity to get Android App Developer Internship at LetsGrowMore.</p><p>During my time as an intern, I had the opportunity to dive deep into the world of mobile app development. It was an exhilarating journey filled with learning, challenges, and personal growth. In this blog, I would like to share my remarkable experience and the valuable lessons I gained during my internship.</p><p><strong>Website Link :</strong> <a href="http://letsgrowmore.in/vip">https://letsgrowmore.in/vip</a> and <a href="http://letsgrowmore.in/">http://letsgrowmore.in/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKNvkAF6xCE5oxv1Qo8T5A.png" /><figcaption>Selection Image</figcaption></figure><ol><li><strong>The Learning Environment:</strong></li></ol><p>LetsgrowMore provided an incredibly supportive learning environment that fostered creativity and innovation. The team was always available to guide and assist, ensuring that I had access to the resources and knowledge needed to excel in my role.</p><p>2. <strong>Real-World Projects:</strong></p><p>Working on real-world projects allowed me to apply the theoretical knowledge I had gained during my studies. From conceptualizing app ideas to designing user interfaces and implementing complex functionalities, every project presented a unique set of challenges that helped me enhance my skills.</p><p>3. <strong>Professional Development:</strong></p><p>Beyond technical skills, LetsgrowMore emphasized the importance of professional development. I learned how to effectively communicate with clients, meet project deadlines, and manage my time efficiently. These skills have proven invaluable in preparing me for a successful career in the industry.</p><p>4. <strong>Recognition and Appreciation:</strong></p><p>LetsgrowMore fostered a culture of recognition and appreciation. My efforts and achievements were acknowledged, which further motivated me to push my boundaries and deliver exceptional results.</p><p><strong>Conclusion:</strong></p><p>My internship as an Android Developer at LetsgrowMore has been an incredible experience that has significantly shaped my career path. I am grateful for the opportunities, support, and knowledge I gained during this journey. It has not only enhanced my technical skills but also instilled in me a passion for continuous learning and a drive to create innovative mobile applications. I am excited to apply all that I have learned in my future endeavors and contribute to the ever-evolving world of Android development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4158c041d96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>