So, I was looking around my ROM and I discovered this neat little trick.
You know when you power on the device after a factory reset, and that setup comes up? When it says it is communicating with the server, it is actually getting the features of your device and sending it to Google Play.
How does it get the features of the device you may be asking. Well, it parses the XML files located in the /system/etc/permissions directory!
So, how can we use this to our advantage? Well, we can add features to our device/ROM!
How to do this? Simple!
Step 1: Copy a file in that directory and paste it in the same directory. I recommend you use the Root Explorer app.
Step 2: Rename the new file with the feature you want - if you want the android.hardware.telephony feature, rename the file to android.hardware.telephony.xml
Step 3: Open the file in a text editor. Remove the <text> part of the name="<text>" tags, and replace the <text> with the feature name (the same as the file name, without the .xml extension)
Step 4: Save the file!
Step 4.5: Delete the backup file if using Root Explorer
Step 5: Open your System Settings menu and clear the app data and cache for the following apps:
Google Play Store
Google Services Framework
Package Installer
Setup Wizard
com.android.provision
Step 6: Reboot the device:
Step 7: Open the Google Talk app, and sign in to your account(s), sign out, then sign in again. Open Google Play, and see if you can install an app that needs the feature you just added!
List Of Features
No matter how hard you try, this wont add telephony to your wifi only tablet ;) It only spoofs the features for Google Play - it doesn't actually add them, and some apps will force close if they really did need the feature you 'added'!
You know when you power on the device after a factory reset, and that setup comes up? When it says it is communicating with the server, it is actually getting the features of your device and sending it to Google Play.
How does it get the features of the device you may be asking. Well, it parses the XML files located in the /system/etc/permissions directory!
So, how can we use this to our advantage? Well, we can add features to our device/ROM!
How to do this? Simple!
Step 1: Copy a file in that directory and paste it in the same directory. I recommend you use the Root Explorer app.
Step 2: Rename the new file with the feature you want - if you want the android.hardware.telephony feature, rename the file to android.hardware.telephony.xml
Step 3: Open the file in a text editor. Remove the <text> part of the name="<text>" tags, and replace the <text> with the feature name (the same as the file name, without the .xml extension)
Step 4: Save the file!
Step 4.5: Delete the backup file if using Root Explorer
Step 5: Open your System Settings menu and clear the app data and cache for the following apps:
Google Play Store
Google Services Framework
Package Installer
Setup Wizard
com.android.provision
Step 6: Reboot the device:
Step 7: Open the Google Talk app, and sign in to your account(s), sign out, then sign in again. Open Google Play, and see if you can install an app that needs the feature you just added!
List Of Features
No matter how hard you try, this wont add telephony to your wifi only tablet ;) It only spoofs the features for Google Play - it doesn't actually add them, and some apps will force close if they really did need the feature you 'added'!