ROM Android: Tuning Custom ROM

From OnnoWiki
Revision as of 07:32, 10 November 2014 by Onnowpurbo (talk | contribs) (New page: here's my problem : I've already done some research with Google, Stack Overflow and XDA Developers forums but I didn't even find a related question. I'm trying to customize this Cyanogen...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

here's my problem :

I've already done some research with Google, Stack Overflow and XDA Developers forums but I didn't even find a related question.

I'm trying to customize this CyanogenMod ROM so the "Unknown sources" checkbox (in Settings > Applications) is checked by default after the installation of the ROM using ClockWorkMod, but I can't seem to find where to do it.

I searched into the following APK files using apktool :

   /system/framework/framework-res.apk
   /system/app/Settings.apk
   /system/app/SettingsProvider.apk
   /system/app/ApplicationsProvider.apk
   /system/app/PackageInstaller.apk
   /system/app/CertInstaller.apk



Ok, turns out I didn't search hard enough.

For those who are interested, the file to edit is located into SettingsProvider.apk. You have to decompile it (with apktool) and edit the file SettingsProvider/res/values/bools.xml, replacing this line :

<bool name="def_install_non_market_apps">false</bool>

by this one :

<bool name="def_install_non_market_apps">true</bool>

And then, recompile, etc.

Hope this helps.


Referensi