#ADB Android
Explore tagged Tumblr posts
techniktagebuch · 1 year ago
Text
17. April 2024
Worin ich ein Handy repariere, verschiedene Dinge lerne und das Haus nicht anzünde
Anfang Januar ließ sich Aleks' Handy nicht mehr einschalten. Er war gerade in irgendeiner entlegenen schottischen Gegend, hatte aber das 2022 gekaufte Chromebook dabei und außerdem WLAN, so dass er mir das Problem mitteilen konnte. Ich habe zuerst erfolglos versucht, ihn von Deutschland aus zur Gehäuseöffnung anzuleiten, und ihm dann ein neues bestellt, was er wegen 2-Faktor-Authentisierung nicht selbst machen konnte.
Weil ich mein letztes Handy so oft auf- und wieder zugemacht habe, bin ich überzeugt, dass sich bestimmt alles reparieren lässt, und zwar von mir. Als ich einige Wochen später selbst in Schottland ankomme, sehe ich nach, ob es den von Aleks beschuldigten Einschaltknopf des Handys als Ersatzteil zu kaufen gibt, und es gibt ihn. Ich bestelle mir zum zweiten Mal ein Handyöffnungsbesteck, aber diesmal nicht mehr das riesige, von dem ich 98% bisher nicht gebraucht habe und das wegen seiner Nichtmitnehmbarkeit jetzt nutzlos in Berlin liegt, sondern eins zum Immerdabeihaben, also nur einen ganz kleinen Schraubenziehergriff mit magnetischen Bits für die gängigen Handyschrauben.
Als der angekommen ist, öffne ich die Handyrückseite mit dem neuen Heizungstoaster und meinem Küchenmesser, schraube alles raus und stelle fest: Die Hardwareknöpfe des Moto G7 Power, also der Einschaltknopf und die Lautstärkeregler, sind unaustauschbar mit dem Chassis verschweißt, man kommt nicht dran. Wozu es die Ersatzteile zu kaufen gibt: keine Ahnung. Eine Aus- oder Einbauanleitung gibt es nirgendwo im Internet.
Kurz bevor ich das gemerkt habe, habe ich außerdem herausgefunden, warum in allen Anleitungen steht, dass man den im Handy eingeklebten Akku zum Beispiel mit einer Kreditkarte vorsichtig heraushebeln soll. Ich habe es mit meiner abgelaufenen Bahncard versucht, aber für die vorletzte festsitzende Ecke aus Ungeduld einen von den neuen spitzen Schraubenziehern verwendet und dabei ein winziges Loch in den Akku gemacht. Es hat geraucht und gefunkt, ich habe "uh-oh" gesagt, das Handy zur Haustür getragen und dort schnell den Akku ganz herausgerupft, wobei ich Gelegenheit hatte, endlich mal "thermal runaway" zu sagen. Dann kam der Akku in ein Metallgefäß im Garten, wo enttäuschenderweise nichts weiter geschah.
Kurz danach lerne ich (bei ifixit.com), dass man einen einmal ausgebauten Handyakku gar nicht wieder einkleben soll, wie ich es beim eigenen Handy viele Male getan habe. Man soll einen neuen bestellen. Diesmal bleibt mir nichts anderes übrig.
Im April kommt der neue Akku und ich baue ihn ein. Das Handy geht immer noch nicht, weil es ja nicht am Akku lag, sondern am Einschaltknopf. Aber manchmal hilft geduldiges Wackeln an allen Teilen. Ich wackle geduldig an allen Teilen, drücke oft und lange in verschiedenen Kombinationen die Hardwareknöpfe und stecke verschiedene Kabel in die Ladebuchse, die, wie sich dabei herausstellt, ebenfalls einen Wackelkontakt hat. Irgendwann geht das Handy wieder an. Zuerst nur die Ladeanzeige, etwas später startet es dann.
Jetzt kann ich die App "TestM" installieren und damit die Hardwareelemente des Handys einzeln testen. Sie bestätigt, dass der Einschaltknopf defekt ist.
Ich lese nach, ob man ohne Einschaltknopf leben kann. Für alle Funktionen – Ausschalten, Screenshot, Neustart, Aufwecken – gibt es Workarounds. Nur für eine nicht: das Einschalten.
Update: Molinarius weist mich nach der Veröffentlichung dieses Beitrags auf von mir ungefundene Anleitungen und Erfahrungsberichte hin, denen zufolge man manche Android-Handys ohne Einschaltknopf starten kann. Dazu soll man entweder den Akku aus- und wieder einbauen, was ich zufällig getan habe, oder das Ladekabel einstecken und dann – oder vielleicht auch gleichzeitig – eine Lautstärketaste drücken, was ich zufällig auch getan habe.
Weiteres Update: Nachdem mir ein paar Tage später beim Einbau des Ladebuchsen-Ersatzteils das Handy wieder ausgeht, probiere ich diese Methoden und noch ein paar andere durch und habe mit keiner davon Erfolg. Aber während das Handy noch an war, hatte ich es für alle Fälle schon mal in den Developer Mode versetzt. (Wer ein Android-Handy hat und das noch nicht getan hat, sollte es jetzt gleich tun – es ist extrem einfach, schadet nichts* und nützt manchmal). Deshalb kann ich jetzt dieser Anleitung folgen und auf meinem Laptop ADB ("Android Debug Bridge") und Fastboot installieren (wie es am Mac gegangen wäre, steht hier). "adb devices" erkennt das an den Laptop angeschlossene Handy zwar nicht, aber trotzdem funktioniert "fastboot reboot" einfach so** und das Handy schaltet sich ein. Ohne Einschaltknopf. Nur fünf Jahre, nachdem Gregor Meyer im Techniktagebuch beschrieben hat, wie es geht, richte ich das dann auch endlich für mein eigenes Handy ein.
* Richtiger wäre wie immer "kommt drauf an": Bitte diese Korrektur von Sushi Suppenkasper berücksichtigen.
** Weiteres Ausprobieren ergibt: Das funktioniert nur, wenn das ausgeschaltete Handy vorher in einen so-halb-eingeschalteten Modus versetzt wird. Und zwar muss man dazu beide Lautstärketasten gedrückt halten, dann das Kabel einstecken. Dann taucht eine Art Kommandozeilenansicht auf, die zum Einschalten noch nichts nutzt, weil sie einen funktionierenden Einschaltknopf zum Bestätigen der Auswahl voraussetzt. Aber ab hier geht es dann vom Laptop aus mit "fastboot reboot" weiter.
Als ich Aleks davon berichte, dass sein Handy jetzt wieder läuft, das Grundproblem aber nicht behebbar ist, sagt er: "Ist mir egal, der Einschaltknopf ging schon jahrelang nicht. Ich hab das Handy einfach nie ausgeschaltet. Man muss nur aufpassen, dass der Akku nicht leer wird."
Nachdem ich "Wieso steht das noch nicht im Techniktagebuch!" gerufen habe, diskutieren wir verschiedene Einsatzmöglichkeiten für das reparierte ... also das jedenfalls jetzt wieder eingeschaltete Handy. Ich bin für eine im Hausflur aufgehängte ständige Regenradar-Anzeige (nützlich, wenn man in Schottland wohnt und einen Hund hat). Aleks möchte lieber ein Betthandy. Was die Vorteile eines Betthandys sein sollen, erschließt sich mir nicht, vielleicht wird er es eines Tages selbst aufschreiben.
"Gut, dass ich nicht so ein blödes Handy habe, sondern das praktische Fairphone, bei dem man alles austauschen kann", habe ich bei der Reparatur mehrmals gedacht. Erst als ich für diesen Beitrag noch mal genauer recherchiere, finde ich heraus, dass man beim Fairphone 5 alles austauschen kann außer dem Einschaltknopf.
(Kathrin Passig)
18 notes · View notes
ayudaroot · 3 months ago
Text
1 note · View note
docprof02 · 3 months ago
Text
Suppression des Bloatwares : la solution ultime
Pour supprimer facilement les Bloatwares de Android sans Rooter son smartphone, il n'existe pas beaucoup de solution.
Tumblr media
Pour rappel : Les smartphones Android sont livrés avec de nombreuses applications préinstallées, dont certaines peuvent être inutiles et consommer des ressources. Ces applications sont souvent appelées "bloatwares". Il est fréquent que les personnes me demandent comment s’en débarrasser car celles-ci sont des applications "systèmes" (donc difficile à supprimer). J’ai déjà expliquer dans ce blog plusieurs solutions (https://labonnedonne.fr/post/189974862782/supprimer-les-applis-syst%C3%A8me-dandroid et plus récemment https://labonnedonne.fr/post/693225374329552896/bloatware).   Je vous propose une nouvelle méthode, plus simple, qui permet de supprimer ces applications “systèmes”, sans rooter votre appareil, en utilisant les applications Canta et Shizuku.
Préparer son smartphone Android
Qu'est-ce que Canta ? Canta est une application gratuite et open source qui permet de désinstaller les bloatwares sans avoir besoin d'un accès root. Elle exécute en arrière-plan les commandes ADB (voir mais articles précédents pour plus de détails). Elle permet la suppression des applications préinstallées qui ne peuvent pas être désinstallées normalement. Pour fonctionner, Canta s’appuie sur une autre application : Shizuku
Shizuku est une application qui permet d'accorder des permissions de développement à d'autres applications, comme Canta.
Avant de commencer Activer les options de développeur :
Allez dans les paramètres de votre téléphone, puis dans "À propos du téléphone".
Trouvez le "Numéro de build" (ou "Version MIUI" pour les appareils Xiaomi) et tapez dessus plusieurs fois (généralement 7 fois) jusqu'à ce qu'un message indique que les options de développeur sont activées.
Canta est une application OpenSource, elle est disponible sous github :
Pour l’installer, je vous invite à utiliser F-droid :
Ne lancez pas tout de suite l’application, une fois que celle-ci est installée. On va d’abord installer Shizuku. Le code source est disponible aussi sous Github :
Mais pour installer, allez sous : https://shizuku.rikka.app/
Dans le menu, choisir Download et sélectionnez une source d’installation : 
Tumblr media
Personnellement je préfère toujours utiliser F-Droid. Le fichier .APK sera téléchargé. Il suffit de lancer l’installation. Il se peut qu’une fenêtre s’affiche :
Tumblr media
Il faudra autoriser cette “source” dans les paramètres pour continuer l’installation.
Maintenant lancez l’application Shizuku, vous arrivez sur un écran comme celui-ci :
Tumblr media
Si vous avez une version d’Android 11 ou plus; vous aurez la possibilité d’utiliser le débogage sans fil, sinon l’application Shizuku vous proposera que le mode de connexion à un ordinateur. Rassurez-vous nous allons voir dans cet article les 2 méthodes.
Solution pour Android 11 et plus :
Nous allons déjà voir le débogage sans fil,  on part du principe que vous êtes sur votre réseau WIFI. Sachez que vous devrez reconfigurer Shizuku après chaque redémarrage si vous utilisez cette méthode.
L’application vous offre un guide, mais voici comment procéder :
Allez dans “Paramètres” puis sous “Système” choisir “Options de développeur” (sur certains smartphone ce menu ce trouve sous “À propos du téléphone”).
Tumblr media
Vérifier que les options pour les développeurs est activés, puis trouvez l’option “Débogage sans fil” et activez-la.
Tumblr media
Un popup vous demandera l’autorisation du debogage sans fil sur ce réseau : Faites “Autoriser”.
Retournez sur l’application Shizuku et cliquez sur le bouton “Association”. Un message d’avertissement s’affiche :
Tumblr media
En effet il est nécessaire d’autoriser Shizuku à envoyer des notifications.
Une fois l’autorisation faite, retournez sous le menu “Système” et taper sur le texte “Utiliser le débogage sans fil” de façon à faire apparaître cette fenêtre :
Tumblr media
Choisissez “Associer l’appareil avec un code d’association”.
Tumblr media
Le code PIN à six chiffres permettant d’associer l’appareil s’affiche. Pratiquement aussitôt, une notification s’affiche vous informant qu'une association a été trouvée. Il vous suffit de taper “ENTRER LE CODE D’ASSOCIATION” est saisir le code PIN affiché.
Une fois que vous avez saisi le code et confirmé, une notification indique la bonne association.
Tumblr media
L’association faite, retournez dans Shizuku et tapez sur "Démarrer".
Vous pouvez avoir une notification de recherche du service de débogage sans fil. Dans ce cas, retournez sur le “Débogage sans fil” puis désactiver et réactiver. Cela va solutionner le problème.
Une fenêtre de commande va s'ouvrir brièvement, et vous devriez voir "Shizuku est en cours de fonctionnement" :
Tumblr media
Maintenant vous pouvez lancer l’application Canta :
Généralement vous aurez des messages vous avertissant que la suppression des programmes et applications peuvent bloquer votre appareil.
L’application vous présente toutes les applications installées avec des “badges” ou “étiquettes” pour catégoriser les applications système et vous informer sur les risques potentiels liés à la désinstallation de ces applications. En cliquant sur les 3 petits points en haut à droite, vous trouverez les explications de ces badges. Pour résumer, voici les 3 options intéressantes :
Aucun badge : L’application peut être désinstallé sans utiliser Canta, en utilisant la méthode “traditionnelle”. Il est d’ailleurs recommandé de ne pas utiliser Canta pour les supprimer. Pour éviter qu’elles apparaissent dans Canta, utilisez le filtre en cliquant sur l’entonnoir et cochez l'option "système unique" pour afficher uniquement les applications système.
Recommended : Les applications avec cette étiquette peuvent être désinstallées sans causer de problèmes au système. Il est généralement sûr de désinstaller ces applications.
Advanced : La désinstallation d'applications avec cette étiquette peut entraîner l'arrêt de certaines fonctions ou ressources moins importantes du système. L'utilisation de cette étiquette requiert de la prudence.
Afin d'éviter des problèmes, et si vous n'avez pas les connaissances nécessaires, je vous recommande de vous limiter à ces badges.
Tumblr media
Pour avoir des précisions sur une application (si vous avez un doute), il suffit de taper une fois sur celle-ci pour qu’une popup s’affiche.
Comme évoqué dans mes articles précédents, une solution simple pour voir si une application est “impactante”, il suffit de la désactiver, puis de tester votre smartphone.
Par exemple dans mon cas je vais choisir l’application “Agenda” , puis choisir “Infos sur l’application”
Tumblr media
La première chose à faire est d’effacer l’espace de stockage. Pour cela choisir cette option.
Tumblr media
Puis choisir “EFFACER DU STOCKAGE”. Une popup vous demandera de confirmer. Validez et revenez sur l’application avec la flèche en haut à gauche, puis "SUPPRIMER LES MISES A JOUR".
Enfin, si vous le pouvez "FORCER L'ARRET" de l'application puis choisir “DESACTIVER”, l’application est maintenant désactivée.
Vous pouvez maintenant quitter Canta et tester votre smartphone. Si vous ne constatez aucun problème, relancez Canta. L’application apparaît bien comme désactivée :
Tumblr media
Cochez la petite case et une poubelle apparaît en bas de l’écran. A noter que vous pouvez sélectionner plusieurs applications. Une fois votre sélection faite, tapez sur la poubelle.
Tumblr media
Une Popup s’affiche demandant la confirmation. Ensuite un autre écran vous demandant d’autoriser Canta à accéder à Shizuku. Donnez l’autorisation pour finaliser la suppression.
Voilà l’application est “virtuellement” supprimée.
Rassurez-vous, si vous désirez réinstaller une application "système" supprimée par Canta, il suffit d’aller sur le 2ème onglet puis de sélectionner l’application à restaurer et de cliquer sur le bouton qui se trouve à la place de la poubelle :
Tumblr media
Voilà, c'est aussi simple que cela. Par contre, avec cette méthode, il faut savoir que Shizuku doit être reconfiguré après chaque redémarrage du smartphone mais en principe vous ne faites ces opérations qu'une seule fois.
Solution pour Android 10 et moins :
Maintenant si vous n'avez pas le débogage wifi, il est quand même possible d'utiliser Canta et Shizuku. Il faut évidemment installer ces 2 applications puis activer le mode développeur sur votre smartphone comme vu précédemment. Enfin il faut relier votre smartphone à votre ordinateur. Maintenant installez le logiciel "Android Debug Bridge". Dans mon exemple, j'utilise le système linux sur mon PC mais sachez que ce logiciel est aussi disponible sous d'autres systèmes.
# sudo apt install android-tools-adb
Une fois le logiciel installé, allez dans les options développeur, choisissez la configuration USB par défaut :
Tumblr media
Et choisissez le mode "Transfert de fichiers"
Toujours dans les Options développeur, activez le mode Débogage USB, un fenêtre vous demande l'autorisation.
Tumblr media
Il suffit de valider. Pour vérifier que la connexion avec votre smartphone est correcte, tapez la ligne :
# adb devices
Vous devez obtenir ce type de message :
List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfully 31e566ca8d2d unauthorized
A ce moment vous devez avoir sur votre smartphone une demande d'autorisation :
Tumblr media
Si vous n'avez pas cet avertissement, tapez :
# adb kill-server
Puis simplement relancer le daemon en tapant :
# adb start-server
En principe cela règle votre problème.
Maintenant lancer l'application Shizuku :
Tumblr media
Vous voyez à ce niveau que Shizuku ne fonctionne pas. L'aide vous demande de saisir une commande pour démarrer. Cliquez sur "Voir la commande" puis saisissez sur votre ordinateur cette commande.
Dans mon cas, celle-ci ressemble à :
Tumblr media
Une fois la commande saisie puis validée vous pouvez avoir sur votre smartphone un message d'alerte :
Tumblr media
Ce message apparaît parce que des "sécurités" supplémentaires sont activées. En lisant l'article vous trouverez certainement la solution. Dans mon cas, s'agissant d'un portable XIAOMI, j'ai une fonction de sécurité à activer également dans les options développeur :
Tumblr media
En activant ce type d'autorisation, vous pouvez avoir plusieurs écrans vous rappelant les risques possibles.
Faites les réglages nécessaires et retaper la ligne de commande sur votre ordinateur. Maintenant sur votre smartphone vous aurez une confirmation que Shizuku fonctionne.
Tumblr media
A noter, comme vu dans le premier cas, il faudra autoriser l'application CANTA à accéder à cette application. Maintenant on peut utiliser CANTA comme vu précédemment.
Dans mon exemple, je souhaite retirer l'application SMS/MMS, je peux filtrer suivant le nom de l'application :
Tumblr media
Il ne me reste plus qu'à sélectionner l'application puis de cliquer sur la poubelle en bas de l'écran et hop l'appli est supprimée. Le fonctionnement reste le même que vu précédemment.
A Retenir :
Soyez prudent : Supprimer des applications critiques, comme celles liées au système Android peut rendre votre appareil instable. Pour rappel, si vous avez un doute, cliquez le nom de l'application sous Canta puis :
Choisir Infos sur l'application
Supprimer les espaces de stockages de cette application
Supprimer toutes les mises à jour
Forcer l'arrêt éventuellement de celle-ci puis désactiver la (si c'est possible).
Il ne reste plus qu'à tester si cela à un impact sur l'utilisation de votre smartphone. En fait, Canta ne supprime pas l'application mais désactive les applications système ; vous pouvez donc les réactiver puis refaire les mises à jour.
Pensez également à désactiver toutes les options de débogage une fois que vous avez fini avec Canta et Shizuku.
Pour moi ce combo (Canta + Shizuku) est devenu ma solution ultime pour tous les Android 11+. L'interface graphique et la possibilité de supprimer/restaurer rapidement une application sans un PC font de cette solution un incontournable quand on me demande de "faire le ménage sur un smartphone".
Par contre pour les Android 10 et moins, j'utilise encore Universal Android Debloater (Next Generation) en complément de ce combo.
Pour aller plus loin :
Comme vous venez de voir ci-dessus, je ne me contente pas de supprimer les "bloatwares". En fait j'essaie de retirer toutes les applications qui ne répondent pas aux besoins de l'utilisateur ou à l'utilisation que je dédie du smartphone.
A titre personnel, mon premier besoin a été de récupérer un vieux smartphone pour mettre une navigation GPS OffLine (comme Organic Maps ou encore MagicEarth) afin de faire de la rando VTT sans craindre d’abîmer mon dernier smartphone. Par la suite, et suite aux demandes des utilisateurs, j'ai étendu les possibilités comme :
Retirer les applications SMS/MMS si on utilise d'autres systèmes de messageries instantanées.
Supprimer l'application "Téléphone" qui, avec les différentes mises à jour, peut occuper plusieurs centaines de Mo au profit d'une application plus légère (voir celles sur Fdroid).
"Dé-googleliser" votre smartphone au profit d'autres applications ( mail, browser chrome, maps, agenda, youtube... ) sans pour autant réinstaller un nouveau système (comme /e/OS).
Retirer un maximum les applis inutiles (wallpaper, thèmes..)
Se servir d'un smartphone comme un assistant à la mode "ALEXIA" ou mieux avec un AGENT IA local (https://github.com/a-ghorbani/pocketpal-ai)
Mais surtout, on peut se servir d''un smartphone comme un petit Raspberry PI. Vous pouvez donc faire de votre smartphone un serveur pour héberger un site wordpress, ou encore mettre docker et avoir accès à de nombreuses applications.... Il convient donc de supprimer les éléments non indispensables. Mais tout cela fera peut-être l'objet d'un prochain article.
0 notes
techtrickz · 5 months ago
Text
QuickADB: Simplifies the Use of ADB and Fastboot Commands for Beginners and Experts
ADB (Android Debug Bridge) and Fastboot are important command line tools used in Android development. They help with various tasks, such as installing factory images, unlocking the bootloader, flashing custom recoveries like TWRP, and installing APK files. These tools also let users boot their devices into different modes, such as Recovery, Fastboot, and EDL Mode. They are very useful for fixing…
0 notes
jignecttechnologies · 6 months ago
Text
0 notes
egekececi064 · 7 months ago
Text
Sending remote ADB commands to Android devices From Anywhere is now easier with Localtonet. This tool allows developers to control and debug Android devices remotely, bypassing the usual complexities. Whether you're testing an app or troubleshooting, you can access your Android devices from any location. Localtonet provides a secure tunnel, ensuring privacy and performance. As the saying goes, "Distance is no longer a barrier for developers." Take control of your devices from anywhere with ease!
0 notes
szepkerekkocka · 4 months ago
Text
Adalék: valamikor 2023 végén feltalálták a Samsung Secure Folder appot, ami alapértelmezetten telepítésre került a soron következő frissítéssel.
A Secure Folder egyik fícsöre, hogy a telepített appokat is egy védett helyre teszi - így konkrétan az adb package manager, ami a 0 (root) userrel operál, nem éri el őket, mert a Secure Folderbe telepített appokhoz csak a 150-es user fér hozzá.
A gyári bloatware természetesen a Secure Folderbe kerül.
Megfejtés:
rootolni kell a készüléket :-/
Uninstallod a Secure Foldert, elintézed, amit akarsz a package management környékén, reinstallod a Secure Foldert.
Hogyan kell uninstallni a Secure Foldert:
bloatware
Az alany egy friss, ropogós céges Samsung S22, súlyos százezrekbe volt. Kb. 3-4 hét után most jutottam el odáig, hogy letakarítottam (na jó, inkább csak disabledbe raktam) rajta mindent, ami tök feleslegesnek tűnt.
~130 app (Settings szerint) ~70 amit helyben hagytam ~5 amit különösebb flanc nélkül felületről uninstallni tudtam ~60 amit ADB-vel kellett disabledre rakni
Azaz csaknem fifti-fifti a hasznos-szemét.
Források hozzá.
Android StackExchange: https://stackoverflow.com/questions/23081263/adb-android-device-unauthorized
Developer Options hogyan kapcsolható be: https://developer.android.com/studio/debug/dev-options#enable
ADB package manager referencia: https://developer.android.com/tools/adb#pm
Hogyan deríthető ki a kiiktatandó appid:
A telefonon levő összes package lekérdezhető referenciának:
adb shell pm list packages --user 0
2. Ha az app Google Play Store-ból jön, akkor benne lesz az URL GET paraméterei között, pl.: https://play.google.com/store/apps/details?id=com.android.chrome
3. Ha Galaxy Store-ból jön, az már nagyobb szívás, legtöbb bloatware simán böngészőből keresve Galaxy Store-ban nem található meg. Ami igen, ott az URL-ben nem fog szerepelni az appid. De. Ha a Settings / App info / App details in store-ra nyomunk, majd a jobb felső csücsökben a Share-re, akkor kapunk egy olyan URL-t, amiben szintén szerepel az appid: https://galaxystore.samsung.com/prepost/000006456173?appId=com.samsung.android.bixby.agent
4. A maradékot meg kínkeservesen egyesével kell webszörcsölni.
Mellesleg a Galaxy Store review szekciók az appok jelentős részénél tele vannak a bloatware miatti gyalázkodással.
Asszem ez lesz az utolsó Samsung telefonom, fenének se kell ez a pokoljárás minden új készüléknél.
25 notes · View notes
msicc · 2 years ago
Text
How to use the Android emulator on a macOS host for debugging in a virtual machine with Windows
I just blogged: How to use the #Android emulator on a #macOS host for debugging in a virtual machine with #Windows #adb #emulator #ssh #Parallels #VM #VirtualMachine #VS4Mac #Rider #VS2022 #VisualStudio #Debug #devlife #devProblems
Preface With .NET MAUI now available, I started to port my Xamarin.Forms applications to the new cool bits. The iOS version of my Fishing Knots app went quite smoothly, but I really had a lot of trouble with the Android version. First, I did not even get it to compile. After ironing out all the issues Rider was indicating, I finally got it compiling and was able to deploy it to the Android…
Tumblr media
View On WordPress
0 notes
zoobus · 4 months ago
Text
You'll upgrade your os and find "features" the devil wouldn't even make. Why the fuck would i want a giant version of the text i JUST copied covering up my screen? In what way displaying the text above my keyboard not visible enough? Who the fuck.
The solution for Android 13 is: adb shell appops set com.android.systemui READ_CLIPBOARD ignore
for 14 you have to install Shizuku (root not needed) and App Ops, go to App Ops, find SystemUI, turn on Shown system frameworks apps, scroll down to clipboard, and set Read clipboard to Ignore. Btw.
19 notes · View notes
foone · 2 years ago
Note
As the person I follow who does reverse engineering, do you have any suggestions for finding resources on reverse engineering Android apps?
Specifically, there's an app I'm playing with, where after seeing the structure of the "export as Markdown" output I want to know what the internal structure and representation of the data is. The end goal of understanding it is to be able to add certain kinds of data dynamically, rather than up front. That's certainly doable typing in raw markdown, but being able to do it "app style" would be more convenient.
The google Play Store entry does not mention any open source licenses, or looking for the source code and hopefully a git repo or something would have been my first step.
(I'll probably need to bang together a crappy app to do what I really want regardless, but maybe this app's data structure would be more convenient than doing so with markdown.)
So, android stuff:
First you need the APK. You can do some trickery with your phone to pull it over the ADB connection if you install the android SDK, but generally I just google "app name APK" and you'll find some greymarket site that'll give you a copy.
Secondly, APKs are just ZIP files (JAR files, technically, but JAR files are also just ZIP files!). Unzip them and you can find lots of interesting stuff, often.
Tumblr media
For disassembling/decompiling them, my go-to program is jadx. It's a java decompiler that's been around a while and can natively open APK files and decompile them. There's some weirder new APKs that it can't handle (something to do with a newer bytecode revision, I think?) but I can't recall the details on how you handle those. Those are rare, in my experience. jadx is pretty good, but you'll occasionally find methods or entire classes that it just can't figure out, and it'll give you a bytecode dump. I don't yet have a good solution for those, other than "get good at reading JVM bytecode".
If you're dealing with games, another useful thing can be UABE and dotPeek. These are unity/C# tools, but you would be surprised how many android games (and non-games!) are actually unity under the hood.
Bluestacks can also be useful, because it'll let you run the app on your desktop and that can be handy for things like running WireShark to log all network traffic.
Speaking of logging, the other handy thing I've done is enabling android developer mode on my phone to get to one specific option: Bluetooth HCI snoop log.
Now, actually getting that log is tricky and varies from phone to phone, because for some reason manufacturers like to move it around, but it's one of the best ways to reverse engineer bluetooth communication stuff. You basically turn on the log and everything your phone does to communicate with your Smart Toothbrush or whatever will be logged to a file, then you can yank that file over and stuff it into Wireshark.
So... hopefully some of that is a helpful start? I've not done a huge amount of Android reversing so I'm not super familiar with the tools used, but these are the ones I've got on hand for when I do.
also sorry for all the horny robotgirl posters who saw "android reverse engineering" in the tags and thought this was gonna be about taking them apart with screwdrivers and rooting around in their insides. Not today!
108 notes · View notes
andmaybegayer · 1 year ago
Text
fiddling with scrcpy. It's a tool to interact with android devices remotely, the main application is screen-mirroring to PC but it's also kind of a general-purpose toolkit for accessing weird ADB features. You can even set it up to stream over the network, which is actually how I'm typing this right now.
Most of the things I do on my phone I can do from my PC anyway. I can browse the filesystem with KDE connect, I can use Whatsapp with the browser, I can sync tabs from Firefox, but this also allows me to capture the cameras as v4l devices which is compelling. Your phone has a much better camera than pretty much any webcam you'll find on the market, with a basic smartphone holder you can get pretty much the best webcam you own for free.
Tumblr media
The round-trip wireless latency is kind of too high for accurate mousing. Your feedback loop is completely blown out, to say nothing of the frame inconsistency. I'm sure you can tune it, there's probably a pretty generous framebuffer to avoid dropping frames.
16 notes · View notes
mutipede · 16 days ago
Text
I DID end up getting an old-ish but still newer than my current phone phone specifically for big storage and micro SD slot for even bigger storage and going to not get a sim card for it and use it solely as an MP3 player with wifi specifically for lastfm scrobbling and not as an upgrade from my phone since that's using degoogled android out of a deep burning personal loathing for google as a company, because I am possibly the only organism with that specific use requirements lol
And I gotta admit it is kind of satisfying, too, going in and enabling developer options and then plugging my phone into my computer and typing in ADB commands to uninstall bloatware and bullshit and literally anything I want, I could make the phone unusable without a factory reset if I wanted to, reminds me of when I was a kid messing around changing all of the settings and exploring system files in fuckin' windows 98 hand-me-down family computer turned my first very own computer goddamn sudden swell of nostalgia sidetracked oops
What's not satisfying is the reminder of how fucking bad things have gotten when, before doing this whole "gutting android like a fish and ripping out its unnecessary internals" process, I was getting fucking ads in the notification space? Preinstalled unremovable apps for facebook shit and google shit? The fact that after a system update, suddenly the USB cable connected to my computer that had been working perfectly fine five seconds ago suddenly stopped being in file transfer mode, instead showing a "check your charger cable! you're on slow charge mode!" notification and nothing else, and upon looking this shit up found threads of people saying the same shit happened to them, sudden slow charging and not transferring files after an update, with replies ranging from "same thing happened to me! any updates? no!" to "buy specifically a samsung cable! :)"
only to finally find an article saying that a "security update" blocked USB connections except for charging, like holy fuck removing the headphone jack wasn't obnoxious enough, no longer including disc drives in desktop computers wasn't obnoxious enough, are they seriously trying to turn USB into phone charging only and not data transfer, like there's not already an option that popped up when you plugged a phone into a computer confirming that you wanted to be able to transfer data between the computer and the phone, because tech companies are for SOME FUCKING REASON... AAAALLLL about taking all autonomy and ability to customize and FUCK AROUND with our OWN TECHNOLOGY, away from individual users, and...
...people just live like this? The majority of people who didn't happen to gain the technological know-how to be aware that they might be able to disable or remove or mitigate this bullshit, and be comfortable actually attempting it... just fucking. Live with it?
Hooooly fuck
3 notes · View notes
stochastique-blog · 4 months ago
Photo
Love me
Tumblr media
How to Install Android 11 Today Despite Google’s ‘Rollout’
Android 11 is here—the stable version, that is—and only if you’re running one of Google’s Pixel phones (the Pixel 2, 3, 3A, 4, or 4A) for the stable release.
1 note · View note
mehdidehnabi · 1 month ago
Text
How to Remove or Disable YouTube on Samsung Devices
If you're looking to remove the YouTube app from your Samsung device, it's important to note that YouTube is often a pre-installed system app, which means it cannot be completely uninstalled through standard methods. However, there are several approaches you can take to disable or remove it from your device.
1. Disable the YouTube App
Disabling the app prevents it from running and removes it from your app drawer.
Open Settings.
Navigate to Apps.
Scroll down and select YouTube.
Tap on Disable.
Confirm by tapping Disable again.
While in the YouTube app settings, tap on Storage.
Select Clear Data and Clear Cache.
This method doesn't uninstall the app but prevents it from running and frees up storage space.
2. Remove YouTube Using ADB (Advanced Users)
For a more permanent solution, you can use Android Debug Bridge (ADB) to uninstall the app. This method requires a computer and some technical knowledge.
Steps:
Enable Developer Options on Your Phone:
Go to Settings > About phone.
Tap on Build number seven times to activate Developer Mode.
Return to Settings and access Developer options.
Enable USB debugging.
Set Up ADB on Your Computer:
Download and install the Minimal ADB and Fastboot tool.
Connect Your Phone to the Computer:
Use a USB cable to connect your device.
When prompted on your phone, allow USB debugging.
Uninstall YouTube via ADB:
Open the ADB command interface on your computer.
Enter the following command to list connected devices: nginxCopyEditadb devices
Once your device is recognized, enter: cssCopyEditadb shell pm uninstall --user 0 com.google.android.youtube
This command removes the YouTube app for the current user. Note that this method doesn't delete the app from the system partition, so a factory reset might restore it.
3. Remove Your YouTube Account
If your goal is to disassociate your account from the YouTube app:
Open the YouTube app.
Tap on your profile icon in the top right corner.
Select Manage your Google Account.
Navigate to the Data & privacy tab.
Scroll down and tap on Delete a Google service.
Enter your password when prompted.
Next to YouTube, click the trash bin icon.
Follow the on-screen instructions to permanently delete your YouTube account.
Be aware that this action will delete all your YouTube data, including playlists, subscriptions, and history.
⚠️ Important Considerations
System Apps: YouTube is often a system app on Samsung devices, meaning it can't be fully uninstalled without rooting your device.
Rooting Risks: Rooting can void your warranty and may lead to security vulnerabilities. Proceed with caution.
Alternative Solutions: If you want to limit YouTube usage without removing it, consider setting up Parental Controls or using Digital Wellbeing features to restrict access.
By following these methods, you can effectively remove or disable the YouTube app on your Samsung device, depending on your needs and technical comfort level.
2 notes · View notes
aoive · 4 months ago
Text
note 2
start
last weekend with the birthday money i have, i have bought myself a nokia 2780 flip in navy blue.
i bought the last one on sale at target, for $79.99. i think still, it was a little too pricey, but it is factory unlocked, so ill give it that.
its small, cute, and a little flimsy.
cheap and cheerful like some people like to say.
i so excited that i unboxed it and put my verizon sim card in, on the ride home. it worked perfectly fine, and im really happy about that. ive been looking for a dumbphone for my digital minimalism needs, but i wasnt really too sure network compatibility wise.
Tumblr media
van gogh...
along side the nokia 2780, ive been using my old smartphone, a samsung galaxy a51 as a pseudo mp3 player.
what i did to this poor smartphone is kinda cool
install olauncher (light mode!)
universal adb debloater
remove apps i dont need anymore: contacts, phone, messages, etc
enable monochromacy screen settings
always on power saving mode
"sensors off" in developer settings
put a whole bunch of mp3s on it ... yo ho ho.. .arggh.. ahoy..
disable screen lock
wifi and bluetooth off, all the time.
koreader on f-droid (bless this app)
retro music on f-droid
and thats all!
simple little mp3 player that can read books too..
though, ive been wanting a real mp3 player or android dap, i think ill save up for that next, but for now, this will work fine.
lets see how long i keep this up... its quite fun for now.
thinking about it, i kinda want to live like hidamari sketch.. that lifestyle era of technology is just lovely.
see you next post! take care everyone - aoi, c. 2.11.25
2 notes · View notes
ofbooksandlattes · 6 months ago
Text
kinda wanna get a nook now that I know it runs android and can be rooted/use adb to sideload some apps.
problem: the pink & white one is only 6 inches and I will die if I went back to reading manga on a 6 inch screen. the glowlight 4 plus is the one i want doesn't even come in white.
3 notes · View notes