Related
Hey guys
as you see, I'm requesting here 2 commands for an app I'm working on really looking forward to get answers by you
pottkopp
To create contact at sim card take a look at com.android.internal.telephony.IccProvider (Android sources) But keep in mind that in my tests stock HTC Phone app doesn't reflect changes made via this provider.
copy a number to sim card, do you mean copy the phone number to sim card and then reboot?
rwxer said:
To create contact at sim card take a look at com.android.internal.telephony.IccProvider (Android sources) But keep in mind that in my tests stock HTC Phone app doesn't reflect changes made via this provider.
Click to expand...
Click to collapse
how can i import the whole android sources into eclipse? because some needed files such as "ServiceManager.java" are missing..
georgeyeung said:
copy a number to sim card, do you mean copy the phone number to sim card and then reboot?
Click to expand...
Click to collapse
yes I want to reboot either whole phone or just the phone process.. depends on how complicated restarting the phone process is
Heh, I thought we're talking about interesting things, not about eclipse setup. No advice because I don't use it.
IccProvider is like a general data provider so typical usage is:
ContentResolver cr = context.getContentResolver();
ContentValues cv = new ContentValues();
cv.put("tag", tag);
cv.put("number", number);
cr.insert("content://icc/adn", cv);
And I think you don't need to reboot a phone all you need is to force sim card rereading, try to switch off/on a radio, main phone app will reread sim card.
I finally solved all those problems above one more thing I'd like to know is how to get the process id of an app like "com.android.phone"
big thanks for all your help till now!
everything finished pls close!
Does anyone have the two stocks videos that came with LG G2? When I did a factory reset, it erased everything. I lost those two videos. If anybody knows where to get them, please let me know. Thank you.
I found another post where somebody posted the videos I was looking for, I can't post outside links (http://forum.xda-developers.com/showthread.php?t=2432476&highlight=stock&page=25) #249, however when I put them on my phone it says that files are locked, he told me to create Preload Video folders on sd card and put files there, but still doesn't work. Can somebody help me? Thank you.
Uploading now. I'll edit this post when the links are ready.
https://dl.dropboxusercontent.com/u/20538644/Norway_FHD.dm
https://dl.dropboxusercontent.com/u/20538644/Europe_by_Dominic_FHD.dm
Thanks for your help, however its doing the same thing, when I put it on my phone, it says that file is locked. Anybody knows what the problem is?
Not sure. Have you tried downloading them with the phone?
I guess .dm files can only be played on the device that it was installed on initially
The DM file extension is an acronym for Delivery Message used by the DRM (Digital Rights Management) technology. This particular media type commonly associated with an audio data is encoded with the DRM copy protection standard and can be hosted on some cellular phones to serve as ringtones or multimedia clips. This file format is generated by the DRM Packager Tool for the Sony Ericsson mobile phones and can only be accessed by the specific mobile device licensed for its usage.
Thanks anyway
I actually went to sprint store for them lol, and folks there said it won't work for they're protected... but kindly allowed me to upload the two preloaded videos from a ls980 model on demo to my network drive. Copied to my g2 and I was able to play and show them to my friends. So these dm videos turned out to be encoded per specific model (or rom?) but that not a per phone lock.
Other way is to download a stock or stock-like rom flash it to the phone.
I didn't get the Art_of_Flight_FHD.dm back. Can't recall if saw that one on g2 before, but those from sprint stores or the aftermarket stock rom or kdz I downloaded don't have the one.
harmonyxda said:
I actually went to sprint store for them lol, and folks there said it won't work for they're protected... but kindly allowed me to upload the two preloaded videos from a ls980 model on demo to my network drive. Copied to my g2 and I was able to play and show them to my friends. So these dm videos turned out to be encoded per specific model (or rom?) but that not a per phone lock.
Other way is to download a stock or stock-like rom flash it to the phone.
I didn't get the Art_of_Flight_FHD.dm back. Can't recall if saw that one on g2 before, but those from sprint stores or the aftermarket stock rom or kdz I downloaded don't have the one.
Click to expand...
Click to collapse
Can you share those videos that you got?
usb7 said:
Can you share those videos that you got?
Click to expand...
Click to collapse
Here you are -
https://www.dropbox.com/sh/7iv6l9jylzwseui/MqzBFmqvhb
Two preloaded videos were locked to ls980 model. Other g2 won't play.
Will keep them up for a few days.
harmonyxda said:
Here you are -
https://www.dropbox.com/sh/7iv6l9jylzwseui/MqzBFmqvhb
Two preloaded videos were locked to ls980 model. Other g2 won't play.
Will keep them up for a few days.
Click to expand...
Click to collapse
Thanks for the upload!
Unfortunately for me I have the Verizon variant.
Hi,
follow the steps below to enable dual-SIM functionality on a single-SIM XT1562 device.
IMPORTANT: Read the following before performing any of the steps below!
This HowTo is only for XT1562 devices. This has been reported to not work on XT1563 devices.
The second SIM in your phone will have an IMEI of "0" (as there was none set during manufacturing). In some countries like the UK, many providers don't allow phones with such an IMEI, so you will not be able to use SIM cards from these providers as your second SIM.
Only one SIM (the one used for data connection) can use 3G/LTE bands. The other SIM card can only use 2G bands (this is a hardware limitation of the device). In some countries like Sweden, some providers sell cards that can only use 3G and not 2G, so you will not be able to use these cards as "secondary" (calls/messages only) SIM.
If you plan to do a Nandroid backup or use Titanium Backup for your data currently on your phone (because you don't want to copy your data by hand) or if you want to flash a custom ROM like CyanogenMod, you will need to unlock your Moto X Play (instructions below). Note that in this case your device warranty will be void.
Here are the steps to enable dual SIM functionality:
If you want, make a backup of all your data. You can copy your files by hand, to not lose your warranty.
If you don't copy your files by hand but with Nandroid backup or Titanium Backup (to restore app data as well), you will have to unlock your device, and therefore lose warranty (Refer to this guide for unlocking: http://www.gammerson.com/2015/08/steps-how-to-unlock-bootloader-of-moto-x-play.html. Note that all your data will be lost, and your device warranty will be void.). In this case, easiest way is to boot up a custom recovery (see this thread) and make a Nandroid backup to an external SD card. Alternatively backup the apps with Titanium Backup and copy the internal SD card files by hand.
Flash a dual-SIM stock firmware: Find a stock firmware that matches your region best on this site (search for "XT1562" and "DS" for dual-SIM). Follow this guide completely for flashing the firmware on your device.
If you are fine with the stock ROM and don't need a custom ROM like CyanogenMod, and you copied your files and data by hand without root, you are now finished and can use your dual SIM phone.
If you want to flash another ROM, or restore a Nandroid backup or Titanium Backup, please continue with the following steps.
Flash your favorite ROM (e.g. @squid2's CM 12.1, it's running great), or stay with the stock ROM.
Unlock your Moto X Play (if not done for the backup before yet): Refer to this guide for unlocking: http://www.gammerson.com/2015/08/steps-how-to-unlock-bootloader-of-moto-x-play.html. Note that all your data will be lost, and your device warranty will be void.
If you're on stock ROM, flash a custom recovery (see this thread again) and root your device by flashing SuperSU from the recovery.
Restore your Nandroid or Titanium backup.
If you're not on stock ROM, add the following lines (needs root) to a new file /data/local.prop or append it at the bottom of /system/build.prop:
Code:
ro.gsm.data_retry_config=default_randomization=2000,max_retries=infinite,1000,1000,80000,125000,485000,905000
persist.radio.plmn_name_cmp=1
persist.radio.force_get_pref=1
persist.radio.multisim.config=dsds
I'd prefer the /data/local.prop, as you do not need to make the change on every ROM update.
If you're on CM 13, you will have to add this line as well:
Code:
ro.telephony.ril.config=simactivation
Make sure that either file has read/write permissions 644 and is owned by root:root (with 'chown'). To ensure the r/w 644 permissions, go into the properties of the file (e.g. with ES File Explorer), and check that the file is readable and writable (rw, or 6) by the owner, and readable (r, or 4) for the group and others.
Finally, reboot one last time.
Disclaimer: I do not take responsability for any damage that may be caused to your device or for the warranty that will be void after following this HowTo. Please make sure you have an appropriate device (XT1562) before flashing the dual-SIM stock firmware.
Credits go to @ALD76 for originally posting the build.prop/local.prop modifications above, and to all the testers who risked their devices to try this out and encourage other users. And to @heisert, for mentioning that unlocking is not necessary for flashing official firmwares. And to @GtrCraft, for the local.prop modification line on CM 13.
Have fun and enjoy your dual-SIM phone.
jellysheep
What is your base model and rom? I have XT1562 on UK rom obviously it's only single sim so for me to get it to work im guessing I would need to flash a base rom that has a dual sim enabled modem such as the Asian rom.
Have you tried this?
Sent from my XT1562 using Tapatalk
Interested in this also - from the other thread, I think most were successful with the Asian variant (unsure of the EXACT rom name). IMEI will be blank, some have had it work anyway, others not.
I'm interested in this thread now, as the other one was messy, full of "it can't be done" and people discussing removing the plastic, etc... If someone can suggest the exact name of the stock ROM that works and what variant or ROM they had previously, maybe we can get a more definitive answer.
jellysheep said:
Hi,
many Moto X Play users like @Quasar have reported a working second SIM card after flashing a dual-SIM ROM and/or adding a few lines to build.prop/local.prop:
With the lines above in build.prop, I get the "SIM cards" menu in system settings, however it always reports SIM 2 as empty (though card is inserted that works as SIM 1).
Do you have any ideas how to fully enable the second SIM card?
Thanks, jellysheep
Click to expand...
Click to collapse
Did you flash the XT1562_LUX_RETASIA_DS_5.1.1_LPD23.118-12_cid7_subsidy-DEFAULT_CFC firmware first ?
ALD76 said:
Did you flash the XT1562_LUX_RETASIA_DS_5.1.1_LPD23.118-12_cid7_subsidy-DEFAULT_CFC firmware first ?
Click to expand...
Click to collapse
No, but I'll try that as soon as the download has finished. Thanks for the hint :thumbup:
@jellysheep
Done. CM with DS on a SingleSim Device RetEu.
It's just a question of the right Baserom. I tryed the french Firmware plus the trick from the initial post and it works.
You will lose data connection until you do the trick, so make sure you are in a wlan area to set uo your device.
here is a fast link to the base rom:
https://drive.google.com/file/d/0BxY75MbFAKsXcExRbnd3VXg1Mmc/view?usp=docslist_api
The trick I mentioned:
Add the following text to your build.prop (it's in the system folder). I didn't test the option with a local.prop .
ro.gsm.data_retry_config=default_randomization=200 0,max_retries=infinite,1000,1000,80000,125000,4850 00,905000
persist.radio.plmn_name_cmp=1
persist.radio.force_get_pref=1
persist.radio.multisim.config=dsds
@odysseus84: Thanks for the firmware link! :thumbup:
It worked on my german XT1562, and restoring the Nandroid backup (CM12.1) went fine as well. Now I have the same system as before, but with dual sim enabled.
jellysheep said:
@odysseus84: Thanks for the firmware link! :thumbup:
It worked on my german XT1562, and restoring the Nandroid backup (CM12.1) went fine as well. Now I have the same system as before, but with dual sim enabled.
Click to expand...
Click to collapse
You're welcome. It is just a bit annoying that we have to reenable DS after a flash. I wasn't able to do it with the local.prop
odysseus84 said:
You're welcome. It is just a bit annoying that we have to reenable DS after a flash. I wasn't able to do it with the local.prop
Click to expand...
Click to collapse
You mean after a CM upgrade, when just /system is flashed?
You just have to put the mentioned lines in /data/local.prop, and make sure it has user root:root and permissions 644 (just like build.prop).
Does this need to be done using CM or can it be done with stock rom?? Very intrigued
milestoneman said:
Does this need to be done using CM or can it be done with stock rom?? Very intrigued
Click to expand...
Click to collapse
Using the official dual-sim firmware that you flash anyway works fine. Just take care to select the right firmware version (model and region).
EDIT: But you will need root to add the needed lines to build.prop/local.prop.
I've got an XT1562 EU
just to be extra xautious, which firmware?
milestoneman said:
I've got an XT1562 EU
just to be extra xautious, which firmware?
Click to expand...
Click to collapse
Have a look here:
http://forum.xda-developers.com/mot...single-sim-t3194533/post62790748#post62790748
You most likely need something called XT1562_LUX_RETASIA_DS_5.1.1_LPD23.118-12_cid7_subsidy-DEFAULT_CFC
To further ad to the discussion:
You can just add the lines to a stock XT1563 (Canadian) and it will show you the 2nd SIM.
I know because I have done it.
BUT the problem is (I'll discuss further below) that it doesn't give you a 2nd IMEI for the 2nd SIM which in Canada and lot of other countries is a no go.
A lot of countries require 1 IMEI per SIM so dual SIM phones require 2 IMEI. This isn't iron clad - China doesn't have this requirement and some EU & South American countries don't either. However if you're Moto X Play is having issues with 2 SIM's (non stock units) it will be because your location requires the 2nd IMEI. It is possible to add a second IMEI number to the phone but you are going into dubious legal territory IMO. That's why I'm not going to spell it out for you here but rest assured that if you google it you will find the necessary information on how to add the IMEI for the second SIM slot.
IMO the IMEI number missing on the second SIM slot is the only thing different once you have added the lines to the build.prop from above posts.
Properly modded with the 2nd IMEI + build.prop a single SIM Moto X Play would be identical to it's dual SIM cousin IMO.
Tim3tripp3r said:
To further ad to the discussion:
You can just add the lines to a stock XT1563 (Canadian) and it will show you the 2nd SIM.
I know because I have done it.
Click to expand...
Click to collapse
I was seeing crashes while trying to modify settings for the second SIM.
Is everything working (other than not having the IMEI)?
Unlocked bootloader, got TWRP, rooted, downloaded firmware
Will try tomorrow as too late now
thanks for your help - hoping it works
---------- Post added at 01:19 AM ---------- Previous post was at 12:23 AM ----------
Curiosity got the better of me. I did the build prop changes, running Asian dual sim firmware but sim slot 2 always show no signal. It reads the sim as it shows the phone number.
@jellysheep Thank's for your Tipp for the local.prop. I had to add the file too the group 0000-Root. Now it works.
Maybe you could mark the thread as [How to] and put the Guide into the initial post, so people do not have to search the whole thread.
Tanks again
odysseus84 said:
@jellysheep Thank's for your Tipp for the local.prop. I had to add the file too the group 0000-Root. Now it works.
Maybe you could mark the thread as [How to] and put the Guide into the initial post, so people do not have to search the whole thread.
Tanks again
Click to expand...
Click to collapse
Yeah, I had planned to do exactly this, thanks for reminding me. [emoji106]
So anyone in the UK got this working?
I did this to my single-sim (which was supposed to be a dual-sim version, damn you retailer!)
I flashed the EU dual-sim firmware.
I get to put in my pin etc for the second sim, but the second simcard slot doesn't have an IMEI. So it can't register on a network.
Hi,
I just got this phone it was bought from and I live in the UK.
ALE-L21C432B183
Its not branded, but dual sim settings are not available and when I put a nano sim in the slot nothing happens.
I would like to enable dual sim but stay on an official stable (not beta) firmware, I've had a good look through the forum but I can only find guides that reference older pre-installed firmware, or going to Marshmellow beta.
Does anyone have experience of doing this?
Thanks in advance for any replies.
Anyone?
Hello ,Yes it's easy
First step is unlock your bootloader with your unlock code . you have to ask huawei to give you the code.
dkonect said:
Hello ,Yes it's easy
First step is unlock your bootloader with your unlock code . you have to ask huawei to give you the code.
Click to expand...
Click to collapse
Indeed need unlock code instead emailing found this in process myself got unlock code from site almost instant generated online tool.
Mine works but only one in each slot not both in at same time works with one in one or the other. UK networks lock this feature out and sell as a single version yet its double. awaiting to download files to do rest.
unlock tool online from huawei https://community.gethuawei.com/developers/f/48/t/1048
guide on how to unlock boot loader and roothttp://forum.xda-developers.com/p8lite/general/step-step-guide-to-unlock-bootloader-t3150616
full guide including marshmallow and lollypop unknown if need bootloader unlocked. Can anyone confirm if needed to be unblock boot and rooted for this ?
Thanks for the replies both. I was hoping to achieve it without root. My company's email can't. Be accessed from rooted devises.
I will request the boot loader unlock today. Just need to identify the correct firmware to use now
Sent from my ALE-L21 using XDA-Developers mobile app
segamegadave01 said:
Thanks for the replies both. I was hoping to achieve it without root. My company's email can't. Be accessed from rooted devises.
I will request the boot loader unlock today. Just need to identify the correct firmware to use now
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
I too live in uk and im on unbranded b183 i tryed to unlock my bootloader yesterday, and found it was already unlocked so yours might be the same??
Sent from my ALE-L21 using XDA-Developers mobile app
pdm12021987 said:
I too live in uk and im on unbranded b183 i tryed to unlock my bootloader yesterday, and found it was already unlocked so yours might be the same??
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
Thanks for the reply pal. I'll let you know later when I get to it. What were you unlocking for? Do you have the same intention as me?
Sent from my ALE-L21 using XDA-Developers mobile app
Yes i was going to update to 6.0, but then weighed up the pros and cons and decided against it because i dont really need the dual sim function to be honest so ive left it. I originally bought it on o2 but found its actually unlocked.
Sent from my ALE-L21 using XDA-Developers mobile app
I have got mine working and to be honest isint all that made oyr you can only run one at $G and other at 2G or 3G services cant run both of them in 4G mode its good to have the 2 options like to have 2 sim cards save having to carrie 2 phones around but then no sd card slot available. maybe if they did 2 sim slots and sd would be much better
mentalghost said:
I have got mine working and to be honest isint all that made oyr you can only run one at $G and other at 2G or 3G services cant run both of them in 4G mode its good to have the 2 options like to have 2 sim cards save having to carrie 2 phones around but then no sd card slot available. maybe if they did 2 sim slots and sd would be much better
Click to expand...
Click to collapse
Cheers for the reply and the feedback. I only want to make and receive calls on the 2nd sim. Which firmware did you use to get it working?
Sent from my ALE-L21 using XDA-Developers mobile app
segamegadave01 said:
Cheers for the reply and the feedback. I only want to make and receive calls on the 2nd sim. Which firmware did you use to get it working?
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
I followed instructions on this thread http://forum.xda-developers.com/p8lite/help/stock-rom-huawei-p8-lite-t3125331
Downloaded the mega file and a few pages on and another guide followed this
Hi - This is really working : see the detailed step by step below :
Step 1 - Download ALE-L21V100R001C432B046b.rar from link above .
Step 2 - Unrar - you will have two folders STEP 1 and STEP 2
Step 3 - put both SIM - Micro and Nano in phone sim slots
Step 4 - Connect the phone on computer as USB drive
Step 5 - Copy From folder STEP 1 - dload folder on your root phone internal storage \ !!! only the dload folder
Step 4 - Disconnect the phone from computer
Step 6 - Start update procedure --> settings - update - local update - at this step the Vodafone logo will be replaced by Huawei one and other major changes .
Step 7 - after first reboot use sim pin if is asked (usual 1234)
Step 8 - Connect the phone on computer as USB drive
Step 9 - Copy From folder STEP 2 - dload folder on your root phone internal storage \ !!! only the dload folder
Step 10- Disconnect the phone from computer
Step 11 - Start update procedure --> settings - update - local update - at this step the update procedure is finalised.
Step 12 - after reboot use sim pin if is asked (usual 1234) and both SIM sd be visible .
Just above the WIFI in settings you sd have dual card management menu option.
With these steps on my P8 lite from initial single sim :
- build number ALE-L21C02B130, and custom soft version probably requested by VDF- custc02d001 -
I have after upgrade dual sim working :
- build number ALE-L21V100R001C432B046b and no custom soft version.
Worked first time around after messing with all the others about rooting and unlocking boot none of it worked found this first time around work flawless.
mentalghost said:
I followed instructions on this thread http://forum.xda-developers.com/p8lite/help/stock-rom-huawei-p8-lite-t3125331
Downloaded the mega file and a few pages on and another guide followed this
Hi - This is really working : see the detailed step by step below :
Step 1 - Download ALE-L21V100R001C432B046b.rar from link above .
Step 2 - Unrar - you will have two folders STEP 1 and STEP 2
Step 3 - put both SIM - Micro and Nano in phone sim slots
Step 4 - Connect the phone on computer as USB drive
Step 5 - Copy From folder STEP 1 - dload folder on your root phone internal storage \ !!! only the dload folder
Step 4 - Disconnect the phone from computer
Step 6 - Start update procedure --> settings - update - local update - at this step the Vodafone logo will be replaced by Huawei one and other major changes .
Step 7 - after first reboot use sim pin if is asked (usual 1234)
Step 8 - Connect the phone on computer as USB drive
Step 9 - Copy From folder STEP 2 - dload folder on your root phone internal storage \ !!! only the dload folder
Step 10- Disconnect the phone from computer
Step 11 - Start update procedure --> settings - update - local update - at this step the update procedure is finalised.
Step 12 - after reboot use sim pin if is asked (usual 1234) and both SIM sd be visible .
Just above the WIFI in settings you sd have dual card management menu option.
With these steps on my P8 lite from initial single sim :
- build number ALE-L21C02B130, and custom soft version probably requested by VDF- custc02d001 -
I have after upgrade dual sim working :
- build number ALE-L21V100R001C432B046b and no custom soft version.
Worked first time around after messing with all the others about rooting and unlocking boot none of it worked found this first time around work flawless.
Click to expand...
Click to collapse
Cheers mentalghost I will read through and try this tonight. Did this leave you on Lollipop?
Sent from my ALE-L21 using XDA-Developers mobile app
segamegadave01 said:
Cheers mentalghost I will read through and try this tonight. Did this leave you on Lollipop?
Sent from my ALE-L21 using XDA-Developers mobile app
Click to expand...
Click to collapse
Yes Lollypop am and android 5.0.1 as it did the updates from update service after so far so good. Am working on downloading marshmallow next to see if that work too as got everything else now working to a T with boot loader unlocked but cant seem to lock it back up so maybe leave open for when the custom ports come if they come for 8lite
Well since doing and now updated am now on Marshmallow. Lots of new options and one to not get confused with when putting usb in make sure you select file transfer or you wont get any options for it. Seems has new options for usb devices and when connecting you get option to charge phone only or file transfer or photo. Nifty little option had me worried that I had done something to me phone when plugging in lol.
Hey mentalghost.. Which MM ROM did you install beta or official?? Did you get the bootloader unlock code?
kh4y4m said:
Hey mentalghost.. Which MM ROM did you install beta or official?? Did you get the bootloader unlock code?
Click to expand...
Click to collapse
Yes I got the boot loader unlock code from huawei website simply joined their site added info it asked me to put in and gave me unlock code for device.
and I used official MM from http://huaweifirmware.com/huawei-p8-lite and following instructions to upgrade from pop to MM
Hello everyone! I had an LG G6 (Sprint), and I had some locked files on the SD card. The phone started giving me the "moisture in charging port" error, and Sprint/Asurion decided to just replace the phone with another brand new G6. I put my SD card in the new G6, and when I try to view the locked files, I get the message "This file is locked by another Google account and cannot be opened". I am logged in with the same exact Google account that I was on my old phone... So what do I need to do to be able to recover my locked files???
Thanks in advance!
If it's photos in your gallery you can use this to bypass the lock thing
https://play.google.com/store/apps/details?id=you.love.v10.hidden.settings
Unfortunately, most of the settings in that V10 app (including the gallery) say something like "This feature is not available for your device".