Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,547 Members 43,561 Now Online
XDA Developers Android and Mobile Development Forum

Allowing non market apps to be installed on locked down phones (backflip)

Tip us?
 
met3ora
Old
#1  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
Default Allowing non market apps to be installed on locked down phones (backflip)

Hey guys,

My uncle works for Motorola and gave me a prototype phone (which I believe will be called the Motorola Sage, and it's model number is MB508. This thread isn't really about that, I can't post pictures because I don't want to get anyone in trouble). This phone is an AT&T phone, complete with AT&T startup screen, uninstallable AT&T apps and of course the inability to install non-market apps. Also it's running Android 2.1.

Now, I seem to have default root access to this phone. I'm assuming the file system is very similar to that of the Backflip (which I was previously using until I received this one). From what I've read and learned from poking around in /system/etc, non-market apps are blocked by two config files. These are:

/system/etc/motorola/com.android.providers.settings/secure.mkitso
Code:
# cat secure.mkitso
cat secure.mkitso
location_providers_allowed=network,gps
wifi_on=0
data_roaming=1
bluetooth_on=0
install_non_market_apps=0
usb_mass_storage_enabled=1
and

/system/etc/motorola/com.motorola.android.providers.settings/settings.mkitso
Code:
# cat settings.mkitso
cat settings.mkitso
mms_maximum_message_size=614400
auto_scan_on_flip=true
sms_pref_key_emailgateway_num=121
Single_Digit_Dial_Enabled=True
roaming_icon=0
dun_enable=1
force_only_market_apps=1
Bluetooth_Dun_Enabled=true
mms_x_wap_profile_url=http://uaprof.motorola.com/phoneconfi/MotoMB51/profile/MotoMB511.rdf
sms_pref_key_to_email=1
Okay, now it would seem that it's a simple matter of changing the values for "force_only_market_apps" to 0, and "install_non_market_apps" to 1. I did this, and let me quickly tell you how I did it.

- Make /system writable: mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

- Copy mkitso files to sdcard

- Edit mkitso files using Notepad++, changing the values as stated above

- Copy mkitso files back to their original directories

- chmod 644 to the files in order to keep their original permissions

- Make /system read only again: mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system

- Restart the phone

However, this did not work, as I still get the warning when I try to install a non-market app.

I was wondering if anyone had any ideas on this, as when the Backflip gets rooted this is one thing that I'm sure we would like to know.
 
otto888
Old
#2  
otto888's Avatar
Senior Member
Thanks Meter 45
Posts: 440
Join Date: Dec 2008
Location: Alabama
Have you tried adb install? I've heard that works on Backflops. You could download the app to your PC,and install it using "adb install PATH/TO/APP.APK"
Current Phone(s): HTC M8
Other devices: Nexus 7 2012 , Chromecast
 
met3ora
Old
#3  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
Thanks, I know that I can use adb to install non market apps, but I was looking at how to change this setting on the phone. Since I have root on my phone, I figured it was possible.
 
sseymour
Old
(Last edited by sseymour; 29th April 2010 at 01:31 AM.)
#4  
sseymour's Avatar
Member
Thanks Meter 1
Posts: 33
Join Date: Sep 2008
Check out some of these terminal apps found in /system/bin/ directory of the backflip.Maybe they will help you.
Code:
modemlog
chown
check_prereq
dumpsys
qmuxd
rild
dd
port_bridge
installd
minipadut
vmstat
vold
ioctl
mm-audio-native-test
lsmod
id
mm-adec-omxamr-test
notify
getevent
hciattach
dhcpcd
service
cat
system_server
linker
mm-vdec-omxh264-test
mm-adec-omxevrc-test
wpa_supplicant
netstat
mm-adec-omxmp3-test
ls
wipe
iwpriv
stop
log
mm-vdec-omxmp4-test
top
bt_init
app_process
kill
dumpcrash
iwspy
tcmd_engine
sleep
port-bridge
input
chmod
flash_image
wfa_dut
monkey
dmesg
umount
dalvikvm
sh
sync
ptf
mm-jpeg-dec-test
ime
diag_klog
route
ln
batch
fuel_gauge
iwlist
bugreport
insmod
hcid
svc
rmmod
servicemanager
iwgetid
debuggerd
test_diag
am
renice
applypatch
ps
watchprops
sendevent
reboot
mount
mm-adec-omxQcelp13-test
pm
start
ping
busybox
toolbox
df
touchpad
mediaserver
setconsole
loc_api_app
setprop
logwrapper
rm
dvz
hd
ifconfig
rmdir
printenv
getprop
mm-venc-omx-test
fsck_msdos
iwconfig
iftop
bt_downloader
akmd2
sdptool
disp_util
mm-aenc-omxamr-test
newfs_msdos
gzip
cmp
iwevent
mv
smd
mmclog
mknod
mm-adspsvc-test
bt_test_exec
dexopt
date
set_grp_id
i2c
tcmd_sql
recovery
dumpstate
netcfg
surfaceflinger
mkdir
dbus-daemon
mm-adec-omxaac-test
schedtest
mm-jpeg-enc-test
logcat
mm-aenc-omxaac-test
schedtop
fmradio
EDIT:Also there does not seem to be a com.android.providers.settings in /system/etc/motorola/ only com.motorola.android.providers.settings and the file located in that directory is named secure.mkitso and the market app setting is set up like this:install_non_market_apps=0

So there is a slight difference in how the devices are set up and maybe a bit less security on the backflip =)
 
met3ora
Old
#5  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
Thanks for your suggestion, but if you read above I changed the mkitso files without any changes in the behavior of the phone .
 
met3ora
Old
#6  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
I was thinking that since I changed the settings files and they didn't do anything, maybe they will be applied during a hard reset. I'll try that sometime this weekend and report on the results.

The reason I'm asking for help is because I believe that once the Backflip gets rooted, we will need to know how to disable this setting.
 
Honestly77
Old
#7  
Senior Member
Thanks Meter 3
Posts: 291
Join Date: Dec 2007
I doubt you have root unless it came already rooted (you did make up some **** about a prototype) I honestly think this wont be a hard issue to tackle or work around when root is achieved on the Lackflip...yes I did Lackflip on purpose because of how crippled it is..so spend your time ANNONYMOUSLY sending www.endgadget.com some nice shiney pics of your supposed prototype codnamed:

"Motorola Sage"
Current:
Phone: HTC EVO 4G LTE
Rom: 100% Stock

Retired:
Phone: HTC Sensation 4G
Rom: OrDroid 8.20 Sense 4 Port.

Phone: HTC Droid Incredible AMOLED
Rom: Kingdom Sense 3.0

Phone: White T-Mobile G1
Rom: SuperEclair 3.0 Beta 4.1
 
met3ora
Old
#8  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
I'm not sure why you're so aggressive, Honestly77. I'm able to "su" in shell and I'm able to modify files in the /system folder, so unless I'm mistaken (which I very well might be), then I believe I have root on the phone.

It is a prototype phone for testing, so it coming rooted isn't too farfetched at all.

When the Backflip does get rooted yes, this will be an easier issue to solve, but I'm trying now. If we're able to figure it out now then no time will have to be devoted to it when the Backflip is rooted.
 
met3ora
Old
#9  
Senior Member - OP
Thanks Meter 0
Posts: 411
Join Date: Nov 2007
Alright, I just did a hard reset and it activated a menu toggle under Settings -> Applications -> "Unknown Sources: Allow install of non-Market applications" which can be checked or unchecked.

To summarize, if you have root on your phone, edit secure.mkitso and settings.mkitso and change the variables, then you need to hard reset the phone.
 
terryrook
Old
(Last edited by terryrook; 15th August 2010 at 08:56 PM.)
#10  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Aug 2010
hey met3ora, I too have a backflop, I am currently trying to sell my soul to obtain some sort of root or even simple control over the device, I have 2 questions for you...
1: using the config files and other software availible on this forum, would it be possible to obtain a workaround to be able to install apps from sd? I'm sure you are well aware that the backflip has no memory and won't even allow market apps to be installed via sd.
my second question (its ok if you don't want to answer as we will find out soon enough)
is: the moto sage, how does it compare to the backflip? no specifics needed just, is it better?
Iv'e seen the photos of the sage that appeared a couple weeks ago and it looks good, just incase we need it you should copy the system files as I'm sure the one AT&T will give us will be on lockdown as well. Thanks!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Shane Francis to Talk Android, Robotics, and Vision at XDA:DevCon 2014

Our international xda:devcon 14in Manchester, UK on the weekend of … more

LG G Watch Tool is a Toolkit all Owners Need

The LG G Watch is one of the first two devices hitting the market rocking the highly anticipated … more

Benchmark Your CPU Performance with Mini CPU Integer Script

When it comes to device testing, there are two types of people on XDA. The first … more

Rid Yourself of Charging Annoyances with No Wake on Charge Xposed Module

Almost every OEM has skinned and otherwise modifiedAndroid to suit … more