yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] thebighammer:
This photo is from the connector coming from a flat cable that interfaces with a chip soldered on the board of a galaxy S4.

Is this a proprietary interface? Or a standardized format rather?

My goal is to reverse engineer this with the objective of emulating via software the codification of the signal sent by sensor in the camera. The emulation will be done by processing an image in digital format (or sequence of images, as in a video) and converting it into an analog or digital format in a manner that is expected by the correspondent chip and subsequently efficiently replacing the camera with an USB cable coming from a computer. Exciting, isn't it? :laugh:

I just don't know how to do it from a hardware standpoint yet as I have never dived this deep into hardware hacking.

Blueprints and schematics are welcomed as any other elucidation of what this interface is and how it operates.

I hereby thank you for reading all of this.
[General Questions and Answers] Droidriven:
I'm not sure where to direct your question, this website primarily deals with hacking/modifying things from a software perspective, not really a hardware perspective.
[General Questions and Answers] thebighammer:
Thank you for answering anyway.

I will wait just in case someone gives me some information.
[General Questions and Answers] Droidriven:
If you intend to use the existing camera in the S4, you are probably kicking a dead horse due to the fact that you'll probably run into issues with the stock kernel in the S4 hardware, kernel compatibility is very vital to getting your device to work with any other hardware that you add to the system, add to that the fact that the S4's stock camera source code is closed-source. These make your project a rather gargantuan task from a software perspective, regardless of what potential hardware mods you make.
[General Questions and Answers] thebighammer:
It doesn't have to be a Galaxy S4, it can be any phone to be honest.

Yes I am aware of its firmware being closed-source. However I was expecting to read through those pins and find unencrypted data that when read could be interpreted as an image, and then figure out how that image was encoded so I could replicate it.

I do not intend to use the camera at all including the interface connector. I would actually solder the USB inner wiring to the chip directly and have the data sent through those wires identically formatted as the camera did, with the hope that the receiving chip wouldn't know the difference. At least that was what I intended.
[General Questions and Answers] ktmom:
See if this thread gets you anywhere
[General Questions and Answers] Droidriven:
It is like that for all devices, not just the S4, camera source code is a closed-source proprietary owned and strictly controlled software.
[General Questions and Answers] RKS96:
How can I auto connect to open WIFI AP each time I unlock phone except when phone already has connected to network before unlocking. Is there such application? I know android 8 had such function, but device in question uses android 6 MIUI and is rooted. I know this function can be a security issue. I know it is possible based on code, but I don't know Java and android development that well.
[General Questions and Answers] ktmom:
This capability isn't built into marshmallow. There were apps that does this, one was Wi Fi Buddy
[General Questions and Answers] xunholyx:
Use apktool to decompile the camera.apk and reverse engineer it from there
[General Questions and Answers] mrrocketdog:
ok awesome helper-outers ,

i have a brandnew galaxy s4 sgh-i337M (canadian) sim unlocked phone.

so i put my sim in and get a big 0 in the status bar. so i reinsert sim card and do a reboot. no help. next i get a new sim card. same thing at first but then after a reboot i get a LTE with in/out traffic arrows and a triangle with 2 bars.

well it works. i make a call and send a text successfully.

the next time i try i get nothing. then it starts jumping from a 0 to a data connection. during the data connection when making a call it "appears" to be placing the call but i dont hear ringing on my end. then after a couple minutes it just stops trying to place a call. text messages same thing. appears to be sending for a couple of minutes then i get a failed message.

so .... i switch out the sim card reader/extSDcard reader (they're connected) from a working s4 because i think maybe just a bad sim reader. nope. same thing. i have the data connection signals in status bar but same same on calls and texts. stock 4.4.2. clean IMEI

anyone have an idea for trouble shooting?
[General Questions and Answers] CherryShobe:
RR infinite boot animation, need help.

Mod Edit: Quote Removed

I'm having a problem with RR 7.X GSI on my Razer Phone 2. I am using Arter97's Kernel (R12) and RR7. The boot animation goes on infinitely and I can't find any thread to help me whatsoever. A fix to my problem or another custom ROM would be highly appreciated. The Razer Phone 2 code name is "Aura."
[General Questions and Answers] DiamondJohn:
The last_kmsg is commonly the first port of call when experiencing and trying to debug a boot loop.

also, are you on a clean flash? or have you added things or installed using a dirty flash? have you tried the ROM without Gapps? Some have been known to need to boot once without gapps. Actually, just noticed you are using a custom kernel. Does it boot with the built in kernel?

Are others (have you found any others? or at least the ROM builder? details may be found in the build prop) experiencing the exact same with the exact same ROM & version? or is it just you?
[General Questions and Answers] CherryShobe:
Reply

I'm on a clean flash, (deleted system and dalvik). I've only added Gapps. I've tried it without gapps and it still wouldn't boot. I can't check without arter97 kernel as that has TWRP baked in and I can't access TWRP without it. Currently running RR that won't boot. Other people have the same issue but I can't find a fix.
[General Questions and Answers] ktmom:
Can't you fastboot boot twrp?

Is RR for your device a GSI ROM? If it is, I thought GSI ROMs require the corresponding stock boot.img. Do you have a link to the RR ROM you are using?

Did you install Magisk in this process? If yes, have you tried without Magisk?
[General Questions and Answers] CherryShobe:
r

The RR rom I am using is a GSI. I got my rom from https://get.resurrectionremix.com/?dir=pie/gsi and the exact rom is ARM64_AB_20191205. Also no Magisk.
[General Questions and Answers] ktmom:
So this is an older phone that has been sitting on a shelf for awhile, right? My thought is that there is corrosion/tarnish affecting the ability to read the card properly.

I think the reader you swapped is the part that plugs directly into the board. Maybe plugging then unplugging will wipe the contacts. You could use a good magnifier to look at the connector to see if it's dull.

I would also throw resetting the network settings, or a factory reset at it.
[General Questions and Answers] Van Hentai:
All is done, nothing happened. I've revoked adb permissions. Now it is no longer "unauthorised" in adb devices, but "device". But still, it does not show in My PC as a drive... I cant understand why. Maybe I cant find right drivers? How can I test what is happening?
[General Questions and Answers] mrrocketdog:
bought from ebay. looks brand new. in box. everything except clear plastic cover over screen. the card reader i swapped was working perfectly fine. will try the unplugging/pluggin in and check the connector.

have tried the restting of network settungs several times. even manually added the apn's all to no avail. will do factory reset last if above fails.

thank you [MENTION=6617276]ktmom[/MENTION] for suggestions. will get back to you with results. [emoji6]
[General Questions and Answers] Van Hentai:
Also, have plugged my OnePlus One to her PC. It is not visible. So her laptop with Windows 8 do not recognise any mobile phones... I cant find the issue on the google, please, any hints?
[General Questions and Answers] xunholyx:
That's not a clean flash, just so you know. You need to wipe data and dalvik for a clean flash. Also, wiping system is unnecessary. ROM.zips have wiping system built into the flashing script. Wiping it on your own can lead to problems if the ROM flash doesn't work. You will be left with no OS if you don't flash either a backup right away, or another ROM if you have one downloaded to your phone already.
[General Questions and Answers] DiamondJohn:
I have often used the following command, which relies on the battery history to not be cleared.

dumpsys batterystats;

However, I have noticed, as soon as I charge the phone beyond 90%, when it falls to about 90%, it issues a clear of the battery stats (ie dumpsys batterystats; --reset :mad:), so if I had a few days of stats, they will automatically be lost:mad:. Now, I can see the advantages of this auto management, but I actually need these stats to not be lost if i accidentally charge the phone over 90%.

Is there anyway to turn this feature off? or at least raise the level at which it is automatically triggered? I am running custom LOS based ROMs (Oreo and Android 10) and am rooted.
[General Questions and Answers] mrrocketdog:
well [MENTION=6617276]ktmom[/MENTION]

i am very appreciative of suggestions but alas none of the above resolved the issue.

for a minute i had the same as before , that is LTE and data connection showing but when i tried to make a call no ringing on my end and then it would just stop. trying to send a text ended with "failed".

do you think anything could be gained by rooting? NOW , no pc here so would have to use a "root app" and then flash twrp with mobile odin or "twrp me". which i have done before on a s4. root would be with superSU.

maybe reflash stock with twrp flashable .zip? i dont know. what do you think or have any other angles to try?

thank you again for ideas. :)
[General Questions and Answers] ktmom:
I don't have any reason to believe rooting will get you anywhere if a factory reset didn't help. You don't have a PC [emoji24] but my only other suggestion would be to flash the modem partition(s).
[General Questions and Answers] mrrocketdog:
well ok then. since isnt working anyway. i'll root away and flash modem. maybe that will do it.

thanks for more ideas.:cowgirl:
[General Questions and Answers] Nokia_8_fan:
Hello again!

Still with a hard bricked Nokia 8 here :(

Just wondering, despite waiting 15 minutes after plugging USB to get Qualcomm 9008 (and a Port number) in device manager, is there any reason for me to use an EDL cable, Dongle or a Box to do any work on my device?? :(
[General Questions and Answers] Tym11:
First I am sorry for long post because of details and my poor English.

I have a LG L Bello D335 running on stock Rom(updated to Lollipop via OTA) and it is unrooted.

Yesterday I tried to unlock bootloader, I typed command [fastboot oem unlock] in Fastboot mode, and my phone went to Bootloader Unlock Screen. It said to press Vol+ button to confirm unlocking bootloader or press Vol- button to cancel. I picked up the phone and press Vol+, but USB cable connection was disconnected accidently because of loose micro USB plug:crying: (that is what I've noticed after 5 minutes, it was disconnected and reconnected on moving the phone). Then phone screen stayed in Bootloader Unlock Screen and it didn't responded to pressing keys.

On computer cmd windows, after [fastboot oem unlock] it said:

Then I typed command [fastboot reboot]

and it said:

Then I typed command [fastboot devices]

and it showed strange code like:

I didn't check [fastboot devices] before and I don't know how the result is.

Then I've noticed loose micro USB plug and thought bootloader unlock process was interrupted.

And I disconnected phone and boot up and the phone is working well and all app/data remain like before.

But now, if I type [fastboot devices] in Fastboot mode, it is showing a strange code instead of an alphanumeric code. I don't know is it corrupted or because of locked bootloader. It is a different code every time, like:

(or)

I tried different cable and ports but always the same.

And fastboot commands [fastboot reboot], [fastboot getvar unlocked], [fastboot getvar all] are working. Bootloader is still locked. ADB command [adb devices] returns alphanumeric code.

Is it something corrupted or because of locked bootloader?

If it is corrupted,

What are the possible damages? and

How to fix it?

Thanks in Advance
[MENTION=3556242]immortalneo[/MENTION] can you help me please
[General Questions and Answers] CherryShobe:
Reply

So I tried it with wiping data dalvik and system as the ROM isn't a .zip neither is there one available. The infinite boot animation (not reboot loop) is still happening.
[General Questions and Answers] DiamondJohn:
ummmm... last_kmsg? post it up on www.hastebin.com or similar, and someone may look at it for you.
[General Questions and Answers] Droidriven:
Stuck at the boot logo is still called a bootloop, it doesn't have to actually "loop" to be called a bootloop.
[General Questions and Answers] Nokia_8_fan:
[MENTION=385537]ktmon [/MENTION][MENTION=2544442] Droidriven[/MENTION]

Anyone at all on this?

Also I just don't understand why it takes exactly 15 minutes after plugging USB that the phone pops up in device manager as Qualcomm 9008, what's happening inbetween that time??

Worse of all, I am still not gaining access to my device :(
[General Questions and Answers] ktmom:
Sorry, I don't have anything to add [emoji17]
[General Questions and Answers] CherryShobe:
RR Help

I got RR to boot.. BUT the WiFi always turns itself off making it not able to connect to any wifi. There are no google apps and installing Gapps bootloops the phone. I've tried flashing stock vendor, modem, bluetooth and ASD. Nothing worked. Please help.
[General Questions and Answers] Nokia_8_fan:
How can you do this to meee? :(

JOKE!

Do you think I should try doing the EDL test points on the actual board?
[General Questions and Answers] Droidriven:
At this point, any possibility is worth a shot.
[General Questions and Answers] iLoveMuffinz:
odm.img.ext4 keeps failing to flash when I try to flash a full stock rom in Odin, and I got no idea why. My phone, a SM-N9600 shows "FRP is enabled, ignore pit download" but this hasn't been an issue when flashing before until now. I'm trying to upgrade from android 9 to 10 by changing csc, and its the first time I run into this issue. I can provide a log if necessary but I think I've detailed enough
[General Questions and Answers] Chadodius:
Looking for help or right direction wifi/mobile data

Hello, I've been searching the internet and havent really found a good solution for an issue I have. That being using my wifi and mobile data at the same time. I am not trying to download anything faster and Speedify while does the job cause lag for my application.

What I have is a motorcycle i installed a wifi backup camera on to use as a rear view mirror it broadcasts its own wifi my phone hooks up i can see fine. At this point my phone looses mobile data and I lose navigation and music. If my phone switches to mobile data my backup camera stops working. Speedify helps but causes to much of a delay to use the backup camera as a rearview mirror. I need something that combines these signals with out running through a VPN. Any help would be greatly appreciated.

Is there a setting, an app, or a root mod I need to do? My phone is a Moto Z2 play.
[General Questions and Answers] ktmom:
I'm curious if enabling;

developer options -> moblie data always active

helps in this situation. I'm assuming there is no internet access on the wifi. It may try to force the backup camera app to mobile data.
[General Questions and Answers] Chadodius:
Thank you for the help, I will definitely try it next time I get to my motorcycle in the next day or so. I will also let you know if it worked.
[General Questions and Answers] Droidriven:
Why are you only flashing the CSC? Why are you not flashing the AP file also? The AP file is where the system.img is located, if you want to go from 9 to 10, it requires flashing the android 10 system.img over the android 9 system, which requires flashing the AP to achieve.

Have you tried booting to stock recovery and factory resetting before attempting to flash via Odin?

Are you using the correct files for your specific model number or are you trying to flash firmware parts from a different device?
[General Questions and Answers] rlrevell:
It can probably be rooted with mtk-su. My LM-X420 (aka LG Xpression Plus 2) is.
[General Questions and Answers] odiebugs:
general android q's

If anyone can help would be appreciated and you can answer any number as I wanted to ask a few.

1, Does android have every driver or does mfg add drivers for their hardware, ?.

2, If a devise has android 7 and I install oreo firmware using the four rom files( bl,ap) does this change the os to oreo or does the phone just list it as oreo under software and think it has oreo but really has 7, ?.

3, Is there a way to stop android from using 8g when it's only a 3g install, ?.

4, If I have j727v, can I find a different model that has pie with same processor and chipset and can I open in binary to change it, taking a IE- j737vvrusd1 and making it j727vvrusd1 so it will install, ?.

5, If android pie copy doesn't have all my drivers can I extract them from my phone and inject them into a pie copy and install pie on phone, ?.

6, Software like twrp seems to be model specific, are there general ones that will work or will a close model work, IE- having a j7v (j727v) and using a j7, ?.

Sorry, but I figured this is better than having six posts.
[General Questions and Answers] Raresh T:
2. If you install an Oreo rom, your operating system will be Oreo and listed as Oreo.

3. The 3GB rom is compressed. Take for example windows 10. Downloading from Microsoft gets you a 8 gb update. After you install it, you see that it took 20 gb from your partition. Similar way here. You might get less size if you tinker with each rom, but doubt you could less than a few megabytes.

6. You need a twrp made for your specific device. Think glass doors (your phone) and solid steel (twrp, bootloader, rom, kernel) keys. You use the wrong key and the door might shatter. In very few cases it might work, but I wouldnt start using whatever zip you find without throughly check beforehand. That if you value your phone.

4. If you were to find a ROM with nougat, as your device, it would be easy to port that ROM on your device. On the other hand, if you find a device with a higher version of Android, is not that simple. Complete different job. Way more harder. I would suggest to dig around project treble. With a bit of luck, your phone might be close to being compatible.
[General Questions and Answers] odiebugs:
Thanks for taking the time, sorry about # 3, can't believe I forgot about cab extraction in win when installing, my bad, should have known android would have compression also.

TY

Only if you get a minute can you reply, just wondering if we can install the 4 rom files and get a different OS, why is there a boot loader way to install android, does it have to do with locks on the OS and only original rom files can be flashed with odin but not different roms due to kernel id, ?.
[General Questions and Answers] ktmom:
Yes, you can only flash images that are properly signed. Unless, the bootloader is unlocked. That is the purpose of unlocking the bootloader, to prevent it from verifying proper signing of the boot.img (kernel). If you flash a non OEM boot image to a locked bootloader, you end up with a brick [emoji6]

From your first post you asked about TWRP. If you read the TWRP.me website, there are instructions about developing TWRP for your device.
[General Questions and Answers] odiebugs:
I really appreciate it. Will check the twrp site and ty again mod. I have 6 junk iphones don't need a brick. :laugh:
[General Questions and Answers] iVolgin:
Type password to decrypt but no keyboard Please help

Hi. My phone was in my pocket and was vibrating alot so i took it out and somehow it was rebooting and then installing an update and then it took me to a black screen saying "type password to decrypt storage" but without any keyboard

FYI: my phone is an honor 8 frd-l09 I dont have twrp. my bootloader is locked and i cant get Adb nor Fastboot to recognize my device.

Edit:Thanks for the help.i factory reset it.
[General Questions and Answers] ravenmonk:
Help with S4 root i337m

I have been reading the forums for days, and I'm so confused. I've seen Motochopper, CF-Auto-Root via Odin, and also this Casual app:

http://xdaforums.com/show....php?t=2297900

...Which method should I use for a new S4 coming this week?

I intend to use CyanogenMod. Can someone please list which method and what are the steps in order, so that I don't brick my new phone?

Is there a better ROM than CM? Are there still camera/BT issues?

Is there a camera app I should download? Link?

Is there a gapps package I should download? Link?

So far the only reply I received was someone telling me to read more, but that's just making things more confusing.

Please help!

Thank you.
[General Questions and Answers] ravenmonk:
Furtherto S4 i337m...

More reading all morning has revealed:

1. CF-Auto-Root is only necessary in case of MF3 firmware?

2. Should I use 3step or Casual app (Canada, Rogers)?

3. Recommend CWM or TWRP? Only CWM does auto-loki correct?

4. Recommend Superuser or SuperSU? How to remove Superuser if I install SuperSU?

5. Recommended ROMs? Stay with stock or go with CyanogenMod, or another? Which ver? Issues (BT/camera)? Do I need gapps package (link?)

Thank you!
[General Questions and Answers] EkimElgo:
Help!!! Bricked Samsung Galaxy S2 T989 (T-Mobile)

My friend rooted my phone for me using ODIN. I went into a app called rom toolbox pro and attempted to change my 4g icon. It went down hill from there. My phone shut off almost immediately. It was stuck on a boot loop. I looked up how to flash my phone and it did not work. Now only the Samsung logo will pop up for about 2 seconds and then the phone turns off. If and when it does turn on it then gets stuck on a Cyanogen logo, which is a blue circle. I need some help guys! I don't:mad: believe I had a restore file either.:mad:
[General Questions and Answers] ADDICT.ANK:
Cf auto root for rooting..

but before that do backup ur data and imei..

For rom.- Go with Latest CM and enjoy it first,. as it will give u some knowledge for choosing custom roms also..

Issues are there with cm rom so use the most stable version and also lookout for the fix..

BT and Wifi Issues can be resolved with correct permissions or by using the stock wifi or bt modules.

About the gapps pack - yes u have to download that after flashing the rom u have to flash the gapps in order to work and don't forget to wipe data and cache.

So now it's on you and do anything carefully and again i say this do make a backup and keep it on ur pc also.. As it does comes in handy.

and post here

---------- Post added at 12:17 AM ---------- Previous post was at 12:14 AM ----------

Firstly from recovery wipe cache and only cache not the data..

Combi for entering recovery home + vol up + power.

Try again from the download mode and use pc odin v3 only

and then flash a stock rom or kernel..

if that doesn't help then post here..
[General Questions and Answers] ravenmonk:
...backup before root? how?

With Odin, do I leave 'auto-reboot' checked or turn off and pull battery?

After root, can I use the 3step hack to install CWM? Or do you recommend TWRP from Goo Manager? Why?

Thanks