Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "adb"
My dad found a phone a few weeks ago and asked me what he should do with it. Knowing how much it hurts to lose personal data, I said I could try to find the owner and send it back.
My first attempt was to search through the files on the SD card in order to find an identifying document (CV, bill, address...) but there were only family pictures.
My second attempt was to unlock the phone and check the information about the owner and the accounts linked to it. But for this to be possible adb has to be enabled. Good thing is that that particular brand shows an option for activating adb on the recovery menu.
But then, it's Android Oreo and I haven't found a way to lift the lock pattern. I thought I could bruteforce it over the shell (as I found there could be about 1300 possibilities for 2 to 5 point patterns), but there is the same attempt throttling as on the screen so that would take ages.
Finally, I found the owner in the most "social" way : The phone was displaying the weather for a particular place. It turns out that there are only 3K inhabitants in that city, si I thought that a big enough Facebook group might help me find the owner. So I posted a message on a 500 people FB group dedicated to this city with a selfie of the owner : someone identified her within 20 minutes.
Mission accomplished 😎44
An entire night I've spent on this shit.. preparing wires, soldering them on the motherboard, and finally connecting everything up to current meters, my PC's USB port and a lithium cell from my old Doogee phone that I still had laying around. All in the hopes to get an adb shell. But all in vain.. the turd doesn't even want to boot up. What a fantastic waste of time 😑
(Apologies for the terrible picture quality btw, this tablet's camera is absolute garbage)15
Open source for the win!
Working on a new awesome project and found an open source android app which does most of what I need. realized that one of its features is very annoying for me so was sitting behind my desk like fuck me.
........ Suddenly remembered that the app was open source.
Cloned the repo, imported into Android studio, rewrote the part (very tiny part, I'm not a Java dev) that needed rewriting and built the app.
Installed it onto my device through adb and bam, works! (Although not ideally yet but I overlooked other features needing adjustment).
"Pre-Installed Malware Found On 5 Million Popular Android Phones"
"added somewhere along the supply chain"
See below how to check if it's installed
- (new) https://thehackernews.com/2018/03/...
- (new) https://research.checkpoint.com/rot...
- (old relevant news) https://thehackernews.com/2017/03/...
"Rottensys" a malware which covers devices from: Honor, Huawei, Xiaomi, OPPO, Vivo, Samsung and GIONEE
"According to our findings, the RottenSys malware began propagating in September 2016. By March 12, 2018, 4,964,460 devices were infected by RottenSys," researchers said.
"At this moment, the massive malware campaign pushes an adware component to all infected devices that aggressively displays advertisements on the device’s home screen, as pop-up windows or full-screen ads to generate fraudulent ad-revenues."
If you have one of the affected devices, here's how I checked mine:
1. Install ADB (Windows: https://forum.xda-developers.com/sh...)
2. Connect your device in USB-debugging mode
3. execute "adb shell 'pm list packages -f' > output.txt" (On windows navigate to C:\adb and replace "adb" with ".\adb.exe")
4. open the now created output.txt
5. search for any of those:
I flashed TWRP in my phone and it didn't boot anymore. I didn't have any image of any operating system in my sdcard and my pc hasn't a sd card slot.
So I started thinking, I googled for some solution, I tried the official tools, but nothing worked. So I started writing an adb script able to download the image from the server and install it in my phone.
While I was doing it I was also explaining my troubles to my no-tech friend. She's not confident with computers, she's able only to turn the pc on and go to Facebook.
She told me "why don't you put your sd card in another phone and download the operating system from it?"
She literally saved my day.
Sometimes we are so busy with our geek things and we forget trivial solutions4
Finally got myself a Lytro Illum!
I,v been wanting to buy one since it came out but the company who made it closed down in 2015..
Thoose fuckers just thrown everything in the trash and set it on fire, software, firmware, mobile app etc.. no open source, no archives, your expensive camera is now a paper weight! You’r welcome!
So i got myself a new hobby, started reverse-engineering the fuck out of it, luckily it’s based on android (api17), i have adb and it’s running a hidden DHCP server too so it’s coming along nicely :D
I’m planning to make a camera control mobile app for it and maybe some faster image processing, wifi sharing etc..
I love beeing in home office :D20
So this happened a few days ago. I always want to root my smartphones for that little bit more control.
*Put's new smartphone into fastboot mode*
*Tries to flash root zip onto it*
"You have to OEM unlock the bootloader first"
*OEM unlocks the bootloader*
*Tries to flash but fails*
*Tries to reboot*
Phone: "The bootloader has been tampered with, the device will boot in 5 seconds".
*Screen just hangs there for ages*
*Tries to enter fastboot again to OEM re-lock the bootloader*
*Fastboot appears to startup RIGHT AFTER THE FUCKING ERROR MESSAGE so can't boot into that anymore*.
Hmm... TWRP is still installed...
*Tries to flash some stuff through TWRP*
"The zip file you are trying to flash is corrupt".
FUCK MY FUCKING LIFE.
*Connects phone to Linux for adb flashing*
*Nothing happens after half an hour of trying*
*Connects phone to ancient windows 7 laptop*
*Laptop doesn't even RECOGNISE the phone although all drivers are installed*.
*Le me about to completely lose my fucking mind*
*Connects phone desperately with Linux again*
*Phone is recognised right away but the SPL flash tool can't detect it*
*Tries to put it into fastboot again*
*Fails for about an hour*
*phone in charging mode again*
*Presses the power button for a last, desperate attempt*
*SPL flash suddenly recognises the phone*
*Android boots again like nothing happened*
I can use it again like normal but the No-Root firewall is draining my battery like crazy.
That was one hell of a journey though!10
Android studio: Installing APK
ADB: Device disconnected
Android Studio: Failed to install
ADB: Device reconnected
Me: *Hits debug*
Android Studio: Installing APK
ADB: Device disconnected
Android Studio: Failed to install
ADB: Device reconnected
ADB: Device disconnected
ADB: Device reconnected
Windows: Updates are ready to install
Me: Enables USB debugging, plugs in phone
ADB: Doesnt see phone
Windows: Doesnt have drivers
Me: Downloads drivers
Me: Tells windows to use drivers
Me: Tells windows where drivers are
Windows: Naaah no drivers there20
My Android phone is 5 years old. Everybody tell me I should buy a new one but I'm a stingy environmentalist and I refuse buying new stuff if it is not strictly necessary.
So, for 9€ I replaced the phone battery and then I installed a custom ROM, so it looks a bit newer.
Unfortunately, it seems that something in the network configuration has been fucked up.
The phone is able to browse the Internet, but:
- WiFi hotspot is not working
- USB tethering is not working
- Bluetooth tethering is not working
- PPP over USB is not working
But, hey, I never give up, so this is my current setup:
- I installed a proxy server on the phone
- I'm using "adb forward" to forward the proxy port from the phone to my laptop
- I configured Firefox to use that proxy
And, yes, I'm using that connection to write this post. :D10
So, my last rant here was 3 years ago, and i just signed in again to devrant to post this fucking shit.
There is this guy who is a Project Manager in my office, I haven´t work with him but he sits in front of me and i have to listen to his bullshit almost every fucking day. Anyways, the other day he was talking to some other guy (a PM, also) and he said something like this:
"Programming is the most overrated thing ever, everyone can do it, you could do it, i could do it just googling stuff, i could even replace almost every programmer in this office, it´s the easiest thing ever. a programmer couldn´t do my job even if his life depended on it ´cause they can´t talk, they can´t manage people, they can´t manage their own time, heck they can´t even manage to talk to each other. they´re just a bunch of incels who think they´re important and their job is shit anyway".
They don´t see us as human begins, they see us as necessary evil.
(apologize if i wrote something wrong. English is not my first language)10
Me: I want to learn Clojure
Me: But I need real tasks to learn
Me: OK, reconnecting device with wireless adb
Inner me: Are you kidding? 5 lines with bash
Me: In clojure it will be more elegant and faster to write similar tasks in future
*2 hours later*
Me: IT WORKS
Internal me: Really? This is ugly as fuck. And the only clojure feature it uses - sh and re-find
Me: But... It... Works... *cries*
My tablet is lying on a table 2m away from me and I have to install a new app.. but I don't want to get out of my couch ffs! And I haven't configured dropbear in it yet, and neither do I have adb over TCP/IP. Well fuck it then. My desktop with BlueStacks.. hah, it's running fucking WanBLowS. No remote access there. Too much to ask of that certified pile of crap.
But the point is.. moar remotes, moar better 😋 anything to not have to stand up, taught by my ability to log into a server in Italy from the comfort of my couch. SSH and the sysadmin trade sure is nothing short of amazing ♥️5
An hour before my Mathematical Expression and Reasoning for Computer Science final...
Have reviewed all the material available but past exams are useless because new_prof == new_format.
This is not even a rant, I'm just scared because to get into the major I need an average between this and programming of 82. I fucked up in the second midterm and got a 50/100. Everything was so perfect (at least above 80) and now I need more than 70 in this final. I'm feel I can get more than 70 but I had the same feeling during the midterm I fucked up.25
Had to use a cmd window for adb to push some files to my phone so I could flash them and everyone is staring at me...
It's just a cmd window people... #Hackerman4
My brother came to me with his phone today to ask me if I could turn it on with my computer, because his power button is broken so I proceeded to attach it to my lappy and boot it with adb just to find out I can't do anything because he hasn't turned on USB debugging!
I managed to get into his recovery which helped nothing because in order to navigate in the menu the power button has to work
Uuuugh I hate this ...39
Fuck the brains of circular dependency.
On a fresh install of OS X on my hackintosh.
1) Let me install HomeBrew
2) I need Command Line Tools to install HomeBrew
3) Xcode dmg is on my Android. Opens Android File Transfer tool.
4) Error: File is larger than 4GB. Need to use adb.
5) Need to install android-platform-tools, which contains adb.
6) android-platform-tools is available in brew. Goto 1).
Note: Networking is limited to tethering mobile data as Wifi chip hasn't arrived yet.4
devRant already replace SoundCloud as my orange app in the main screen...
To be fair, SoundCloud was just there to complete the rainbow.
Rant: this app told me that my rant would be safe if I closed the Post Rant window (since I can't post more than one rant per hour or something) but it didn't save my awesome tags! I feel betrayed.23
Guy sees me on my laptop and says "is that Linux?". I say yes then he says he is into computer "stuff and can hack anything". Not having a clue what that means I replied with a "awesome".
I don't have really any friends that are into "computers", so I decided to play ball.
I asked, "Are you into coding?.. he says, "Yes". Then I ask, " What languages?" He says, " Just what ever, anything really, it depends on what I am doing."
At this point I understand what is going on but it is so awkward. He continues.. "Recently I used.. what's it called abd or adb, you know I like rooted my phone"...
And let's talk about something else....
Why do people feel the need to lie or whatever you might call what happened. It might be different I think if he wasn't about 40.
I feel like this is a pretty common story2
I propose a list of interesting readings. Not limited to developing.
Yes, I'm in need of something new to read...
I'll start in the comments, feel free to comment new readings or critique the ones proposed.29
Just did a transplant on my friend's phone. He dropped it one too many times, and fucked it up real bad.
We were first going to simply put his SIM card into another phone. I had an old S6 that bricked itself during an update before I really knew much of anything about phones, so I dug it out and spent a day trying to restore it with heimdall, adb/fastboot, and eventually odin when I found a laptop with windows. Unfortunately it's a Verizon phone, and because Verizon likes to keep a tight chastity belt on everything, it was pretty much impossible to unbrick. After giving up with finding a custom recovery or flashing a stock ROM, we moved to Plan B.
We took both phones apart, switched the boards, switched the SIMs, and he now has a working phone in much better condition than before he dropped it seven feet from his girlfriend's bunk.
It's always fun to make life from two dead things.3
Me: *Trying to get the mobile banking app*
App: Nope, you have a rooted device
Me: *disables root access for apps and adb*
App: Nope, you have a rooted device
Me: *Maybe a xposed module would help*
Xposed: Nope, you have android nougat
Me: *Maybe there's some LineageOS marshmallow rom for my phone*
LineageOS: Nope, just android 7.1
When I used Windows and I needed to flash a rom I had to download minimal adb and fastboot package to use adb and fastboot.
I am using Manjaro now so I thought there must be a minimal package. Searched on pacman and android-tools is already installed and it's just a 2mb package. I love linux 😁8
My new HTC smartphone hates me.
First it started to shut down all of the sudden yesterday night, when I was solving quadratic equations on my laptop.
I thought that it might be due to low battery. So I have restarted it. After putting itself into a bootloop for 4 start sequences, it was able to fully start to the page where it told me to enter the security pin to decrypt my files. I also had 30 attempts left. Like a ransomware.
I was like "tf I didn't set anything up".
So I decided to use my first attempt as I had 30 attempts left.
I entered the pin (I can swear that it's correct) and it told me that it has to wipe the /data partition.
I did that. I pressed that button. After waiting for 30 minutes I gave up and rebooted into the bootloader.
Bootloader -> Download Mode -> wipe /data (stock rom + stock recovery btw.)
Some error with "e: mount /cache failed[...]e: mount /data failed"
So, I tried using the adb sideload - no success.
Fastbooted into RUU Mode - HTC keeps rebooting itself into the RUU Mode - no success
Tried to flash the firmware and twrp recovery from Download mode - no success
Then I tried to flash all these things from the sd card - no success
Searched for revolutionary (I know this from my old HTC sensation device).
It wasn't big of any help.
Then someone on xda recommended htcDev (htc's <b>developer-friendly</b> lol site)
I followed every step. Everything seemed to be okay.
I got to the last step.
I needed to get my encrypted token by entering "fastboot oem get_identifier_token" to be able to submit it to HTC, and after they would send me an e-Mail with an .bin file that would let me unlock the bootloader to be able to flash my way through all this headache giving fucking piece of dog shit!
But since I can't back to the phone settings to select the bootloader activation box that would let me get my token... but nah.
Sent by using the devRant web app (:\)8
This evening for curiosity i executed a nmap over my android phone expecting (like everyday) all port closed.
But i see
9080/tcp open glrpc
Let me check something....
And the first line provied me the UID of the app that was running on 9080 port (2378 in hex)
So let me check which app is that
$dumpsys package | grep -A1 "userId=*UID*"
And the answer is com.netflix.mediaclient
Why netflix is running a http server on 9080/tcp on and android phone??3
A: "It would be great if we can add a snack bar in our office."
A: "It makes our developers smarter."
A: "Jobs said 'stay hungry, stay foolish'. That's why we shouldn't makes our developers fool."1
Guess I just semi-wrecked my old testbed Android phone.
Don't you just love it when you touch on the screen in the middle and it registers as a touch to the top right corner? I sure don't.2
Fucking piece of shit, i want to make a fairly thin app with some native functionality and
Flutter - no documentation whatsoever, what a surprise
React native - i need 3 extra modules just to do what i want
Cordova - fuck no
Litho - seems fine but i dont wanna use native, i dont even have adb on my laptop18
After ten years of working sh*t jobs I finally got the chance to study CompSci at a top university... All the kids look at me as if I've been programming for years, truth is I just study a lot because my scholarship requires me to get B+ or above.
I've had a Xiaomi Mi 8 for a few months now. Although I'm impressed by what I got for the amount I paid (a phone that cost about $250 for 6GB RAM, Snapdragon 845, Android 9 and premium build quality is quite a steal), it definitely comes with a consequence.
MIUI (specifically MIUI 11) is godawful. It is single-handedly the worst Android ROM I've ever used since my shitty Android 2.2 phone back around 2010. If you're gonna buy a Xiaomi phone, plan to install Lineage OS on it (but even that's a pain which I'll explain why later).
- Navigation buttons don't hide while watching a video.
Why? God only knows. The ONLY way to bypass without root this is to use its garbage fullscreen mode with gestures, which is annoying as all hell.
- 2 app info pages?
Yeah, the first one you can access just by going to its disaster of a settings app, apps, manage apps and tap on any one.
The 2nd one you can access through the app info button in any 3rd party launcher. Try this: Download Nova launcher, go to the app drawer, hold on any app and tap "app info", and you'll see the 2nd one.
Basically, instead of modifying Android's FOSS source code, they made a shitty overlay. These people are really ahead of their time.
- Can only set lock screen wallpapers using the stock Gallery app
It's not that big an issue, until it is, when whatever wallpaper app you're using only allows you to set the wallpaper and not download them. I think this is both a fuckup on Xiaomi and (insert wallpaper app name here), but why Xiaomi can't include this basic essential feature that every other Android ROM ever made has is beyond me.
- Theming on MIUI 11 is broken
Why do they even bother having a section to customize the boot animation and status bar when there's not one goddamn theme that supports it? At this point you're only changing the wallpaper and icon pack which you can do on any Android phone ever. Why even bother?
They really, REALLY want to be Apple.
Just look at their phones. They're well designed and got good specs, but they don't even care anymore about being original. The notch and lack of a headphone jack aren't features, they're tremendous fuckups by the dead rotting horse known as Apple that died when Steve Jobs did.
Xiaomi tries to build a walled garden around an inherently customizable OS, and the end result is a warzone of an Android ROM that begs for mercy from its creator. Launchers integrate horribly (Does any power user actually use anything that isn't Nova or Microsoft launcher?), 3rd party themes and customization apps need workarounds, some apps don't work at all. People buy from Xiaomi to get a high end budget Android phone at the price of some ads and data collection, not a shitter iOS wannabe.
They really, REALLY want you to have a sim card
If you don't have a sim card and you're using your phone for dev stuff, you're a 2nd class citizen to Xiaomi. Without one, you can't:
- Install adb through adb
- Write to secure settings
- Unlock your bootloader and get away from this trash Android ROM
What's the point? Are they gonna shadow ban you? Does anyone contact them to unlock their bootloader saying "yeah I wanna use a custom rom to pirate lizard porn and buy drugs"? They made this 1000000000x harder than it needs to be for no reason whatsoever. Oh yeah and you gotta wait like a week or something for them to unlock it. How they fucked up this bad is beyond me.
So yeah. Xiaomi. Great phones, atrocious OS.14
I just learned that you can use Android Device Monitor in Android Studio to take screenshots.
Until today I was using adb screencap -p /sdcard/filename, totally forgetting the filename, go through all the commands and see what fucking file name I used and do an adb pull. It was a lot of fucking work.1
So I was looking for a way to easily take android screenshots in a lossless image format, since my OEM only does jpeg.
Didn't want to install another adware and wound up with the adb shell screencap command since I need the pictures on my PC anyways.
But instead of a nice one-liner like
adb shell screencap -p > screenshot.png
I need 3 lines in a bash script.
Can we please just end the line ending wars?5
Me: I've never been so long without exercising (since before this, my first winter), I should get in shape now that this God forsaken weather is finally reaching livable levels.
(some time later at the gym)
Also me: You've always been in good shape, why stop with just chest, let's do some arms and shoulders.
(48 hours later, Monday morning)
I had to turn my whole torso to look if any car was coming while walking to the library, moved like terminator because of the massive neck muscle pain, suffered through the pain of setting up all my study material to the realize (just now) I can't even fucking look down to my notebook... Can I be more stupid?1
I have a new personal project that I hope I'll share with you guys one day. It just came to me. A fog simulation for a window manager such that it has fog behind the transparent console while you code and the fog goes in front when the terminal is locked. How about it?2
- Be me, developing mobile game
- Make the following goal, coz project is very important.
- plug phone to laptop for testing.
- phone gets charged
- phone doesn't die for 2 days, fuck you ain't getting any entertainment forever1
I was given 6 whole months to rewrite some old monolithic web app exactly 5 months ago today. Now I have to show my boss the progress I've made. How do I explain him that I wasted my time in this order:
1.- heavy procrastination
2.- try new frameworks to work with, pick one, start writing the app, regret and start over again using a different framework.
4.- existencial crisis and self doubt.
Now all I have are a bunch of incomplete buggy modules and a mental breakdown.8
Got my first job, 3rd year student from my country took me in to help making an app for a company in Texas... All the other guys are from 4th year or graduate school. Feeling nervous, let's hope I don't fuck up.2
So me and my friend had to create a script while we are mainlining some phones.
As you can imagine you have to build the kernel a lot and test often. As a Linux user that calls for a script.
Since the friend already had one I asked him for it.
Upon reading it I saw sudo when using fastboot. That is not needed when set up properly which I know he did since he can debug with ADB without sudo.
So I ask about it.
"Well that's just so that I don't flash old build when the current one fails and I don't wonder why it's still broken"
So I played some room music and created the top of the freaking line building script for our needs. It had everything. Making back up of the old builds. Error checking if the build fails and even tells you to fix it if it fails (LOL I had to do that).
So I send him this script. He looks at it. Thanks me and sarcastically says she it's just tiny improvement over mine lol.3
I learned C with a K&R copy a friend gave me years ago. Now at University we in CompSci get taught in Python the first year and Java next while the engineers start with C and (I'm guessing) move on to assembly later on.
This friend comes to me all worried because he has to submit the next day a working Reversi game for the console written in C. Turns out the game was divided among two labs and he failed to submit the first one.
The guy is smart but once a week or so, when we met to smoke a joint and relax with some other friends, he was always talking about how he would prefer something like law but that would be bad business back in Egypt.
Back to the game, I get completely into it. First hour checking all the instructions he was given, then reviewing the code he wrote and copied from Internet. We decide start from scratch since he doesn't really get what the code he copied do. It took us 10 hours only stopping to eat but we get all the specifications of both labs perfectly.
A week after that he comes to me: "my TA said your code is the ugliest shit he's ever seen but he gave me a perfect score because it passed all the tests". I'm getting better (the courses I'm taking help me a lot) but what really made me happy is that he solved the next lab by himself (Reversi wasn't the first time I helped him, only the first time he was absolutely lost). Now he actually gets excited about coding and even felt confident for his programming final.
No more talking about being a lawyer after those 10 hours, totally worth it.1
Fuck whoever is responsible for the backup and restore features of ADB. Luckily I had a backup in a different format, but if it was up to ADB's shittyness I would've lost all my data.
OMG... I want to thank my mother for changing my diapers for many years, my brother for all the games he no longer plays, my wife for actually making money, my plant for the awesome smell, God for maybe doing something (I guess), thanks @dfox, @trogus, and each one of you guys that deemed my rants worthy of your ++.1
After 8 hours of carefully installing Gentoo in my laptop I ended up with a... Completely unusable OS. Guess I'll try again tomorrow, apparently I didn't set up the kernel with the appropriate drivers.2
From time to time I go to the office bathroom and there's this guy who's leaving without washing his hands.
I admire his courage for doing so even if there's people around!!2
Story time: Once I sent our android developer a project that he was supposed to compile and install on a test device. On my machine everything worked perfectly but on his machine ADB would keep failing to install the apk. After an hour of scratching our heads we figured out what happened:
He had just received a new Chinese action camera from Amazon and plugged it into his PC to charge. Turns out it's running rooted Android and runs ADB Debug mode by default. So the build script would try to deploy our phone app to his action cam instead of our test device5
I just fucked up real bad:
My phone was giving some error about not being able to install an update. Fair enough, i think to myself, so i try rebooting. Still nothing...
I then remember that i at some point OEM unlocked it for some testing, so i start up adb and see if i can connect during the update process. I can't. This is bad: I can't get into my home environment, nor can i connect with adb
Then i try booting into recovery, but instead of booting to ACTUAL recovery, it boots to some custom made "E-Recovery" made by huawei (my phone is a huawei p9 lite), which only gives me the option to download the update, which crashes, and no way of resetting. However, from here, i am finally able to connect to my internal storage via hisuite to make a backup
Next up: Bootloader
So i next load up the unlocked bootloader to try and manually flash the update. That works great, but it still wont boot normally. So i figure: it must think my device is in fact a different device. At this point i'm pretty fucked: Even though i have my data backed up, i can't manually download the update from huawei's site because i don't have the right keys, and i can't download an OTA because their site sucks and half of the downloads don't work, including the one i need. So now i'm stuck here with a bricked phone because EMUI doesn't know how to install an update.
I then did the stupidest thing i have done to date: i wanted to flash a custom recovery image over the "E-Recovery" in order to do some troubleshooting, but instead of writing
"fastboot (mydeviceid) flash recovery recovery.img"
"fastboot (mydeviceid) flash boot recovery.img"
Meaning i flashed my BOOT partition with a custom recovery image that turned out to not be able to run. Great! Now i've totally fucked my boot sequence
I can't call their support line either, because as soon as they realize i've tried to restore it myself, and therefor had my OEM unlocked, they basically just hang up.7
Can anyone transitioned from eclipse adb to android studio actually work with the damn studio?
The eclipse plugin was one hella glitchy but working with it was easy and clear. The Studio makes every fucking simple thing to science.😅5
Okay new Rant
INSERT TRIGGER WARNING HERE
OSX still sucks I have been using the bloody darn thing for last 8 months still I found things that are obnoxiously trivial missing.
Latest incident I was trying to plug in my android phone(soft bricked) in recovery mode and I had to push a file with ADB (i save this mutherfuker for another day). So back to the original topic now I plug it in and but turns out it doesn't recognize my device now as a preliminary check I decide to check my USB cable and my DONGLE both seem to be working fine now I try rebooting back into recovery. Now after scrapping the internet for a few hours I find that this problem is caused because sometimes due to a recurrent bug in OSX the operating system sometimes fails to recognize the difference in between directories "Adam"(just an example) and "adam" which in turn can interfere with some of the flags used while checking if a device might be connected.
I mean this is fucked why the fuck can you not simply use your device as an external storage that would have made the process easier by a fucking lot.
I think the people at Apple are going the destroy a UNIX powerhouse just to make their OS more CUPCAKE friendly.
And all of this is in addition to the problems with AFS.
I just wish I had not bought mac for development5
I use mail.com and the amount of websites and companies that ask me if I'm sure I don't mean Gmail is so annoying. One finance company even changed it to Gmail without asking me! Time to change email addresses?2
Made a root only app: enable/disable GPS, mobile data, airplane mode and etc. work on not rooted device(yes all these functions work too).
How: Desktop app which downloads cross-platform ADB drivers, unzips them, executes a few commands, deletes the drivers and voala.
P.S: I use local ADB TCP connection(yeah I ported a part of the drivers for java android) and write_secure_settings granted with 'pm grant'.
And everything is user-friendly with screenshots explaining how to enable ADB and how to click a 2 buttons.3
Every. Single. Time.
Push APK to device. Runs.
Make code change. Try to run - but device not shown in ADB list.
Only this sequence works, and not every time:
1. Turn off USB debugging on device
2. Turn off debug mode with toggle on device
3. Turn back on debug mode, then toggle USB debugging
4. Wait for prompt, allow debugging from computer.
If I check remember this computer, then I need to add the extra step to revoke authorizations.
Why. WHY Can't I just push to my device while its plugged in more than ONE TIME4
So today I was asked to make a 2 programs, one to send socket data to the Android either through wireless or through the USB and the program on the Android to receive that data and send an SMS according to the data .....
Through Wireless was working like a charm, through USB required to use the adb to do some forwarding ... done that and the Android keep's receiving the data without any info inside .... after a few hours of searching and 0 info (even asked on stackoverflow 0 anwsers) so I just decided to insert a System.Threading.Thread.Sleep(250); after the Connection is done when its chosen the Cable on the GUI ... and now its working -.-2
The story by @orimligt reminded me of this: I was on an HTC Droid Incredibly and kept running out of disk space, so some insane sequence of events led me to try to store the Dalvik cache on the cache partition or something. I unpacked the boot image, edited the init script to bind mount the directory, repacked it, and...it bootlooped great.
I still had the boot image, but in my ~14yr-old wisdom I hadn't taken a nandroid backup. How do I flash the new image if I can't boot? The ROM wasn't even available anywhere on the Internet anymore.
After two days of tinkering, I finally realized something: I could take a nandroid backup, swap out the boot image, and then restore it. Lo and behold, it worked, and the phone lived to see another day (it still works too, of course also still on Android 2.3).
On that note, now that I'm writing this, I think maybe adb + dd while in recovery mode or fastboot flash boot would've been easier. But hey, if it works it works. ¯\_(ツ)_/¯6
Fucking hell, using Android studio and chrome Dev tools at the same time is a pain. You'd think Google would have their shit sorted when it came to sharing adb with their own programs.
Is there anything worse than bugs that you can reproduce easy but lack exception/error messages so you can't fix it?
I'm working on a hobby project for Android and I can't solve a bug and it's killing me (the whole project depend on it). I went through all phases:
1. I notice the bug early but couldnt reproduce it so I let it be.
2. I notice it happen a lot when I started to use the framework for real. Decided now that I need to fix it.
3. Found the exact way to reproduce it.
4. Trying different ways to fix it, nothing works.
5. Write question on stack overflow, no answers.
It feels like if you can reproduce the bug 100% of the time it should be easy to fix right? Well hell no - no exceptions, no error message and adb hangs until I stop the procedur. The last kick in the balls? When I stop the procedur I get all logcat messages back and everything look like normal. Just give me a damn error message! Tell me what you're doing or what I'm doing wrong!3
I like the settings on my phone as dark as the dungeons with Geralt and a torch or the awesomely dumb flashlight from Doom 3.12
That feel when your friend uses your old phone and gives it back then didn't tell you the password.
Then that extra feel when you try find a rom for it and get lucky but then you can't find the correct gapps version so you just adb install ancient apps from prehistoric times......
Feels bad man2
Wanted to use WordPress for a landing page with a knowledgebase, installed wp, remembered how shit it is and deleted it right away. It never felt so good to press that "Delete database" button.
I'll stick to a responsive theme for now.
Googled for about 2 hours now and can't get this shit working. Trying to launch the Android Wear Emulator through Android Studio using KitKat 4.4 API. I created a new device within the device manager using 512 MB RAM and 128 MB VM. Square Display.
I am running on osx 10.11 El Capitan on Software Acceleration (because hardware doesnt even boot to the android logo). I get the following error when running using ./emulator:
Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 25
What does it mean? I couldnt find an asnwer on the net.2
Just wanted to do some scripted image resizing for school in school because the teacher asked me to help her with that.
So I thought: Let's just write a tiny script. Written the script in almost no time (just iterates over all jpg's and resizes them)
Now I tried to run it. Didn't have my laptop so I had to somehow run it on their windows PCs. At least it's windows 10, unlike other schools that still run XP and stuff so I thought it might be doable. Well guess what, nope it wasn't.
First tried to install imagemagick, that didn't work as only teacher accounts have admin and the teacher was already pretty scarred once he saw me doing stuff in powershell so I thought I'd better not ask to do this via a teacher account and mess with stuff as admin.
Next method: Installing msys2. That worked at least (after taking forever to install and having to mess with the av software to get it to run).
And there comes the next problem: pacman doesn't connect via the proxy so I can't download any packages. There is free wifi but only for teachers, and students aren't going to get access until the school finally has a faster connection because they'd (understandably) cause this connection to be constantly overloaded. I just happen to have access to this wifi network, too, because at least the guys from the IT dept know how bad using proxies under linux is. So I connect via wifi and it works. At least I thought: After running the script it yields weird errors about unsupported arguments even though the command is exactly the same I have been using for years (already checked typos twice)
Then got the idea of simply installing imagemagick on termux on android and transferring the files onto my phone.
Too bad we aren't allowed to attach our own USBs to the pcs. Luckily I got a rooted phone so I simply activate adb over network and connect to it.
After downloading the platform-tools I can't run them because of AV software. Luckily there is an option to add an exception per executable so I do that. After doing that it works.... nope it doesn't. The wifi only allows 443/tcp and 80/tcp, even for internal network devices.
So that's it. I'm simply going to upload that stuff to my nextcloud and convert it at home.
Windows, I hate you!!!2
Not only can I not download the attachments in bulk from my Outlook account, but the download button opens a new f*cking tab where I have to click download again after it fully loads the whole page. I'd gladly use this shit software if for every attached file I download a wrench would tighten on the genitals of the idiot that design it.4
I am lazy to pair my android device to another android device via blutooth for tethering(Pan Access Network) for internet access. Wifi sucks too much battery. Whenever pairing is done, device asks for prompt message stating "yes" or "no" for connection. I want that it automatically by default give permission to connect. Is there any possible solution (maybe through adb shell or something). I have tried every site related to this issue but most of them have unix system Bluetooth issues so no luck. Reply if you know a fix.
Fuuuuu I tried sideloading the devrant app on my Android watch but it kept crashing so I did a logcat over ADB and saw they use function that don't work on watches. So Damm sad I wanted to watch some rants way more sneaky5
Just enrolled myself in Andrew Ng's Machine Learning course at Coursera for the summer, is it a good place to start? Any recommendations?
y'ALL I AM LEARNING ADB/FASTBOOT
WHY DIDN'T I TRY THIS SOONER
now i just need a rom that's compatible with the kindle fire 1st gen, firefirefire, and twrp 188.8.131.52
Q).How does one try to understand how or what a programme is in a third world country with no basis of proper infrastructure?
Apart from using raspberry pi which not only requires a person to help yiu understand it but cost a lot.......Something that Completes the circle , from bundling the the hardware with seamless software out of the box and for the fraction of the cost of a raspberry pi
[Open to all sorts of input.....from this thing has no practical use to lets do something]3
Wondering if I should install adb and android dev drivers on my dad's laptop just so I can reflash and upgrade OpenGApps, LOS.
The locations services didn't seem to be working well, seems it may not be using the GPS,. just wifi...
I don't have all the backups, stock images I have at home either and not sure I want him to see me fucking up my phone...
Convo I had last time:
Me: Oh I bricked my phone again, for now you can reach me by email
Dad: wtf? Why?
Me: well it's complicated... Wasnt working and so I wanted to reflash and upgrade everything but ...
Dad: stop buying shitty phones
With firebase, is it possible to see events in realtime? I know how to debug on my device via DebugView via adb. But I want to distribute a test build to my client and I want him to be able to test events himself. I saw there is a StreamView but it allows to only select a snapshot of random user. I need my client a way to be able to test the debug build on his device while being able to see events in realtime, like for example it's being done in Segment. Is there a way to do this in firebase?
Don't tell dev rant. But I'm going use ADB to sniff their SQL packets and make a neral network with all the posts for that damn stress ball3
Not really dev related but here it goes:
Decided to update some apps on my phone during lecture. Suddenly android crashes and is stuck in a bootloop. Went to safe mode where "downloaded" apps are disabled but wanted to at least be available via telegram. So I followed a guide to manually convert an app to a system app and tested with some random app that I didn't care for. That worked flawlessly and then decided to proceed with telegram but it said that moving failed but actually the folder was moved. I took the chance and rebooted (again to safe mode) only to find out that now the system ui crashes as soon as it loads, also rendering the safe mode useless.
Great that such things always happen when you don't have access to a trusted machine with adb installed.
Insane code. I was printing user name and password in adb log for my android app. So we were reading all the users credentials.
We removed that log before users start knowing it. :p1
Not exactly a function in a programming language, but as far as Android SDK goes, typing "adb lolcat" instead of "adb logcat" is easier on fingers, and funnier !
Spent hours installing m2cryoto adb openssl on Windows but couldn't reach anywhere, at home it took five minutes and done. There is nothing like osx (brew) and linux. Things are so easy on them. They make development faster.
Hey guys I've got little question, sometimes it is more convenient to me to get the adb Debug informations in a terminal instead of Android Studio, is there any way ONLY show Logs from a certain level? Even after reading the docs I couldn't figure it out 😥😥😥