change device props

3,242 views
Skip to first unread message

Yamin Elmakis

unread,
Feb 24, 2015, 3:00:49 PM2/24/15
to andro...@googlegroups.com
hey,
i have an Android x86 4.4.4.
i'm changing the /system/build.prop file and i see the changes saved in the file even after reset.
but the properties of the device stay as they were befor the change when i check them in the device settings.
is there any why the device is overriding the build.prop data?

Chih-Wei Huang

unread,
Feb 25, 2015, 5:21:57 AM2/25/15
to Android-x86
What properties did you change exactly?
Some properties have special meanings in android.
For example, persist.* properties will be stored in data partition.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Yamin Elmakis

unread,
Feb 25, 2015, 7:15:22 PM2/25/15
to andro...@googlegroups.com
i want to change:
ro.product.model
ro.product.brand
ro.product.manufacturer
ro.build.characteristics

Yamin Elmakis

unread,
Feb 25, 2015, 7:15:53 PM2/25/15
to andro...@googlegroups.com
i want to change :
ro.product.model=***
ro.product.device=x86
ro.product.manufacturer=***
ro.build.characteristics=tablet


On Wednesday, February 25, 2015 at 12:21:57 PM UTC+2, Chih-Wei Huang wrote:

Chih-Wei Huang

unread,
Feb 25, 2015, 8:25:34 PM2/25/15
to Android-x86
2015-02-26 4:41 GMT+08:00 Yamin Elmakis <yamine...@gmail.com>:
> i want to change :
> ro.product.model=***
> ro.product.device=x86
> ro.product.manufacturer=***
> ro.build.characteristics=tablet

ro.product.model and ro.product.manufacturer
are set by init according to the dmi code.
They are read-only (ro.*) properties that
can't be changed later in build.prop.
If you want to change them,
you need to modify the init.x86.rc
in the ramdisk.

Yamin Elmakis

unread,
Feb 25, 2015, 11:43:08 PM2/25/15
to andro...@googlegroups.com
tnx.
can you please tell me what is the path to init.x86.rc?
can i change all 4 properties from that file?

Yamin Elmakis

unread,
Feb 27, 2015, 12:17:26 PM2/27/15
to andro...@googlegroups.com
i managed to change the manufacturer and model..
but do i change the characteristics?
how do i make the tablet think it is a phone for example?

Yamin Elmakis

unread,
Feb 28, 2015, 8:47:30 AM2/28/15
to andro...@googlegroups.com
i sew that the product chatacteristics is set to tablet in the file device/generic/x86/device.mk
PRODUCT_CHARACTERISTICS := tablet
but this file is being ignored in the build.
can anyone help me and point me to the relevent file?


On Tuesday, February 24, 2015 at 10:00:49 PM UTC+2, Yamin Elmakis wrote:

Chih-Wei Huang

unread,
Mar 2, 2015, 3:01:27 AM3/2/15
to Android-x86
2015-02-28 21:47 GMT+08:00 Yamin Elmakis <yamine...@gmail.com>:
> i sew that the product chatacteristics is set to tablet in the file
> device/generic/x86/device.mk
> PRODUCT_CHARACTERISTICS := tablet
> but this file is being ignored in the build.

Why did you think it's ignored?
That's exactly how ro.build.characteristics is set.

Note if you change the variable,
you'd better to do a clean build
to ensure everything is rebuilt properly.
(it's hard to explain the reason. But if you understand
the android build system, you know why)

Sidea Mihai Cristian

unread,
Mar 31, 2016, 11:34:14 AM3/31/16
to Android-x86
Hello, can you please tell me how you made the changes? I am pulling my hair off trying to do this too.
Thank you.

Chetan Rajpal

unread,
Feb 28, 2017, 9:37:48 PM2/28/17
to Android-x86
how you changed the manufacturer name in androidx86??

youling 257

unread,
Mar 1, 2017, 1:08:17 AM3/1/17
to Android-x86
edit default.prop,you have to modify ramdisk.img ,zcat ramdisk.img | cpio -id > /dev/null ,find . | cpio -o -H newc | gzip > /sdcard/ramdisk.img 
ro.product.model=Pixel XL
ro.product.manufacturer=Google
ro.opa.eligible_device=true
在 2017年3月1日星期三 UTC+8上午10:37:48,Chetan Rajpal写道:
Screenshot_20170301-140505.png

InternetKaltersia

unread,
Apr 19, 2017, 12:47:17 AM4/19/17
to Android-x86
On Wednesday, March 1, 2017 at 7:08:17 AM UTC+1, youling 257 wrote:
> edit default.prop,you have to modify ramdisk.img ,zcat ramdisk.img | cpio -id > /dev/null ,find . | cpio -o -H newc | gzip > /sdcard/ramdisk.img 
>
> ro.product.model=Pixel XL
> ro.product.manufacturer=Google
> ro.opa.eligible_device=true在 2017年3月1日星期三 UTC+8上午10:37:48,Chetan Rajpal写道:how you changed the manufacturer name in androidx86??

this works perfect in android 4.x and android 5.x , but what about android 6.0.1 ?

youling 257

unread,
Apr 19, 2017, 12:52:27 AM4/19/17
to Android-x86
of course,edit default.prop,work well on 6.0 and 7.1 .
but use magisk resetprop is nice .

/data/magisk/resetprop ro.product.model "Pixel XL"
/data/magisk/resetprop ro.opa.eligible_device true
/data/magisk/resetprop ro.product.manufacturer Google

在 2017年4月19日星期三 UTC+8下午12:47:17,InternetKaltersia写道:

youling 257

unread,
May 27, 2017, 3:12:58 PM5/27/17
to Android-x86
menuentry "6.0.1 (DEBUG mode)" {
 search --set=root --file /64/kernel
 linux /64/kernel root=/dev/ram0 mnt=e09579e5-87f6-416b-991c-4ac562bdddce system= DATA= SRC=6.0.1 Manufacturer=\"Google Inc\" Model=\"Pixel C\" intel_idle.max_cstate=0 DEBUG=1
 initrd /initrd.img
}

menuentry "6.0.1 (DEBUG mode)" {
 search --set=root --file /64/kernel
 linux /64/kernel root=/dev/ram0 mnt=mmcblk1p9 system= DATA= SRC=6.0.1 Manufacturer=\"Google Inc\" Model=\"Pixel C\" intel_idle.max_cstate=0 DEBUG=2
 initrd /initrd.img
}


[ "$SETUPWIZARD" = "0" ] && echo "ro.setupwizard.mode=DISABLED" >> default.prop
[ -n "$Manufacturer" ] && echo "ro.product.manufacturer=`echo $Manufacturer | cut -d '\' -f2 | cut -d '"' -f2`" >> default.prop
[ -n "$Model" ] && echo "ro.product.model=`echo $Model | cut -d '\' -f2 | cut -d '"' -f2`" >> default.prop
[ -n "$DEBUG" ] && SWITCH=${SWITCH:-chroot}

keyboard,Alt+f2,cp /tmp/log /mnt/log.txt,my boot log.txt 
log.txt

Best YouTube

unread,
Apr 26, 2019, 10:49:00 AM4/26/19
to Android-x86
Can you help me edit this ramdisk into ro.product.model = Pixel 3 XL
ro.product.manufacturer = Google
ro.opa.eligible_device = true Is this ramdisk working? I think my Pubg mobile will work when there is this information .pubg mobile reports that the device is not supported!!<Phoenix OS 1.5.0>

ramdisk.img
Reply all
Reply to author
Forward
0 new messages