SD Card + 2 sim hack Bypass solution - Android Q&A, Help & Troubleshooting

Greeting
I've a problem in my Note 9 device
Not allowing to USE 2 SIM card + SD Card hack
it works fine but an error/blocking message from Samsung "There seems to be something in your SIM card tray slot that doesn't belong there, Check it and try again"
Any solutions ?
Tweaks: bypass MicroSD/Sim2 tray lock
So as most of you know, in latest Oreo firmwares Samsung added a check to prevent using both Sim2/MicroSD at same time in one slot (screenshot in attachments), fortunately this lock is pretty much easy to bypass, do this:
Decompile services.jar, open /com/android/server/StorageManagerService.smali class and in it search for isSimSdBlock() method. It should look like this:
Once you found it, all you have to do is to make sure the method always returns false, so basically all you need to do is to replace the whole method code inside to match this:
Code:
Recompile services.jar, push it on your device, profit
Credits to @corsicanu for the finding, don't forget to credit him if you're gonna use this little tweak on your project
Only solution i found but don't understand what is serviecs.jar where i can find it in my phone

Related

[Don't steal my phone] Another thief protection software

Hi,
I've found many software that supposed to help in case your phone get lost or stolen.
Some were expensive, some were free, but none fitted perfectly to what I was really expecting. So I've made my own.
The closest in terms of functionnalities (and price) is Remote Tracker, but it requires .NET 3.5 which is not installed on my WM6.5 phone, and honestly, it's a very fat dependency.
The idea is that you install this software (no CAB, simply copy the 2 files on your phone), and run it once to set up the configuration. Then forget it.
In the case the phone is stolen, the software will send you a SMS with the thief's phone number, it's GPS position, the CellID in case the GPS pos is not available.
You'll then be able to act on your phone remotely by sending it some SMS (described in documentation).
The features that makes this software unique are:
It's possible to destroy all your personal data remotely (call log history, contact, emails, SMS, calendar, owner info, storage card) -> help social engineering to get back your phone.
It's possible to make the phone send you back the call history and the sim contacts.
Slut mode (see the documentation for details).
WOULDYOUSHUTUP mode (where the phone is very very nasty).
All other tracking software features...
This software is open C++ source (GPLv3), small (75ko with no dependencies), and free.
You'll find it at http://dsmp.sf.net (documentation on that page)
Or the direct link is attached.
Beta tester welcome (I've tested all functions already, but, you know what software development is....)
Some remarks for those who don't read threads:
whereRU: requires you to have at least a .wav file in your windows ring folder. I thought all phone had at least one .wav based ring. In 64kb, I haven't included a MP3/AAC/MP4 player.
owner: This is what I said in my first posts. Microsoft didn't feel it was interesting to document how to retrieve owner info. So, almost all manufacturer have made there own proprietary stuff. I've a HTC phone, so I've checked the code work for HTC. If you have more information about where your phone store its owner information in registry, I can add your phone support.
contact: On the main config dialog, in the combo box where you can enter the phone number to contact, you'll have a phone number list. It's the same list as returned in the "contact" command. So if you don't have such list in the config dialog, then this means that either you don't have any contact on your SIM card, or it's not working (in that case PM me).
Please read the website http://dsmp.sf.net
To install the software:
1. Extract the zip file (either on your phone, or on the PC, and then copy the 2 files from archive to your phone)
2. Run the extracted exe on your phone. If you have signed warning say yes.
3. Set up your configuration (DON'T check "Don't show this screen anymore")
4. If you have a GPS in your device, go outside to make sure the GPS is working with the configuration you've made
5. Enter a (not yours) phone number in the SMS par edit/combobox
6. Enter a password in the edit box on the bottom
7. Click done => Say yes.
8. Start the software again, enter the previous password in the field on the botton to unlock the dialog, then click on "Configuration done, install now"
9. If you have signature warning for the DLL say yes.
10. It should display "Installation done". You can then send yourself a SMS with the right format to check if it's working.
11. If it's working, delete the SMS you've just sent from your outbox, and trash, and then start the software again and check "Don't show this screen anymore". You'll have to click "Configuration done" again, but this times, you shouldn't have any warning.
12. If it's not working, well post on the forum.
Changelog:
- Added "allow" command so it's possible to use multiple allowed SIM card. Setup the software as described above, and then change your card. You'll get a SMS with the new number (if not, your configuration isn't good). Then reply with the command "dsmp # allow # password" with no space between #. This SIM card is then allowed. You can have up to 4 allowed SIM card.
- Fixed an installation bug on non-french phone. Sorry, I've been lazy, and it should be fixed.
- Added support for "Dsmp" in addition of "dsmp" as trigger code
- More owner info retrieved for HTC phones
Please go to sf.net page ( http://dsmp.sf.net ) if you want to get the debug version or source code.
sounds impressive ! i might give it a try!
good work !
CDMA diamond running a 6.1 rom. got to step 8 and each time I enter in my password and close my keyboard the screen where the keyboard was (touchpal is my SIP) shows the screen behind what it should show. hope that makes sense. how do I uninstall this software?
also, I dont see anywhere where it says what WOULDYOUSHUTUP mode is.
WOULDYOUSHUTUP is what happen when you send a sms with "whereRU". The phone rings at max volume for 60s with no possible way to stop it, even if it was in silent mode.
Useful when you've lost your phone nearby, (it won't stop until you've found it, or 60s later), or, as intended, to become a nuisance to any thief in the middle of the night.
To uninstall the software you must click on "Zap" button, but you need your password for that. BTW if you haven't done step 8, you don't need to uninstall, as the installation proceed only when you click "Configuration done" button.
If the software doesn't accept the password you've set at step 6, then it's likely that it was entered wrong at first? I'll PM you about this, if you don't mind.
installed it, and tested a whereRU with another phone, doesn't work. :\
I've answered with specific details by PM. I trying to understand why installation didn't work for you. I'll update the post with the informations you'll give me.
sounds really nice.
I just see some problems. These problems apply to any anti-theft program :
If you have a pin-lock for the device (not sim card lock, the built-in windows lock), the thief will not be able to change anything (owner, ...). He can only change the sim and try to boot, what will of course fail. As this fails (without unlocking phone-lock, no dialing), he will not be able to establish a connection to his mobile network and you will not get his number (?!)
As hard-reset is always possible (every thief can google ) w/o the program being cooked into rom, this software is senseless if you can't cook roms. I can't
If I understood it correctly, you would need to edit the 2 files to your needs (with numbers aso) at first instance and afterwards cook them into rom. This has to be done by each end-user each time he flashes a new rom and cant be done by rom-chef because he doesnt know your data.
Isn't it possible to make that wireless? E.g. you specify an email there and the programm will at first boot after hardreset (after cooking into rom) establish a connection to a server (or mail to specified mail) to download the details (cell number, pw, ...) you entered in the server? ^^
You only can enter one own cell number. Bad if you sometimes switch the sim's.
Would be better to implement that from remotetracker:
SIM Cards: you can set up to four known SIM cards. If you, or anyone, change the SIM card to an unknown card, your emergency number and e-mails will receive a message alerting you about the change and with the new number
Click to expand...
Click to collapse
* If you use this kind of software, you'll want to make your thief believe he succeed owning your phone. If you PIN-lock your device, then the thief will have to hard reset the phone to use it, defeating the whole process.
* In my previous phone (Universal), there was a Extended ROM made by the operator that survived hard reset. I've used that ROM by that time.
Now, you're perfectly right, with a single ROM, the hard reset kills the software. Your idea of using a external server is genius. I guess I'll add this, using your device ID (which doesn't change whatever the ROM) (or IMEI), to retrieve the config for your phone. The config will be saved on a server, and the config can be sent back by SMS (so even if the thief doesn't have network contract, it'll work).
* You switch SIM ? Is 2 SIM okay ?
I wanted the software to be extremely simple to setup, so it detected the IMSI by itself.
Now, if you need to store 2 IMSI, it'll need another edit box to let you enter the IMSI numbers.
I can add a new command "allow" that, when you've inserted your second SIM, will allow the new IMSI upon receiving.
Let me think about this.
Yep, but I won't -of course- disable excellent built-in security mechanisms to make it *perhaps* easier to get the phone back just in case someone steals my phone.
The phone-lock is ideal to keep away random access to private and corporate data from other persons (friends, aso).
Despite the lack of some functions I installed the program yesterday and it doesn't work as thought:
The program loads after each reset again with the config screen
The program is active in task manager (dsmp.exe)
The sent commands aren't executed. If I send the commands (e.g. rst or whereRU) to the phone, the display turns on but nothing happens.
(perhaps the first 2 problems are caused because I did not hide the program yet with "Do not show this anymore" Not sure about that )
You could just say at setup: Now turn off the phone and enter your other sim and start the setup again to detect the second sim
hi popol256,
is there a chance for a very thin application, that after installed on a phone (e.g LEO) makes JUST the following:
- receiving a predefined SMS lock's the phone and encrypts the msd card.
To unlock the phone and decrypt the msd card, just a so called "master password" or whatever needs to be input.
That's all
thank you,
/s1
Locking the phone is possible (but again, if you lock the phone, then the thief will hard reset it).
Encrypting the microSD card is not, I think.
So far, I think you need to either encrypt it at first use (all WM6 phone have this as a base feature). When you have data on it and want to encrypt, it's almost impossible as you'll need the same free space on your device as your card size to store the encrypted version.
(Or if only encrypting content, you'll need to reserve half your card size for the "possibly" encrypted archive).
I guess the best method for you if to use the storage card encryption feature of WM + pin lock.
bliblablub said:
Yep, but I won't -of course- disable excellent built-in security mechanisms to make it *perhaps* easier to get the phone back just in case someone steals my phone.
The phone-lock is ideal to keep away random access to private and corporate data from other persons (friends, aso).
Click to expand...
Click to collapse
You are right. The only way to have both would be to cook your own ROM with the software inside.
bliblablub said:
Despite the lack of some functions I installed the program yesterday and it doesn't work as thought:
The program loads after each reset again with the config screen
The program is active in task manager (dsmp.exe)
The sent commands aren't executed. If I send the commands (e.g. rst or whereRU) to the phone, the display turns on but nothing happens.
(perhaps the first 2 problems are caused because I did not hide the program yet with "Do not show this anymore" Not sure about that )
Click to expand...
Click to collapse
Yes the 2 first issues are because the config says to show the dialog.
The third issue means that the software isn't installed well.
I've only tested it on my phone, and I might have done something wrong.
There is a debugversion here
Extract this version to your card, then run the exe in it, and click "Zap". Then wait for few minutes, and reset your phone (this is to make internal mail application to release its lock on the interceptor DLL).
Run the software again, and set the config, click "done" or "ok", and send yourself a SMS (don't need to install this version, it runs from the card).
You should get 2 message box, the first one contains the path to the software (end in .exe), and the message you've sent, and the second only contains the command you've sent. If this work, well, I'll have to double check the release version.
bliblablub said:
You could just say at setup: Now turn off the phone and enter your other sim and start the setup again to detect the second sim
Click to expand...
Click to collapse
Yes, it's the basic idea (in fact, as soon as you insert your second SIM, you'll receive a SMS, but you'll then send an "allow" command to add this IMSI in the allowed IMSI list). I'm adding this.
Hehe, got the following error running the debugversion:
CmdLine (OK)
(empty)
Click to expand...
Click to collapse
Can't load DLL (OK)
\Carte de stockage\DSMPI.dll
Click to expand...
Click to collapse
Error (OK)
Can't register the message interceptor DLL
Please make sure the DSMPI.dll is in windows folder
Click to expand...
Click to collapse
Ok, my fault then, I've used French name for the path. Let me few hours to compile a new version with the regular name, I'll post back here.
Ok, I've added the "allow" command for multiple sim card. The idea is simple, configure your software as said in the first page, then change your sim.
You'll received a SMS to the number you've set up. Then send a "allow" command with your password, and the new SIM is allowed you'll never receive a SMS again.
bliblablub,
Please run the version you have on your storage card, and click "Zap" button to uninstall it.
Then delete the 4xxxxxxxxx_dfed_p (xxxxx is a hexadecimal number) from your storage card (file format changed).
Then download the updated DSMP.zip version from the main (or the official) page again.
There was a bug with the file path that should be fixed now with the release version.
Thank you for your patience.
popol256 said:
bliblablub,
Please run the version you have on your storage card, and click "Zap" button to uninstall it.
Then delete the 4xxxxxxxxx_dfed_p (xxxxx is a hexadecimal number) from your storage card (file format changed).
Then download the updated DSMP.zip version from the main (or the official) page again.
There was a bug with the file path that should be fixed now with the release version.
Thank you for your patience.
Click to expand...
Click to collapse
I can't uninstall it because it was not installed I guess (debug - storage). See errors on post before
Somehow I managed to uninstall the internal version. Needed several attempts.
Now installed again on phone and again nothing happens with whereRU and any other command except lcd turning on
Does it work fine?
Any opinion?
Nice, nice, nice. Sounds like the app I was always looking for. I will download and try. Thanks
It seems to work fine on my X1.
But gps is not recognized on port 4 baud 4800...

After JTAG, SIM Card Not Found!

Hey Guys..
So I have a LG - P698 (Optimus Link/Net Dual)
I had a custom ROM in it.. It was going well but then I saw that battery drains much faster in custom ROM.. so I tried reverting back to stock by using KDZ method.. I followed this guide : http://androidforums.com/threads/guide-flash-stock-rom-recover-bricked-lg-optimus-net-p690.852823/
But due to some error.. I can't recall it.. the phone got hard-bricked.. it didn't boot nor did go to emergency mode..
I gave it to a friend who had a RIFF JTAG Box.. and he fixed the boot and flashed again with the above link.. this time it flashed..
But thing is that after flashing, the network never came up.. It showed no SIM Card.. but the SIM was inserted.. I tried the SIM on my old HTC Gene and it worked.. But on the LG it showed No SIM Card..
The strange thing is that SIM Toolkit shows up in the menu and when I open it, it shows BSNL Portal(The Portal for BSNL in India)..
So I think that it detects the SIM.. but fails to contact the provider..
So what can I do?
Thanks in advance and sorry for the long post..
Hello my friend so probability you didn't back up the file where's is the ESN of your phone. So you need to write again. You need to fist this app:
1) Firstly write the ESN of your phone.
2) To do a note in the notes block from your PC with the next:
echo 'AT+EGMR=1,7,"IMEI_1"' >/dev/pttycmd1
echo 'AT+EGMR=1,10,"IMEI_2"' >/dev/pttycmd1
In "IMEI 1" YOU WRITE YOUR ESN. YOU DON'T ERASE THE quotes just erase the word IMEI 1.
(3) the file that you created (can give you the)
name you want) have fun with the memory of your
Android or a Micro SD, the joke is that the
Open in your device.
(4) low the ANDROID TERMINAL application
EMULATOR is totally free in playstore gone
(5) now opens your text file and copy the
first line from echo to cmd1, for that
just select the line and with the radio button
Please COPY or copy
6) on ANDROID TERMINAL EMULATOR, once
you open the app hits the line you copied and
push enter (on the digital keypad, just copy the)
text, no matter that there is a little character
in the application).
(7) repeat the process with the second line.
(8) restart your device with the SIMS
inside (if before the tapeworms in device not you)
worry doesn't pass anything)
(9) ready and are your IMEI restored! Now already
You can use your lines without problem!
As you can see! in less than 10 steps and less than 5
minutes are going to retrieve your IMEI, is very
simple and don't need much knowledge, more
that the copy and paste text.
Okay.. thanks for showing me that it is because of the IMEI..
Can someone else explain it in an understandable English?
and for LG P698.. No offence though..
Thanks BRO!
Sorry, I view that I 've written very bad. So I said that probably your ESN is erased and if you want to get it you need to have this application
Send from my RCA TAB 7" RCT6378W2
---------- Post added at 05:56 ---------- Previous post was at 05:49 ----------
The apps is called android terminal emulator. I don't offence, cuz I learn for my mistakes to write englhis better.
Many times when you upgrade a new ROM, the folder where is the files of the ESN be erase accidentally.
Send from my RCA TAB 7" RCT6378W2

Dual SIM phone with SEEK patched android

I'm new here so please bear with me.
long story short, I'm in need of a dual-SIM NFC phone that I can build a SEEK patched android for it.
So far I've done the patching for GS3, mostly with the help of usmile blog, then since we can't put our applet in real SIM card, made a fake UICC from a java card so that it was recognized by phone RIL driver (`libsec-ril.so`) as a valid SIM and granted access to it.
So till now, there is a phone (GS3) that we can put our java card in it and exchange APDUs. next goal is to do the same for a dual SIM so that it can have a real SIM and a java card simultaneously.
what follows is my questions:
1. Is there any successful android build for dual-SIM NFC phone? (maybe from cyanogenmod ?)
2. If there is not, is it possible to do so e.g. for Xperia E3 dual or GS3 Neo?
3. What should be done to make Android work on a dual SIM phone?
Thanks

Help with build.prop - no SIM recognized

Hello,
so I have a problem with a Huawei P10 Lite. Basically I had a fully functional build of this ROM (https://forum.xda-developers.com/p8...m-lineageos-14-1-huawei-p8-lite-2017-t3649292) that I had prepared for my new mobile contract. Everything was working fine but when I put my new card in, nothing I could do would get the phone to recognize that a SIM card was in my phone. My card works fine in other phones, I tried other cards and multiple cards in my phone (while enabling the dual SIM option) and all combinations of SIM slot 1 or 2.
Someone recommended that I edit my build.prop file with:
ro.config.client_number=1
ro.config.modem_number=1
My build.prop has no lines of code like this, I have attached it as well. If someone could tell me where I am supposed to add this code, I would be very grateful.
Thank you.

Region unlock procedure oppo find x 2 neo Dual Sim

This guide is a copy paste from this thread:
[GUIDE] Switch software region to Upgrade to ColorOS 11 and enable Dual Sim.
I want to write this here so it's all in one place and not scattered around different threads. Apologies for the bad formatting in some parts as this is on of my first contribution. Most of this is copied from this thread: I am adding onto this...
forum.xda-developers.com
For my oppo find x 2 neo it worked.
I remind you that it precedes it and has your danger
I am not responsible for any damage or blockages
DISCLAIMER: Use this at your own discretion. So far, when it works, it doesn't wipe any personal data
and nearly no issues are caused. Still, I am not responsible for bricked devices, broken warranties or lost data.
If you haven't already, enable Developer Options and USB Debugging.
Next, download the Oppo_Free_Unlock_v1.0.zip file from the attachments and extract it somewhere.
Before you run anything, though, there's a little preparation that needs to be done.
Open Device Manager and expand the Network Adapters category.
Find your Ethernet adapter and double click it to open its properties.
Go to the Advanced tab and find the Network Address option in the Property pane.
Under the Value pane, select the radio button next to the text box and paste in the following: 704D7B61ABCD.
If you don't have an Ethernet adapter, try to find another network adapter here that has the Network Address property. It may help to install VirtualBox, since it will add fake Ethernet adapters.
Close the properties window and close Device Manager.
Go to where you extracted the unlock tools. Open Sec5.exe.
Make sure your device is in MTP mode, and then press the Unlock button.
After about a second, a string of numbers and letters should show up in the left pane. A few seconds later, "OK" should start flashing in the right pane. If it says "device not found" or something similar, make sure MTP Mode is activated. Press "Stop unlocking" and close the window.
Open the phone app on your device and dial *#3954391#. Then dial *#391#. A screen should come up with a whole bunch of regions listed. Choose this one: "Singapore Ex". Note: This Version has Theme Store, but no Ringtone Maker. Feel free to try other versions. EDIT: DO NOT CHANGE TO A REGION WITH CARRIER, ESPECIALLY THAILAND AS YOU WON'T BE ABLE TO CHANGE BACK! AT LEAST WHILE ON ANDROID 10. STICK WITH THOSE THAT END IN EX. Once you have done this, it appears that you can always bring up the region menu when dialing the numbers..
Your phone should now reboot. Once it's rebooted, your region will have changed.
Every time you changed region and want to change it again you need to use the software. You can get a code that you can use every time to change the region instead of using this software every time. (Update- one person report that this code(token) wont work for every time as his STAMP code changed.)
For this you need to: Open the dialer app , dial *#9434# ,press authtokendecrypt. You will see a IMEI and STAMP. Open the Sec5.exe and write the IMEI and STAMP shown on your phone in the blank space of the IMEI and STAMP in the software and press Generate a token, you will see a string of numbers and letters, write it on the token blank text box and click authtokendecrypt. Now you will see every text written in green. Now you can follow the steps in the guide but skip the steps that have to do with sec5. The Token that the software gave you is the same code that you need to enter in the *#9434# every time you want to change region so you do not need to use the software ever again.
UPDATE: Currently, it doesn't seem to work anymore for some people. Try installing Loopback network driver ( How to install Loopback) and uninstalling or disabling all other network drivers. If you are afraid of doing this with your own device you can use a Virtual Machine, too. I tried it this way.. Rest of the process is the same, just change the network address in Device Manager the same way as before.
Now that you are on the Pakistan Version, you can also run the device in dual sim mode, which was disabled in EU Mode. Some users have ordered Dual-Sim-trays on AliExpress and are now able to use it in this way. Also this might open up the path to unlock the bootloader, since that is limited to chinese devices only. I have not tried this out yet, though.
In theory, changing your region like this should work on any OPPO device running at least Android Pie (9). It may even work on earlier versions.
NOTE: This will not work for Chinese variants. These codes are filtered and will only work for international variants.
this guide no longer works with the new updates for both x2 pro and neo so let's avoid posting things that are not valid there is already a tutorial
*#3954391# and *#391#not working in color os 11 solution plz

Categories

Resources