As long as your phone is L or 5.0 (I tried this on Nexus Player)
To build ontop of what David wrote.
Download AltBeacon make sure you check out branch android-l-apis
Build your aar with ./gradlew release and include in your project.
Beacon beacon = new Beacon.Builder()
.setId1("00000000-7777-5555-3333-000000000000")
.setId2("1")
.setId3("2")
.setManufacturer(0x004c)
.setTxPower(-59)
.setDataFields(Arrays.asList(new Long[]{0l}))
.build();
mBeaconTransmitter = new BeaconTransmitter(this, new BeaconParser().setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));
mBeaconTransmitter.startAdvertising(beacon);
Not sure if you would upset Apple by using 0x004c ... that is their company manufacture code.
I would investigate it more if you intend production. But for engineering testing it should be ok to test around.
I'm able to detect this beacon as iBeacon in both Gimbal app on iOS and iBeacon Locate on Android.